From scott at tactilemedia.com Sun Jun 1 03:45:27 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 01 Jun 2014 00:45:27 -0700 Subject: [ANN] tmControl2 First Release Message-ID: It's many long months, dozens of nights without sleep, and gallons of coffee, but I'm happy to announce the first release of tmControl2, my next gen custom control set for LiveCode. This first release is for iOS and includes 20+ controls, an icon library of both glyphs and images, a blur external to create elegant iOS7 effects, an examples stack, and documentation. A demo is available. Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From gerry.orkin at gmail.com Sun Jun 1 04:00:25 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sun, 1 Jun 2014 18:00:25 +1000 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> Just in time for iOS 8! Just kidding - I doubt the UI will change much in the new version. tmControl looks great - when I start my next project I'll give it try. Gerry On 1 Jun 2014, at 5:45 pm, Scott Rossi wrote: > It's many long months, dozens of nights without sleep, and gallons of > coffee, but I'm happy to announce the first release of tmControl2, my next From scott at tactilemedia.com Sun Jun 1 04:06:07 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 01 Jun 2014 01:06:07 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> References: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> Message-ID: So true Gerry! :-) I neglected mention the new-release discount is available for 1 week. Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/1/14 1:00 AM, "Gerry Orkin" wrote: >Just in time for iOS 8! > >Just kidding - I doubt the UI will change much in the new version. >tmControl looks great - when I start my next project I'll give it try. > >Gerry > > >On 1 Jun 2014, at 5:45 pm, Scott Rossi wrote: > >> It's many long months, dozens of nights without sleep, and gallons of >> coffee, but I'm happy to announce the first release of tmControl2, my >>next > > >_______________________________________________ >use-livecode mailing list >use-livecode at 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 Sun Jun 1 04:15:10 2014 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sun, 1 Jun 2014 10:15:10 +0200 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: I prefer testing the full version, just bought it. :) One more Jewel in my collection! Thanks Scott! Best, On Sun, Jun 1, 2014 at 9:45 AM, Scott Rossi wrote: > It's many long months, dozens of nights without sleep, and gallons of > coffee, but I'm happy to announce the first release of tmControl2, my next > gen custom control set for LiveCode. This first release is for iOS and > includes 20+ controls, an icon library of both glyphs and images, a blur > external to create elegant iOS7 effects, an examples stack, and > documentation. A demo is available. > > > Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ > > > Best Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI 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 -- Zryip TheSlug http://www.aslugontheroad.com From gerry.orkin at gmail.com Sun Jun 1 04:52:44 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sun, 1 Jun 2014 18:52:44 +1000 Subject: [ANN] tmControl2 First Release In-Reply-To: References: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> Message-ID: Bloody hell...ok ok, I'll get it sooner then :) g On 1 Jun 2014, at 6:06 pm, Scott Rossi wrote: > I neglected mention the new-release discount is available for 1 week. From marc.vancauwenberghe at pandora.be Sun Jun 1 04:58:13 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Sun, 1 Jun 2014 10:58:13 +0200 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: <43AB1570-A593-494B-B860-CFEE2F0E934E@pandora.be> Wow!!! Just bought it and gave it a try. I am getting very exited. The template based tableview is a super. Great stuff. Must dash?. Have to change all sunday plans... Thank you Scott?. Best regards, Marc Op 1-jun.-2014, om 09:45 heeft Scott Rossi het volgende geschreven: > It's many long months, dozens of nights without sleep, and gallons of > coffee, but I'm happy to announce the first release of tmControl2, my next > gen custom control set for LiveCode. This first release is for iOS and > includes 20+ controls, an icon library of both glyphs and images, a blur > external to create elegant iOS7 effects, an examples stack, and > documentation. A demo is available. > > > Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ > > > Best Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI 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 igor at semperuna.com Sun Jun 1 05:29:25 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sun, 1 Jun 2014 19:29:25 +1000 Subject: Livecode Server Sessions Message-ID: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> Dear LC Server Gurus, Is there a tutorial anywhere that explains *exactly* how to use SESSIONS with LiveCode Server? I found a lesson on *cookies*, here: How do I use Cookies on LiveCode Server? | How To ? This is good info, but only useful if I were going to implement my OWN session management and storage layer. Going through the Dictionary, I found entries for ?$_SESSION?, as well as a bundle of session-related commands and properties, like ?start session?, ?stop session?, ?delete session?, ?sessionID?, ?sessionName?, etc. These seem to indicate that LC Server already has session handling capabilities baked-in. Unfortunately, the information in the Dictionary about how to use sessions is scant and disconnected, and it?s hard to build a complete picture of how the session workflow should go - and how and when all those commands fit in with each other. To make matters worse, googling ?livecode server sessions? yields the following document: How do I use Sessions on LiveCode Server? This seems to be a (hopefully) outdated guide - it talks about LiveCode Server 5. It paints a rather discouraging picture of how sessions worked then - ie., there are many caveats, including having to use ?start session? at the beginning of any page that uses $_SESSION, before any headers are sent from the server? I?m certain that the implementation of all of this would have changed by now, as the Dictionary makes no mention of any of these issues... Is there a current step-by-step guide anywhere? Any pointers would be greatly appreciated. Kind regards to all, -- Igor Couto Sydney, Australia From dave at applicationinsight.com Sun Jun 1 06:08:04 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 1 Jun 2014 03:08:04 -0700 (PDT) Subject: Livecode Server Sessions In-Reply-To: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> References: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> Message-ID: <1401617283987-4680139.post@n4.nabble.com> Hi Igor I don't know of any LC session tutorials other than the one you mentioned - but I'm wondering if the user guide page on RevIgniter's Session Library might be of interest an may provide some pointers? http://revigniter.com/userGuide/libraries/sessions.html Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Livecode-Server-Sessions-tp4680138p4680139.html Sent from the Revolution - User mailing list archive at Nabble.com. From igor at semperuna.com Sun Jun 1 06:29:52 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sun, 1 Jun 2014 20:29:52 +1000 Subject: Base64 & Quoted-Printable Email Headers Message-ID: <0D90FE85-CF3D-4CD3-A7CD-836D2047C09D@semperuna.com> Dear LC Gurus, I am working with LC 7.0-dp6, and need to parse some raw email messages, translating headers that were encoded using base64 or quoted-printable encoding back to ?normal? text. The email headers in these messages look like these samples: > ============ > Subject: =?UTF-8?B?e1N1YSBtZWxob3Igb3DDp8OjbyF8QSBtZWxob3Igb3DDp8OjbyBlbSBTYcO6ZGUgIXxBIG1lbGhvciBvcMOnw6NvIGVtIFNhw7pkZSBlc3TDoSBhcXVpICF9?= > From: "=?UTF-8?B?UXVhbGljb3JwIFNhw7pkZQ==?=" And: > ============ > From: =?utf-8?Q?=E2=98=85?= Brittni Seger =?utf-8?Q?=E2=98=85?= > To: info at example.com > Subject: =?UTF-8?B?SGV5IHN3ZWV0eSwgZG8geW91IHdhbnQgdG8gSEFWRSBTT01FIEZVTj8=?= > ============ Headers containing non-ascii characters should always be encoded in either base64 or ?quoted-printable? format. The header format then becomes: * =?charEncoding?B?encodedString?= (for base64) * =?charEncoding?Q?encodedString?= (for quoted-printable) So, in the first example above, the ?from? header contains UTF-8 characters, encoded in base64 encoding. In the second example, the ?from? header contains UTF-8 characters encoded as ?quoted-printable?. Using matchText() it?s easy to extract the encoded string, but I?m having a couple of issues: 1) How to decode from ?quoted-printable? to normal text? Is there a ready-made function somewhere? 2) LiveCode?s base64decode() function seems to assume that we are always dealing with ascii text - this is using version 7.0-dp6. If I get the base64decode of "UXVhbGljb3JwIFNhw7pkZQ==? (the sender of the first example above), I get "Qualicorp Sa??de?, when I should be getting ?Qualicorp Sa?de?. I guess that somehow I should be telling LiveCode that these characters are UTF-8, but in LiveCode 7.0 isn?t everything supposed to be unicode by default? The functions that we would have used in previous versions (uniEncode, uniDecode) are now deprecated, so in a situation like this, what should be used? Any guidance would be much appreciated. Kindest regards, -- Igor Couto Sydney, Australia From igor at semperuna.com Sun Jun 1 06:33:49 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sun, 1 Jun 2014 20:33:49 +1000 Subject: Livecode Server Sessions In-Reply-To: <1401617283987-4680139.post@n4.nabble.com> References: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> <1401617283987-4680139.post@n4.nabble.com> Message-ID: <59C74212-F2D4-45D3-B38D-6059C3B0F66C@semperuna.com> On 1 Jun 2014, at 8:08 pm, Dave Kilroy wrote: > Hi Igor > > I don't know of any LC session tutorials other than the one you mentioned - > but I'm wondering if the user guide page on RevIgniter's Session Library > might be of interest an may provide some pointers? > http://revigniter.com/userGuide/libraries/sessions.html It seems that RevIgniter uses its own session handling scheme, rather than using LiveCode?s ?$_SESSION? - they even provide instructions on how to save session data to a database, if desired. Neat, but I was wondering whether the built-in $_SESSION would be enough?? -- Igor Couto Sydney, Australia From igor at semperuna.com Sun Jun 1 07:40:29 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sun, 1 Jun 2014 21:40:29 +1000 Subject: Quoted-Printable & Base64 Unicode Text in LC7 Message-ID: <64CD3525-A5A5-4DBA-98AF-1BF267A9FE8D@semperuna.com> Dear LC Gurus, Using LC7-dp6, I?m trying to parse some raw email messages that have headers with international characters. Headers containing non-ascii characters should always be encoded in either base64 or ?quoted-printable? format. The header format then becomes: * =?charEncoding?B?encodedString?= (for base64) * =?charEncoding?Q?encodedString?= (for quoted-printable) So, a ?from? header might look like this: from: "=?UTF-8?B?UXVhbGljb3JwIFNhw7pkZQ==?=? A sample using quoted-printable would be: from: =?utf-8?Q?=E2=98=85?= Brittni Seger =?utf-8?Q?=E2=98=85?= Using matchText() it?s easy to extract the encoded string, but I?m having a couple of issues: 1) How to decode from ?quoted-printable? to normal text? Is there a ready-made function somewhere? 2) LiveCode?s base64decode() function seems to assume that we are always dealing with ascii text - this is using version 7.0-dp6. If I get the base64decode of "UXVhbGljb3JwIFNhw7pkZQ==? (the sender of the first example above), I get "Qualicorp Sa??de?, when I should be getting ?Qualicorp Sa?de?. I guess that somehow I should be telling LiveCode that these characters are UTF-8. What function(s) do we use for converting between encodings in LiveCode 7? The functions that we would have used in previous versions (uniEncode, uniDecode) are now deprecated, so in a situation like this, what should we use? And, shouldn?t LC7 assume by default that everything is unicode? Any guidance would be much appreciated. Kindest regards, -- Igor Couto Sydney, Australia From hello at simonsmith.co Sun Jun 1 08:37:11 2014 From: hello at simonsmith.co (Simon Smith) Date: Sun, 1 Jun 2014 14:37:11 +0200 Subject: Livecode Server Sessions In-Reply-To: <59C74212-F2D4-45D3-B38D-6059C3B0F66C@semperuna.com> References: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> <1401617283987-4680139.post@n4.nabble.com> <59C74212-F2D4-45D3-B38D-6059C3B0F66C@semperuna.com> Message-ID: Hi Igor Sessions on LiveCode are pretty easy to use and work in a similar fashion to other languages like php. You just need to ensure that you use the stop session command aswell somewhere in the scripts., as that is when everything gets written to the session variable. e.g. Script 1: Script 2 can now access the saved session variable: There are a couple of other commands for sessions that add some more flexibility that you should be able to find in the dictionary. - delete session - sessionCookieName - sessionID - sessionLivetime - sessionName - sessionSavePath Hope this helps. Simon On Sun, Jun 1, 2014 at 12:33 PM, Igor de Oliveira Couto wrote: > On 1 Jun 2014, at 8:08 pm, Dave Kilroy > wrote: > > > Hi Igor > > > > I don't know of any LC session tutorials other than the one you > mentioned - > > but I'm wondering if the user guide page on RevIgniter's Session Library > > might be of interest an may provide some pointers? > > http://revigniter.com/userGuide/libraries/sessions.html > > It seems that RevIgniter uses its own session handling scheme, rather than > using LiveCode?s ?$_SESSION? - they even provide instructions on how to > save session data to a database, if desired. > > Neat, but I was wondering whether the built-in $_SESSION would be enough?? > > > -- > Igor Couto > Sydney, Australia > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From igor at semperuna.com Sun Jun 1 08:46:06 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Sun, 1 Jun 2014 22:46:06 +1000 Subject: Livecode Server Sessions In-Reply-To: References: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> <1401617283987-4680139.post@n4.nabble.com> <59C74212-F2D4-45D3-B38D-6059C3B0F66C@semperuna.com> Message-ID: On 1 Jun 2014, at 10:37 pm, Simon Smith wrote: > [?] Hope this helps. Thank you, Simon - this helps a lot! I knew it *had* to be easy! :-) Do you know where/how sessions are stored? - i.e., is session data stored entirely in a cookie in the user?s browser, in a hidden file on the server, or using some other mechanism? Do we have any concerns in terms of how much data is stored, how long it may be kept for, and security issues? Kindest regards, -- Igor Couto Sydney, Australia From hello at simonsmith.co Sun Jun 1 09:34:48 2014 From: hello at simonsmith.co (Simon Smith) Date: Sun, 1 Jun 2014 15:34:48 +0200 Subject: Livecode Server Sessions In-Reply-To: References: <8C08BEB5-7C46-48FC-9056-662A18B5089B@semperuna.com> <1401617283987-4680139.post@n4.nabble.com> <59C74212-F2D4-45D3-B38D-6059C3B0F66C@semperuna.com> Message-ID: Hi Sessions are saved to the default temporary folder, although you can control where sessions are saved using the sessionSavePath command. As they are saved server side, there should not be much of a concern about how much data can be stored (no idea to be honest) but you can always link the session to a database or create your files / storage structure as needed. You can set the length of storage time with sessionLivetime. Security wise I have not seen any problems or concerns raised, although if you are concerned, you could just use cookies and build your system to track users. Kind Regards Simon On Sun, Jun 1, 2014 at 2:46 PM, Igor de Oliveira Couto wrote: > On 1 Jun 2014, at 10:37 pm, Simon Smith wrote: > > > [?] Hope this helps. > > Thank you, Simon - this helps a lot! > > I knew it *had* to be easy! :-) > > Do you know where/how sessions are stored? - i.e., is session data stored > entirely in a cookie in the user?s browser, in a hidden file on the server, > or using some other mechanism? Do we have any concerns in terms of how much > data is stored, how long it may be kept for, and security issues? > > Kindest regards, > > > -- > Igor Couto > Sydney, Australia > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From peterwawood at gmail.com Sun Jun 1 10:05:46 2014 From: peterwawood at gmail.com (Peter W A Wood) Date: Sun, 1 Jun 2014 22:05:46 +0800 Subject: Quoted-Printable & Base64 Unicode Text in LC7 In-Reply-To: <64CD3525-A5A5-4DBA-98AF-1BF267A9FE8D@semperuna.com> References: <64CD3525-A5A5-4DBA-98AF-1BF267A9FE8D@semperuna.com> Message-ID: Igor On 1 Jun 2014, at 19:40, Igor de Oliveira Couto wrote: > 1) How to decode from ?quoted-printable? to normal text? Is there a ready-made function somewhere? From the dictionary: textDecode("A","UTF8") > 2) LiveCode?s base64decode() function seems to assume that we are always dealing with ascii text - this is using version 7.0-dp6. If I get the base64decode of "UXVhbGljb3JwIFNhw7pkZQ==? (the sender of the first example above), I get "Qualicorp Sa??de?, when I should be getting ?Qualicorp Sa?de?. > > I guess that somehow I should be telling LiveCode that these characters are UTF-8. What function(s) do we use for converting between encodings in LiveCode 7? The functions that we would have used in previous versions (uniEncode, uniDecode) are now deprecated, so in a situation like this, what should we use? And, shouldn?t LC7 assume by default that everything is unicode? As I understand, the LiveCode engine assumes text is encoded in the "native" encoding for the platform. I use quotes because LiveCode still seems to treat MacRoman as the native encoding for OS X. It probably would be better is the LiveCode server engines assumed text to be UTF-8 encoding. Regards Peter From dsc at swcp.com Sun Jun 1 12:00:26 2014 From: dsc at swcp.com (Dar Scott) Date: Sun, 1 Jun 2014 10:00:26 -0600 Subject: Quoted-Printable & Base64 Unicode Text in LC7 In-Reply-To: References: <64CD3525-A5A5-4DBA-98AF-1BF267A9FE8D@semperuna.com> Message-ID: <01D25FFF-1643-40E6-ACED-7578FC250C89@swcp.com> base64Encode() binary ?> ASCII base64Decode() ASCII ?> binary textEncode() Chars ?> binary textDecode() binary ?> Chars ASCII text can be used as Unicode characters or binary. (Well, native, but I ignore native.) I think there are functions for quoted printable, but I forgot what they are. ????Encode() Chars ?> ASCII ????Decode() ASCII ?> Chars But, I?m not sure, since I can?t remember the name. Dar Scott On Jun 1, 2014, at 8:05 AM, Peter W A Wood wrote: > Igor > > On 1 Jun 2014, at 19:40, Igor de Oliveira Couto wrote: > >> 1) How to decode from ?quoted-printable? to normal text? Is there a ready-made function somewhere? > > From the dictionary: > > textDecode("A","UTF8") > >> 2) LiveCode?s base64decode() function seems to assume that we are always dealing with ascii text - this is using version 7.0-dp6. If I get the base64decode of "UXVhbGljb3JwIFNhw7pkZQ==? (the sender of the first example above), I get "Qualicorp Sa??de?, when I should be getting ?Qualicorp Sa?de?. >> >> I guess that somehow I should be telling LiveCode that these characters are UTF-8. What function(s) do we use for converting between encodings in LiveCode 7? The functions that we would have used in previous versions (uniEncode, uniDecode) are now deprecated, so in a situation like this, what should we use? And, shouldn?t LC7 assume by default that everything is unicode? > > As I understand, the LiveCode engine assumes text is encoded in the "native" encoding for the platform. I use quotes because LiveCode still seems to treat MacRoman as the native encoding for OS X. > > It probably would be better is the LiveCode server engines assumed text to be UTF-8 encoding. > > Regards > > Peter > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Sun Jun 1 12:04:13 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 01 Jun 2014 09:04:13 -0700 Subject: How to initialize a tabbed button object In-Reply-To: References: Message-ID: <538B4EFD.1060502@fourthworld.com> Terence Heaford wrote: > Please be aware that if you intend to build for Mac the tab panel > does not display correctly. > > It displays black text on a dark grey background for the selected tab > and black text for all other tabs. > > The Mac default is white on a dark grey background for the selected > tab and black for the other tabs. Good catch. What's the bug report number for that? I have some notes to add to it. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From klaus at major-k.de Sun Jun 1 13:01:52 2014 From: klaus at major-k.de (Klaus major-k) Date: Sun, 1 Jun 2014 19:01:52 +0200 Subject: How to initialize a tabbed button object In-Reply-To: <538B4EFD.1060502@fourthworld.com> References: <538B4EFD.1060502@fourthworld.com> Message-ID: <94E77A2E-3CA6-436A-97EB-E6BA1FD1D3A3@major-k.de> Hi Richard, Am 01.06.2014 um 18:04 schrieb Richard Gaskin : > Terence Heaford wrote: > > > Please be aware that if you intend to build for Mac the tab panel > > does not display correctly. > > > > It displays black text on a dark grey background for the selected tab > > and black text for all other tabs. > > > > The Mac default is white on a dark grey background for the selected > > tab and black for the other tabs. > > Good catch. What's the bug report number for that? I have some notes to add to it. looks like they finally confirmed this one: > -- > Richard Gaskin Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From endernafi at keehuna.com Sun Jun 1 13:02:53 2014 From: endernafi at keehuna.com (enderNafi) Date: Sun, 1 Jun 2014 10:02:53 -0700 (PDT) Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: <1401642173375-4680150.post@n4.nabble.com> Scott hi, It looks very promising, especially the *Blur* external. I wanted to try it out first, unfortunately the demo throws an error as *Error in function handler: pixelDensity()*. What am I doing wrong? Best, ~ Ender ----- _________________________________________ Mac OS X 10.9.1 ? LiveCode 6.5.1 & xCode 5.0.1 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680150.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Sun Jun 1 13:10:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 01 Jun 2014 10:10:00 -0700 Subject: Bug or feature? Message-ID: <538B5E68.3080400@fourthworld.com> I've found that the clipboardData["text"] retains list formatting, even though all other styling attributes aren't represented there (only plain text). Is this a bug or a feature? Should ["text"] always return only plain unformatted text? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From dsc at swcp.com Sun Jun 1 13:19:44 2014 From: dsc at swcp.com (Dar Scott) Date: Sun, 1 Jun 2014 11:19:44 -0600 Subject: How to initialize a tabbed button object In-Reply-To: <538B4EFD.1060502@fourthworld.com> References: <538B4EFD.1060502@fourthworld.com> Message-ID: I?m building one right now. Any workaround? I tried fiddling with colors. images? Dar On Jun 1, 2014, at 10:04 AM, Richard Gaskin wrote: > Terence Heaford wrote: > > > Please be aware that if you intend to build for Mac the tab panel > > does not display correctly. > > > > It displays black text on a dark grey background for the selected tab > > and black text for all other tabs. > > > > The Mac default is white on a dark grey background for the selected > > tab and black for the other tabs. > > Good catch. What's the bug report number for that? I have some notes to add to it. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Sun Jun 1 13:20:50 2014 From: dsc at swcp.com (Dar Scott) Date: Sun, 1 Jun 2014 11:20:50 -0600 Subject: Bug or feature? In-Reply-To: <538B5E68.3080400@fourthworld.com> References: <538B5E68.3080400@fourthworld.com> Message-ID: I wonder what other respected applications leave for ?text?. On Jun 1, 2014, at 11:10 AM, Richard Gaskin wrote: > I've found that the clipboardData["text"] retains list formatting, even though all other styling attributes aren't represented there (only plain text). > > Is this a bug or a feature? > > Should ["text"] always return only plain unformatted text? > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sun Jun 1 13:26:27 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Sun, 1 Jun 2014 10:26:27 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: Scott, This looks awesome! It should save me loads of time when I put my app on iPad. I'm going to buy it as soon as I get onto my work computer. For this much work, the price seems quite fair. Best regards, Bill William Prothero http://es.earthednet.org > On Jun 1, 2014, at 12:45 AM, Scott Rossi wrote: > > It's many long months, dozens of nights without sleep, and gallons of > coffee, but I'm happy to announce the first release of tmControl2, my next > gen custom control set for LiveCode. This first release is for iOS and > includes 20+ controls, an icon library of both glyphs and images, a blur > external to create elegant iOS7 effects, an examples stack, and > documentation. A demo is available. > > > Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ > > > Best Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI 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 jacque at hyperactivesw.com Sun Jun 1 13:55:03 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 01 Jun 2014 12:55:03 -0500 Subject: [ANN] tmControl2 First Release In-Reply-To: <43AB1570-A593-494B-B860-CFEE2F0E934E@pandora.be> References: <43AB1570-A593-494B-B860-CFEE2F0E934E@pandora.be> Message-ID: <538B68F7.6020404@hyperactivesw.com> Scott Rossi wrote: > > I'm happy to announce the first release of tmControl2 Oh man, this is marvelous. I'm not even working on mobile right now and I bought it anyway. The feature set is impressive, I can't imagine the amount of work that went into it. This is genius stuff. People: support this developer, he's a gift to us. I need Android too, all mobile work I do is x-plat...I'm waiting hopefully. Besides, we wouldn't want you to get bored now that the iOS version is done. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at tactilemedia.com Sun Jun 1 15:33:58 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sun, 01 Jun 2014 12:33:58 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: <1401642173375-4680150.post@n4.nabble.com> References: <1401642173375-4680150.post@n4.nabble.com> Message-ID: Hi All: Thanks to all of you offering kind words and support on my tmControl project. It means a lot to have such great support from this community. Now, since I know several of you want MY support, I want to point you here: http://www.tactilemedia.com/forums/categories/tmcontrol2 This forum is the place to ask questions and get answers. Please post your issues there instead asking on this list or sending me email. I will always respond to email, but it's better for all developers to have to answers in a publicly searchable area. (Of course, if you have trouble with the forum, then by all means, email me :-) Thanks again everyone. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From prothero at earthednet.org Sun Jun 1 17:39:58 2014 From: prothero at earthednet.org (William Prothero) Date: Sun, 1 Jun 2014 14:39:58 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: References: <1401642173375-4680150.post@n4.nabble.com> Message-ID: Scott: For some reason, I didn?t get the reply email from your site when I purchased tmcontrol2. I got the paypal response, but my PayPal email wasn?t recognized. Help! Bill On Jun 1, 2014, at 12:33 PM, Scott Rossi wrote: > Hi All: > > Thanks to all of you offering kind words and support on my tmControl > project. It means a lot to have such great support from this community. > > Now, since I know several of you want MY support, I want to point you here: > http://www.tactilemedia.com/forums/categories/tmcontrol2 > > > This forum is the place to ask questions and get answers. Please post > your issues there instead asking on this list or sending me email. I will > always respond to email, but it's better for all developers to have to > answers in a publicly searchable area. (Of course, if you have trouble > with the forum, then by all means, email me :-) > > Thanks again everyone. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI 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 dave at applicationinsight.com Sun Jun 1 17:56:52 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Sun, 1 Jun 2014 14:56:52 -0700 (PDT) Subject: [ANN] tmControl2 First Release In-Reply-To: References: <1401642173375-4680150.post@n4.nabble.com> Message-ID: <1401659812477-4680158.post@n4.nabble.com> Hi Scott - just bought tmControl2 which I'm looking forward to using - thank you, I think a lot of hard work went into this PS: Android-friendly themes? ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680158.html Sent from the Revolution - User mailing list archive at Nabble.com. From prothero at earthednet.org Sun Jun 1 18:12:34 2014 From: prothero at earthednet.org (William Prothero) Date: Sun, 1 Jun 2014 15:12:34 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: References: <1401642173375-4680150.post@n4.nabble.com> Message-ID: <328F9205-9999-49ED-A209-5F1E4B802B30@earthednet.org> Scott: Clarification: My Paypal payment for tmcontrol2 was recognized and I got a confirmation of the payment from PayPal with my transaction number. However, your site didn?t recognize my email address, so I couldn?t lot into the site to download the software. I can send you the transaction number offline, if you want. Best, Bill On Jun 1, 2014, at 2:39 PM, William Prothero wrote: > Scott: > For some reason, I didn?t get the reply email from your site when I purchased tmcontrol2. I got the paypal response, but my PayPal email wasn?t recognized. > > Help! > Bill > > On Jun 1, 2014, at 12:33 PM, Scott Rossi wrote: > >> Hi All: From igor at semperuna.com Sun Jun 1 21:49:24 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Mon, 2 Jun 2014 11:49:24 +1000 Subject: Quoted-Printable & Base64 Unicode Text in LC7 In-Reply-To: References: <64CD3525-A5A5-4DBA-98AF-1BF267A9FE8D@semperuna.com> Message-ID: On 2 Jun 2014, at 12:05 am, Peter W A Wood wrote: > On 1 Jun 2014, at 19:40, Igor de Oliveira Couto wrote: > >> 1) How to decode from ?quoted-printable? to normal text? Is there a ready-made function somewhere? > > From the dictionary: > > textDecode("A","UTF8?) That function is what I needed to do the base64 decoding. I must convert from base64 to binary, and then use textDecode to convert from binary directly to unicode text: textDecode(base64decode("UXVhbGljb3JwIFNhw7pkZQ==?),?UTF-8?) Unfortunately, this does not help with quoted-printable encoded strings? On 2 Jun 2014, at 2:00 am, Dar Scott wrote: > I think there are functions for quoted printable, but I forgot what they are. Doing a search in the Dictionary for ?decode?, yields: arrayDecode, base64Decode, binaryDecode, textDecode, uniDecode and URLDecode. None of these seem to do quoted-printable? :( Has anyone written a custom function? I?d rather not re-invent the wheel, if it?s been done before? -- Igor Couto Sydney, Australia From prothero at earthednet.org Sun Jun 1 22:38:13 2014 From: prothero at earthednet.org (William Prothero) Date: Sun, 1 Jun 2014 19:38:13 -0700 Subject: Snapshot includes cursor? Message-ID: Is snapshot supposed to include capturing the cursor? I?m in LC 6.6 and all of a sudden, I noticed that snapshot was capturing the cursor image. Bummer! I?m getting really frustrated with the snapshot oddities. I did a workaround by moving the cursor out of the capture rectangle, then moving it back after the capture. I had to use the wait command to get it to work. I tried this with LC 6.7 dp4 and it has the same behavior. Anyway, is this the way it?s supposed to work? Bill William A. Prothero, Ph.D. University of California, Santa Barbara Dept. of Earth Sciences (Emeritus) Santa Barbara, CA. 93105 http://es.earthednet.org/ From paulhibbert at mac.com Sun Jun 1 23:20:13 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sun, 01 Jun 2014 20:20:13 -0700 Subject: Snapshot includes cursor? In-Reply-To: References: Message-ID: <1358E288-2AB5-4970-B07A-4491C608B3C0@mac.com> Bill, It's not working that way here on OSX 10.8.5 with LC 6.6.1, sometimes I wish I could capture the cursor, so I can understand it being frustrating if it appears when not required. You could try hiding the cursor instead of moving it? set the cursor to none -- Hides the cursor import snapshot from rect tRect set the cursor to arrow -- Restores the cursor Paul On 2014-06-01, at 7:38 PM, William Prothero wrote: > Is snapshot supposed to include capturing the cursor? I?m in LC 6.6 and all of a sudden, I noticed that snapshot was capturing the cursor image. Bummer! I?m getting really frustrated with the snapshot oddities. I did a workaround by moving the cursor out of the capture rectangle, then moving it back after the capture. I had to use the wait command to get it to work. I tried this with LC 6.7 dp4 and it has the same behavior. > > Anyway, is this the way it?s supposed to work? > Bill > > William A. Prothero, Ph.D. > University of California, Santa Barbara Dept. of Earth Sciences (Emeritus) > Santa Barbara, CA. 93105 > http://es.earthednet.org/ > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From prothero at earthednet.org Sun Jun 1 23:39:55 2014 From: prothero at earthednet.org (William Prothero) Date: Sun, 1 Jun 2014 20:39:55 -0700 Subject: Snapshot includes cursor? In-Reply-To: <1358E288-2AB5-4970-B07A-4491C608B3C0@mac.com> References: <1358E288-2AB5-4970-B07A-4491C608B3C0@mac.com> Message-ID: <10C4BDB5-375D-4FFA-81CE-33FDBB7AD47C@earthednet.org> Paul: I did try your suggestion previously, and it didn?t work. Even with my workaround of moving the cursor out of the snapshot area, I had to surround it with "wait with messages? commands. I?m on OS 10.9.3 and I just noticed this happening today. Bizarre. I really think that snapshot, in combination with the ?wait for xxx seconds with messages? command is flakey somehow. My app working fine in 6.6, fails in 6.7 dp4, because of the snapshot oddities. I can?t make it fail in my test program, but it has something to do with all of the graphics objects I create, then delete after the snapshot. My guess is that some piece of graphics code in the engine isn?t respecting the wait with messages command. The snapshot appears to happen before the system finishes creating and displaying the approximately 10 fields and lines I create for a data plot. It?s a show stopper for me, because my app won?t work unless snapshot works. I could just create the graphic objects, but I plot hundreds to thousands of symbols on the plot, so draw them right on the image. Otherwise, there would be a gazillion symbols to create. Anyway, I?m very frustrated! Best, Bill William A. Prothero, Ph.D. University of California, Santa Barbara Dept. of Earth Sciences (Emeritus) Santa Barbara, CA. 93105 http://es.earthednet.org/ On Jun 1, 2014, at 8:20 PM, Paul Hibbert wrote: > Bill, > > It's not working that way here on OSX 10.8.5 with LC 6.6.1, sometimes I wish I could capture the cursor, so I can understand it being frustrating if it appears when not required. > > You could try hiding the cursor instead of moving it? > > set the cursor to none -- Hides the cursor > import snapshot from rect tRect > set the cursor to arrow -- Restores the cursor > > Paul > > On 2014-06-01, at 7:38 PM, William Prothero wrote: > From t.heaford at btinternet.com Mon Jun 2 02:50:53 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 07:50:53 +0100 Subject: How to initialize a tabbed button object In-Reply-To: References: <538B4EFD.1060502@fourthworld.com> Message-ID: <6F3DA393-C0B0-4094-808E-DDBCCCC22D94@btinternet.com> It's no fun at all. I tried making individual buttons to overlay each of the tabs, each button with their own graphic. It was a nightmare and didn't quite look right. NOT the way for a supposedly easy programming environment. I LC would sort this out, sooner rather than later as most programmes these days have tabs and this therefore makes Livecode virtually unusable on Mac. All the best Terry On 1 Jun 2014, at 18:19, Dar Scott wrote: > I?m building one right now. Any workaround? > > I tried fiddling with colors. > > images? > > Dar From t.heaford at btinternet.com Mon Jun 2 03:02:25 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 08:02:25 +0100 Subject: LC 6.6.1 Crashes again on OS X 10.9.3 Message-ID: <1E9DC29C-2B7A-465F-894E-0360820F4AE1@btinternet.com> Crashed again with this report on Mac OS X 10.9.3. Now reported as bug Bug 12586 Process: LiveCode-Community [1316] Path: /Applications/LiveCode Community 6.6.1.app/Contents/MacOS/LiveCode-Community Identifier: com.runrev.livecode Version: 6.6.1.4005 (6.6.1.4005) Code Type: X86 (Native) Parent Process: launchd [160] Responsible: LiveCode-Community [1316] User ID: 501 Date/Time: 2014-06-02 07:52:48.191 +0100 OS Version: Mac OS X 10.9.3 (13D65) Report Version: 11 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000 VM Regions Near 0: --> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/LiveCode Community 6.6.1.app/Contents/MacOS/LiveCode-Community __TEXT 0000000000001000-00000000003d9000 [ 3936K] r-x/rwx SM=COW /Applications/LiveCode Community 6.6.1.app/Contents/MacOS/LiveCode-Community Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.runrev.livecode 0x00088e8e MCField::adjustpixmapoffset(MCContext*, unsigned short, int) + 174 1 com.runrev.livecode 0x00089912 MCField::drawrect(MCContext*, MCRectangle const&) + 706 2 com.runrev.livecode 0x00080178 MCField::draw(MCContext*, MCRectangle const&, bool, bool) + 408 3 com.runrev.livecode 0x0006a4bc MCControl::redraw(MCContext*, MCRectangle const&) + 220 4 com.runrev.livecode 0x000221cb MCCard::draw(MCContext*, MCRectangle const&, bool) + 123 5 com.runrev.livecode 0x001054f9 MCObject::snapshot(MCRectangle const*, MCPoint const*, float, bool) + 1385 6 com.runrev.livecode 0x00049176 MCImport::exec(MCExecPoint&) + 1670 7 com.runrev.livecode 0x000d3135 MCHandler::exec(MCExecPoint&, MCParameter*) + 437 8 com.runrev.livecode 0x0010a952 MCObject::exechandler(MCHandler*, MCParameter*) + 290 9 com.runrev.livecode 0x0010ae20 MCObject::handleself(Handler_type, MCName*, MCParameter*) + 368 10 com.runrev.livecode 0x0010ae65 MCObject::handle(Handler_type, MCName*, MCParameter*, MCObject*) + 53 11 com.runrev.livecode 0x00108099 MCObject::message(MCName*, MCParameter*, unsigned char, unsigned char, unsigned char) + 665 12 com.runrev.livecode 0x00042155 MCMessage::exec(MCExecPoint&) + 1237 13 com.runrev.livecode 0x000d3135 MCHandler::exec(MCExecPoint&, MCParameter*) + 437 14 com.runrev.livecode 0x0010a952 MCObject::exechandler(MCHandler*, MCParameter*) + 290 15 com.runrev.livecode 0x0010ae20 MCObject::handleself(Handler_type, MCName*, MCParameter*) + 368 16 com.runrev.livecode 0x00025a5d MCCard::handle(Handler_type, MCName*, MCParameter*, MCObject*) + 61 17 com.runrev.livecode 0x00108099 MCObject::message(MCName*, MCParameter*, unsigned char, unsigned char, unsigned char) + 665 18 com.runrev.livecode 0x0018cec9 MCStack::setcard(MCCard*, unsigned char, unsigned char) + 809 19 com.runrev.livecode 0x00056acb MCGo::exec(MCExecPoint&) + 1883 20 com.runrev.livecode 0x000d3135 MCHandler::exec(MCExecPoint&, MCParameter*) + 437 21 com.runrev.livecode 0x0010a952 MCObject::exechandler(MCHandler*, MCParameter*) + 290 22 com.runrev.livecode 0x0010ae20 MCObject::handleself(Handler_type, MCName*, MCParameter*) + 368 23 com.runrev.livecode 0x0010ae65 MCObject::handle(Handler_type, MCName*, MCParameter*, MCObject*) + 53 24 com.runrev.livecode 0x00108099 MCObject::message(MCName*, MCParameter*, unsigned char, unsigned char, unsigned char) + 665 25 com.runrev.livecode 0x00108f25 MCObject::message_with_args(MCName*, MCString const&) + 117 26 com.runrev.livecode 0x00013ca9 MCButton::mup(unsigned short) + 1673 27 com.runrev.livecode 0x0002161f MCCard::mup(unsigned short) + 79 28 com.runrev.livecode 0x0017c802 MCStack::mup(unsigned short) + 82 29 com.runrev.livecode 0x0011f3de MCScreenDC::dispatchevent(EventRecord&, unsigned char, unsigned char&, unsigned char&) + 4574 30 com.runrev.livecode 0x0011fd3b MCScreenDC::handle(double, unsigned char, unsigned char, unsigned char&, unsigned char&) + 667 31 com.runrev.livecode 0x0011c853 MCScreenDC::wait(double, unsigned char, unsigned char) + 387 32 com.runrev.livecode 0x001cb588 X_main_loop_iteration() + 104 33 com.runrev.livecode 0x001cc2c1 X_main_loop() + 97 34 com.runrev.livecode 0x001cc451 main + 353 35 com.runrev.livecode 0x000024fa start + 54 Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x9433c992 kevent64 + 10 1 libdispatch.dylib 0x908b0899 _dispatch_mgr_invoke + 238 2 libdispatch.dylib 0x908b0532 _dispatch_mgr_thread + 52 Thread 2: 0 libsystem_kernel.dylib 0x9433c046 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x9048adcf _pthread_wqthread + 372 2 libsystem_pthread.dylib 0x9048ecce start_wqthread + 30 Thread 3: 0 libsystem_kernel.dylib 0x9433c046 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x9048adcf _pthread_wqthread + 372 2 libsystem_pthread.dylib 0x9048ecce start_wqthread + 30 Thread 0 crashed with X86 Thread State (32-bit): eax: 0x00000000 ebx: 0x00000000 ecx: 0x30000000 edx: 0xffffffff edi: 0xffff67e9 esi: 0x0936e2c0 ebp: 0xbfffea08 esp: 0xbfffe9b0 ss: 0x00000023 efl: 0x00010216 eip: 0x00088e8e cs: 0x0000001b ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f cr2: 0x00000000 Logical CPU: 0 Error Code: 0x00000004 Trap Number: 14 From t.heaford at btinternet.com Mon Jun 2 06:50:58 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 11:50:58 +0100 Subject: Printing in the Cocoa version of LC Message-ID: <4D40E6DC-257C-425F-85C3-7108E2B58BF5@btinternet.com> Does anyone know how printing is to be implemented when LC is converted to run in Cocoa? My understanding (which may be incorrect) is that to implement Cocoa printing it is required to provide an NSView to allow NSPrintOperation to function and as I don?t believe LC for Cocoa is to be NSView based I was wondering how the claim to be Cocoa will be achieved? All the best Terry From toolbook at kestner.de Mon Jun 2 09:11:02 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Mon, 2 Jun 2014 15:11:02 +0200 Subject: AW: How to initialize a tabbed button object In-Reply-To: <6F3DA393-C0B0-4094-808E-DDBCCCC22D94@btinternet.com> References: <538B4EFD.1060502@fourthworld.com> <6F3DA393-C0B0-4094-808E-DDBCCCC22D94@btinternet.com> Message-ID: <013401cf7e64$1b669210$5233b630$@de> It's probably more flexible to use standard buttons, give them a graphic, group them and code the tab behavior yourself. Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Terence Heaford > Gesendet: Montag, 2. Juni 2014 08:51 > An: How to use LiveCode > Betreff: Re: How to initialize a tabbed button object > > It's no fun at all. > > I tried making individual buttons to overlay each of the tabs, each button > with their own graphic. > > It was a nightmare and didn't quite look right. > > NOT the way for a supposedly easy programming environment. > > I LC would sort this out, sooner rather than later as most programmes these > days have tabs and this therefore makes Livecode virtually unusable on Mac. > > All the best > > Terry > > On 1 Jun 2014, at 18:19, Dar Scott wrote: > > > I?m building one right now. Any workaround? > > > > I tried fiddling with colors. > > > > images? > > > > Dar > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jun 2 09:49:36 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 02 Jun 2014 06:49:36 -0700 Subject: Printing in the Cocoa version of LC In-Reply-To: <4D40E6DC-257C-425F-85C3-7108E2B58BF5@btinternet.com> References: <4D40E6DC-257C-425F-85C3-7108E2B58BF5@btinternet.com> Message-ID: <538C80F0.4030409@fourthworld.com> Terence Heaford wrote: > Does anyone know how printing is to be implemented when LC is > converted to run in Cocoa? The Cocoa build is 6.7, currently in testing as DP4: If you find issues with printing, or any features there, please submit a bug report. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From t.heaford at btinternet.com Mon Jun 2 10:00:42 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 15:00:42 +0100 Subject: How to initialize a tabbed button object In-Reply-To: <013401cf7e64$1b669210$5233b630$@de> References: <538B4EFD.1060502@fourthworld.com> <6F3DA393-C0B0-4094-808E-DDBCCCC22D94@btinternet.com> <013401cf7e64$1b669210$5233b630$@de> Message-ID: <330C79EA-5CA6-4B4C-AF69-084A21E0BC28@btinternet.com> It wasn?t the scripting that was the problem. It was creating the graphics to overlay and give the precise look of OS X. I wonder when LC will implement them correctly? All the best Terry On 2 Jun 2014, at 14:11, Tiemo Hollmann TB wrote: > It's probably more flexible to use standard buttons, give them a graphic, > group them and code the tab behavior yourself. > > Tiemo From t.heaford at btinternet.com Mon Jun 2 10:06:14 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 15:06:14 +0100 Subject: Printing in the Cocoa version of LC In-Reply-To: <538C80F0.4030409@fourthworld.com> References: <4D40E6DC-257C-425F-85C3-7108E2B58BF5@btinternet.com> <538C80F0.4030409@fourthworld.com> Message-ID: <2D72DD92-8AEB-4E25-B2FC-1B1F0C351818@btinternet.com> Downloaded and installed. The "answer printer --as sheet" dialogue box does on the face of it appear to be Carbon and not Cocoa. Can someone confirm this? Thanks Terry On 2 Jun 2014, at 14:49, Richard Gaskin wrote: > The Cocoa build is 6.7, currently in testing as DP4: > > > If you find issues with printing, or any features there, please submit a bug report. From MikeKerner at roadrunner.com Mon Jun 2 10:09:03 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 2 Jun 2014 10:09:03 -0400 Subject: [ANN] tmControl2 First Release In-Reply-To: <328F9205-9999-49ED-A209-5F1E4B802B30@earthednet.org> References: <1401642173375-4680150.post@n4.nabble.com> <328F9205-9999-49ED-A209-5F1E4B802B30@earthednet.org> Message-ID: Yah, tmc2 is great. I love the lazr2 theme, especially. I also love that all the code is open so we can work on something if we have a problem with it. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From t.heaford at btinternet.com Mon Jun 2 10:14:22 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 15:14:22 +0100 Subject: The behaviour of resizeStack in LC 6.7(dp4) Message-ID: <62C84BFF-2215-4850-841C-5DB8DC738969@btinternet.com> Mac OS X 10.9.3 In LC 6.6.1 when I click the window maximise button it zooms to a size that makes allowance for the IDE Toolbar Icons which seem to be contained in a floating palette. When I carryout the same action in LC 6.7(dp4) the window resizes to the left of the screen and directly below the IDE Menubar but underneath the floating palette of the IDE Toolbar Icons. Is that the correct behaviour for 6.7. All the best Terry From t.heaford at btinternet.com Mon Jun 2 10:22:29 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 15:22:29 +0100 Subject: The behaviour of resizeStack in LC 6.7(dp4) In-Reply-To: <62C84BFF-2215-4850-841C-5DB8DC738969@btinternet.com> References: <62C84BFF-2215-4850-841C-5DB8DC738969@btinternet.com> Message-ID: <7D3C7FF0-DE30-486C-B925-C23D2E635746@btinternet.com> Mac OX X 10.9.3 In addition when resizing the window by dragging, the old size is not remembered. It seems that whenever you click the green maximise button that?s all it does, makes the window the size of the screen visible area exuding the height of the menubar. I don?t believe that is the expected behaviour. All the best Terry On 2 Jun 2014, at 15:14, Terence Heaford wrote: > Mac OS X 10.9.3 > > In LC 6.6.1 when I click the window maximise button it zooms to a size that makes allowance for the IDE Toolbar Icons which seem to > be contained in a floating palette. > > When I carryout the same action in LC 6.7(dp4) the window resizes to the left of the screen and directly below the IDE Menubar but underneath > the floating palette of the IDE Toolbar Icons. > > Is that the correct behaviour for 6.7. > > All the best > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From t.heaford at btinternet.com Mon Jun 2 10:27:48 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Mon, 2 Jun 2014 15:27:48 +0100 Subject: The behaviour of resizeStack in LC 6.7(dp4) In-Reply-To: <7D3C7FF0-DE30-486C-B925-C23D2E635746@btinternet.com> References: <62C84BFF-2215-4850-841C-5DB8DC738969@btinternet.com> <7D3C7FF0-DE30-486C-B925-C23D2E635746@btinternet.com> Message-ID: Mac OS X 10.9.3 In addition The stack minimum width is set to 1080 and minimum height to 700 When I drag the size of the window it resizes to 1080 x 678. Clearly an issue with the menu. All the best Terry PS Posting these altogether because they are probably related. On 2 Jun 2014, at 15:22, Terence Heaford wrote: > In addition when resizing the window by dragging, the old size is not remembered. From ambassador at fourthworld.com Mon Jun 2 17:44:37 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 02 Jun 2014 14:44:37 -0700 Subject: $_SESSION Message-ID: <538CF045.5040400@fourthworld.com> Where is $_SESSION stored between instances of LC Server running? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Mon Jun 2 18:00:34 2014 From: prothero at earthednet.org (William Prothero) Date: Mon, 2 Jun 2014 15:00:34 -0700 Subject: Snapshot includes cursor? In-Reply-To: <10C4BDB5-375D-4FFA-81CE-33FDBB7AD47C@earthednet.org> References: <1358E288-2AB5-4970-B07A-4491C608B3C0@mac.com> <10C4BDB5-375D-4FFA-81CE-33FDBB7AD47C@earthednet.org> Message-ID: <1A349D73-1E0F-48A0-B673-AF697D543DD4@earthednet.org> Folks: In case anybody is interested in this, I found a fix for my snapshot problems. Briefly, here it is: 1) snapshot including cursor: restarting my computer made the problem go away. Snapshot no longer captures the cursor image. 2) snapshot not getting invoked correctly in LC 6.7 dp4, but working in LC 6.6: I put an ?unlock screen? command before the snapshot command and it worked (voila!). Why it worked in LC 6.6, I have no idea, but perhaps the bug was in 6.6. That?s it. I guess I?ll start using 6.7 dp4 now. It seems to do what I need it to do. Best, Bill > >> Bill, >> >> It's not working that way here on OSX 10.8.5 with LC 6.6.1, sometimes I wish I could capture the cursor, so I can understand it being frustrating if it appears when not required. >> >> You could try hiding the cursor instead of moving it? >> >> set the cursor to none -- Hides the cursor >> import snapshot from rect tRect >> set the cursor to arrow -- Restores the cursor >> >> Paul >> >> On 2014-06-01, at 7:38 PM, William Prothero wrote: >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Mon Jun 2 18:02:45 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 3 Jun 2014 00:02:45 +0200 Subject: $_SESSION In-Reply-To: <538CF045.5040400@fourthworld.com> References: <538CF045.5040400@fourthworld.com> Message-ID: The default temp directory. You can also set it via sessionSavePath Hope that helps. On Mon, Jun 2, 2014 at 11:44 PM, Richard Gaskin wrote: > Where is $_SESSION stored between instances of LC Server running? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From ambassador at fourthworld.com Mon Jun 2 18:18:56 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 02 Jun 2014 15:18:56 -0700 Subject: Snapshot includes cursor? In-Reply-To: <1A349D73-1E0F-48A0-B673-AF697D543DD4@earthednet.org> References: <1A349D73-1E0F-48A0-B673-AF697D543DD4@earthednet.org> Message-ID: <538CF850.2010604@fourthworld.com> Another option is to use the newer object reference form of the snapshot commands (which renders the object into its own buffer) rather than the older rect form (which grabs the composite screen buffer), e.g.: import snapshot from this cd ...instead of: import snapshot rect (the rect of this stack) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From ambassador at fourthworld.com Mon Jun 2 18:36:20 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 02 Jun 2014 15:36:20 -0700 Subject: Wikipedia "UUID" Message-ID: <538CFC64.30306@fourthworld.com> Anyone here have time to add LiveCode to the "Implementations" section?: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Mon Jun 2 18:47:08 2014 From: prothero at earthednet.org (William Prothero) Date: Mon, 2 Jun 2014 15:47:08 -0700 Subject: Snapshot includes cursor? In-Reply-To: <538CF850.2010604@fourthworld.com> References: <1A349D73-1E0F-48A0-B673-AF697D543DD4@earthednet.org> <538CF850.2010604@fourthworld.com> Message-ID: Richard: Tnx. What I?m doing is creating and drawing the various line, box, and text objects for data plots. Then I take a snapshot of the rectangle (not the entire card) and draw symbols onto the image using the image data. Some of it is derived from Colin?s sample ?simplePaint? stack. It works pretty well, except for occasional snapshot oddities. Another part of the app displays a large map that I scroll or drag and when scroll finishes, a snapshot is taken. The user may choose to plot thousands of points on the map. I figure that drawing symbols on the smaller size snapshot will be much faster than on an image that is much larger. In other words, the snapshot command is an integral part of an image creation/modification process that includes rectangles, fields, lines, and symbols. Best, Bill On Jun 2, 2014, at 3:18 PM, Richard Gaskin wrote: > Another option is to use the newer object reference form of the snapshot commands (which renders the object into its own buffer) rather than the older rect form (which grabs the composite screen buffer), e.g.: > > import snapshot from this cd > > ...instead of: > > import snapshot rect (the rect of this stack) > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jun 2 18:55:48 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 02 Jun 2014 15:55:48 -0700 Subject: Snapshot includes cursor? In-Reply-To: References: Message-ID: <538D00F4.7020009@fourthworld.com> If it helps, the "from " form can be used with any object, such as a group containing all the stuff you want captured. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com William Prothero wrote: > Richard: > Tnx. What I?m doing is creating and drawing the various line, box, > and text objects for data plots. Then I take a snapshot of the > rectangle (not the entire card) and draw symbols onto the image using > the image data. Some of it is derived from Colin?s sample > ?simplePaint? stack. It works pretty well, except for occasional > snapshot oddities. Another part of the app displays a large map that > I scroll or drag and when scroll finishes, a snapshot is taken. The > user may choose to plot thousands of points on the map. I figure that > drawing symbols on the smaller size snapshot will be much faster than > on an image that is much larger. In other words, the snapshot command > is an integral part of an image creation/modification process that > includes rectangles, fields, lines, and symbols. From userev at canelasoftware.com Mon Jun 2 19:13:33 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Mon, 2 Jun 2014 16:13:33 -0700 Subject: [ANN] csLib_Proxy for LiveCode has been updated! Message-ID: <582F3C1A-9180-41F1-9318-D955A457C918@canelasoftware.com> Quick note that we have updated csLib_Proxy with a couple of bug fixes. Thanks to everyone that provided feedback. csLib_Proxy is released under the LGPL 3.0 license. Go get it! http://livecloud.io/extras/ Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From simon at asato-media.com Mon Jun 2 19:17:51 2014 From: simon at asato-media.com (As_Simon) Date: Mon, 2 Jun 2014 16:17:51 -0700 (PDT) Subject: [ANN] tmControl2 First Release In-Reply-To: References: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> Message-ID: <1401751071830-4680184.post@n4.nabble.com> Hi Scott, I am unable to get the discount, I think. All the way up to paypal purchase it says $49, do I just go through with it or should it say $10? Thanks, Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680184.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Mon Jun 2 19:29:16 2014 From: vclement at gmail.com (Vaughn Clement) Date: Mon, 2 Jun 2014 16:29:16 -0700 Subject: IOS 8 Beta Release Message-ID: Hi Has anyone installed or plan to install IOS 8 and Xcode 6 in the near term? What and who will know what the limits are for LiveCode and what version of LC might work with IOS 8 or MacX10.10? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From coiin at verizon.net Mon Jun 2 19:35:03 2014 From: coiin at verizon.net (Colin Holgate) Date: Mon, 02 Jun 2014 16:35:03 -0700 Subject: IOS 8 Beta Release In-Reply-To: References: Message-ID: I have iOS 8 installed. Didn?t yet tried building to it, but I will soon. From vclement at gmail.com Mon Jun 2 19:39:05 2014 From: vclement at gmail.com (Vaughn Clement) Date: Mon, 2 Jun 2014 16:39:05 -0700 Subject: IOS 8 Beta Release In-Reply-To: References: Message-ID: Hi Colin Did you get any odd behaviors during the install? It would be very interesting to see the kinds of compatibility issues you might see with apps that are not IOS 8 ready? Did you also install Yosemite Beta? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Mon, Jun 2, 2014 at 4:35 PM, Colin Holgate wrote: > I have iOS 8 installed. Didn?t yet tried building to it, but I will soon. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From marc.vancauwenberghe at pandora.be Mon Jun 2 19:44:13 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Tue, 3 Jun 2014 01:44:13 +0200 Subject: [ANN] tmControl2 First Release In-Reply-To: <1401751071830-4680184.post@n4.nabble.com> References: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> <1401751071830-4680184.post@n4.nabble.com> Message-ID: <3A585F10-E697-4F2E-B7C7-3554CFCA7ECD@pandora.be> Hi Simon, I think you will see that it is a discount for $10 bringing the price from $59 to $49 Regards, Marc Verstuurd vanaf mijn iPhone > Op 3-jun.-2014 om 01:17 heeft As_Simon het volgende geschreven: > > Hi Scott, > I am unable to get the discount, I think. > All the way up to paypal purchase it says $49, do I just go through with it > or should it say $10? > > Thanks, > Simon > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680184.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 simon at asato-media.com Mon Jun 2 19:47:44 2014 From: simon at asato-media.com (As_Simon) Date: Mon, 2 Jun 2014 16:47:44 -0700 (PDT) Subject: [ANN] tmControl2 First Release In-Reply-To: <3A585F10-E697-4F2E-B7C7-3554CFCA7ECD@pandora.be> References: <34AFB448-EB9A-49C3-B629-F9F22B5F8736@gmail.com> <1401751071830-4680184.post@n4.nabble.com> <3A585F10-E697-4F2E-B7C7-3554CFCA7ECD@pandora.be> Message-ID: <006401cf7ebd$00ebb600$02c32200$@asato-media.com> Ooops! Simon From: Marc Van Cauwenberghe [via Runtime Revolution] [mailto:ml-node+s278305n4680188h76 at n4.nabble.com] Sent: Monday, June 02, 2014 4:45 PM To: As_Simon Subject: Re: [ANN] tmControl2 First Release Hi Simon, I think you will see that it is a discount for $10 bringing the price from $59 to $49 Regards, Marc Verstuurd vanaf mijn iPhone > Op 3-jun.-2014 om 01:17 heeft As_Simon <[hidden email]> het volgende geschreven: > > Hi Scott, > I am unable to get the discount, I think. > All the way up to paypal purchase it says $49, do I just go through with it > or should it say $10? > > Thanks, > Simon > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release- tp4680132p4680184.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [hidden email] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _____ If you reply to this email, your message will be added to the discussion below: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release- tp4680132p4680188.html To unsubscribe from [ANN] tmControl2 First Release, click here . NAML -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680189.html Sent from the Revolution - User mailing list archive at Nabble.com. From scott at tactilemedia.com Mon Jun 2 20:08:33 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Mon, 02 Jun 2014 17:08:33 -0700 Subject: [ANN] tmControl2 First Release Message-ID: <77injamsa5jvhh95ejyuakno.1401754113247@email.android.com> Hi Simon: $10 is the discount off $59. ?$49 is the discounted price. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design -------- Original message -------- Subject: Re: [ANN] tmControl2 First Release From: As_Simon To: use-revolution at lists.runrev.com CC: Hi Scott, I am unable to get the discount, I think. All the way up to paypal purchase it says $49, do I just go through with it or should it say $10? Thanks, Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-tmControl2-First-Release-tp4680132p4680184.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 prothero at earthednet.org Mon Jun 2 20:17:32 2014 From: prothero at earthednet.org (William Prothero) Date: Mon, 2 Jun 2014 17:17:32 -0700 Subject: Snapshot includes cursor? In-Reply-To: <538D00F4.7020009@fourthworld.com> References: <538D00F4.7020009@fourthworld.com> Message-ID: <2BB1AD00-7F24-4D4B-8F01-89AE363EF6B8@earthednet.org> Richard: Thanks! I?ll try it. Bill On Jun 2, 2014, at 3:55 PM, Richard Gaskin wrote: > If it helps, the "from " form can be used with any object, such as a group containing all the stuff you want captured. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > William Prothero wrote: > > Richard: > > Tnx. What I?m doing is creating and drawing the various line, box, > > and text objects for data plots. Then I take a snapshot of the > > rectangle (not the entire card) and draw symbols onto the image using > > the image data. Some of it is derived from Colin?s sample > > ?simplePaint? stack. It works pretty well, except for occasional > > snapshot oddities. Another part of the app displays a large map that > > I scroll or drag and when scroll finishes, a snapshot is taken. The > > user may choose to plot thousands of points on the map. I figure that > > drawing symbols on the smaller size snapshot will be much faster than > > on an image that is much larger. In other words, the snapshot command > > is an integral part of an image creation/modification process that > > includes rectangles, fields, lines, and symbols. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Mon Jun 2 20:23:22 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Mon, 2 Jun 2014 20:23:22 -0400 Subject: IOS 8 Beta Release In-Reply-To: References: Message-ID: I haven't done Y, but I've got 8 and xc6. Will mess soon. On Mon, Jun 2, 2014 at 7:39 PM, Vaughn Clement wrote: > Hi Colin > > Did you get any odd behaviors during the install? > > It would be very interesting to see the kinds of compatibility issues you > might see with apps that are not IOS 8 ready? Did you also install Yosemite > Beta? > > Thank you > > Vaughn Clement > > Apps by Vaughn Clement (Support) > *http://www.appsbyvaughnclement.com/tools/home-page/ > * > Skype: vaughn.clement > https://secure.join.me/appsbyvclement > FaceTime: vclement at gmail.com > LogMeIn also avaialble > Call on "ooVoo" at address: vaughnclement or 9282549062 > Ph. 928-254-9062 > > > > On Mon, Jun 2, 2014 at 4:35 PM, Colin Holgate wrote: > > > I have iOS 8 installed. Didn?t yet tried building to it, but I will soon. > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From roger.e.eller at sealedair.com Mon Jun 2 21:13:03 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Mon, 2 Jun 2014 21:13:03 -0400 Subject: Wikipedia "UUID" In-Reply-To: <538CFC64.30306@fourthworld.com> References: <538CFC64.30306@fourthworld.com> Message-ID: I added "LiveCode", but had no supporting information to include. On Jun 2, 2014 6:36 PM, "Richard Gaskin" wrote: > Anyone here have time to add LiveCode to the "Implementations" section?: > > Implementations> > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lists at mangomultimedia.com Mon Jun 2 21:54:13 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Mon, 2 Jun 2014 21:54:13 -0400 Subject: Iosclipboard In-Reply-To: References: Message-ID: On Sat, May 31, 2014 at 4:17 AM, Nakia Brewer wrote: > Trevor do you happen to have a complied version of your ios clipboard > external that is compatible for iOS 7? > Sorry, I haven't compiled a version of that since I initially published it. I haven't been doing any mobile development and I'm not set up for it. -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From skip at magicgate.com Mon Jun 2 23:06:50 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 2 Jun 2014 23:06:50 -0400 Subject: Import text file into sqlite Message-ID: Good evening everybody, I have a text file that I need to import into a sqlite file. I have a script that will create the sqlite file, however I am struggling with the rest of the coding. The text files comes with file headers that I can use, if I choose to. Any help is greatly appreciated! SKIP From devin_asay at byu.edu Tue Jun 3 00:11:17 2014 From: devin_asay at byu.edu (Devin Asay) Date: Tue, 3 Jun 2014 04:11:17 +0000 Subject: Wikipedia "UUID" In-Reply-To: References: <538CFC64.30306@fourthworld.com> Message-ID: On Jun 2, 2014, at 7:13 PM, Roger Eller wrote: > I added "LiveCode", but had no supporting information to include. A little farther down the list on that page there is an entry for Revolution/RunRev: "The libUUID library[35] A library that generates UUIDs of type 1 (time based), type 3 (name-based) and type 4 (random-based). Version 1.0. by Mark Smith. OSL 3.0? The link in the footnote is broken, however. If anyone has a working link these two entries could probably be consolidated and the link updated. Devin > On Jun 2, 2014 6:36 PM, "Richard Gaskin" > wrote: > >> Anyone here have time to add LiveCode to the "Implementations" section?: >> >> > Implementations> >> Devin Asay Learn to code with LiveCode University http://university.livecode.com From ambassador at fourthworld.com Tue Jun 3 09:25:14 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jun 2014 06:25:14 -0700 Subject: [ANN] SoCal LiveCode User Group Meeting: June 5 In-Reply-To: <53344078.1080108@fourthworld.com> References: <53344078.1080108@fourthworld.com> Message-ID: <538DCCBA.8010600@fourthworld.com> The next meeting of the SoCal LiveCode User Group is coming up next Thursday, June 5, 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 Follow me on Twitter: http://twitter.com/FourthWorldSys From ambassador at fourthworld.com Tue Jun 3 09:32:00 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jun 2014 06:32:00 -0700 Subject: Wikipedia "UUID" In-Reply-To: References: Message-ID: <538DCE50.3070903@fourthworld.com> Roger Eller wrote: > I added "LiveCode", but had no supporting information to include. > On Jun 2, 2014 6:36 PM, "Richard Gaskin" > wrote: > >> Anyone here have time to add LiveCode to the "Implementations" section?: >> >> > Implementations> Thank you for that, Roger. I was hoping to provide you a link to the Web version of the Dictionary entry for UUID, but I see that's an older version. I'll bring this up in my Community Management meeting with Kevin this morning, and hopefully we'll have a fresh copy of the Dictionary online soon so you can add the link if you have time. Thanks again for doing that. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From skip at magicgate.com Tue Jun 3 10:02:45 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 3 Jun 2014 10:02:45 -0400 Subject: Need to filter out items of list Message-ID: Good morning coders, I have a very, very large field that contains some text from a tab delimited dataset. Row 1 contains the headers. Here is my dilemma... I need to filter out lines where item 9=EMPTY or item 15 is greater than 0. Any help or guidance? Thank you! SKIP From charles at buchwald.ca Tue Jun 3 10:35:32 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Tue, 3 Jun 2014 09:35:32 -0500 Subject: Need to filter out items of list In-Reply-To: References: Message-ID: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> Good Morning Skip, How about: put fld "super large blob of text" into tFieldText repeat for each line n in tFieldText if item 9 of n is empty OR item 15 of n > 0 then delete n end repeat ... not tested. But it seems like maybe you have something else in mind? - Charles On 03 Jun 2014, at 9:02 AM, Magicgate Software - Skip Kimpel wrote: > Good morning coders, > > I have a very, very large field that contains some text from a tab > delimited dataset. Row 1 contains the headers. Here is my dilemma... I > need to filter out lines where item 9=EMPTY or item 15 is greater than 0. > > Any help or guidance? > > Thank you! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From dsc at swcp.com Tue Jun 3 11:16:19 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 3 Jun 2014 09:16:19 -0600 Subject: Need to filter out items of list In-Reply-To: References: Message-ID: <6400991D-4E0D-4669-9915-B3E0D68534F6@swcp.com> I think some new features to ?filter' might help. If those are not in the dictionary, look at recent release notes. (Sorry for being even more brief and cryptic than usual; busy day.) Dar On Jun 3, 2014, at 8:02 AM, Magicgate Software - Skip Kimpel wrote: > Good morning coders, > > I have a very, very large field that contains some text from a tab > delimited dataset. Row 1 contains the headers. Here is my dilemma... I > need to filter out lines where item 9=EMPTY or item 15 is greater than 0. > > Any help or guidance? > > Thank you! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 3 11:27:43 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Tue, 3 Jun 2014 11:27:43 -0400 Subject: Wikipedia "UUID" In-Reply-To: <538DCE50.3070903@fourthworld.com> References: <538DCE50.3070903@fourthworld.com> Message-ID: Yep. That was my first idea too, but 6.02 was the latest online docs out there. ~Roger On Tue, Jun 3, 2014 at 9:32 AM, Richard Gaskin wrote: > Roger Eller wrote: > > I added "LiveCode", but had no supporting information to include. >> On Jun 2, 2014 6:36 PM, "Richard Gaskin" >> >> wrote: >> >> Anyone here have time to add LiveCode to the "Implementations" section?: >>> >>> >> Implementations> >>> >> > Thank you for that, Roger. > > I was hoping to provide you a link to the Web version of the Dictionary > entry for UUID, but I see that's an older version. I'll bring this up in > my Community Management meeting with Kevin this morning, and hopefully > we'll have a fresh copy of the Dictionary online soon so you can add the > link if you have time. > > Thanks again for doing that. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > From ray at linkit.com Tue Jun 3 11:38:46 2014 From: ray at linkit.com (Ray) Date: Tue, 03 Jun 2014 12:38:46 -0300 Subject: Tree View in a Datagrid In-Reply-To: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> Message-ID: <538DEC06.2080807@LinkIt.Com> Has anybody tried to create a tree view in a datagrid? I have a datagrid which I need to be able to 'collapse' group of lines in order to reduce excessive vertical scrolling. From skip at magicgate.com Tue Jun 3 11:40:34 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 3 Jun 2014 11:40:34 -0400 Subject: Need to filter out items of list In-Reply-To: <6400991D-4E0D-4669-9915-B3E0D68534F6@swcp.com> References: <6400991D-4E0D-4669-9915-B3E0D68534F6@swcp.com> Message-ID: Thanks for the replies... Dar, that is what I was originally thinking but I have not wrapped my head fully around the filter command and the complexity of introducing regex commands to accomplish what I am attempting. Having said that, Charles might be on the right path as far as NOT overcomplicating things... SKIP On Tue, Jun 3, 2014 at 11:16 AM, Dar Scott wrote: > I think some new features to ?filter' might help. > > If those are not in the dictionary, look at recent release notes. > > (Sorry for being even more brief and cryptic than usual; busy day.) > > Dar > > > On Jun 3, 2014, at 8:02 AM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > > > Good morning coders, > > > > I have a very, very large field that contains some text from a tab > > delimited dataset. Row 1 contains the headers. Here is my dilemma... I > > need to filter out lines where item 9=EMPTY or item 15 is greater than 0. > > > > Any help or guidance? > > > > Thank you! > > > > SKIP > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Tue Jun 3 12:20:02 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 3 Jun 2014 09:20:02 -0700 Subject: Import text file into sqlite In-Reply-To: References: Message-ID: First thing to do is get a copy of Alex Tweedly's excellent handler for unpacking csv files. After that, a lot depends on the structure of your database versus the structure of the csv file but in general you just need to create a SQL INSERT statement for each line in the csv file (except the heading line). Also, issue a BEGIN statement before the first INSERT and a COMMIT after the last INSERT, plus a ROLLBACK if any errors occur during the INSERT loop. If this is a one-off exercise rather than something a user has to do regularly, take a look at my SQLiteAdmin program which will do all this for you. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jun 2, 2014 at 8:06 PM, Magicgate Software - Skip Kimpel < skip at magicgate.com> wrote: > Good evening everybody, > > I have a text file that I need to import into a sqlite file. I have a > script that will create the sqlite file, however I am struggling with the > rest of the coding. > > The text files comes with file headers that I can use, if I choose to. > > Any help is greatly appreciated! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From rjb at robelko.com Tue Jun 3 12:59:36 2014 From: rjb at robelko.com (Robert Brenstein) Date: Tue, 3 Jun 2014 18:59:36 +0200 Subject: Need to filter out items of list In-Reply-To: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> Message-ID: On 03.06.2014 at 9:35 Uhr -0500 Charles E Buchwald apparently wrote: >Good Morning Skip, >How about: > >put fld "super large blob of text" into tFieldText >repeat for each line n in tFieldText > if item 9 of n is empty OR item 15 of n > 0 then delete n >end repeat > >... not tested. But it seems like maybe you have something else in mind? > >- Charles > If you are deleting lines, you need to loop from the last line down to the first, referring to line numbers. If the computer has enough memory, it might be faster to copy lines to be kept into another variable, like: put fld "super large blob of text" into tFieldText put empty into tFieldTextFiltered repeat for each line tLine in tFieldText if (item 9 of tLine is empty) OR (item 15 of tLine > 0) then next repeat put tLine & cr after tFieldTextFiltered end repeat RObert From t.heaford at btinternet.com Tue Jun 3 13:38:06 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Tue, 3 Jun 2014 18:38:06 +0100 Subject: ScreenRect bug or not Message-ID: <2498B4DB-00DD-4B95-9984-D7BA1804129F@btinternet.com> Mac OS X 10.9.3 LC 6.6.1 & LC 6.7 (dp4) I have been zooming a stack to the size of the screen using the screenRect function: set the rect of this stack to the working screenRect When I do this the top part of the stack window disappears beneath the OS X menubar. The documents suggest it should be otherwise: "Adding the working adjective to either form returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not covered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).? Is this a bug or are the documents incorrect. If the documents are incorrect then is there a LC function that returns the height of the Mac menubar? All the best Terry From t.heaford at btinternet.com Tue Jun 3 13:54:00 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Tue, 3 Jun 2014 18:54:00 +0100 Subject: ScreenRect bug or not In-Reply-To: <2498B4DB-00DD-4B95-9984-D7BA1804129F@btinternet.com> References: <2498B4DB-00DD-4B95-9984-D7BA1804129F@btinternet.com> Message-ID: <70A0B9BB-5335-4E81-AB44-A6085DD2E833@btinternet.com> In my case the working screenRect returned 0,22,1680,1046 if I add 22 to item 2 for 0,44,1680,1046 it seems to work correctly Having measured the screen with Apples screen grab the point directly below the OS X menubar is 22 and not 44. Surely LC should return the correct co-ordinate for Mac and not rely on me converting a Windows co-ordinate? All the best Terry On 3 Jun 2014, at 18:38, Terence Heaford wrote: > Mac OS X 10.9.3 LC 6.6.1 & LC 6.7 (dp4) > > I have been zooming a stack to the size of the screen using the screenRect function: > > set the rect of this stack to the working screenRect > > When I do this the top part of the stack window disappears beneath the OS X menubar. > > The documents suggest it should be otherwise: > > "Adding the working adjective to either form returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not covered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).? > > Is this a bug or are the documents incorrect. > > If the documents are incorrect then is there a LC function that returns the height of the Mac menubar? > > > > > All the best > > Terry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jun 3 14:10:53 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jun 2014 11:10:53 -0700 Subject: ScreenRect bug or not In-Reply-To: <70A0B9BB-5335-4E81-AB44-A6085DD2E833@btinternet.com> References: <70A0B9BB-5335-4E81-AB44-A6085DD2E833@btinternet.com> Message-ID: <538E0FAD.4030103@fourthworld.com> Terence Heaford wrote: > In my case the working screenRect returned 0,22,1680,1046 > > if I add 22 to item 2 for 0,44,1680,1046 it seems to work correctly > > Having measured the screen with Apples screen grab the point directly > below the OS X menubar is 22 and not 44. > > Surely LC should return the correct co-ordinate for Mac and not rely > on me converting a Windows co-ordinate? Of course not. It might be a bug, but before we go there we can notice that difference sounds suspiciously like the height of the Mac OS title bar. In all xTalks "the rect" of a stack refers only to its content region. In older xTalks (and older versions of LC) proper window placement required us to hard-wire values for the Mac title bar, and query the Win registry for that platform, and adjust accordingly. LiveCode now does this for us with "the effective rect", which accounts for the platform-specific window trimmings (title bar, borders, etc.). -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From t.heaford at btinternet.com Tue Jun 3 14:32:37 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Tue, 3 Jun 2014 19:32:37 +0100 Subject: ScreenRect bug or not In-Reply-To: <538E0FAD.4030103@fourthworld.com> References: <70A0B9BB-5335-4E81-AB44-A6085DD2E833@btinternet.com> <538E0FAD.4030103@fourthworld.com> Message-ID: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> OK, This script put "the working screenRect = " & the working screenRect put return & "the effective working screenRect = " & tRect after msg put return & "the screenRect = " & the screenRect after msg Places the following in the msg box the working screenRect = 0,22,1680,1046 the effective working screenRect = 0,22,1680,1046 the screenRect = 0,0,1680,1050 If I now "set the rect of this stack to 0,22,1680,1046" then window top bar that contains the traffic lights is hidden beneath the Mac Menubar. If I change it to "set the rect of this stack to 0,44,1680,1046? then the traffic lights are positioned correctly below the Mac Menubar. All the best Terry On 3 Jun 2014, at 19:10, Richard Gaskin wrote: > LiveCode now does this for us with "the effective rect", which accounts for the platform-specific window trimmings (title bar, borders, etc.). From dsc at swcp.com Tue Jun 3 14:36:52 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 3 Jun 2014 12:36:52 -0600 Subject: Need to filter out items of list In-Reply-To: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> Message-ID: <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> I recommend building a new string rather than deleting lines. On Jun 3, 2014, at 8:35 AM, Charles E Buchwald wrote: > Good Morning Skip, > How about: > > put fld "super large blob of text" into tFieldText > repeat for each line n in tFieldText > if item 9 of n is empty OR item 15 of n > 0 then delete n > end repeat > > ... not tested. But it seems like maybe you have something else in mind? > > - Charles > > On 03 Jun 2014, at 9:02 AM, Magicgate Software - Skip Kimpel wrote: > >> Good morning coders, >> >> I have a very, very large field that contains some text from a tab >> delimited dataset. Row 1 contains the headers. Here is my dilemma... I >> need to filter out lines where item 9=EMPTY or item 15 is greater than 0. >> >> Any help or guidance? >> >> Thank you! >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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-k.de Tue Jun 3 14:41:58 2014 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Jun 2014 20:41:58 +0200 Subject: Need to filter out items of list In-Reply-To: <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: Hi all, Am 03.06.2014 um 20:36 schrieb Dar Scott : > I recommend building a new string rather than deleting lines. and that is even mandatory, because "repeat for each xxx" is "read-only"! :-) > On Jun 3, 2014, at 8:35 AM, Charles E Buchwald wrote: > >> Good Morning Skip, >> How about: >> >> put fld "super large blob of text" into tFieldText >> repeat for each line n in tFieldText >> if item 9 of n is empty OR item 15 of n > 0 then delete n >> end repeat >> >> ... not tested. But it seems like maybe you have something else in mind? >> >> - Charles >> >> On 03 Jun 2014, at 9:02 AM, Magicgate Software - Skip Kimpel wrote: >> >>> Good morning coders, >>> >>> I have a very, very large field that contains some text from a tab >>> delimited dataset. Row 1 contains the headers. Here is my dilemma... I >>> need to filter out lines where item 9=EMPTY or item 15 is greater than 0. >>> >>> Any help or guidance? >>> >>> Thank you! >>> >>> SKIP Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From ambassador at fourthworld.com Tue Jun 3 14:47:07 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jun 2014 11:47:07 -0700 Subject: ScreenRect bug or not In-Reply-To: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> References: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> Message-ID: <538E182B.7050403@fourthworld.com> Terence Heaford wrote: > On 3 Jun 2014, at 19:10, Richard Gaskin wrote: >> >> In all xTalks "the rect" of a stack refers only to its content >> region. ... >> LiveCode now does this for us with "the effective rect", which >> accounts for the platform-specific window trimmings (title bar, >> borders, etc.). > > > This script > > put "the working screenRect = " & the working screenRect > put return & "the effective working screenRect = " & tRect after msg > put return & "the screenRect = " & the screenRect after msg > > Places the following in the msg box > > the working screenRect = 0,22,1680,1046 > the effective working screenRect = 0,22,1680,1046 > the screenRect = 0,0,1680,1050 > > If I now "set the rect of this stack to 0,22,1680,1046" then window > top bar that contains the traffic lights is hidden beneath the Mac > Menubar. > > If I change it to "set the rect of this stack to 0,44,1680,1046? then > the traffic lights are positioned correctly below the Mac Menubar. And if you set "the effective rect" of the stack: set the effective rect of this stack to the working screenrect ..you get the placement you're looking for without having to know the OS-specific window trimming metrics. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From t.heaford at btinternet.com Tue Jun 3 14:51:34 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Tue, 3 Jun 2014 19:51:34 +0100 Subject: ScreenRect bug or not In-Reply-To: <538E182B.7050403@fourthworld.com> References: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> <538E182B.7050403@fourthworld.com> Message-ID: Sorry Richard, set the effective rect of this stack to the working screenrect I don?t, the traffic lights are still hidden beneath the Mac Menubar. All the best Terry On 3 Jun 2014, at 19:47, Richard Gaskin wrote: > And if you set "the effective rect" of the stack: > > set the effective rect of this stack to the working screenrect > > ..you get the placement you're looking for without having to know the OS-specific window trimming metrics. From dsc at swcp.com Tue Jun 3 15:01:32 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 3 Jun 2014 13:01:32 -0600 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: Yes. I?m into short cryptic responses today. The loop shouldn?t be repaired with ?repeat i = 1 to the number of lines of?; because that is slow for large files, not only in selecting lines but in deleting them. Use ?for each L? and ?put L after??. I think some changes in LiveCode make the loop variables not exactly constant, but a good style would be to treat them that way. They are not chunk references. Unless I missed something. Dar On Jun 3, 2014, at 12:41 PM, Klaus major-k wrote: > Hi all, > > Am 03.06.2014 um 20:36 schrieb Dar Scott : > >> I recommend building a new string rather than deleting lines. > > and that is even mandatory, because "repeat for each xxx" is "read-only"! :-) > >> On Jun 3, 2014, at 8:35 AM, Charles E Buchwald wrote: >> >>> Good Morning Skip, >>> How about: >>> >>> put fld "super large blob of text" into tFieldText >>> repeat for each line n in tFieldText >>> if item 9 of n is empty OR item 15 of n > 0 then delete n >>> end repeat >>> >>> ... not tested. But it seems like maybe you have something else in mind? >>> >>> - Charles >>> >>> On 03 Jun 2014, at 9:02 AM, Magicgate Software - Skip Kimpel wrote: >>> >>>> Good morning coders, >>>> >>>> I have a very, very large field that contains some text from a tab >>>> delimited dataset. Row 1 contains the headers. Here is my dilemma... I >>>> need to filter out lines where item 9=EMPTY or item 15 is greater than 0. >>>> >>>> Any help or guidance? >>>> >>>> Thank you! >>>> >>>> SKIP > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skip at magicgate.com Tue Jun 3 15:02:17 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 3 Jun 2014 15:02:17 -0400 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: True... forgot about the "read only" issue. Given that I have about 150,000 rows of data to process I am going to need to create some type of progress bar or counter. Using the "repeat for each xxx" method, how would I obtain the current line position? Thanks, SKIP On Tue, Jun 3, 2014 at 2:41 PM, Klaus major-k wrote: > Hi all, > > Am 03.06.2014 um 20:36 schrieb Dar Scott : > > > I recommend building a new string rather than deleting lines. > > and that is even mandatory, because "repeat for each xxx" is "read-only"! > :-) > > > On Jun 3, 2014, at 8:35 AM, Charles E Buchwald > wrote: > > > >> Good Morning Skip, > >> How about: > >> > >> put fld "super large blob of text" into tFieldText > >> repeat for each line n in tFieldText > >> if item 9 of n is empty OR item 15 of n > 0 then delete n > >> end repeat > >> > >> ... not tested. But it seems like maybe you have something else in mind? > >> > >> - Charles > >> > >> On 03 Jun 2014, at 9:02 AM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > >> > >>> Good morning coders, > >>> > >>> I have a very, very large field that contains some text from a tab > >>> delimited dataset. Row 1 contains the headers. Here is my dilemma... > I > >>> need to filter out lines where item 9=EMPTY or item 15 is greater than > 0. > >>> > >>> Any help or guidance? > >>> > >>> Thank you! > >>> > >>> SKIP > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 3 15:05:44 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 03 Jun 2014 12:05:44 -0700 Subject: ScreenRect bug or not In-Reply-To: References: Message-ID: <538E1C88.6070202@fourthworld.com> Terence Heaford wrote: > Sorry Richard, > > set the effective rect of this stack to the working screenrect > > I don?t, the traffic lights are still hidden beneath the Mac Menubar. > > All the best > > Terry > > On 3 Jun 2014, at 19:47, Richard Gaskin wrote: > >> And if you set "the effective rect" of the stack: >> >> set the effective rect of this stack to the working screenrect >> >> ..you get the placement you're looking for without having to know the OS-specific window trimming metrics. Which version are you using? Here's my results: 6.6.2 RC6: works as documented 6.7 DP4: strange placement (Bug #12593) 7.0 DP6: works as documented -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From klaus at major-k.de Tue Jun 3 15:05:47 2014 From: klaus at major-k.de (Klaus major-k) Date: Tue, 3 Jun 2014 21:05:47 +0200 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: Hi Skip, Am 03.06.2014 um 21:02 schrieb Magicgate Software - Skip Kimpel : > True... forgot about the "read only" issue. Given that I have about > 150,000 rows of data to process I am going to need to create some type of > progress bar or counter. Using the "repeat for each xxx" method, how would > I obtain the current line position? manage your own counter, still fast enough! ... put 0 into tCounter repeat for each ... add 1 to tCounter ## repeat stuff here... ... You get the picture :-) > Thanks, > > SKIP Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From jacque at hyperactivesw.com Tue Jun 3 15:07:44 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jun 2014 14:07:44 -0500 Subject: ScreenRect bug or not In-Reply-To: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> References: <70A0B9BB-5335-4E81-AB44-A6085DD2E833@btinternet.com> <538E0FAD.4030103@fourthworld.com> <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> Message-ID: <538E1D00.2080608@hyperactivesw.com> On 6/3/2014, 1:32 PM, Terence Heaford wrote: > the working screenRect = 0,22,1680,1046 > the effective working screenRect = 0,22,1680,1046 > the screenRect = 0,0,1680,1050 > > If I now "set the rect of this stack to 0,22,1680,1046" then window > top bar that contains the traffic lights is hidden beneath the Mac > Menubar. > > If I change it to "set the rect of this stack to 0,44,1680,1046? then > the traffic lights are positioned correctly below the Mac Menubar. I think what you want is "the effective rect of this stack". The rect of the stack gives you the dimensions including the title bar. The effective rect gives you only the content dimentions. If you subtract item 2 of the effective stack rect from item 2 of the rect of the stack, you'll know the height of the title bar. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jun 3 15:11:22 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jun 2014 14:11:22 -0500 Subject: ScreenRect bug or not In-Reply-To: References: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> <538E182B.7050403@fourthworld.com> Message-ID: <538E1DDA.6070104@hyperactivesw.com> On 6/3/2014, 1:51 PM, Terence Heaford wrote: > set the effective rect of this stack to the working screenrect > > I don?t, the traffic lights are still hidden beneath the Mac Menubar. That's even better than the method I just posted. Odd it isn't working for you, it works here. The title bar is snugged up against the bottom of the Mac system menu. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From skip at magicgate.com Tue Jun 3 15:13:22 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 3 Jun 2014 15:13:22 -0400 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: I thought that might be a little inefficient, but once again, I am overthinking it! Thanks for all of your help. On Tue, Jun 3, 2014 at 3:05 PM, Klaus major-k wrote: > Hi Skip, > > Am 03.06.2014 um 21:02 schrieb Magicgate Software - Skip Kimpel < > skip at magicgate.com>: > > > True... forgot about the "read only" issue. Given that I have about > > 150,000 rows of data to process I am going to need to create some type of > > progress bar or counter. Using the "repeat for each xxx" method, how > would > > I obtain the current line position? > > manage your own counter, still fast enough! > ... > put 0 into tCounter > repeat for each ... > add 1 to tCounter > ## repeat stuff here... > ... > You get the picture :-) > > > Thanks, > > > > SKIP > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jun 3 15:17:18 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jun 2014 14:17:18 -0500 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: <538E1F3E.1000705@hyperactivesw.com> On 6/3/2014, 2:02 PM, Magicgate Software - Skip Kimpel wrote: > Given that I have about > 150,000 rows of data to process I am going to need to create some type of > progress bar or counter. Try it first without one, you might be surprised. The "repeat for each" construct is very fast. One time I added a progress bar out of habit because I had so many lines to process. It took about 15 seconds to go through the whole loop. When I removed the progress bar, the loop completed in two or three seconds. It turned out that updating the progress bar took more time than the entire rest of the loop. So see if the progress bar is really worth the overhead. If it's just a little slow, consider setting the cursor to a watch instead so the user knows something is happening. That has no overhead. Or if you do need a progress bar, only update it every 10th or 50th iteration or so. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From skip at magicgate.com Tue Jun 3 15:23:56 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 3 Jun 2014 15:23:56 -0400 Subject: Need to filter out items of list In-Reply-To: <538E1F3E.1000705@hyperactivesw.com> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> <538E1F3E.1000705@hyperactivesw.com> Message-ID: Yep, just tried it and the counter slowed down the process in a VERY noticeable way. I will have to evaluate if it is worth it or not. SKIP On Tue, Jun 3, 2014 at 3:17 PM, J. Landman Gay wrote: > On 6/3/2014, 2:02 PM, Magicgate Software - Skip Kimpel wrote: > >> Given that I have about >> 150,000 rows of data to process I am going to need to create some type of >> progress bar or counter. >> > > Try it first without one, you might be surprised. The "repeat for each" > construct is very fast. > > One time I added a progress bar out of habit because I had so many lines > to process. It took about 15 seconds to go through the whole loop. When I > removed the progress bar, the loop completed in two or three seconds. It > turned out that updating the progress bar took more time than the entire > rest of the loop. > > So see if the progress bar is really worth the overhead. If it's just a > little slow, consider setting the cursor to a watch instead so the user > knows something is happening. That has no overhead. Or if you do need a > progress bar, only update it every 10th or 50th iteration or so. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jun 3 15:32:03 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 03 Jun 2014 14:32:03 -0500 Subject: Scripting conference stacks Message-ID: <538E22B3.6020801@hyperactivesw.com> Many of you are familiar with the scripting conference stacks we created 10 years ago. They are still being downloaded and used by new LC users and are referenced frequently in the forums as a valuable learning tool. Lately there has been a push on the forums to modernize them (they still refer to "Revolution" and use the old logo) and to add some additional topics that cover some features that have been added since the originals were made. The purpose of this message is twofold: 1. Rather than contact each author, I'm reaching out here to save some time. We'd like each author's permission to update your conference stack. The changes will be very minor; besides changing the RR logo, in most cases we will simply replace the word "Revolution" with "LiveCode" throughout. The actual text and demo content of each stack is still relevant and won't need any alteration. Since I'm pretty sure no one will mind, I'm going to assume that's okay with all the authors unless I hear from you otherwise. But if you have any questions or objections, please write to me privately. 2. The second thing is to let the non-forum readers here know that there is an ongoing discussion in the forums about these stacks. If you would like to follow along, see the discussion here: Your input would be valued. For reference, the original scripting conference stacks can be downloaded here: -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From zryip.theslug at gmail.com Tue Jun 3 15:50:29 2014 From: zryip.theslug at gmail.com (zryip theSlug) Date: Tue, 3 Jun 2014 21:50:29 +0200 Subject: Tree View in a Datagrid In-Reply-To: <538DEC06.2080807@LinkIt.Com> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <538DEC06.2080807@LinkIt.Com> Message-ID: Hi Ray, The DGH property palette is a datagrid table, using a tree of 1 sub-level depth: www.aslugontheroad.com/images/DGH/Properties_palette.png In the Excel Library documentation, the list on the left is a datagrid form www.aslugontheroad.com/images/Preview/Excel_Lib_Preview/XCEL_Lib_Doc_Preview.png My needs were limited to a tree of one sub-level, however this is possible to have more levels. DGH is now open source, so you can have a look inside it to see how the tree is working. Best, On Tue, Jun 3, 2014 at 5:38 PM, Ray wrote: > Has anybody tried to create a tree view in a datagrid? I have a datagrid > which I need to be able to 'collapse' group of lines in order to reduce > excessive vertical scrolling. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Zryip TheSlug http://www.aslugontheroad.com From paulhibbert at mac.com Tue Jun 3 15:51:21 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Tue, 03 Jun 2014 12:51:21 -0700 Subject: ScreenRect bug or not In-Reply-To: <538E1DDA.6070104@hyperactivesw.com> References: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> <538E182B.7050403@fourthworld.com> <538E1DDA.6070104@hyperactivesw.com> Message-ID: My test agree with Richard's and confirms this as a bug in LC6.7(DP4), seems OK in other versions so it may be something to do with the Cocoa implementation, adding an extra line gets round the problem until it's fixed? set the effective rect of this stack to the working screenRect set the loc of this stack to (item 1 of the screenLoc),(item 2 of the screenLoc + 20) -- Temp fix for LC6.7(DP4) bug Tested on Mac OS X 10.8.5 Paul On 2014-06-03, at 12:11 PM, "J. Landman Gay" wrote: > On 6/3/2014, 1:51 PM, Terence Heaford wrote: >> set the effective rect of this stack to the working screenrect >> >> I don?t, the traffic lights are still hidden beneath the Mac Menubar. > > > That's even better than the method I just posted. Odd it isn't working for you, it works here. The title bar is snugged up against the bottom of the Mac system menu. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 3 15:56:15 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 3 Jun 2014 13:56:15 -0600 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> Message-ID: <64DA59AE-4F3D-4B27-B2C1-6D4DC3A8056F@swcp.com> Overthinking is good! Here is how to think on this. The time to ?get line i of?? or ?delete line i of ?? is proportional to the length of the string. If you do that in a loop, then the time doing that, total, goes up with the SQUARE of the length of the string. That is, each time you double the length of your data, the time will quadruple. So, for long strings, don?t do that. What doesn?t increase like that is ?put ? after ?? and ?repeat for each ??. Use that. So, in thinking or overthinking, don?t worry about having a little parallel counter for the progress. But watch for the ?order n-squared? as some call it. Dar On Jun 3, 2014, at 1:13 PM, Magicgate Software - Skip Kimpel wrote: > I thought that might be a little inefficient, but once again, I am > overthinking it! > > Thanks for all of your help. > > > On Tue, Jun 3, 2014 at 3:05 PM, Klaus major-k wrote: > >> Hi Skip, >> >> Am 03.06.2014 um 21:02 schrieb Magicgate Software - Skip Kimpel < >> skip at magicgate.com>: >> >>> True... forgot about the "read only" issue. Given that I have about >>> 150,000 rows of data to process I am going to need to create some type of >>> progress bar or counter. Using the "repeat for each xxx" method, how >> would >>> I obtain the current line position? >> >> manage your own counter, still fast enough! >> ... >> put 0 into tCounter >> repeat for each ... >> add 1 to tCounter >> ## repeat stuff here... >> ... >> You get the picture :-) >> >>> Thanks, >>> >>> SKIP >> >> Best >> >> Klaus >> >> -- >> Klaus Major >> http://www.major-k.de >> klaus at major-k.de >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 3 16:00:22 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 3 Jun 2014 14:00:22 -0600 Subject: Need to filter out items of list In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> <538E1F3E.1000705@hyperactivesw.com> Message-ID: <37F3DB74-CCFC-4F62-8DF6-21A9874BE90F@swcp.com> Did you try every so often? To do that, check for ?i mod 1000 = 0? or the like. There might be a faster way, but that works. Dar On Jun 3, 2014, at 1:23 PM, Magicgate Software - Skip Kimpel wrote: > Yep, just tried it and the counter slowed down the process in a VERY > noticeable way. I will have to evaluate if it is worth it or not. > > SKIP > > > On Tue, Jun 3, 2014 at 3:17 PM, J. Landman Gay > wrote: > >> On 6/3/2014, 2:02 PM, Magicgate Software - Skip Kimpel wrote: >> >>> Given that I have about >>> 150,000 rows of data to process I am going to need to create some type of >>> progress bar or counter. >>> >> >> Try it first without one, you might be surprised. The "repeat for each" >> construct is very fast. >> >> One time I added a progress bar out of habit because I had so many lines >> to process. It took about 15 seconds to go through the whole loop. When I >> removed the progress bar, the loop completed in two or three seconds. It >> turned out that updating the progress bar took more time than the entire >> rest of the loop. >> >> So see if the progress bar is really worth the overhead. If it's just a >> little slow, consider setting the cursor to a watch instead so the user >> knows something is happening. That has no overhead. Or if you do need a >> progress bar, only update it every 10th or 50th iteration or so. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ray at linkit.com Tue Jun 3 16:03:58 2014 From: ray at linkit.com (Ray) Date: Tue, 03 Jun 2014 17:03:58 -0300 Subject: Tree View in a Datagrid In-Reply-To: References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <538DEC06.2080807@LinkIt.Com> Message-ID: <538E2A2E.9050404@LinkIt.Com> Zryip, Oooh! Many thanks. I'll look into this immediately. Sounds like just the docs I'm looking for. Ray On 6/3/2014 4:50 PM, zryip theSlug wrote: > Hi Ray, > > The DGH property palette is a datagrid table, using a tree of 1 sub-level depth: > > www.aslugontheroad.com/images/DGH/Properties_palette.png > > > In the Excel Library documentation, the list on the left is a datagrid form > > www.aslugontheroad.com/images/Preview/Excel_Lib_Preview/XCEL_Lib_Doc_Preview.png > > > My needs were limited to a tree of one sub-level, however this is > possible to have more levels. > DGH is now open source, so you can have a look inside it to see how > the tree is working. > > > > Best, > > On Tue, Jun 3, 2014 at 5:38 PM, Ray wrote: >> Has anybody tried to create a tree view in a datagrid? I have a datagrid >> which I need to be able to 'collapse' group of lines in order to reduce >> excessive vertical scrolling. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at gmail.com Tue Jun 3 18:31:54 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Tue, 3 Jun 2014 17:31:54 -0500 Subject: Need to filter out items of list In-Reply-To: <37F3DB74-CCFC-4F62-8DF6-21A9874BE90F@swcp.com> References: <11341DB8-8847-406D-A67E-39E7CC0CE866@buchwald.ca> <7744A565-1078-4926-801C-29A0196AE9DA@swcp.com> <538E1F3E.1000705@hyperactivesw.com> <37F3DB74-CCFC-4F62-8DF6-21A9874BE90F@swcp.com> Message-ID: As always, YMMV. I created a stack with two fields. Ran this script once: on mouseUp repeat with i = 1 to 150000 repeat 20 if random(4) > 1 then put random(100) - 30 after R put tab after R end repeat put cr into char -1 of R end repeat put R into fld 1 end mouseUp Then ran this script -- it reports less than 0.2 seconds for the actual filtering: on mouseUp set the itemdel to tab put the long seconds into T repeat for each line L in fld 1 if item 9 of L is empty or item 15 of L < 0 then next repeat put L & cr after R end repeat put the long seconds - T put R into fld 2 end mouseUp If you have enough data or a slow enough computer to need to report on progress, then you can use this (I added a third field): on mouseUp set the itemdel to tab put the long seconds into T put the seconds into S put 0 into C repeat for each line L in fld 1 add 1 to C if the seconds <> S then put C into fld 3 wait 0 seconds put the seconds into S end if if item 9 of L is empty or item 15 of L < 0 then next repeat put L & cr after R end repeat put the long seconds - T put C into fld 3 put R into fld 2 end mouseUp On Tue, Jun 3, 2014 at 3:00 PM, Dar Scott wrote: > Did you try every so often? To do that, check for ?i mod 1000 = 0? or the > like. There might be a faster way, but that works. > > Dar > > > On Jun 3, 2014, at 1:23 PM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > > > Yep, just tried it and the counter slowed down the process in a VERY > > noticeable way. I will have to evaluate if it is worth it or not. > > > > SKIP > > > > > > On Tue, Jun 3, 2014 at 3:17 PM, J. Landman Gay > > > wrote: > > > >> On 6/3/2014, 2:02 PM, Magicgate Software - Skip Kimpel wrote: > >> > >>> Given that I have about > >>> 150,000 rows of data to process I am going to need to create some type > of > >>> progress bar or counter. > >>> > >> > >> Try it first without one, you might be surprised. The "repeat for each" > >> construct is very fast. > >> > >> One time I added a progress bar out of habit because I had so many lines > >> to process. It took about 15 seconds to go through the whole loop. When > I > >> removed the progress bar, the loop completed in two or three seconds. It > >> turned out that updating the progress bar took more time than the entire > >> rest of the loop. > >> > >> So see if the progress bar is really worth the overhead. If it's just a > >> little slow, consider setting the cursor to a watch instead so the user > >> knows something is happening. That has no overhead. Or if you do need a > >> progress bar, only update it every 10th or 50th iteration or so. > >> > >> -- > >> Jacqueline Landman Gay | jacque at hyperactivesw.com > >> HyperActive Software | http://www.hyperactivesw.com > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Tue Jun 3 21:59:48 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 3 Jun 2014 18:59:48 -0700 Subject: Need to filter out items of list In-Reply-To: References: Message-ID: Hi Skip, If this is related to your earlier post about loading a text file into an SQL database, it's probably just as easy/fast to load all the data into your database then delete the rows that have the columns corresponding to items 9/15 set to empty/greater than zero. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jun 3, 2014 at 7:02 AM, Magicgate Software - Skip Kimpel < skip at magicgate.com> wrote: > Good morning coders, > > I have a very, very large field that contains some text from a tab > delimited dataset. Row 1 contains the headers. Here is my dilemma... I > need to filter out lines where item 9=EMPTY or item 15 is greater than 0. > > Any help or guidance? > > Thank you! > > SKIP > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From t.heaford at btinternet.com Wed Jun 4 03:12:50 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Wed, 4 Jun 2014 08:12:50 +0100 Subject: ScreenRect bug or not In-Reply-To: References: <234492F5-9F63-4136-8702-CB68EDBE9726@btinternet.com> <538E182B.7050403@fourthworld.com> <538E1DDA.6070104@hyperactivesw.com> Message-ID: <95C1FCB1-8066-40A7-A209-3178D12E474F@btinternet.com> Well, I give up. This morning I have using LC 6.6.1 been through all my Geometry settings to double check everything is working correctly. After a few adjustments the Geometry settings are correct. Set LC 6.6.1 to liveResize = false and resizable = true. Geometry settings worked as expected when dragging the bottom right of the stack window. Clicked on the green traffic light and the stack window zoomed to a very odd size with the bottom right set to the bottom right of the screen with a gap on the left similar to the width of the tools palette(which is on screen)with a similar gap between the underside of the menubar and the top of the stack window (icon palette not on screen). Gave up at that point and switched to LC 6.7 (dp 4) LC 6.7 still has liveResize = false and resizable = true. Assumed Geometry settings will not have changed. Dragging by the bottom right of the stack window I noticed that liveResize was active despite the setting being false? Is that another bug? Clicked on the green traffic light and the stack window resized to what I expected, that is directly beneath the menubar and the size of the screen. I cannot identify what is wrong with the resizing of stack windows as for me there is no discernible pattern but clearly there is something amiss. I hope it gets cleared up in the not to distant future. All the best Terry On 3 Jun 2014, at 20:51, Paul Hibbert wrote: > My test agree with Richard's and confirms this as a bug in LC6.7(DP4), seems OK in other versions so it may be something to do with the Cocoa implementation, adding an extra line gets round the problem until it's fixed? From skiplondon at gmail.com Wed Jun 4 06:37:33 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Wed, 4 Jun 2014 06:37:33 -0400 Subject: Need to filter out items of list In-Reply-To: References: Message-ID: Hi Pete, Yes, it does relate to the previous post about dumping the data into a DB and then manipulating it from there. That was my initial thought process but I abandoned that concept and decided to deal with the file internally. Initially I thought that I would not need the data after it been "consumed" but now I am seeing a possible need for it for other purposes. I might just redesign this thing with the database method instead. For now I have things working and it is smooth. Maybe I will rework it this weekend. If the text file that I am using already contains headers in line 1, is there a quick and simple way to create and dump all that data into a mysqlite file? My guess is no but I figure I better ask first before heading down a more complicated path. Thank you everybody for all of your input. SKIP > On Jun 3, 2014, at 9:59 PM, Peter Haworth wrote: > > Hi Skip, > If this is related to your earlier post about loading a text file into an > SQL database, it's probably just as easy/fast to load all the data into > your database then delete the rows that have the columns corresponding to > items 9/15 set to empty/greater than zero. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Tue, Jun 3, 2014 at 7:02 AM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > >> Good morning coders, >> >> I have a very, very large field that contains some text from a tab >> delimited dataset. Row 1 contains the headers. Here is my dilemma... I >> need to filter out lines where item 9=EMPTY or item 15 is greater than 0. >> >> Any help or guidance? >> >> Thank you! >> >> SKIP >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 4 08:54:28 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 04 Jun 2014 14:54:28 +0200 Subject: [ANN] A little info about my book Message-ID: <538F1704.4050809@economy-x-talk.com> Hi everyone, It's been a while that I made any announcements about my book. I have been working on the 3rd print of "Programming LiveCode for the Real Beginner" and had some issues with printing and logistics. We have sorted out all issues and now I'm happy to announce that the book is available again. The third print of Programming LiveCode... has been updated to include a few new XML commands that were introduced in the latest stable release of LiveCode. I have also mentioned the textEncode and textDecode functions, which are going to appear in LiveCode 7. It should be clear, though, that I have kept the changes to a minimum. It looks like LiveCode 7 would require a considerable rewrite of the book. For now, this would take me too much time. Perhaps I'll do this some time in the future, when I have sufficient spare time on my hands. While I was trying to get the book printed again, people kept purchasing and by now most of the books have been sold already. We have only 30 copies left and we will print more in 2 months. If you don't want to be on a waiting list, order now and we'll send the book to you next week. You can order the book at http://qery.us/4ie and more info is available at http://qery.us/4id -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From toolbook at kestner.de Wed Jun 4 09:08:11 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 4 Jun 2014 15:08:11 +0200 Subject: OT: Is there a kind of F5 on Mac? Message-ID: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> Hi there, coming from windows - is there on Mac a kind of "F5" like we know it on windows to renew the content of a window, e.g. the content of a folder in the finder? E.g. when I connect from my Mac to a directory on my windows server and change the content of this server directory from the windows side, it takes sooo long until the content is renewed also on my Mac. Can I force it? Same when starting my Mac until it shows my server in the finder under devices. I know, it has nothing to do with LC. Thanks for coaching Tiemo From ambassador at fourthworld.com Wed Jun 4 10:57:53 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 04 Jun 2014 07:57:53 -0700 Subject: ScreenRect bug or not In-Reply-To: <95C1FCB1-8066-40A7-A209-3178D12E474F@btinternet.com> References: <95C1FCB1-8066-40A7-A209-3178D12E474F@btinternet.com> Message-ID: <538F33F1.20705@fourthworld.com> Terence Heaford wrote: > This morning I have using LC 6.6.1 been through all my Geometry > settings to double check everything is working correctly. After a > few adjustments the Geometry settings are correct. > > Set LC 6.6.1 to liveResize = false and resizable = true. Why set liveResizing to false? Live resizing is very much the convention these days. Even Apple's Garage Band, which has the slowest resizing behavior I've ever seen, does live resizing. LiveResizing doesn't affect metrics; all it does it allow your stack to receive resizeStack events during the resize, rather than just getting one message when the resizing has completed. > Clicked on the green traffic light and the stack window zoomed to a > very odd size with the bottom right set to the bottom right of the > screen with a gap on the left similar to the width of the tools > palette(which is on screen)with a similar gap between the underside > of the menubar and the top of the stack window (icon palette not on > screen). This is not a bug, but a design decision. I don't agree with it myself, at least not as far as the left edge goes, but it's only this way in the IDE and is fully settable by the scripter. The key here is the windowBoundingRect global property - worth a visit to the Dictionary. By default it should be set to give you an appropriate full-screen zoom without modification, but you can modify it to accommodate things like toolbars if you like, which is what RunRev has done in the IDE. Personally I think they should have left the left edge well enough alone (after all, the Tool palette is movable, and really only needed for a relatively short time during development, in the early stages when you're still laying out controls). But the top modification is essential, for the reasons the windowBoundingRect was added, to allow us to support zoomable windows that don't submarine below the toolbar. > Gave up at that point and switched to LC 6.7 (dp 4) > > LC 6.7 still has liveResize = false and resizable = true. Both of those properties are persistent so it's good to know they're being preserved as expected even in that deeply-modified test version. > Dragging by the bottom right of the stack window I noticed that > liveResize was active despite the setting being false? Is that > another bug? If it's a newly created stack you'll find that liveResizing is now on by default for the last several versions. It really is the norm, so this decision just makes it one step easier for us to make modern-looking apps, and as I noted doesn't affect metrics in any way, only the frequency of resizeStack messages. If this is a stack which had its liveResizing off in earlier builds, and still shows liveResizing off even though it's exhibiting this behavior, this may be yet another case where Cocoa's assumption that the only thing you'll ever want to do is complete compliance with the OS X Human Interface Guidelines is making it hard to do anything else, and would warrant a bug report if one hasn't been filed for that test build already. I should note that as valuable as it is for all of us to help with testing, v6.7 is a VERY exotic build, the first that uses Cocoa, meaning the first to attempt to merge LiveCode's object and messaging model with the limited and often strictly-enforced Cocoa way of doing things. While you're still learning the nuances of all the flexibility LiveCode provides for window metrics, it may be best to stick with 6.6.2, which is also a test build but without the extreme changes Cocoa requires, and also very late-stage to it's quite stable and enjoyable to work with, in my experience. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From t.heaford at btinternet.com Wed Jun 4 11:50:54 2014 From: t.heaford at btinternet.com (Terence Heaford) Date: Wed, 4 Jun 2014 16:50:54 +0100 Subject: ScreenRect bug or not In-Reply-To: <538F33F1.20705@fourthworld.com> References: <95C1FCB1-8066-40A7-A209-3178D12E474F@btinternet.com> <538F33F1.20705@fourthworld.com> Message-ID: Thanks for your detailed reply. I am pretty sure Live Resizing should be the standard way of doing things but I have to say that LC?s performance in this area is quite poor. I have my stack at a small size to improve the scrolling speed of a table but when I switch to another card that displays charts it is sometimes preferable to have a larger chart which I have created in a group. I have to redraw the charts when the stack is resized and this is where LC?s performance is poor. The stack stutters slightly as it is resizing. Now for some heresy. I also have Xojo (purchased with the last offer for ?12) with the same programme running and this does not have the stutter LC does. I just mentioned this to eliminate my computer (Macbook Pro 2.4 late 2008 unibody, hopefully due for change this summer) from the equation. I really prefer scripting to Objective-C and Xojo because I have worked with SC for so long but always seem to come up against a performance limitation at some point. Ah well. I don?t know if you remember the discussions over DataGrid and the Basic Table Field but pending release of the update to the Basic Table Field to include for right alignment I have changed to this control because of the improved scrolling speed when compared to the DataGrid. Interestingly while testing the stack in LC 6.7(dp4) I have noticed a significant increase in scrolling speed of the Basic TableField in the order of a 15-25% improvement when compared to LC 6.6.1. Within this stack I have pie charts created out of LC objects and having just measured the milliseconds from the start of creation to display, there is a 12% improvement comparing LC 6.7 with LC 6.6.1. I am presuming this is because of a change to Cocoa and streamlining the base code of LC. This is a significant improvement which I hope would be maintained and perhaps improved further as the Cocoa based LC progresses? Do you know which version will be the first to receive the right alignment in the Basic Table Field? Also while on the subject of speed (perhaps another thread) but is there an intention to speed up the script editor as I find the scrolling painful? All the best Terry On 4 Jun 2014, at 15:57, Richard Gaskin wrote: > I should note that as valuable as it is for all of us to help with testing, v6.7 is a VERY exotic build, the first that uses Cocoa, meaning the first to attempt to merge LiveCode's object and messaging model with the limited and often strictly-enforced Cocoa way of doing things. > > While you're still learning the nuances of all the flexibility LiveCode provides for window metrics, it may be best to stick with 6.6.2, which is also a test build but without the extreme changes Cocoa requires, and also very late-stage to it's quite stable and enjoyable to work with, in my experience. From pete at lcsql.com Wed Jun 4 12:00:40 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 4 Jun 2014 09:00:40 -0700 Subject: Need to filter out items of list In-Reply-To: References: Message-ID: On Wed, Jun 4, 2014 at 3:37 AM, Skip Kimpel wrote: > For now I have things working and it is smooth. Maybe I will rework it > this weekend. If the text file that I am using already contains headers in > line 1, is there a quick and simple way to create and dump all that data > into a mysqlite file? My guess is no but I figure I better ask first > before heading down a more complicated path. > I assume you mean the headers are sqlite column names. The sqlite3 command line utility has an import feature which you could run with a shell command but I don't think it will quite do what you want. If the table you are importing into does not exist, it assumes the first line of the text file contains column names and creates the table for you but if the table already exists, it just loads the data into the table including the first line. Also, as mentioned, my SQLiteAdmin program will import a text file and will handle column names in the first line as an option. But you can't invoke it and execute the import command from within Livecode. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bill at bluewatermaritime.com Wed Jun 4 12:32:23 2014 From: bill at bluewatermaritime.com (william humphrey) Date: Wed, 4 Jun 2014 12:32:23 -0400 Subject: [ANN] A little info about my book In-Reply-To: <538F1704.4050809@economy-x-talk.com> References: <538F1704.4050809@economy-x-talk.com> Message-ID: That is always good to hear that your excellent book is selling well. I hope that many of the purchasers are educators and students using LiveCode for software education in our schools. On Wed, Jun 4, 2014 at 8:54 AM, Mark Schonewille wrote: > Hi everyone, > > It's been a while that I made any announcements about my book. I have been > working on the 3rd print of "Programming LiveCode for the Real Beginner" and > had some issues with printing and logistics. We have sorted out all issues > and now I'm happy to announce that the book is available again. > > The third print of Programming LiveCode... has been updated to include a few > new XML commands that were introduced in the latest stable release of > LiveCode. I have also mentioned the textEncode and textDecode functions, > which are going to appear in LiveCode 7. It should be clear, though, that I > have kept the changes to a minimum. > > It looks like LiveCode 7 would require a considerable rewrite of the book. > For now, this would take me too much time. Perhaps I'll do this some time in > the future, when I have sufficient spare time on my hands. > > While I was trying to get the book printed again, people kept purchasing and > by now most of the books have been sold already. We have only 30 copies left > and we will print more in 2 months. If you don't want to be on a waiting > list, order now and we'll send the book to you next week. > > You can order the book at http://qery.us/4ie and more info is available at > http://qery.us/4id > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > _______________________________________________ > use-livecode mailing list > use-livecode 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.bluewatermaritime.com From ambassador at fourthworld.com Wed Jun 4 12:48:20 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 04 Jun 2014 09:48:20 -0700 Subject: ScreenRect bug or not In-Reply-To: References: Message-ID: <538F4DD4.5080908@fourthworld.com> Terence Heaford wrote: > I am pretty sure Live Resizing should be the standard way of doing > things but I have to say that LC?s performance in this area is quite > poor. > I have my stack at a small size to improve the scrolling speed of a > table but when I switch to another card that displays charts it is > sometimes preferable to have a larger chart which I have created in > a group. I have to redraw the charts when the stack is resized and > this is where LC?s performance is poor. The stack stutters slightly > as it is resizing. I've seen things like that now and then, rarely as bad as Apple's Garage Band but below what I like to give to customers. Fortunately, in each case I found things I was doing in my scripts that caused redundant redraws - once I fixed those, even complex layouts with multiple DataGrids were pretty smooth. DataGrids are a very challenging case, consisting as they do of so many controls. Since you're only using the native field object I'll bet we can get your layout resizing very nicely. Are you able to post the stack somewhere, or at least the resizeStack handler so we can see what it's doing? > Now for some heresy. I also have Xojo (purchased with the last offer > for ?12) with the same programme running and this does not have the > stutter LC does. You won't hear cries of "heretic!" from me. Most of us use multiple languages. I've been in the biz long enough that I no longer use proprietary formats for anything I care about (seen too many apps come and go, and I need to truly own my data), but the other half of my time is spent in JavaScript, and lately a lot of bash. Learning new things keeps us youthful. :) Each language exists becomes it does something better than the others, but none of them is a magic pony, not even LiveCode, nor Objective C nor anything else. In terms of performance, with Xojo's data typing requirements we'd expect better performance in some areas of raw computation, like image convolvers. But in other areas, like text parsing, the showdown we had here a while back was more or less a wash, which we would also expect because much of what we do in LiveCode is really just triggering highly-optimized routines in the engine that were written in C++ and compiled with the super-smart Clang. Rendering is in many respects language-independent, driven by factors far more complex taking place at a higher level of the implementation. > I really prefer scripting to Objective-C and Xojo because I have > worked with SC for so long but always seem to come up against a > performance limitation at some point. Ah well. In recent years Mark Lucas has done some great work on SC, and if it covered as many platforms as LiveCode I'd probably still be using it today. But Mr. Lucas is very passionate about OS X, and his opinion about Windows and its API is, well, let's just say not suitable for posting here. :) > I don?t know if you remember the discussions over DataGrid and the > Basic Table Field but pending release of the update to the Basic > Table Field to include for right alignment I have changed to this > control because of the improved scrolling speed when compared to > the DataGrid. > > Interestingly while testing the stack in LC 6.7(dp4) I have noticed > a significant increase in scrolling speed of the Basic TableField in > the order of a 15-25% improvement when compared to LC 6.6.1. > > Within this stack I have pie charts created out of LC objects and > having just measured the milliseconds from the start of creation to > display, there is a 12% improvement comparing LC 6.7 with LC 6.6.1. Not surprising, given the attention the team has been putting into the rendering algos. Have you benchmarked 6.6.2rc6? While the changes aren't as deep as in later test versions, you may still see a boost from improvements to the tiling algo they use. > I am presuming this is because of a change to Cocoa and streamlining > the base code of LC. Not necessarily. In fact, I'd be surprised if Cocoa made very many things faster in itself, since Cocoa is only optimized for strictly-HIG-compliant layouts, and doesn't play nice with the sort of flexibility LiveCoders demand. For example, consider the infamous pulsing default button: Any animated effect will take more CPU load than a static one, and even Apple's best effort in their own apps tends to bump CPU load by about 8-9% whenever a pulsing default button is visible on screen. But their API for this insists on antialiasing only against a blank region of the window using whatever default background pattern/color they happen to be using in that version. Try telling anyone using an xTalk that they can't put a default button on top of a graphic, or an image, or even a movie if they like. We xTalkers are used to having this level of flexibility, but it would mean antialiasing artifacts if the engine used only the OS routines. So instead the engine has to do an extra step, rendering the control into an internal buffer - outside of anything the OS normally handles for us - so that they can composite it nicely with whatever else may be beneath it. The result is a CPU load of about 13-15%, more than Apple's but necessary unless RunRev were to start restricting what people could do with their layouts as narrowly as Apple's APIs expect. > This is a significant improvement which I hope would be maintained > and perhaps improved further as the Cocoa based LC progresses? > > Do you know which version will be the first to receive the right > alignment in the Basic Table Field? I believe that will be in 7.0, since it's dependent on other changes made for Unicode. > Also while on the subject of speed (perhaps another thread) but is > there an intention to speed up the script editor as I find the > scrolling painful? There is an IDE rewrite underway, and a very large-scope effort to improve overall rendering. The rendering effort includes a shift from the tile approach they began with to a layer-based model that not only fits better with the Skia engine they're now using, but has a few other advantages in terms of being able to optimize a broader range of use-cases. Additionally, significant effort is ongoing for all text-handling routines, to minimize the impact Unicode inevitably requires. Ideally this would mean that Unicode rendering would become close to what we have today with Latin-ISO, while Latin-ISO becomes blazingly fast. But as you can imagine, that's a lot of R&D, so not likely to happen in the 6.x series. For now, I've turned off colorizing in the script editor and I'm quite happy with it. Never really depended on colorization anyway, so it's not something I miss. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From dochawk at gmail.com Wed Jun 4 18:56:20 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 4 Jun 2014 15:56:20 -0700 Subject: field losing formatting on copying Message-ID: I've put an example offending field at http://dochawkbk.com/badcopy.livecode When I copy groups from one card to another, some of them consistently lose formatting information. Here, for example, if you click the button in the mcp window, it will copy the group, but the "Case Number" field goes from it's 0,2,0,0 margins to default margins. I have others where the typeface gets lost. The contents, though, survive (and in this case, the typeface and fontsize). This is the first time I've been able to isolate this down to a field instead of my whole problem: in the past, the fields have started behaving once I took other stacks out. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dsc at swcp.com Wed Jun 4 19:21:09 2014 From: dsc at swcp.com (Dar Scott) Date: Wed, 4 Jun 2014 17:21:09 -0600 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: <75AA2423-1FB9-4CEE-88C5-B7A7E22A436B@swcp.com> Just being a tiny bit of a devil?s advocate here? Could the 0,2,0,0 margins have been set in a group that contained the source? Dar On Jun 4, 2014, at 4:56 PM, Dr. Hawkins wrote: > I've put an example offending field at http://dochawkbk.com/badcopy.livecode > > When I copy groups from one card to another, some of them consistently lose > formatting information. > > Here, for example, if you click the button in the mcp window, it will copy > the group, but the "Case Number" field goes from it's 0,2,0,0 margins to > default margins. I have others where the typeface gets lost. > > The contents, though, survive (and in this case, the typeface and fontsize). > > > This is the first time I've been able to isolate this down to a field > instead of my whole problem: in the past, the fields have started behaving > once I took other stacks out. > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Wed Jun 4 19:31:25 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 4 Jun 2014 16:31:25 -0700 Subject: Running an LC app from the command line Message-ID: I would like to run an existing lc standalone from the command line, passing it parameters that will determine what it should do. Searched the list archives and found that I can reference $1, $2, etc to get the parameters and that works just fine. I would also like the app to not display its main stack when it is run with parameters. I saw some posts on the list archives that mentioned the -ui flag to achieve this but when I tried that, I got an error "exiting on signal 10". I'm guessing I can simply hide the mainstack to achieve this but wondered if there is any other way to do it. The above was all on a Mac but I'll need it to run on Windows as well. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From MikeKerner at roadrunner.com Wed Jun 4 19:35:02 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 4 Jun 2014 19:35:02 -0400 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: Just to be safe, I always set the loc of the stack offscreen. On Wed, Jun 4, 2014 at 7:31 PM, Peter Haworth wrote: > I would like to run an existing lc standalone from the command line, > passing it parameters that will determine what it should do. > > Searched the list archives and found that I can reference $1, $2, etc to > get the parameters and that works just fine. > > I would also like the app to not display its main stack when it is run with > parameters. I saw some posts on the list archives that mentioned the -ui > flag to achieve this but when I tried that, I got an error "exiting on > signal 10". I'm guessing I can simply hide the mainstack to achieve this > but wondered if there is any other way to do it. > > The above was all on a Mac but I'll need it to run on Windows as well. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dsc at swcp.com Wed Jun 4 19:55:01 2014 From: dsc at swcp.com (Dar Scott) Date: Wed, 4 Jun 2014 17:55:01 -0600 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: <8CE1ACA9-97A5-476C-9876-9F9E10E4377C@swcp.com> Richard Gaskin has some advice, perhaps a year ago, on this list. I?m hoping to be trying that tonight. Well, maybe in the morning. A signal 10 is a bus error. If you are lucky, it is just accessing some GUI when there is none. Just take that out. Maybe you need to quit before the end of the startup handler, so preOpenStack never runs. I?m hoping my notes from Richard?s email covers this. Dar On Jun 4, 2014, at 5:31 PM, Peter Haworth wrote: > I would like to run an existing lc standalone from the command line, > passing it parameters that will determine what it should do. > > Searched the list archives and found that I can reference $1, $2, etc to > get the parameters and that works just fine. > > I would also like the app to not display its main stack when it is run with > parameters. I saw some posts on the list archives that mentioned the -ui > flag to achieve this but when I tried that, I got an error "exiting on > signal 10". I'm guessing I can simply hide the mainstack to achieve this > but wondered if there is any other way to do it. > > The above was all on a Mac but I'll need it to run on Windows as well. > > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Wed Jun 4 20:37:45 2014 From: pete at lcsql.com (Peter Haworth) Date: Wed, 4 Jun 2014 17:37:45 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: Not seeing this with LC 5.5.4 and OSX 10.7.4 The original caseno field in the rawforms stack had its margin set to 8 so yes, it ended up that way after being copied. I changed the margins to 0,2,0,0, copied again and the margins of the copied caseno field stayed at 0,2,0,0. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jun 4, 2014 at 3:56 PM, Dr. Hawkins wrote: > I've put an example offending field at > http://dochawkbk.com/badcopy.livecode > > When I copy groups from one card to another, some of them consistently lose > formatting information. > > Here, for example, if you click the button in the mcp window, it will copy > the group, but the "Case Number" field goes from it's 0,2,0,0 margins to > default margins. I have others where the typeface gets lost. > > The contents, though, survive (and in this case, the typeface and > fontsize). > > > This is the first time I've been able to isolate this down to a field > instead of my whole problem: in the past, the fields have started behaving > once I took other stacks out. > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 4 20:40:19 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 04 Jun 2014 17:40:19 -0700 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: <538FBC73.2060409@fourthworld.com> Since you're already passing -ui, try a later build - there was a release not long ago that would exit prematurely when run with the command line, since fixed. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From mwieder at ahsoftware.net Wed Jun 4 21:51:33 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 4 Jun 2014 18:51:33 -0700 Subject: ScreenRect bug or not In-Reply-To: <538F4DD4.5080908@fourthworld.com> References: <538F4DD4.5080908@fourthworld.com> Message-ID: <140350090625.20140604185133@ahsoftware.net> Richard- Wednesday, June 4, 2014, 9:48:20 AM, you wrote: > There is an IDE rewrite underway, and a very large-scope effort to > improve overall rendering. Eh? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Wed Jun 4 21:55:10 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 4 Jun 2014 18:55:10 -0700 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: <150350307073.20140604185510@ahsoftware.net> Pete- I do what Mike does as a safety measure. But I don't bother with the -ui argument, I just hide the stack on preOpenstack, and it's always worked fine for me. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From gerry.orkin at gmail.com Thu Jun 5 07:54:07 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Thu, 5 Jun 2014 21:54:07 +1000 Subject: [ANN] tmControl2 First Release In-Reply-To: <77injamsa5jvhh95ejyuakno.1401754113247@email.android.com> References: <77injamsa5jvhh95ejyuakno.1401754113247@email.android.com> Message-ID: And worth every penny. I think I'll still roll my own scrollers and table lists etc but for everything else this beats MobGUI in terms of depth and flexibility. Still a little buggy (something this sophisticated is bound to have a few problems in early releases) and the documentation/video tutorials need work, but...wow. Gerry On 3 Jun 2014, at 10:08 am, Scott Rossi wrote: > $10 is the discount off $59. $49 is the discounted price. From ambassador at fourthworld.com Thu Jun 5 10:19:07 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 05 Jun 2014 07:19:07 -0700 Subject: ScreenRect bug or not In-Reply-To: <140350090625.20140604185133@ahsoftware.net> References: <140350090625.20140604185133@ahsoftware.net> Message-ID: <53907C5B.5020805@fourthworld.com> Mark Wieder > Richard- > > Wednesday, June 4, 2014, 9:48:20 AM, you wrote: > >> There is an IDE rewrite underway, and a very large-scope effort to >> improve overall rendering. > > Eh? One of the problems with being OCD about my LiveCode consumption is that I can no longer recall where I hear things, whether it was in a newsletter article, a blog post, or the Global Jam chats Kevin and Ben hosted. The IDE rewrite is AFAIK very early-stage, a logical necessity from the Open Language initiative and the implications thereof related to extensibility. I imagine we'll be hearing more about it as it begins to move from sketchpad to code, but right now it's all about supporting OL so I don't believe there's much concrete that can be said about it until OL gets fleshed out more. The rendering optimization has been ongoing for many builds, begun with acceleratedRendering and tiling, and continued with the introduction of Skia as the 2D graphics subsystem. Because Skia is layer-based, the benefits of the tiling method are somewhat limited, so the team is exploring a more with-the-Skia-grain approach of focusing on buffered layers instead. I'm not familiar with the intricacies, but given that so much of LiveCode's logic is layer-based I have to imagine this will bode well as a more flexible approach over the long term. Much of the initial rendering optimization was focused on the needs of mobile platforms, but as Kevin reminds us most of the engine stuff for mobile tends to benefit all platforms. Desktop apps are increasingly using dynamic Metro-style layouts, and even now we can see significant improvement with things like moving multiple objects simultaneously (even on Linux, where rendering speeds used to be abysmal). I don't know the specific status of the layer-based optimization (maybe it's on those Global Jam chat videos), but I'm sure we'll be hearing more about it as it gets further along, either in the daily blog posts or the newsletter. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From bobsneidar at iotecdigital.com Thu Jun 5 11:34:36 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 5 Jun 2014 15:34:36 +0000 Subject: [ANN] tmControl2 First Release In-Reply-To: <538B68F7.6020404@hyperactivesw.com> References: <43AB1570-A593-494B-B860-CFEE2F0E934E@pandora.be> <538B68F7.6020404@hyperactivesw.com> Message-ID: <6262F698-A964-4F16-A3CB-B934E7DB9D7B@iotecdigital.com> I said he was a genius years ago. Nice to see you guys are catching up with me! ;-) Bob S On Jun 1, 2014, at 10:55 , J. Landman Gay > wrote: Oh man, this is marvelous. I'm not even working on mobile right now and I bought it anyway. The feature set is impressive, I can't imagine the amount of work that went into it. This is genius stuff. From dochawk at gmail.com Thu Jun 5 12:20:17 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 5 Jun 2014 09:20:17 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: On Wed, Jun 4, 2014 at 5:37 PM, Peter Haworth wrote: > Not seeing this with LC 5.5.4 and OSX 10.7.4 > This is 5.5.4 on 10.9.3 The original caseno field in the rawforms stack had its margin set to 8 so > yes, it ended up that way after being copied. I changed the margins to > 0,2,0,0, copied again and the margins of the copied caseno field stayed at > 0,2,0,0. > Err, it's not caseno itself, but the label field next to it that gets the problem (actually, both label fields) screenshot at http://dochawkbk.com/badscreen.png. The group is copied from the stack on the right to the stack on the left by the script in the button (and in the past, manually copying the same fields seemed not to trigter the same behavior). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From pete at lcsql.com Thu Jun 5 12:26:42 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 5 Jun 2014 09:26:42 -0700 Subject: Running an LC app from the command line In-Reply-To: <150350307073.20140604185510@ahsoftware.net> References: <150350307073.20140604185510@ahsoftware.net> Message-ID: Thanks everyone. SOunds like hiding and positioning off screen is the way to go, particularly since I need this to work on Windows as well as Mac and I think -ui is Mac only (and possibly Linux?) Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jun 4, 2014 at 6:55 PM, Mark Wieder wrote: > Pete- > > I do what Mike does as a safety measure. But I don't bother with the > -ui argument, I just hide the stack on preOpenstack, and it's always > worked fine for me. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From userev at canelasoftware.com Thu Jun 5 12:46:02 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Thu, 5 Jun 2014 09:46:02 -0700 Subject: Running an LC app from the command line In-Reply-To: References: <150350307073.20140604185510@ahsoftware.net> Message-ID: <0D154967-9B1A-448E-8D59-76294EFFEA90@canelasoftware.com> On Jun 5, 2014, at 9:26 AM, Peter Haworth wrote: > Thanks everyone. SOunds like hiding and positioning off screen is the way > to go, particularly since I need this to work on Windows as well as Mac and > I think -ui is Mac only (and possibly Linux?) You can always just set the vis of the stack to false and leave it where you like. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From ambassador at fourthworld.com Thu Jun 5 12:57:52 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 05 Jun 2014 09:57:52 -0700 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: <5390A190.50007@fourthworld.com> Peter Haworth wrote: > Thanks everyone. SOunds like hiding and positioning off screen is > the way to go, particularly since I need this to work on Windows > as well as Mac and I think -ui is Mac only (and possibly Linux?) -ui should work on all three. If anyone finds otherwise please file a bug report with a repeatable recipe. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From pete at lcsql.com Thu Jun 5 13:36:25 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 5 Jun 2014 10:36:25 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: On Thu, Jun 5, 2014 at 9:20 AM, Dr. Hawkins wrote: > Err, it's not caseno itself, but the label field next to it that gets the > problem (actually, both label fields) > OK, misunderstood. However, the label field also shows up with margins of 0,2,0,0 on my end. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dochawk at gmail.com Thu Jun 5 14:39:44 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Thu, 5 Jun 2014 11:39:44 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth wrote: > OK, misunderstood. However, the label field also shows up with margins of > 0,2,0,0 on my end. > So it does . . . but look at it--the text in the original fits in the field, while the text in the copy doesn't. There is *something* different about these two fields . . . and not everything does this on copy, but the fields that do are consistent about it. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dsc at swcp.com Thu Jun 5 15:11:05 2014 From: dsc at swcp.com (Dar Scott) Date: Thu, 5 Jun 2014 13:11:05 -0600 Subject: Running an LC app from the command line In-Reply-To: <5390A190.50007@fourthworld.com> References: <5390A190.50007@fourthworld.com> Message-ID: Is -ui an official feature? On Jun 5, 2014, at 10:57 AM, Richard Gaskin wrote: > Peter Haworth wrote: > > > Thanks everyone. SOunds like hiding and positioning off screen is > > the way to go, particularly since I need this to work on Windows > > as well as Mac and I think -ui is Mac only (and possibly Linux?) > > -ui should work on all three. If anyone finds otherwise please file a bug report with a repeatable recipe. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paulhibbert at mac.com Thu Jun 5 15:52:11 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Thu, 05 Jun 2014 12:52:11 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: It's not the margins that are changing on the copy, but the 'textHeight' property is, it changes from 12 to 14. Not sure why it should do that though. Paul On 2014-06-05, at 11:39 AM, Dr. Hawkins wrote: > On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth wrote: > >> OK, misunderstood. However, the label field also shows up with margins of >> 0,2,0,0 on my end. >> > > So it does . . . but look at it--the text in the original fits in the > field, while the text in the copy doesn't. > > There is *something* different about these two fields . . . and not > everything does this on copy, but the fields that do are consistent about > it. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 5 16:44:31 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 5 Jun 2014 20:44:31 +0000 (UTC) Subject: Running an LC app from the command line References: <5390A190.50007@fourthworld.com> Message-ID: Dar Scott writes: > > Is -ui an official feature? For some definitions of official. -- Mark Wieder ahsoftware at gmail.com From mfstuart at cox.net Thu Jun 5 16:46:24 2014 From: mfstuart at cox.net (mfstuart at cox.net) Date: Thu, 5 Jun 2014 16:46:24 -0400 Subject: Anybody using Genymotion virtual emulator with LC Message-ID: <20140605164624.MOQ8M.719750.imail@fed1rmwml302> Hi all, Is it possible to use this emulator with Livecode? And if so, how do you use it with LC? Thanx, Mark -- "Really, it's about doing something creative that I find stimulating." Wikipedia founder - Jimmy Wales From ambassador at fourthworld.com Thu Jun 5 17:02:26 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 05 Jun 2014 14:02:26 -0700 Subject: Running an LC app from the command line In-Reply-To: References: Message-ID: <5390DAE2.6020002@fourthworld.com> Dar Scott wrote: > Is -ui an official feature? Faceless command-line apps are an important and widely-used use-case in the LiveCode world, going back for decades. In fact, I much prefer using Linux standalones to LiveCode Server and I know others who do as well, but then there are also installers and other utilities that make the range of uses quite broad. While LC may excel at GUIs, there are so many useful things it can do from the command-line that I can't see it going away. On the contrary, there's been discussion over the least year about cleaning up some of the old CLI args it used to support so we can use those flags for our own purposes, so apparently the intention is not merely keep it, but make it ever better. The more I learn about bash, the more I'm re-thinking some of my own apps in terms of dual-mode support, where in addition to the GUI I also provide a CLI interface that allows the app to take on a role in integrated workflows.... -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From pete at lcsql.com Thu Jun 5 17:45:20 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 5 Jun 2014 14:45:20 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: Good catch. The textsize also changes from 9 to 11 (actually the effective textsize). I think I see why this is happening and Dar touched on it in an earlier post. The label field and its owning groups have a blank textsize in the rawforms stack but the rawforms stack has its textsize set to 9. The mcp stack on the other hand has an empty textsize so it defaults to 11which also causes the textheight to change. Set the text size of the mcp stack to 9 and all should work fine. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jun 5, 2014 at 12:52 PM, Paul Hibbert wrote: > It's not the margins that are changing on the copy, but the 'textHeight' > property is, it changes from 12 to 14. > > Not sure why it should do that though. > > Paul > > On 2014-06-05, at 11:39 AM, Dr. Hawkins wrote: > > > On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth wrote: > > > >> OK, misunderstood. However, the label field also shows up with margins > of > >> 0,2,0,0 on my end. > >> > > > > So it does . . . but look at it--the text in the original fits in the > > field, while the text in the copy doesn't. > > > > There is *something* different about these two fields . . . and not > > everything does this on copy, but the fields that do are consistent about > > it. > > > > > > -- > > Dr. Richard E. Hawkins, Esq. > > (702) 508-8462 > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 5 18:07:11 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 5 Jun 2014 22:07:11 +0000 (UTC) Subject: Running an LC app from the command line References: <5390A190.50007@fourthworld.com> Message-ID: Mark Wieder writes: > For some definitions of official. The current commandline arguments are "documented" here: http://quality.runrev.com/show_bug.cgi?id=1644 Be sure to check out comment #6. -- Mark Wieder ahsoftware at gmail.com From charles at buchwald.ca Thu Jun 5 19:17:53 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Thu, 5 Jun 2014 18:17:53 -0500 Subject: Anybody using Genymotion virtual emulator with LC In-Reply-To: <20140605164624.MOQ8M.719750.imail@fed1rmwml302> References: <20140605164624.MOQ8M.719750.imail@fed1rmwml302> Message-ID: <089C3135-828A-4F2E-B198-9F2EB1AB220E@buchwald.ca> It's not possible. I was trying last week, and I (eventually) figured out that it emulates x86 chips and not ARM chips, and LC only compiles for ARM. There are previous versions of Genymotion that included ARM libraries, but that has been discontinued in the latest 2.0.0 release. Check out the Samsung online emulator if you are looking for alternatives to the usual Android testing setup. Cheers, - Charles On 05 Jun 2014, at 3:46 PM, mfstuart at cox.net wrote: > Hi all, > Is it possible to use this emulator with Livecode? > And if so, how do you use it with LC? > > > Thanx, > Mark > > -- > "Really, it's about doing something creative that I find stimulating." > Wikipedia founder - Jimmy Wales > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From paulhibbert at mac.com Thu Jun 5 20:58:19 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Thu, 05 Jun 2014 17:58:19 -0700 Subject: field losing formatting on copying In-Reply-To: References: Message-ID: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> Just tried another test. I renamed the appropriate fields to begin with "Case" and tried this script in the "Do it" button? on mouseUp if exists(grp "J_1" of this cd) then delete grp "J_1" of this cd end if copy grp "J_1" of cd 1 of stack "rawForms" to this cd set the topleft of it to 1,1 setTextHeight end mouseUp command setTextHeight repeat with i = 1 to the number of fields on card "r_controls" if the short name of field i begins with "Case" then \ set the textHeight of fld i to 12 end repeat end setTextHeight ?And it seems to work OK just resetting the textHeight. I know this doesn't answer why the problem occurs, but it does workaround it. I tried setting the textHeight & textSize of the stack "mcp", card "r_controls", the templateField and the templateGroup, all had no effect on the copied group. I don't have LC5.5.4 installed, but I used LC5.5.5 (on Mac OS X 10.8.5), I expect it would be the same. Paul On 2014-06-05, at 2:45 PM, Peter Haworth wrote: > Good catch. The textsize also changes from 9 to 11 (actually the effective > textsize). > > I think I see why this is happening and Dar touched on it in an earlier > post. The label field and its owning groups have a blank textsize in the > rawforms stack but the rawforms stack has its textsize set to 9. The mcp > stack on the other hand has an empty textsize so it defaults to 11which > also causes the textheight to change. > > Set the text size of the mcp stack to 9 and all should work fine. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Thu, Jun 5, 2014 at 12:52 PM, Paul Hibbert wrote: > >> It's not the margins that are changing on the copy, but the 'textHeight' >> property is, it changes from 12 to 14. >> >> Not sure why it should do that though. >> >> Paul >> >> On 2014-06-05, at 11:39 AM, Dr. Hawkins wrote: >> >>> On Thu, Jun 5, 2014 at 10:36 AM, Peter Haworth wrote: >>> >>>> OK, misunderstood. However, the label field also shows up with margins >> of >>>> 0,2,0,0 on my end. >>>> >>> >>> So it does . . . but look at it--the text in the original fits in the >>> field, while the text in the copy doesn't. >>> >>> There is *something* different about these two fields . . . and not >>> everything does this on copy, but the fields that do are consistent about >>> it. >>> >>> >>> -- >>> Dr. Richard E. Hawkins, Esq. >>> (702) 508-8462 >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Thu Jun 5 23:06:17 2014 From: dsc at swcp.com (Dar Scott) Date: Thu, 5 Jun 2014 21:06:17 -0600 Subject: Running an LC app from the command line In-Reply-To: <5390DAE2.6020002@fourthworld.com> References: <5390DAE2.6020002@fourthworld.com> Message-ID: <63A84408-352C-4E31-BD4A-B560324FD5B4@swcp.com> Long ago I made some Windows services using Revolution and even some mail filter modules, all command-line. But, you know, some mornings i wake up and things have changed. On Jun 5, 2014, at 3:02 PM, Richard Gaskin wrote: > Dar Scott wrote: > > Is -ui an official feature? > > Faceless command-line apps are an important and widely-used use-case in the LiveCode world, going back for decades. > > In fact, I much prefer using Linux standalones to LiveCode Server and I know others who do as well, but then there are also installers and other utilities that make the range of uses quite broad. > > While LC may excel at GUIs, there are so many useful things it can do from the command-line that I can't see it going away. > > On the contrary, there's been discussion over the least year about cleaning up some of the old CLI args it used to support so we can use those flags for our own purposes, so apparently the intention is not merely keep it, but make it ever better. > > The more I learn about bash, the more I'm re-thinking some of my own apps in terms of dual-mode support, where in addition to the GUI I also provide a CLI interface that allows the app to take on a role in integrated workflows.... > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jhj at jhj.com Thu Jun 5 23:12:56 2014 From: jhj at jhj.com (Jerry Jensen) Date: Thu, 5 Jun 2014 20:12:56 -0700 Subject: Cosmic Trooth! (Was Running an LC app from the command line) In-Reply-To: <63A84408-352C-4E31-BD4A-B560324FD5B4@swcp.com> References: <5390DAE2.6020002@fourthworld.com> <63A84408-352C-4E31-BD4A-B560324FD5B4@swcp.com> Message-ID: On Jun 5, 2014, at 8:06 PM, Dar Scott wrote: > But, you know, some mornings i wake up and things have changed. Oh, how true! I will be repeating this. .Jerry From ludovic.thebault at laposte.net Thu Jun 5 23:44:10 2014 From: ludovic.thebault at laposte.net (=?utf-8?Q?Ludovic_Th=C3=A9bault?=) Date: Fri, 6 Jun 2014 05:44:10 +0200 Subject: Anybody using Genymotion virtual emulator with LC In-Reply-To: <089C3135-828A-4F2E-B198-9F2EB1AB220E@buchwald.ca> References: <20140605164624.MOQ8M.719750.imail@fed1rmwml302> <089C3135-828A-4F2E-B198-9F2EB1AB220E@buchwald.ca> Message-ID: <8D2DADBC-19B0-40D0-ABDD-7B977FA81721@laposte.net> Le 6 juin 2014 ? 01:17, Charles E Buchwald a ?crit : > > It's not possible. I was trying last week, and I (eventually) figured out that it emulates x86 chips and not ARM chips, and LC only compiles for ARM. There are previous versions of Genymotion that included ARM libraries, but that has been discontinued in the latest 2.0.0 release. > > Check out the Samsung online emulator if you are looking for alternatives to the usual Android testing setup. > > It?s work with Bluestacks (and Dropbox to add app). From simon at asato-media.com Fri Jun 6 00:31:38 2014 From: simon at asato-media.com (As_Simon) Date: Thu, 5 Jun 2014 21:31:38 -0700 (PDT) Subject: OT: Is there a kind of F5 on Mac? In-Reply-To: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> Message-ID: <1402029098596-4680273.post@n4.nabble.com> On OSX 10.9.3 I found that Ctrl+Alt+ right click on finder in the doc gives you the ability to relaunch finder. Now that I found out after playing with suggestions that Option+right click is supposed to work. You can also Force Quit Finder and relaunch. I think a long time ago Finder was thought of as never needing this "refresh" function but times change. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Is-there-a-kind-of-F5-on-Mac-tp4680237p4680273.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Fri Jun 6 07:38:13 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Fri, 6 Jun 2014 19:38:13 +0800 Subject: Memory and CPU Usage Script Message-ID: For the first time, on OS X, I ran out of memory. Whilst Activity Monitor is good, it doesn?t really give you a way to log memory usage and trace areas that may be causing concern. So I googled the problem and discovered a LOT of answers involving php,ruby,awk,grep,pipes and a bunch of other stuff that suggested I could roll my own with LC. So at the bottom you?ll find a script that will output* some nice tab formatted memory and CPU info: Physical Memory = 16 GB Free Active Inactive Spec. Wired Page In Page Out 2.16 GB 2.64 GB 0.79 GB 9.08 GB 1.32 GB 236138 0 Application Time % CPU % Mem Real Virtual Dock 0:17.13 0.0 1.7 0.27 GB 2.71 GB LiveCode661GM 105:56.16 15.7 1.4 0.22 GB 0.97 GB WebContent 1:05.35 0.0 1.1 0.17 GB 4.01 GB IconServicesAgent 0:04.12 0.0 1.0 0.16 GB 2.55 GB Dropbox 0:35.55 0.0 0.5 81.09 MB 0.98 GB BBEdit 101:41.12 0.0 0.4 66.02 MB 1.11 GB ManOpen 0:18.63 0.0 0.2 28.92 MB 2.49 GB RegExhibit 0:53.09 0.0 0.2 27.37 MB 0.73 GB BBEdit 0:00.09 0.0 0.0 1.73 MB 0.66 GB Currently you?ll note that my script is a switch structure with a single case for OS X. Win and Linux users may wish to add appropriate code to make this work for them. *The output above isn?t exactly what you?ll get from the script below. In my case, all my development tools live in a folder cryptically called ?Development?, so I have some extra code that filters the ps output to the top 5 most % memory + all the running development apps. Any duplicates are removed. It will be noted that there are two records for BBEdit, but they are different, one is the program itself and the other is it?s crash reporter. For the curious: BBEdit is what I feed my log files into; ManOpen is a man page reader where I found the options for id and ps; RegExhibit is what I use to build and test regex entries for matchText etc. Known errors: if an app's Time exceeds 999:99.9 mins it will not be Listed !! be careful of line breaks, there's a very long regex entry for matchText() !! SCRIPTSCRIPTSCRIPTSCRIPT switch (the platform) case ("MacOS") --get the system physical memory put shell("sysctl -n hw.memsize") into tData put round(tData/1024/1024/1024,1) into tPhyMem --memory titles put "Physical Memory = " & tPhyMem & " GB" & cr & " Free " & tab & " Active " & tab & "Inactive" & tab & " Spec. " & tab & \ " Wired " & tab & " Page In" & tab & "Page Out" & cr into tOutput --get the virtual memory put shell("vm_stat") into tData put (word -2 of line 1 of tData)/1024/1024 into tPage put char 1 to -2 of word -1 of line 2 of tData * tPage into tFree put char 1 to -2 of word -1 of line 3 of tData * tPage into tActive put char 1 to -2 of word -1 of line 4 of tData * tPage into tInactive put char 1 to -2 of word -1 of line 5 of tData * tPage into tSpec put char 1 to -2 of word -1 of line 7 of tData * tPage into tWire put char 1 to -2 of word -1 of line 20 of tData into tPageIn put char 1 to -2 of word -1 of line 21 of tData into tPageOut if (tFree > 99) then --we want the number in GB put format("%5.2f",tFree/1024) & " GB" & tab after tOutput else --we want the numbers in MB put format("%5.2f",tFree) & " MB" & tab after tOutput end if if (tActive > 99) then --we want the number in GB put format("%5.2f",tActive/1024) & " GB" & tab after tOutput else --we want the numbers in MB put round(tActive,2) & " MB" & tab after tOutput end if if (tInactive > 99) then --we want the number in GB put format("%5.2f",tInactive/1024) & " GB" & tab after tOutput else --we want the numbers in MB put format("%5.2f",tInactive) & " MB" & tab after tOutput end if if (tSpec > 99) then --we want the number in GB put format("%5.2f",tSpec/1024) & " GB" & tab after tOutput else --we want the numbers in MB put format("%5.2f",tSpec) & " MB" & tab after tOutput end if if (tWire > 99) then --we want the number in GB put format("%5.2f",tWire/1024) & " GB" & tab after tOutput else --we want the numbers in MB put format("%5.2f",tWire) & " MB" & tab after tOutput end if put format("%8s",tPageIn) & tab & format("%8s",tPageOut) & cr after tOutput --virtual memory titles put " Application " & tab & " Time " & tab & "% CPU" & tab & "% Mem" & tab & " Real " & tab & "Virtual" & cr after tOutput --gets the current logged in users UID (normally 501) put shell("id -u") into tData --use the UID to list only their processes in order of memory used put shell("ps -mvU " & tData) into tData --we only want a copy of the top 5 put line 2 to 6 of tData into tData --go through each line and extract the info you are interested in repeat for each line tLine in tData --some lines returned include a process ?com.apple? which doesn't have a .app so to make it simpler for the --regex I add .app at the end of the line if (tLine contains "com.") then put tLine & ".app" into tLine end if --this matchText will extract the time in use, virtual memory, real memory, % CPU, % memory,and Name if (matchText(tLine, \ "\s+\d{3,4}\s\w{1,2}\s+(\d{1,3}:\d{2}\.\d{2})\s+\d+\s+\d+\s+\d+\s+(\d*)\s+(\d*)\s+\W\s+\d+\s+(\d{1,3}\.\d)\s+(\d{1,3}\.\d)\s+.*[.|/](\w*).app", \ tTime, tVirtMem, tRealMem, tCPU, tMem, tName) = true) then put format("%20s",tName) & tab & format("%9s",tTime) & tab & format("%5s",tCPU) & tab & \ format("%5s",tMem) & tab after tOutput if (tRealMem/1024 > 99) then --we want the number is GB put format("%5.2f",tRealMem/1024/1024) & " GB" & tab after tOutput else --we want the numbers in MB put format("%5.2f",tRealMem/1024) & " MB" & tab after tOutput end if if (tVirtMem/1024 > 99) then --we want the number is GB put format("%5.2f",tVirtMem/1024/1024) & " GB" & cr after tOutput else --we want the numbers in MB put format("%5.2f",tVirtMem/1024) & " MB" & cr after tOutput end if end if --matchText true end repeat break ?case() ?Add Win/Linux here ?break end switch put tOutput into msg --tOutput now contains nicely formatted CPU and Memory data that will display correctly in any --app or field that uses mono spaced fonts. SCRIPTSCRIPTSCRIPTSCRIPT From toolbook at kestner.de Fri Jun 6 08:46:51 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Fri, 6 Jun 2014 14:46:51 +0200 Subject: AW: OT: Is there a kind of F5 on Mac? In-Reply-To: <1402029098596-4680273.post@n4.nabble.com> References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> Message-ID: <006501cf8185$64657d40$2d3077c0$@de> Hi Simon, thanks for the trick Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von As_Simon > Gesendet: Freitag, 6. Juni 2014 06:32 > An: use-revolution at lists.runrev.com > Betreff: Re: OT: Is there a kind of F5 on Mac? > > On OSX 10.9.3 I found that > Ctrl+Alt+ right click on finder in the doc gives you the ability to > relaunch finder. Now that I found out after playing with suggestions that > Option+right click is supposed to work. > You can also Force Quit Finder and relaunch. > > I think a long time ago Finder was thought of as never needing this "refresh" > function but times change. > > Simon > > > > -- > View this message in context: http://runtime- > revolution.278305.n4.nabble.com/OT-Is-there-a-kind-of-F5-on-Mac- > tp4680237p4680273.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 prothero at earthednet.org Fri Jun 6 10:00:37 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Fri, 6 Jun 2014 07:00:37 -0700 Subject: Memory and CPU Usage Script In-Reply-To: References: Message-ID: Kay, Thanks for that. It may come in handy some time. Bill William Prothero http://es.earthednet.org > On Jun 6, 2014, at 4:38 AM, Kay C Lan wrote: > > For the first time, on OS X, I ran out of memory. Whilst Activity > Monitor is good, it doesn?t really give you a way to log memory usage > and trace areas that may be causing concern. So I googled the problem > and discovered a LOT of answers involving php,ruby,awk,grep,pipes and > a bunch of other stuff that suggested I could roll my own with LC. So > at the bottom you?ll find a script that will output* some nice tab > formatted memory and CPU info: From coiin at verizon.net Fri Jun 6 10:06:21 2014 From: coiin at verizon.net (Colin Holgate) Date: Fri, 06 Jun 2014 10:06:21 -0400 Subject: OT: Is there a kind of F5 on Mac? In-Reply-To: <1402029098596-4680273.post@n4.nabble.com> References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> Message-ID: <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> That?s different. Relaunching Finder would be the same as relaunching the Windows explorer window. What?s being asked is how to you get a Finder window to reconsider the list of files it?s showing. That should never be needed, but sometimes it does seem slow to react to changes of files on a server. I just found this page: http://hints.macworld.com/article.php?story=2009091413423819 (you may have to answer a survey question to read the whole page) On that page is shown this AppleScript, and a link to an app that uses that script: tell application "Finder" tell front window update every item with necessity end tell end tell I didn?t test it as a script, but I have the app installed. Can?t be sure if it?s doing anything. Here?s a discussion page, that includes a link to download the app: http://www.macupdate.com/app/mac/24714/refresh-finder One thing to note, you install the app by dragging it first to Applications, then command-dragging it to the Finder window tool bar area. From pete at lcsql.com Fri Jun 6 11:38:15 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 6 Jun 2014 08:38:15 -0700 Subject: field losing formatting on copying In-Reply-To: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> References: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> Message-ID: On Thu, Jun 5, 2014 at 5:58 PM, Paul Hibbert wrote: > I know this doesn't answer why the problem occurs, but it does workaround > it. I tried setting the textHeight & textSize of the stack "mcp", card > "r_controls", the templateField and the templateGroup, all had no effect on > the copied group. > > I don't have LC5.5.4 installed, but I used LC5.5.5 (on Mac OS X 10.8.5), I > expect it would be the same. > Setting the textsize of the mcp stack to 9 fixes the problem for me. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From mgruenthal at mac.com Fri Jun 6 12:34:55 2014 From: mgruenthal at mac.com (Michael Gruenthal) Date: Fri, 06 Jun 2014 12:34:55 -0400 Subject: OT: Is there a kind of F5 on Mac? In-Reply-To: <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> Message-ID: Shouldn?t the keyboard sequence command-UpArrow, command-[ do it? On 6/6/14, 10:06 AM, "Colin Holgate" wrote: >That?s different. Relaunching Finder would be the same as relaunching the >Windows explorer window. What?s being asked is how to you get a Finder >window to reconsider the list of files it?s showing. That should never be >needed, but sometimes it does seem slow to react to changes of files on a >server. > >I just found this page: > >http://hints.macworld.com/article.php?story=2009091413423819 > >(you may have to answer a survey question to read the whole page) > >On that page is shown this AppleScript, and a link to an app that uses >that script: > >tell application "Finder" > tell front window > update every item with necessity > end tell >end tell > >I didn?t test it as a script, but I have the app installed. Can?t be sure >if it?s doing anything. Here?s a discussion page, that includes a link to >download the app: > >http://www.macupdate.com/app/mac/24714/refresh-finder > >One thing to note, you install the app by dragging it first to >Applications, then command-dragging it to the Finder window tool bar area. > > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From ben at runrev.com Fri Jun 6 12:35:44 2014 From: ben at runrev.com (Benjamin Beaumont) Date: Fri, 6 Jun 2014 17:35:44 +0100 Subject: RELEASE LiveCode 6.6.2 Message-ID: Dear LiveCode users. LiveCode 6.6.2 is now available. This is a stable release. This is a maintenance release which contains fixes to the 6.6.x series only. *Release Contents* fixes: - 12443 - import snapshot crashes LiveCode - 12434 - iOS device builds rejected from app store due to XCode version in plist - 12418 - Mail attachment from app file fails - 12414 - Setting usePixelScaling causes infinite window reopening loop on Mac. - 12408 - Encryption commands do not work for iOS device builds - 12382 - Normal resizeQuality is slow - 12365 - After "putting" return into a Field, a visible residue is left from the cursor - 12350 - The fontStyles is incorrect on iOS - 12341 - Fix vGrid rendering for non-fixed-width table field mode. - 12319 - Drag and drop going wrong when Display switched to 150% - 12294 - Crash and flaky behavior at certain points. - 12286 - Maximizing a window where only the title-bar is on-screen causes a crash on Mac. - 12265 - Rounded rects are drawn incorrectly when using the image editing tools with a linesize 1 - 12239 - Magnification window shows corrupted image. - 12237 - Attempt to attach to the launching console on Windows (if any) in standalones. - 12236 - Dropdown menus are clipped on Windows when text scale > 100% - 12235 - Tooltips clipped on Windows when text scaling > 100% - 12227 - When Windows screen display is set to 125% popups sometimes break - 12223 - Windows backdrop doesn't cover the full desktop area when displayed on a high-dpi screen. - 12210 - revBrowserSnapshot not working on Windows with IE9+ - 12206 - Buttons of menu type can't be inspected if first created object - 12200 - Some filesystem entries in the root of a volume on Mac report as files when they are really folders. - 12185 - Standalone engine crashes when -ui specified on Linux. - 12183 - Clicking in the scrollbar well doesn't work if the click is too short. - 12182 - 'the pageRanges' doesn't work on fields with more than 64K chars. - 12175 - Setting the usePixelScaling property doesn't update all windows on Mac. - 12173 - Styling does not work for certain iOS fonts - 12170 - Non-existant command line parameter variables ($) behave strangely with split. - 12146 - setting tabstops to 2 equal numbers and then turning vGrid on hangs LC - 12125 - put the executionContexts crashes LiveCode server - 12107 - exit causes liveCode server to crash - 12105 - LiveCode server crashed if you call paramCount() - 12101 - Graphics missing from imported Hypercard stack - 12099 - On awakening Android device from sleep, part of app is blacked out - 12088 - The script editor doesn't scroll horizontally as text is entered - 12058 - The backdrop on Windows is always black - 12044 - Opaque groups do not completely draw their backgrounds when acceleratedRendering is enabled - 12037 - Slow-down in setting contents of fields on Windows since 6.1.3. - 12027 - On Retina Mac\'s scrollbars with small thumbs render smaller than they should. - 12020 - Caret is too thin on Retina displays. - 12010 - Windows engine hangs after multiple stack redraws. - 12008 - import screen snapshot on iOS creates image of incorrect size. - 12006 - HTTP (HTML) URLs encoded with anything other than a native character set are returned incorrectly - 11975 - "import snapshot from rect ..." only imports part of the screen on Windows - 11964 - Spacing is incorrect for Windows scaled text - 11933 - effective textColor returns empty value for styled text - 11920 - Memory leak in bitmap effects with spread of non-zero radius (e.g. spread 100%, radius 1; spread 50%, radius 2). - 11904 - Italic characters with underhand are clipped on windows - 11895 - mobileComposeMail missing attachment in Android (Android Mail) - 11884 - Stoked graphics clipped when printed - 11860 - uuid and randomBytes functions don't work on iOS when Encryption support is not included - 11748 - Crash when putting an empty string into an XML node using PutIntoXMLNode. - 11708 - Android apps only partially drawn after rotating device during lock screen - 11690 - Once large scripts start scrolling the script editor, it won't stop for a long time on Windows. - 11689 - ResizeControl is not sent when resizing images - 11662 - Round buttons are drawn incorrectly - 11603 - Backdrop not displayed on Linux - 11370 - Anti-aliasing inconsistent for 1 pixel lines and curves - 11072 - magnify and edit image crashes LC - 8041 - Only allow interaction with scrollbars on groups in browse mode. - 6400 - On Mac, a tab button with a single item does not draw correctly. - 2627 - The machine() function returns "unknown" under Mac OSX *Getting this release* To upgrade to this release please select "check for updates" from the help menu in LiveCode or download the installers directly at: http://downloads.livecode.com/livecode/ *Known issues* There is still a performance drop in the 6.6.x series compared to the 6.5.x series due to the new support for high resolution displays. Work is currently ongoing to resolve this in the 6.7 release. *LiveCode 6.6.3* We will shortly be releasing an RC1 of LiveCode 6.6.3 which contains 12 fixes that were deemed not suitable for the latter stages of the 6.6.2 cycle. Warm regards, The LiveCode team. From paulhibbert at mac.com Fri Jun 6 13:04:36 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Fri, 06 Jun 2014 10:04:36 -0700 Subject: field losing formatting on copying In-Reply-To: References: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> Message-ID: Just tried that on a fresh download and you are right, although doing that also changed the appearance of the "Do it" button, so on a fresh copy again, I just [ set the textSize of group "J_1" of card 1 of stack "rawForms" to 9 ] and that works, now I see where the problem lies? ?In the stack "rawForms", the text "size" is applied directly to the raw text, so the group and it's contents are using the "effective textSize" as (Pete) pointed out. The Stack "mcp" doesn't have a textSize set, so because the copied group and it's contents are using the effective textSize they revert to the settings of the stack they are being copied into, in this case there are no settings so it just reverts to the LC defaults. The difference appears after the copy because the textHeight is now the default 14. The textHeight being relative to the textSize applied to the field and not to it's raw contents. In this case the textHeight is being "lost" with the copy process, it is set to 12 on the original field, but because there is no textSize set for the field it doesn't stick. Changing the original fields by removing the size applied to the raw text (i.e. use owners size) and applying the correct textSize to the fields also resolves the problem. Paul On 2014-06-06, at 8:38 AM, Peter Haworth wrote: > On Thu, Jun 5, 2014 at 5:58 PM, Paul Hibbert wrote: > >> I know this doesn't answer why the problem occurs, but it does workaround >> it. I tried setting the textHeight & textSize of the stack "mcp", card >> "r_controls", the templateField and the templateGroup, all had no effect on >> the copied group. >> >> I don't have LC5.5.4 installed, but I used LC5.5.5 (on Mac OS X 10.8.5), I >> expect it would be the same. >> > > Setting the textsize of the mcp stack to 9 fixes the problem for me. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Fri Jun 6 13:23:26 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 6 Jun 2014 10:23:26 -0700 Subject: OT: Is there a kind of F5 on Mac? In-Reply-To: References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> Message-ID: Take a look at this link: http://hints.macworld.com/article.php?story=2009091413423819 If you create an Automator Service as shown in this article, you can then assign it to F5. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jun 6, 2014 at 9:34 AM, Michael Gruenthal wrote: > Shouldn?t the keyboard sequence command-UpArrow, command-[ do it? > > On 6/6/14, 10:06 AM, "Colin Holgate" wrote: > > >That?s different. Relaunching Finder would be the same as relaunching the > >Windows explorer window. What?s being asked is how to you get a Finder > >window to reconsider the list of files it?s showing. That should never be > >needed, but sometimes it does seem slow to react to changes of files on a > >server. > > > >I just found this page: > > > >http://hints.macworld.com/article.php?story=2009091413423819 > > > >(you may have to answer a survey question to read the whole page) > > > >On that page is shown this AppleScript, and a link to an app that uses > >that script: > > > >tell application "Finder" > > tell front window > > update every item with necessity > > end tell > >end tell > > > >I didn?t test it as a script, but I have the app installed. Can?t be sure > >if it?s doing anything. Here?s a discussion page, that includes a link to > >download the app: > > > >http://www.macupdate.com/app/mac/24714/refresh-finder > > > >One thing to note, you install the app by dragging it first to > >Applications, then command-dragging it to the Finder window tool bar area. > > > > > > > >_______________________________________________ > >use-livecode mailing list > >use-livecode at lists.runrev.com > >Please visit this url to subscribe, unsubscribe and manage your > >subscription preferences: > >http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From coiin at verizon.net Fri Jun 6 13:59:27 2014 From: coiin at verizon.net (Colin Holgate) Date: Fri, 06 Jun 2014 13:59:27 -0400 Subject: OT: Is there a kind of F5 on Mac? In-Reply-To: References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> Message-ID: <284A764E-E3D1-49C4-84E6-5FDF5C5EB174@verizon.net> I think that?s exactly what the app is that I linked to earlier. On Jun 6, 2014, at 1:23 PM, Peter Haworth wrote: > Take a look at this link: > > http://hints.macworld.com/article.php?story=2009091413423819 > > If you create an Automator Service as shown in this article, you can then > assign it to F5. From mwieder at ahsoftware.net Fri Jun 6 14:21:37 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 18:21:37 +0000 (UTC) Subject: Memory and CPU Usage Script References: Message-ID: Kay C Lan writes: at the bottom you?ll find a script that will output* some nice tab > formatted memory and CPU info: Nice, but top didn't give you what you were looking for? -- Mark Wieder ahsoftware at gmail.com From dochawk at gmail.com Fri Jun 6 14:51:04 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 6 Jun 2014 11:51:04 -0700 Subject: field losing formatting on copying In-Reply-To: References: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> Message-ID: On Fri, Jun 6, 2014 at 10:04 AM, Paul Hibbert wrote: > Changing the original fields by removing the size applied to the raw text > (i.e. use owners size) and applying the correct textSize to the fields also > resolves the problem. Ooohhh! I'll try that on offending fields tomorrow. The reason it's applied to the text is that these were done by cut & paste from the official pdfs, to retain font selection, etc. so when looping through the fields, if the short name of fld i = "Label Field" then set the textStyle of fld i to textStyle of the text of fld i set the textStyle of the text fld i to empty end if ??? Setting the attributes of the card or stack won't work, as there will be multiple sizes & typefaces on a given piece of output. But anyway, this still leaves the issue in the engine that when a field copies, the attributes of its contents are not . . . and this is in prettymuch every version of 5.5.x and 6.x. (The most recent I have before that are HyperCard 2.0 and SuperCard 1.5, so . . . :) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jbv at souslelogo.com Fri Jun 6 15:52:23 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Fri, 6 Jun 2014 22:52:23 +0300 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: References: Message-ID: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> Hi list, Does anyone know if there is a limit in the length of the sql query when using revDataFromQuery ? According to what I found on the web, there doesn't seem to be any problem on mySQL side (default value is apparently 1 Mb), but I was more concerned by a possible buffer between LC and mySQL where the query could be truncated... Furthermore, I am fully aware that very long queries are hard to maintain and might lead to slow execution... What I have in mind in some rather simpler stuff like : SELECT name FROM myDB WHERE name != 'John' AND name != 'Ted'... where the list of names can be quite long... Thanks, jbv From pmbrig at gmail.com Fri Jun 6 16:48:42 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 6 Jun 2014 16:48:42 -0400 Subject: Running an LC app from the command line In-Reply-To: References: <5390A190.50007@fourthworld.com> Message-ID: <40050692-17CB-4216-8A25-B9C10005DB0B@gmail.com> On Jun 5, 2014, at 4:44 PM, Mark Wieder wrote: > Dar Scott writes: > >> >> Is -ui an official feature? > > For some definitions of official. Sure, after all, 2 + 2 = 5 for sufficiently large values of 2 -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From paulhibbert at mac.com Fri Jun 6 17:26:14 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Fri, 06 Jun 2014 14:26:14 -0700 Subject: field losing formatting on copying In-Reply-To: References: <5C4DED77-32EA-4DB7-8DE5-E7A04EC29A2A@mac.com> Message-ID: The textStyle isn't a problem, it's the size that's causing the problem, so you could try this it works in the test stack? (Do it Button script) on mouseUp if exists(grp "J_1" of this cd) then delete grp "J_1" of this cd end if copy grp "J_1" of cd 1 of stack "rawForms" to this cd set the topleft of it to 1,1 resetTextHeight(J_1) end mouseUp command resetTextHeight pGrp repeat with i = 1 to the number of fields in grp pGrp if the short name of fld i = "Label Field" then set the textSize of fld i to textSize of word 1 of fld i set the textSize of word 1 to -1 of fld i to empty end if end repeat end resetTextHeight Paul On 2014-06-06, at 11:51 AM, Dr. Hawkins wrote: > On Fri, Jun 6, 2014 at 10:04 AM, Paul Hibbert wrote: > >> Changing the original fields by removing the size applied to the raw text >> (i.e. use owners size) and applying the correct textSize to the fields also >> resolves the problem. > > > Ooohhh! > > I'll try that on offending fields tomorrow. > > The reason it's applied to the text is that these were done by cut & paste > from the official pdfs, to retain font selection, etc. > > so when looping through the fields, > > if the short name of fld i = "Label Field" then > set the textStyle of fld i to textStyle of the text of fld i > set the textStyle of the text fld i to empty > end if > > > ??? > > Setting the attributes of the card or stack won't work, as there will be > multiple sizes & typefaces on a given piece of output. > > But anyway, this still leaves the issue in the engine that when a field > copies, the attributes of its contents are not . . . and this is in > prettymuch every version of 5.5.x and 6.x. (The most recent I have before > that are HyperCard 2.0 and SuperCard 1.5, so . . . :) > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jun 6 17:26:42 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Jun 2014 21:26:42 +0000 Subject: LiveCode 7.0.0-DP-5 Linux In-Reply-To: <538628D3.2030200@gmail.com> References: <53858672.1020205@gmail.com> <5385EC4C.4070400@fourthworld.com> <80A75D31-C94E-49B2-8FCC-14FA61EC6025@runrev.com> <538628D3.2030200@gmail.com> Message-ID: Frankly, in all the time I?ve been installing software, I have not encountered a need for doing a user only install. Bob S On May 28, 2014, at 11:20 , Richmond > wrote: On 28/05/14 18:22, Fraser Gordon wrote: On 28 May 2014, at 15:01, Richard Gaskin > wrote: The "You Only" requirement when installing under a non-admin account seems an unnecessary drag. When I install any .deb file I'm prompted to enter an admin password, but the LC installer only prompts for the current account and requires that the account be on the sudoers list. Fraser, can this be changed? All LiveCode does during the install is to re-launch itself using gksu: gksu --preserve-env /path/to/installer.x86 $MAGIC_INSTALLER_OPTIONS The installer relies on the gksu programme to do the authentication and authorisation magic; it can't really influence how it does that job. Normally, gksu follows whatever rules the /etc/sudoers file specifies. One problem is that some versions of Ubuntu and other distros no longer include gksu by default. The Ubuntu recommendation (somewhat strangely) is to get people to use "sudo" on the command line instead; hardly the most user-friendly way to run the installer. An alternative is to use pkexec, which should provide the same features as gksu, but (at least last time I tried) wasn't a drop-in replacement so things stopped working. Why does everyone make it so difficult to get admin privileges? ;) Regards, Fraser Further "entertainment": I successfully installed the 7.0.0 DP 5 'second attempt' with the "All Users" option. When I launched it [Livecode 7.0.0 dp 5] it offered me the chance to UPGRADE to version 6.7.0 dp 4. Lovely :) 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 bobsneidar at iotecdigital.com Fri Jun 6 17:32:23 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 6 Jun 2014 21:32:23 +0000 Subject: Quitting with the close box on Mac In-Reply-To: References: <538509B6.20700@hyperactivesw.com> <1C8F30F3-DA5C-4A01-91AE-BD63D213649F@gmail.com> <56F86213-744D-4CD5-9D34-E9C5A5ED9B43@semperuna.com> Message-ID: I agree Stephen. Sometimes software companies make changes because they, ?have to do something!? I don?t think that is a good reason for changing anything. Look at Microsoft! Every three years on EVERY SOFTWARE PRODUCT THEY SELL, they HAVE to produce a major upgrade, or risk pissing off millions of people who bought Software Assurance contracts. But what if the last version was as good as it ever was or could ever be? Why, then you are going to get a downgrade. Period. I liked Office XP better than anything they have since produced. Why did we need ribbons again? And where in the HELL is my damned page setup??? Bob S On May 28, 2014, at 24:43 , stephen barncard > wrote: unnecessary annoyance. But I have to admit, that after watching new users play with these features, they ARE easier to learn - all the confusion about when to use ?Save/Save as?? is gone, and they find using Duplicate and Revert quite intuitive, requiring a lot less explanation. Sorry, I don't buy that. The changes just require more stupid clicking than needed to do what was easy before. I can take care of my own file management, thank you, and I hate this intrusion into my workflow and an OS that anticipates how I work. This dumbing down crap should be optional, not forced on us. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From dsc at swcp.com Fri Jun 6 17:35:27 2014 From: dsc at swcp.com (Dar Scott) Date: Fri, 6 Jun 2014 15:35:27 -0600 Subject: LiveCode 7.0.0-DP-5 Linux In-Reply-To: References: <53858672.1020205@gmail.com> <5385EC4C.4070400@fourthworld.com> <80A75D31-C94E-49B2-8FCC-14FA61EC6025@runrev.com> <538628D3.2030200@gmail.com> Message-ID: <68E9B7CD-E487-4086-9B62-9768F7C3F0F4@swcp.com> Do you mean ?you only?? This is handy for per-person license compliance. Dar Scott On Jun 6, 2014, at 3:26 PM, Bob Sneidar wrote: > Frankly, in all the time I?ve been installing software, I have not encountered a need for doing a user only install. > > Bob S > > > On May 28, 2014, at 11:20 , Richmond > wrote: > > On 28/05/14 18:22, Fraser Gordon wrote: > On 28 May 2014, at 15:01, Richard Gaskin > wrote: > The "You Only" requirement when installing under a non-admin account seems an unnecessary drag. When I install any .deb file I'm prompted to enter an admin password, but the LC installer only prompts for the current account and requires that the account be on the sudoers list. > > Fraser, can this be changed? > All LiveCode does during the install is to re-launch itself using gksu: > > gksu --preserve-env /path/to/installer.x86 $MAGIC_INSTALLER_OPTIONS > > The installer relies on the gksu programme to do the authentication and authorisation magic; it can't really influence how it does that job. Normally, gksu follows whatever rules the /etc/sudoers file specifies. > > One problem is that some versions of Ubuntu and other distros no longer include gksu by default. The Ubuntu recommendation (somewhat strangely) is to get people to use "sudo" on the command line instead; hardly the most user-friendly way to run the installer. An alternative is to use pkexec, which should provide the same features as gksu, but (at least last time I tried) wasn't a drop-in replacement so things stopped working. > > Why does everyone make it so difficult to get admin privileges? ;) > > Regards, > Fraser > > > Further "entertainment": > > I successfully installed the 7.0.0 DP 5 'second attempt' with the "All Users" option. > > When I launched it [Livecode 7.0.0 dp 5] it offered me the chance to UPGRADE > to version 6.7.0 dp 4. > > Lovely :) > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at lcsql.com Fri Jun 6 17:39:21 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 6 Jun 2014 14:39:21 -0700 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> Message-ID: I haven't come across a limit and I've certainly created some very large SELECT results but I guess there must be one at some point. If you run into one, you can probably get round it by using revQueryDatabase to create a cursor although that would probably mean rewriting a lot of your code. One other unrelated suggestion. I don't know if it's any more/less efficient but you might try NOT IN ('John','Ted",...) in your SELECT statement Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jun 6, 2014 at 12:52 PM, wrote: > Hi list, > > Does anyone know if there is a limit in the length of the sql query > when using revDataFromQuery ? > According to what I found on the web, there doesn't seem to be > any problem on mySQL side (default value is apparently 1 Mb), > but I was more concerned by a possible buffer between LC and > mySQL where the query could be truncated... > > Furthermore, I am fully aware that very long queries are hard > to maintain and might lead to slow execution... > What I have in mind in some rather simpler stuff like : > SELECT name FROM myDB WHERE name != 'John' AND name != 'Ted'... > where the list of names can be quite long... > > Thanks, > jbv > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jun 6 17:46:57 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jun 2014 14:46:57 -0700 Subject: Quitting with the close box on Mac In-Reply-To: References: Message-ID: <539236D1.3050709@fourthworld.com> Bob Sneidar wrote: > Why did we need ribbons again? I first learned of the Ribbon through a post Dan Shafer made here on this list back in 2005: I might have been more skeptical, but citing Jakob Nielsen made it interesting for me, so I read Dan's post, then Jakob's article, then subscribed to the RSS feed for the MS Office design blog. Learned a lot from all that. One of the things I've come to respect most about MS' design team is their very disciplined data-driven approach. Sure, we rarely see their best work because between the usability lab and the product box marketers step in and muck it up. But the core design team does some good work, at times very good IMO. Long after it shipped one of the Ribbon team leaders, Jensen Harris, gave this talk at a UX conference - long, but IMO well worth the time: UX Week 2008: Jensen Harris, "The Story of the Ribbon" -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From jbv at souslelogo.com Fri Jun 6 18:06:56 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 7 Jun 2014 01:06:56 +0300 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> Message-ID: <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> Thanks fr the reply. Actually I'm pretty confident about the results of the query, as I have created very large results myself. My concern was more with the query itself... jbv > I haven't come across a limit and I've certainly created some very large > SELECT results but I guess there must be one at some point. > If you run into one, you can probably get round it by using > revQueryDatabase to create a cursor although that would probably mean > rewriting a lot of your code. > > One other unrelated suggestion. I don't know if it's any more/less > efficient but you might try NOT IN ('John','Ted",...) in your SELECT > statement > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Fri, Jun 6, 2014 at 12:52 PM, wrote: > >> Hi list, >> >> Does anyone know if there is a limit in the length of the sql query >> when using revDataFromQuery ? >> According to what I found on the web, there doesn't seem to be >> any problem on mySQL side (default value is apparently 1 Mb), >> but I was more concerned by a possible buffer between LC and >> mySQL where the query could be truncated... >> >> Furthermore, I am fully aware that very long queries are hard >> to maintain and might lead to slow execution... >> What I have in mind in some rather simpler stuff like : >> SELECT name FROM myDB WHERE name != 'John' AND name != 'Ted'... >> where the list of names can be quite long... >> >> Thanks, >> jbv >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Fri Jun 6 19:35:11 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 6 Jun 2014 16:35:11 -0700 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> Message-ID: Ah OK, sorry should have read more closely. Don't know the answer to that one but if there is a limit the NOT IN thing I suggested would cut down on the length of the SELECT statement since there are no "AND" operators in it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jun 6, 2014 at 3:06 PM, wrote: > Thanks fr the reply. > Actually I'm pretty confident about the results of the query, as I have > created very large results myself. > My concern was more with the query itself... > > jbv > > > I haven't come across a limit and I've certainly created some very large > > SELECT results but I guess there must be one at some point. > > If you run into one, you can probably get round it by using > > revQueryDatabase to create a cursor although that would probably mean > > rewriting a lot of your code. > > > > One other unrelated suggestion. I don't know if it's any more/less > > efficient but you might try NOT IN ('John','Ted",...) in your SELECT > > statement > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > > > > > On Fri, Jun 6, 2014 at 12:52 PM, wrote: > > > >> Hi list, > >> > >> Does anyone know if there is a limit in the length of the sql query > >> when using revDataFromQuery ? > >> According to what I found on the web, there doesn't seem to be > >> any problem on mySQL side (default value is apparently 1 Mb), > >> but I was more concerned by a possible buffer between LC and > >> mySQL where the query could be truncated... > >> > >> Furthermore, I am fully aware that very long queries are hard > >> to maintain and might lead to slow execution... > >> What I have in mind in some rather simpler stuff like : > >> SELECT name FROM myDB WHERE name != 'John' AND name != 'Ted'... > >> where the list of names can be quite long... > >> > >> Thanks, > >> jbv > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From lan.kc.macmail at gmail.com Fri Jun 6 20:19:10 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 7 Jun 2014 08:19:10 +0800 Subject: Memory and CPU Usage Script In-Reply-To: References: Message-ID: On Sat, Jun 7, 2014 at 2:21 AM, Mark Wieder wrote: > > Nice, but top didn't give you what you were looking for? I noticed in my search that people reported top as being quite CPU intensive and in my own tests it went to No2, just below LC when I was running my stacks; so a bit chicken and egg, I wanted to know what was using my memory and CPU and using top was always going to place itself in the list. This is understandable as top is active whilst the id, ps, and vm_stat are all static, but I notice that even Activity Monitor with all it's bells and whistles uses significantly less CPU than top. Plus, it was more of an exercise to see if I could reinvent the wheel and build something similar in LC that could be customised to report exactly what I was interested in, when I was interested in it, no more, no less. Hopefully it will provide a stepping off point for others to adjust the output to exactly meet their needs. From ambassador at fourthworld.com Fri Jun 6 20:33:41 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jun 2014 17:33:41 -0700 Subject: Memory and CPU Usage Script In-Reply-To: References: Message-ID: <53925DE5.4000501@fourthworld.com> Kay C Lan wrote: > I wanted to know what was using my memory and CPU and using top > was always going to place itself in the list. This is understandable > as top is active whilst the id, ps, and vm_stat are all static, but I > notice that even Activity Monitor with all it's bells and whistles > uses significantly less CPU than top. You can run top just once with: top -bn1 But even more fun, you can take a trip back to 1997 to read Scott Raney's article in Linux Journal about using LiveCode (back then called "MetaCard") to build a GUI for top: -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From dochawk at gmail.com Fri Jun 6 20:36:02 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 6 Jun 2014 17:36:02 -0700 Subject: Quitting with the close box on Mac In-Reply-To: References: <538509B6.20700@hyperactivesw.com> <1C8F30F3-DA5C-4A01-91AE-BD63D213649F@gmail.com> <56F86213-744D-4CD5-9D34-E9C5A5ED9B43@semperuna.com> Message-ID: On Fri, Jun 6, 2014 at 2:32 PM, Bob Sneidar wrote: > liked Office XP better than anything they have since produced. Word 5.1/Excel 4 for the Mac. It's been downhill since then . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From lan.kc.macmail at gmail.com Fri Jun 6 21:08:59 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 7 Jun 2014 09:08:59 +0800 Subject: Memory and CPU Usage Script In-Reply-To: <53925DE5.4000501@fourthworld.com> References: <53925DE5.4000501@fourthworld.com> Message-ID: Thanks Richard, I strangely feel chuffed about the fact that I'm reinventing a wheel already built by the legendary Man himself. I might have to look into a few more of the top options: -bn1 didn't work on my 10.9.3 but clearly there must be an OS X equivalent. On Sat, Jun 7, 2014 at 8:33 AM, Richard Gaskin wrote: > Kay C Lan wrote: > >> I wanted to know what was using my memory and CPU and using top >> was always going to place itself in the list. This is understandable >> as top is active whilst the id, ps, and vm_stat are all static, but I >> notice that even Activity Monitor with all it's bells and whistles >> uses significantly less CPU than top. > > You can run top just once with: > > top -bn1 > > But even more fun, you can take a trip back to 1997 to read Scott Raney's > article in Linux Journal about using LiveCode (back then called "MetaCard") > to build a GUI for top: > > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Fri Jun 6 23:25:19 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jun 2014 20:25:19 -0700 Subject: Memory and CPU Usage Script Message-ID: <5392861F.2060203@fourthworld.com> Kay C Lan wrote: > Thanks Richard, I strangely feel chuffed about the fact that I'm > reinventing a wheel already built by the legendary Man himself. Au contraire: I consider it one of those great GMTA moments - at least you're in good company. :) Besides, your layout bested top's - not bad. > I might have to look into a few more of the top options: -bn1 > didn't work on my 10.9.3 but clearly there must be an OS X > equivalent. Yeah, there are just enough differences between OS X and Linux that it can get annoying jumping between them all day (worse if you need the latest, most secure versions of things like Apache and rsync - OS X ships with some surprisingly old stuff) - I think this is the OS X version: top -l1 -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Fri Jun 6 23:50:16 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 20:50:16 -0700 Subject: Memory and CPU Usage Script In-Reply-To: <5392861F.2060203@fourthworld.com> References: <5392861F.2060203@fourthworld.com> Message-ID: <169530010177.20140606205016@ahsoftware.net> Richard- Friday, June 6, 2014, 8:25:19 PM, you wrote: > OS X ships with some surprisingly old stuff homebrew -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Fri Jun 6 23:55:35 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 20:55:35 -0700 Subject: Quitting with the close box on Mac In-Reply-To: <539236D1.3050709@fourthworld.com> References: <539236D1.3050709@fourthworld.com> Message-ID: <54530329129.20140606205535@ahsoftware.net> Richard- Friday, June 6, 2014, 2:46:57 PM, you wrote: > Long after it shipped one of the Ribbon team leaders, Jensen Harris, > gave this talk at a UX conference - long, but IMO well worth the time: > UX Week 2008: Jensen Harris, "The Story of the Ribbon" > Yes,that's probably my favorite UX talk. It simultaneously shows how innovative the team was, the different variables they were juggling, and how out of touch with reality Microsoft is. Mindbending and fascinating and worth every minute. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Sat Jun 7 00:01:03 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 21:01:03 -0700 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> Message-ID: <176530657345.20140606210103@ahsoftware.net> Pete- Friday, June 6, 2014, 4:35:11 PM, you wrote: > Ah OK, sorry should have read more closely. > Don't know the answer to that one but if there is a limit the NOT IN thing > I suggested would cut down on the length of the SELECT statement since > there are no "AND" operators in it. Well, the NOT IN clause can select from an embedded SELECT statement to further limit the selections, but I would wonder whether such a complicated statement would be necessary in the first place. Not that I know what jbv has in mind, but I would think that possibly selecting on what you're looking for rather than what you're *not* looking for might be a shorter select statement. Or selecting on some other criterion or using a LIKE selector might do the trick. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Sat Jun 7 00:04:42 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 21:04:42 -0700 Subject: Memory and CPU Usage Script In-Reply-To: References: Message-ID: <75530876217.20140606210442@ahsoftware.net> Kay- Friday, June 6, 2014, 5:19:10 PM, you wrote: > I noticed in my search that people reported top as being quite CPU > intensive and in my own tests it went to No2, just below LC when I was > running my stacks; so a bit chicken and egg, I wanted to know what was > using my memory and CPU and using top was always going to place itself > in the list. This is understandable as top is active whilst the id, > ps, and vm_stat are all static, but I notice that even Activity > Monitor with all it's bells and whistles uses significantly less CPU > than top. OK. That makes sense. Top is cpu-intensive, and has to be in order to do what it does. I don't think it's a memory hog, though, and I thought that was what you were concerned with in the first place, since you posted that you ran out of memory. > Plus, it was more of an exercise to see if I could reinvent the wheel > and build something similar in LC that could be customised to report > exactly what I was interested in, when I was interested in it, no > more, no less. Hopefully it will provide a stepping off point for > others to adjust the output to exactly meet their needs. Yes, thanks for posting it. It's quite nicely done. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From MikeKerner at roadrunner.com Sat Jun 7 00:05:45 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 7 Jun 2014 00:05:45 -0400 Subject: RELEASE LiveCode 6.6.2 In-Reply-To: References: Message-ID: Anyone else having issues installing 6.6.2 for Linux? On Fri, Jun 6, 2014 at 12:35 PM, Benjamin Beaumont wrote: > Dear LiveCode users. > > LiveCode 6.6.2 is now available. This is a stable release. > > This is a maintenance release which contains fixes to the 6.6.x series > only. > > *Release Contents* > fixes: > > - 12443 - import snapshot crashes LiveCode > - 12434 - iOS device builds rejected from app store due to XCode version > in plist > - 12418 - Mail attachment from app file fails > - 12414 - Setting usePixelScaling causes infinite window reopening loop > on Mac. > - 12408 - Encryption commands do not work for iOS device builds > - 12382 - Normal resizeQuality is slow > - 12365 - After "putting" return into a Field, a visible residue is left > from the cursor > - 12350 - The fontStyles is incorrect on iOS > - 12341 - Fix vGrid rendering for non-fixed-width table field mode. > - 12319 - Drag and drop going wrong when Display switched to 150% > - 12294 - Crash and flaky behavior at certain points. > - 12286 - Maximizing a window where only the title-bar is on-screen > causes a crash on Mac. > - 12265 - Rounded rects are drawn incorrectly when using the image > editing tools with a linesize 1 > - 12239 - Magnification window shows corrupted image. > - 12237 - Attempt to attach to the launching console on Windows (if any) > in standalones. > - 12236 - Dropdown menus are clipped on Windows when text scale > 100% > - 12235 - Tooltips clipped on Windows when text scaling > 100% > - 12227 - When Windows screen display is set to 125% popups sometimes > break > - 12223 - Windows backdrop doesn't cover the full desktop area when > displayed on a high-dpi screen. > - 12210 - revBrowserSnapshot not working on Windows with IE9+ > - 12206 - Buttons of menu type can't be inspected if first created > object > - 12200 - Some filesystem entries in the root of a volume on Mac report > as files when they are really folders. > - 12185 - Standalone engine crashes when -ui specified on Linux. > - 12183 - Clicking in the scrollbar well doesn't work if the click is > too short. > - 12182 - 'the pageRanges' doesn't work on fields with more than 64K > chars. > - 12175 - Setting the usePixelScaling property doesn't update all > windows on Mac. > - 12173 - Styling does not work for certain iOS fonts > - 12170 - Non-existant command line parameter variables ($) behave > strangely with split. > - 12146 - setting tabstops to 2 equal numbers and then turning vGrid on > hangs LC > - 12125 - put the executionContexts crashes LiveCode server > - 12107 - exit causes liveCode server to crash > - 12105 - LiveCode server crashed if you call paramCount() > - 12101 - Graphics missing from imported Hypercard stack > - 12099 - On awakening Android device from sleep, part of app is blacked > out > - 12088 - The script editor doesn't scroll horizontally as text is > entered > - 12058 - The backdrop on Windows is always black > - 12044 - Opaque groups do not completely draw their backgrounds when > acceleratedRendering is enabled > - 12037 - Slow-down in setting contents of fields on Windows since > 6.1.3. > - 12027 - On Retina Mac\'s scrollbars with small thumbs render smaller > than they should. > - 12020 - Caret is too thin on Retina displays. > - 12010 - Windows engine hangs after multiple stack redraws. > - 12008 - import screen snapshot on iOS creates image of incorrect size. > - 12006 - HTTP (HTML) URLs encoded with anything other than a native > character set are returned incorrectly > - 11975 - "import snapshot from rect ..." only imports part of the > screen on Windows > - 11964 - Spacing is incorrect for Windows scaled text > - 11933 - effective textColor returns empty value for styled text > - 11920 - Memory leak in bitmap effects with spread of non-zero radius > (e.g. spread 100%, radius 1; spread 50%, radius 2). > - 11904 - Italic characters with underhand are clipped on windows > - 11895 - mobileComposeMail missing attachment in Android (Android Mail) > - 11884 - Stoked graphics clipped when printed > - 11860 - uuid and randomBytes functions don't work on iOS when > Encryption support is not included > - 11748 - Crash when putting an empty string into an XML node using > PutIntoXMLNode. > - 11708 - Android apps only partially drawn after rotating device during > lock screen > - 11690 - Once large scripts start scrolling the script editor, it won't > stop for a long time on Windows. > - 11689 - ResizeControl is not sent when resizing images > - 11662 - Round buttons are drawn incorrectly > - 11603 - Backdrop not displayed on Linux > - 11370 - Anti-aliasing inconsistent for 1 pixel lines and curves > - 11072 - magnify and edit image crashes LC > - 8041 - Only allow interaction with scrollbars on groups in browse > mode. > - 6400 - On Mac, a tab button with a single item does not draw > correctly. > - 2627 - The machine() function returns "unknown" under Mac OSX > > > *Getting this release* > To upgrade to this release please select "check for updates" from the help > menu in LiveCode or download the installers directly at: > http://downloads.livecode.com/livecode/ > > *Known issues* > There is still a performance drop in the 6.6.x series compared to the 6.5.x > series due to the new support for high resolution displays. Work is > currently ongoing to resolve this in the 6.7 release. > > *LiveCode 6.6.3* > We will shortly be releasing an RC1 of LiveCode 6.6.3 which contains 12 > fixes that were deemed not suitable for the latter stages of the 6.6.2 > cycle. > > Warm regards, > > The LiveCode team. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From ambassador at fourthworld.com Sat Jun 7 00:16:26 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 06 Jun 2014 21:16:26 -0700 Subject: Memory and CPU Usage Script Message-ID: <5392921A.2090606@fourthworld.com> Mark Wieder wrote: > Richard- > > Friday, June 6, 2014, 8:25:19 PM, you wrote: > >> OS X ships with some surprisingly old stuff > > homebrew Homebrew is a great solution for people like you and me, but for most Mac customers Apple hasn't been forthcoming about how outdated and vulnerable many system components are, any more than they've let the 19% of Mac users still depending on Snow Leopard know that they're not getting any more critical security updates at all. For a company whose marketing message frequently devolves into random jabs against other systems' security (often unfounded), I'm surprised Cook has let the situation with their own products continue in this cavalier way so long. I had always seen Cook as the cool-headed long-term thinker.... -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From mwieder at ahsoftware.net Sat Jun 7 00:17:48 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 6 Jun 2014 21:17:48 -0700 Subject: RELEASE LiveCode 6.6.2 In-Reply-To: References: Message-ID: <55531662537.20140606211748@ahsoftware.net> Mike- Friday, June 6, 2014, 9:05:45 PM, you wrote: > Anyone else having issues installing 6.6.2 for Linux? What kind of "issues"? Community installed fine here. Linux mint 14 64-bit. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From lan.kc.macmail at gmail.com Sat Jun 7 00:47:46 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Sat, 7 Jun 2014 12:47:46 +0800 Subject: Issue with 6.6.2 - Fields Left Justified Message-ID: Just running 6.6.2 and noticed the following. I have some fields (happen to be Label fields) which are Left Justified and I place various lengths of data into them which sometimes exceeds the length of the field. Up until 6.6.2 the data, no matter the length, remains left justified, but under 6.6.2 as soon as the data exceeds the length of the field it suddenly becomes right justified. If I create a brand new stack and everything works correctly. I've retested my project stack with 6.6.1 and the fields dispay correctly, but under 6.6.2 they do not. If anyone else sees this I would appreciate any insight into what I've done that is causing this. From jbv at souslelogo.com Sat Jun 7 01:18:58 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 7 Jun 2014 08:18:58 +0300 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: <176530657345.20140606210103@ahsoftware.net> References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> <176530657345.20140606210103@ahsoftware.net> Message-ID: <31722dde8cc2b11cdc6419f88ba03a93.squirrel@185.8.104.234> Mark & Pete I'll try to be more specific although I'll symplify the problem to keep my explanations below as simple as possible : - step 1 : various client apps update a DB via cgi requests by telling the server what references they have at a specific time - step 2 : the server checks what's in the DB and returns each app a list of references that were not in the list it received from each app in step 1, some lists can be quite long; so I had to switch from GET cgi requests such as get URL "http://myDomain/submitList.lc?myID_ref1_ref2_ref3" to POST requests because of the length limits of GET requests that would truncate the longest of them. That's why I was wondering if similar problems would occur in step 2 when the server checks for references in the DB that aren't in the list submitted by each app. Of course, I can write the script as follows : -- put the refs send by the app in an array myTrefs put "SELECT ref FROM myDB into myREQUEST put revDataFromQuery(,,theID,myREQUEST,) into myRefs repeat for each line j in myRefs if myTrefs[j] is empty then -- some processing end if end repeat But being able to do that with a single mySQL request such as put "SELECT ref FROM myDB WHERE ref != ref1 AND ref != ref2 into myREQUEST put revDataFromQuery(,,theID,myREQUEST,) into myRefs would save some processing time, providing that I don't bump into request size limits as in GET cgi requests... Last but not least, obviously in that case I can't select what I'm looking for as Mark suggested. I don't think a LIKE statement would work either as references are all unique strings of 30 alphanumeric chars... Thanks for your time. jbv > Pete- > > Friday, June 6, 2014, 4:35:11 PM, you wrote: > >> Ah OK, sorry should have read more closely. > >> Don't know the answer to that one but if there is a limit the NOT IN >> thing >> I suggested would cut down on the length of the SELECT statement since >> there are no "AND" operators in it. > > Well, the NOT IN clause can select from an embedded SELECT statement > to further limit the selections, but I would wonder whether such a > complicated statement would be necessary in the first place. Not that > I know what jbv has in mind, but I would think that possibly selecting > on what you're looking for rather than what you're *not* looking for > might be a shorter select statement. Or selecting on some other > criterion or using a LIKE selector might do the trick. > From pete at lcsql.com Sat Jun 7 12:52:24 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 7 Jun 2014 09:52:24 -0700 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: <31722dde8cc2b11cdc6419f88ba03a93.squirrel@185.8.104.234> References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> <176530657345.20140606210103@ahsoftware.net> <31722dde8cc2b11cdc6419f88ba03a93.squirrel@185.8.104.234> Message-ID: Thanks jbv. Can't think of any better ways to do it so I guess just hope there isn't a size limitation. If you do run into a size limitation, another possibility might be to use a temporary table to hold the names to be excluded then use a SELECT something like: SELECT name FROM Names LEFT JOIN tempnames ON tempnames.name=Names.name WHERE tempnames.name IS NULL But that would entail adding rows to the temp table and the processing time that goes along with that. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Fri, Jun 6, 2014 at 10:18 PM, wrote: > Mark & Pete > > I'll try to be more specific although I'll symplify the problem > to keep my explanations below as simple as possible : > > - step 1 : various client apps update a DB via cgi requests by > telling the server what references they have at a specific time > > - step 2 : the server checks what's in the DB and returns each > app a list of references that were not in the list it received from > each app > > in step 1, some lists can be quite long; so I had to switch from > GET cgi requests such as > get URL "http://myDomain/submitList.lc?myID_ref1_ref2_ref3" > to POST requests because of the length limits of GET requests > that would truncate the longest of them. > That's why I was wondering if similar problems would occur > in step 2 when the server checks for references in the DB that > aren't in the list submitted by each app. > > Of course, I can write the script as follows : > -- put the refs send by the app in an array myTrefs > put "SELECT ref FROM myDB into myREQUEST > put revDataFromQuery(,,theID,myREQUEST,) into myRefs > repeat for each line j in myRefs > if myTrefs[j] is empty then > -- some processing > end if > end repeat > > But being able to do that with a single mySQL request such as > put "SELECT ref FROM myDB WHERE ref != ref1 AND ref != ref2 into > myREQUEST > put revDataFromQuery(,,theID,myREQUEST,) into myRefs > > would save some processing time, providing that I don't bump > into request size limits as in GET cgi requests... > > Last but not least, obviously in that case I can't select what I'm looking > for as Mark suggested. I don't think a LIKE statement would work either > as references are all unique strings of 30 alphanumeric chars... > > Thanks for your time. > jbv > > > > Pete- > > > > Friday, June 6, 2014, 4:35:11 PM, you wrote: > > > >> Ah OK, sorry should have read more closely. > > > >> Don't know the answer to that one but if there is a limit the NOT IN > >> thing > >> I suggested would cut down on the length of the SELECT statement since > >> there are no "AND" operators in it. > > > > Well, the NOT IN clause can select from an embedded SELECT statement > > to further limit the selections, but I would wonder whether such a > > complicated statement would be necessary in the first place. Not that > > I know what jbv has in mind, but I would think that possibly selecting > > on what you're looking for rather than what you're *not* looking for > > might be a shorter select statement. Or selecting on some other > > criterion or using a LIKE selector might do the trick. > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 7 13:32:32 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sat, 7 Jun 2014 10:32:32 -0700 Subject: revDataFromQuery : size limit of mySQL query ? In-Reply-To: <31722dde8cc2b11cdc6419f88ba03a93.squirrel@185.8.104.234> References: <388362f7c1ae52ba4e6173480bfa88c8.squirrel@185.8.104.234> <50c562f7bb451da97acdc7bb51c78b26.squirrel@185.8.104.234> <176530657345.20140606210103@ahsoftware.net> <31722dde8cc2b11cdc6419f88ba03a93.squirrel@185.8.104.234> Message-ID: <111579345570.20140607103232@ahsoftware.net> jbv- Friday, June 6, 2014, 10:18:58 PM, you wrote: > Mark & Pete > I'll try to be more specific although I'll symplify the problem > to keep my explanations below as simple as possible : > - step 1 : various client apps update a DB via cgi requests by > telling the server what references they have at a specific time > - step 2 : the server checks what's in the DB and returns each > app a list of references that were not in the list it received from > each app > in step 1, some lists can be quite long; so I had to switch from > GET cgi requests such as > get URL "http://myDomain/submitList.lc?myID_ref1_ref2_ref3" > to POST requests because of the length limits of GET requests > that would truncate the longest of them. > That's why I was wondering if similar problems would occur > in step 2 when the server checks for references in the DB that > aren't in the list submitted by each app. > Of course, I can write the script as follows : > -- put the refs send by the app in an array myTrefs > put "SELECT ref FROM myDB into myREQUEST > put revDataFromQuery(,,theID,myREQUEST,) into myRefs > repeat for each line j in myRefs > if myTrefs[j] is empty then > -- some processing > end if > end repeat > But being able to do that with a single mySQL request such as > put "SELECT ref FROM myDB WHERE ref != ref1 AND ref != ref2 into myREQUEST > put revDataFromQuery(,,theID,myREQUEST,) into myRefs > would save some processing time, providing that I don't bump > into request size limits as in GET cgi requests... > Last but not least, obviously in that case I can't select what I'm looking > for as Mark suggested. I don't think a LIKE statement would work either > as references are all unique strings of 30 alphanumeric chars... Ah. I was basing my thoughts on your original example. In step 1, I don't think there are limits to postable data. YMMV, but I recently had to deal with some 84MB posts and responses. Aside from having to set db network timeouts for the expected data, we had no problems (mind you, fiddling with the network timeouts was a painful experience). >From your description, it seems as though the server and db are on the same machine. In that case, the LC code on the server would be doing the database queries directly and there would be no http calls involved in step 2 (aside from sending the results). ...and I would still use the form SELECT ref FROM myDB WHERE ref NOT IN (ref1, ref2,...) -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From MikeKerner at roadrunner.com Sat Jun 7 13:58:50 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 7 Jun 2014 13:58:50 -0400 Subject: RELEASE LiveCode 6.6.2 In-Reply-To: <55531662537.20140606211748@ahsoftware.net> References: <55531662537.20140606211748@ahsoftware.net> Message-ID: I'm getting an error that the file isn't found. Did I forget how to do this? You make the file executable and launch it, right? I've tried double-clicking, doing it from the command-line, sudo'ing it, doing it as su, and I'm not getting anywhere. On Sat, Jun 7, 2014 at 12:17 AM, Mark Wieder wrote: > Mike- > > Friday, June 6, 2014, 9:05:45 PM, you wrote: > > > Anyone else having issues installing 6.6.2 for Linux? > > What kind of "issues"? > Community installed fine here. Linux mint 14 64-bit. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From warren at warrensweb.us Sat Jun 7 14:16:33 2014 From: warren at warrensweb.us (Warren Samples) Date: Sat, 07 Jun 2014 13:16:33 -0500 Subject: RELEASE LiveCode 6.6.2 In-Reply-To: References: <55531662537.20140606211748@ahsoftware.net> Message-ID: <53935701.508@warrensweb.us> On 06/07/2014 12:58 PM, Mike Kerner wrote: > I'm getting an error that the file isn't found. That error is typically what you get trying to run in a 64 bit environment without the 32 bit libs installed. Do you have other versions of LiveCode running on this particular computer? Warren From MikeKerner at roadrunner.com Sat Jun 7 15:04:24 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 7 Jun 2014 15:04:24 -0400 Subject: RELEASE LiveCode 6.6.2 In-Reply-To: <53935701.508@warrensweb.us> References: <55531662537.20140606211748@ahsoftware.net> <53935701.508@warrensweb.us> Message-ID: It's in a VM, and I thought when I (re)installed the VM I made it 32 bit for that reason. I'll make sure. On Sat, Jun 7, 2014 at 2:16 PM, Warren Samples wrote: > On 06/07/2014 12:58 PM, Mike Kerner wrote: > >> I'm getting an error that the file isn't found. >> > > > That error is typically what you get trying to run in a 64 bit environment > without the 32 bit libs installed. Do you have other versions of LiveCode > running on this particular computer? > > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From john at splash21.com Sat Jun 7 16:11:55 2014 From: john at splash21.com (John Craig) Date: Sat, 07 Jun 2014 21:11:55 +0100 Subject: [ANN] MobGUI V1.26 Message-ID: <5393720B.9080005@splash21.com> MobGUI >= 1.25 is now working with all versions of LC6/7 (community and commercial). The option to create an ipa file alongside the app when building for iOS has been added. This was in an old separate iOS plugin with some other useful functions, which should also make their way into MG shortly. The ability to automatically upload both iOS and android apps to the web for installation (already working in an old plugin) and signing of android apps is planned - I've just completed an android app recently, but the only way to get a valid signed apk seemed to be via the command line. If this gets fixed in LC's android package building, then this functionality may not be required. For downloads, visit http://mobgui.com/download.php :D From coiin at verizon.net Sat Jun 7 16:23:15 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 07 Jun 2014 16:23:15 -0400 Subject: [ANN] MobGUI V1.26 In-Reply-To: <5393720B.9080005@splash21.com> References: <5393720B.9080005@splash21.com> Message-ID: With this version, how do you create a nav bar that has a title, or a tab bar that has buttons in it? I only seem to be able to make gray rectangles. Also, the browser object seems not to load the URL it has been given. From scott at tactilemedia.com Sat Jun 7 16:33:50 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jun 2014 13:33:50 -0700 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: Hi List: Just a note to mention that the $10 discount for tmControl2 ends this weekend at midnight on Sunday PST. Information about the package is available at the link below. Best Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design Recently, I wrote: >It's many long months, dozens of nights without sleep, and gallons of >coffee, but I'm happy to announce the first release of tmControl2, my >next >gen custom control set for LiveCode. This first release is for iOS and >includes 20+ controls, an icon library of both glyphs and images, a blur >external to create elegant iOS7 effects, an examples stack, and >documentation. A demo is available. > > >Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ From coiin at verizon.net Sat Jun 7 16:43:59 2014 From: coiin at verizon.net (Colin Holgate) Date: Sat, 07 Jun 2014 16:43:59 -0400 Subject: [ANN] tmControl2 First Release In-Reply-To: References: Message-ID: <1B80C763-1829-4E23-AFAD-B02E2B947418@verizon.net> When you click the ?buy now? button you?re taken to another page where you have to find the product again, to add to your cart. Could those two steps be combined? On Jun 7, 2014, at 4:33 PM, Scott Rossi wrote: > Hi List: > > Just a note to mention that the $10 discount for tmControl2 ends this > weekend at midnight on Sunday PST. Information about the package is > available at the link below. > > Best Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > Recently, I wrote: > >> It's many long months, dozens of nights without sleep, and gallons of >> coffee, but I'm happy to announce the first release of tmControl2, my >> next >> gen custom control set for LiveCode. This first release is for iOS and >> includes 20+ controls, an icon library of both glyphs and images, a blur >> external to create elegant iOS7 effects, an examples stack, and >> documentation. A demo is available. >> >> >> Read more about it here: http://tmtools.tactilemedia.com/tmcontrol2/ > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From scott at tactilemedia.com Sat Jun 7 19:56:33 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jun 2014 16:56:33 -0700 Subject: tmControl2 Demo Update Message-ID: Hello All: With help from another list member, I was able to determine that I the server I use was misconfigured and delivering an incomplete set of demo files. For folks who were having trouble or are still interested in trying out tmControl2, please try going to tmtools.tactilemedia.com/tmcontrol2 and try the signup form again. Sorry for the inconvenience. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design From gerry.orkin at gmail.com Sat Jun 7 20:03:17 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sun, 8 Jun 2014 10:03:17 +1000 Subject: tmControl2 Demo Update In-Reply-To: References: Message-ID: Can you list for us all the files that should have been included? g On 8 Jun 2014, at 9:56 am, Scott Rossi wrote: > Hello All: > > With help from another list member, I was able to determine that I the server I use was misconfigured and delivering an incomplete set of demo files. > > For folks who were having trouble or are still interested in trying out tmControl2, please try going to tmtools.tactilemedia.com/tmcontrol2 and try the signup form again. > > Sorry for the inconvenience. > > Regards, > > Scott Rossi > Creative Director > Tactile Media UX/UI 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 charles at buchwald.ca Sat Jun 7 20:13:33 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Sat, 7 Jun 2014 19:13:33 -0500 Subject: Stack/Standalone Updater? Message-ID: Hi List Members, I need a routine to check for updates in a standalone, and the plugins I publish. I have made some very simple scripts that check a file on my server, and alert the user if there is a new version available. But I'd like to include something more sophisticated, that can download and install an update, much like LC itself does, or Scripter's Scrapbook, for example. This seems like one of those very common tasks that would be perfect for a library stack, or a script to copy and paste when developing. Does anyone know of such a library or script collection, commercial or not? Or are you willing to share such a thing? Or collaborate on making it? Cheers, - Charles -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From gerry.orkin at gmail.com Sat Jun 7 20:26:07 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sun, 8 Jun 2014 10:26:07 +1000 Subject: Weird data grid behaviour Message-ID: Weirdness going on here with LC commercial 6.5.2 and all versions up to 6.6.2: 1) I drag a new data grid onto a stack 2) in the object inspector I make the datagrid a form datagrid (not strictly relevant as the problem happens with table datagrids too) 3) in the datagrid templates substack I see two cards, id 1002 and id 1005. I've never seen that before! 4) on card id 1002 I have ONLY the _DataGridTemplateInstructions_ group 5) on card id 1005 I have the expected row template group and it's contents 6) when I click the Row Template... button in the datagrid's inspector I see what looks like card id 1005 (I can see the row template)...but the title bar of that window says card id 1002. 7) any changes I make to the row template on that card are NOT shown in the datagrid itself. 8) if I try to associate the row template on card id 1005 with the datagrid (e.g. set the dgProps["row template"] of group "Datagrid 1" to the long id of group id 1006 of card id 1005 stack "Data Grid Templates 1402184271384") I get no errors in the msg box but nothing changes. Arghhhhh. Help! Gerry From scott at tactilemedia.com Sat Jun 7 22:26:51 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Sat, 07 Jun 2014 19:26:51 -0700 Subject: tmControl2 Demo Update In-Reply-To: References: Message-ID: To save a bit of hassle, a complete demo has been emailed to all folks who signed up for it. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/7/14 5:03 PM, "Gerry Orkin" wrote: >Can you list for us all the files that should have been included? > >g > > >On 8 Jun 2014, at 9:56 am, Scott Rossi wrote: > >> Hello All: >> >> With help from another list member, I was able to determine that I the >>server I use was misconfigured and delivering an incomplete set of demo >>files. >> >> For folks who were having trouble or are still interested in trying out >>tmControl2, please try going to tmtools.tactilemedia.com/tmcontrol2 and >>try the signup form again. >> >> Sorry for the inconvenience. >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media UX/UI 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 > > >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Sat Jun 7 22:41:56 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 7 Jun 2014 20:41:56 -0600 Subject: please help!! Message-ID: I am using 6.1.1 (rc 4) on XP I have spent HOURS trying to do something that seems fairly simple. I have a column of buttons labeled "tile11", "tile12", etc After I label the buttons, they are all alpha-numeric characters except for one being labeled "?" Then I call up the following command: on doOpaque put 0 into x repeat rowNum times put x + 1 into x put ("tile1" & x) into thisButton if the label of button thisButton = "?" then set the opaque of button thisButton to true else set the opaque of button thisButton to false end if end repeat end doOpaque If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the "?" button to false and some other button (NOT "?") to true. I'm really going crazy with this and would appreciate it if anyone knows why this is happening. Thanks in advance, Larry From iowahengst at mac.com Sat Jun 7 23:21:00 2014 From: iowahengst at mac.com (Randy Hengst) Date: Sat, 07 Jun 2014 22:21:00 -0500 Subject: please help!! In-Reply-To: References: Message-ID: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com> When I've had similar problems I had multiple buttons with the same name. > On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: > > I am using 6.1.1 (rc 4) on XP > > I have spent HOURS trying to do something that seems fairly simple. > > I have a column of buttons labeled "tile11", "tile12", etc > > After I label the buttons, they are all alpha-numeric characters except for one being labeled "?" > > Then I call up the following command: > > on doOpaque > > put 0 into x > > repeat rowNum times > > put x + 1 into x > > put ("tile1" & x) into thisButton > > if the label of button thisButton = "?" then > > set the opaque of button thisButton to true > > else > > set the opaque of button thisButton to false > > end if > > end repeat > > end doOpaque > > > > If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the "?" button to false and some other button (NOT "?") to true. > > I'm really going crazy with this and would appreciate it if anyone knows why this is happening. > > Thanks in advance, Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From larry at significantplanet.org Sat Jun 7 23:39:34 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 7 Jun 2014 21:39:34 -0600 Subject: please help!! References: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com> Message-ID: <6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> Thank you Randy, but that's not the case here. After I got your email, I triple checked. It's something else going on. ----- Original Message ----- From: "Randy Hengst" To: "How to use LiveCode" Sent: Saturday, June 07, 2014 9:21 PM Subject: Re: please help!! > When I've had similar problems I had multiple buttons with the same name. > > >> On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: >> >> I am using 6.1.1 (rc 4) on XP >> >> I have spent HOURS trying to do something that seems fairly simple. >> >> I have a column of buttons labeled "tile11", "tile12", etc >> >> After I label the buttons, they are all alpha-numeric characters except >> for one being labeled "?" >> >> Then I call up the following command: >> >> on doOpaque >> >> put 0 into x >> >> repeat rowNum times >> >> put x + 1 into x >> >> put ("tile1" & x) into thisButton >> >> if the label of button thisButton = "?" then >> >> set the opaque of button thisButton to true >> >> else >> >> set the opaque of button thisButton to false >> >> end if >> >> end repeat >> >> end doOpaque >> >> >> >> If I debug and step through it, it always seems to work. However if I >> just run it, it invariably sets the opaque of the "?" button to false and >> some other button (NOT "?") to true. >> >> I'm really going crazy with this and would appreciate it if anyone knows >> why this is happening. >> >> Thanks in advance, Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From paulhibbert at mac.com Sat Jun 7 23:43:58 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Sat, 07 Jun 2014 20:43:58 -0700 Subject: please help!! In-Reply-To: <6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> References: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com> <6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> Message-ID: <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC versions, but I'm also on a Mac, however, at least it proves the script sample is fine. Just a thought, could the label of button "?" also have a space or return char in the name? Maybe try swapping the "=" for "contains" e.g. if the label of button thisButton contains "?" then Paul On 2014-06-07, at 8:39 PM, larry at significantplanet.org wrote: > Thank you Randy, but that's not the case here. > After I got your email, I triple checked. It's something else going on. > > ----- Original Message ----- From: "Randy Hengst" > To: "How to use LiveCode" > Sent: Saturday, June 07, 2014 9:21 PM > Subject: Re: please help!! > > >> When I've had similar problems I had multiple buttons with the same name. >> >> >>> On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: >>> >>> I am using 6.1.1 (rc 4) on XP >>> >>> I have spent HOURS trying to do something that seems fairly simple. >>> >>> I have a column of buttons labeled "tile11", "tile12", etc >>> >>> After I label the buttons, they are all alpha-numeric characters except for one being labeled "?" >>> >>> Then I call up the following command: >>> >>> on doOpaque >>> >>> put 0 into x >>> >>> repeat rowNum times >>> >>> put x + 1 into x >>> >>> put ("tile1" & x) into thisButton >>> >>> if the label of button thisButton = "?" then >>> >>> set the opaque of button thisButton to true >>> >>> else >>> >>> set the opaque of button thisButton to false >>> >>> end if >>> >>> end repeat >>> >>> end doOpaque >>> >>> >>> >>> If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the "?" button to false and some other button (NOT "?") to true. >>> >>> I'm really going crazy with this and would appreciate it if anyone knows why this is happening. >>> >>> Thanks in advance, Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 8 00:15:31 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Sun, 8 Jun 2014 00:15:31 -0400 (EDT) Subject: please help!! In-Reply-To: <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> References: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com> <6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> Message-ID: <8D150E76C03FDB9-30D8-876F8@webmail-d265.sysops.aol.com> Larry, works for me too. I have had, though not in a while, cases where a handler works while stepping through a script, but fails when run. I was never able to duplicate this, and it goes back to HC days. The issue always went away, eventually, though I never understood why. Perhaps after much agonizing over those cases I changed something and suddenly all was well. I cannot imagine an error that would pass the debugger, but break normal execution. But I know it happened. Anyone else corroborate this phenominum? Craig Newman -----Original Message----- From: Paul Hibbert To: How to use LiveCode Sent: Sat, Jun 7, 2014 11:44 pm Subject: Re: please help!! Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC versions, but I'm also on a Mac, however, at least it proves the script sample is fine. Just a thought, could the label of button "?" also have a space or return char in the name? Maybe try swapping the "=" for "contains" e.g. if the label of button thisButton contains "?" then Paul On 2014-06-07, at 8:39 PM, larry at significantplanet.org wrote: > Thank you Randy, but that's not the case here. > After I got your email, I triple checked. It's something else going on. > > ----- Original Message ----- From: "Randy Hengst" > To: "How to use LiveCode" > Sent: Saturday, June 07, 2014 9:21 PM > Subject: Re: please help!! > > >> When I've had similar problems I had multiple buttons with the same name. >> >> >>> On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: >>> >>> I am using 6.1.1 (rc 4) on XP >>> >>> I have spent HOURS trying to do something that seems fairly simple. >>> >>> I have a column of buttons labeled "tile11", "tile12", etc >>> >>> After I label the buttons, they are all alpha-numeric characters except for one being labeled "?" >>> >>> Then I call up the following command: >>> >>> on doOpaque >>> >>> put 0 into x >>> >>> repeat rowNum times >>> >>> put x + 1 into x >>> >>> put ("tile1" & x) into thisButton >>> >>> if the label of button thisButton = "?" then >>> >>> set the opaque of button thisButton to true >>> >>> else >>> >>> set the opaque of button thisButton to false >>> >>> end if >>> >>> end repeat >>> >>> end doOpaque >>> >>> >>> >>> If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the "?" button to false and some other button (NOT "?") to true. >>> >>> I'm really going crazy with this and would appreciate it if anyone knows why this is happening. >>> >>> Thanks in advance, Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jun 8 00:16:39 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 7 Jun 2014 22:16:39 -0600 Subject: please help!! In-Reply-To: <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> References: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com> <6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> Message-ID: The names and the labels for each button are the same? Other than the one with the question mark which is named tile1# in the same pattern as the others, but has the "?" label? As mentioned above, it sounds like the name of some of your buttons may be duplicates. After triple checking that again, you might grab the stable version of the 6.1.1 (Or jump to 6.6.2?) Maybe theres something funky going on with the 6.1.1 rc 4 version. Did notice in the rc5 bug fixes that when cloning a group, revuniqueids are not updated correctly for the groups child controls. Don't know if you have cloned groups of buttons but thought i'd throw it out there. On Sat, Jun 7, 2014 at 9:43 PM, Paul Hibbert wrote: > Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC > versions, but I'm also on a Mac, however, at least it proves the script > sample is fine. > > Just a thought, could the label of button "?" also have a space or return > char in the name? > > Maybe try swapping the "=" for "contains" > > e.g. if the label of button thisButton contains "?" then > > Paul > > > On 2014-06-07, at 8:39 PM, larry at significantplanet.org wrote: > > > Thank you Randy, but that's not the case here. > > After I got your email, I triple checked. It's something else going on. > > > > ----- Original Message ----- From: "Randy Hengst" > > To: "How to use LiveCode" > > Sent: Saturday, June 07, 2014 9:21 PM > > Subject: Re: please help!! > > > > > >> When I've had similar problems I had multiple buttons with the same > name. > >> > >> > >>> On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: > >>> > >>> I am using 6.1.1 (rc 4) on XP > >>> > >>> I have spent HOURS trying to do something that seems fairly simple. > >>> > >>> I have a column of buttons labeled "tile11", "tile12", etc > >>> > >>> After I label the buttons, they are all alpha-numeric characters > except for one being labeled "?" > >>> > >>> Then I call up the following command: > >>> > >>> on doOpaque > >>> > >>> put 0 into x > >>> > >>> repeat rowNum times > >>> > >>> put x + 1 into x > >>> > >>> put ("tile1" & x) into thisButton > >>> > >>> if the label of button thisButton = "?" then > >>> > >>> set the opaque of button thisButton to true > >>> > >>> else > >>> > >>> set the opaque of button thisButton to false > >>> > >>> end if > >>> > >>> end repeat > >>> > >>> end doOpaque > >>> > >>> > >>> > >>> If I debug and step through it, it always seems to work. However if I > just run it, it invariably sets the opaque of the "?" button to false and > some other button (NOT "?") to true. > >>> > >>> I'm really going crazy with this and would appreciate it if anyone > knows why this is happening. > >>> > >>> Thanks in advance, Larry > >>> _______________________________________________ > >>> use-livecode mailing list > >>> use-livecode at lists.runrev.com > >>> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >>> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From larry at significantplanet.org Sun Jun 8 00:23:44 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 7 Jun 2014 22:23:44 -0600 Subject: please help!! References: <569D1CBC-142F-43E9-B470-E9393C51CA3B@mac.com><6A1F23B305294F499DA5EB2079449AB1@userd204a4d61c> <886BC25A-2E9F-48CD-BBCA-EE813DF00C99@mac.com> Message-ID: <09B6E8211F784F32AD74C39D1EE12313@userd204a4d61c> hey Paul, I changed it to "contains" (as you suggested) and now it works. Thanks. Still seems like a bug to me since I KNOW that I don't have a space or return or anything in the name. 2) I was not aware that RC versions are not necessarily considered stable. I had kept using that version, because just about every time I upgraded to a new version I had some new problems. Do you recommend any newer version as truly stable? Unfortunately, my experience with LC is that I just trade one set of problems for a newer set of problems. Thanks, Larry ----- Original Message ----- From: "Paul Hibbert" To: "How to use LiveCode" Sent: Saturday, June 07, 2014 9:43 PM Subject: Re: please help!! > Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC > versions, but I'm also on a Mac, however, at least it proves the script > sample is fine. > > Just a thought, could the label of button "?" also have a space or return > char in the name? > > Maybe try swapping the "=" for "contains" > > e.g. if the label of button thisButton contains "?" then > > Paul > > > On 2014-06-07, at 8:39 PM, larry at significantplanet.org wrote: > >> Thank you Randy, but that's not the case here. >> After I got your email, I triple checked. It's something else going on. >> >> ----- Original Message ----- From: "Randy Hengst" >> To: "How to use LiveCode" >> Sent: Saturday, June 07, 2014 9:21 PM >> Subject: Re: please help!! >> >> >>> When I've had similar problems I had multiple buttons with the same >>> name. >>> >>> >>>> On Jun 7, 2014, at 9:41 PM, larry at significantplanet.org wrote: >>>> >>>> I am using 6.1.1 (rc 4) on XP >>>> >>>> I have spent HOURS trying to do something that seems fairly simple. >>>> >>>> I have a column of buttons labeled "tile11", "tile12", etc >>>> >>>> After I label the buttons, they are all alpha-numeric characters except >>>> for one being labeled "?" >>>> >>>> Then I call up the following command: >>>> >>>> on doOpaque >>>> >>>> put 0 into x >>>> >>>> repeat rowNum times >>>> >>>> put x + 1 into x >>>> >>>> put ("tile1" & x) into thisButton >>>> >>>> if the label of button thisButton = "?" then >>>> >>>> set the opaque of button thisButton to true >>>> >>>> else >>>> >>>> set the opaque of button thisButton to false >>>> >>>> end if >>>> >>>> end repeat >>>> >>>> end doOpaque >>>> >>>> >>>> >>>> If I debug and step through it, it always seems to work. However if I >>>> just run it, it invariably sets the opaque of the "?" button to false >>>> and some other button (NOT "?") to true. >>>> >>>> I'm really going crazy with this and would appreciate it if anyone >>>> knows why this is happening. >>>> >>>> Thanks in advance, Larry >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From simon at asato-media.com Sun Jun 8 00:36:21 2014 From: simon at asato-media.com (As_Simon) Date: Sat, 7 Jun 2014 21:36:21 -0700 (PDT) Subject: please help!! In-Reply-To: References: Message-ID: <1402202181685-4680333.post@n4.nabble.com> larry wrote > If I debug and step through it, it always seems to work. This, it seems, always points toward the engine is not keeping up. A "wait 1 millisec" before "if the label of button thisButton = "?" then" tends to clear it up. (maybe somewhere else but in that area) Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/please-help-tp4680326p4680333.html Sent from the Revolution - User mailing list archive at Nabble.com. From jacque at hyperactivesw.com Sun Jun 8 00:55:16 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sat, 07 Jun 2014 23:55:16 -0500 Subject: please help!! In-Reply-To: References: Message-ID: <5393ECB4.90406@hyperactivesw.com> I know you've found a workaround now, but I'm curious: Where does "rownum" get its value? Do the button names match their labels exactly? Your handler references the buttons by name ("button thisButton") but then looks at their labels. If they don't match, the handler won't be working with the button you think it is. (Though this wouldn't explain the success when debugging.) What happens if you omit the rowNum variable in the repeat loop: repeat with x = 1 to rowNum put ("tile1" & x) into thisButton set the opaque of btn thisButton to (the label of btn thisButton = "?") end repeat On 6/7/2014, 9:41 PM, larry at significantplanet.org wrote: > I am using 6.1.1 (rc 4) on XP > > I have spent HOURS trying to do something that seems fairly simple. > > I have a column of buttons labeled "tile11", "tile12", etc > > After I label the buttons, they are all alpha-numeric characters except for one being labeled "?" > > Then I call up the following command: > > on doOpaque > > put 0 into x > > repeat rowNum times > > put x + 1 into x > > put ("tile1" & x) into thisButton > > if the label of button thisButton = "?" then > > set the opaque of button thisButton to true > > else > > set the opaque of button thisButton to false > > end if > > end repeat > > end doOpaque > > > > If I debug and step through it, it always seems to work. However if I just run it, it invariably sets the opaque of the "?" button to false and some other button (NOT "?") to true. > > I'm really going crazy with this and would appreciate it if anyone knows why this is happening. > > Thanks in advance, Larry > _______________________________________________ > use-livecode mailing list > use-livecode 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 jacque at hyperactivesw.com Sun Jun 8 01:24:58 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 08 Jun 2014 00:24:58 -0500 Subject: please help!! In-Reply-To: <5393ECB4.90406@hyperactivesw.com> References: <5393ECB4.90406@hyperactivesw.com> Message-ID: <5393F3AA.4040602@hyperactivesw.com> On 6/7/2014, 11:55 PM, J. Landman Gay wrote: > What happens if you omit the rowNum variable in the repeat loop: > > repeat with x = 1 to rowNum > put ("tile1" & x) into thisButton > set the opaque of btn thisButton to (the label of btn thisButton = "?") > end repeat Which obviously I didn't. I meant to just test a different type of repeat structure, but I don't really think it's going to make any difference. But do double-check that the button names and labels match. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From larry at significantplanet.org Sun Jun 8 01:41:23 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sat, 7 Jun 2014 23:41:23 -0600 Subject: please help!! References: <5393ECB4.90406@hyperactivesw.com> <5393F3AA.4040602@hyperactivesw.com> Message-ID: <54678D9DCC5449DA8602300D6985F74D@userd204a4d61c> You have all been very kind in trying to help me. Right now, I am completely disillusioned with LiveCode. I've wasted an entire day trying everything I could think of and everything you all have suggested. I cannot get it to work consistently. I mean I cannot get the error consistently and, much worse, I cannot get the program to behave as it should. Probably I will go learn some other program because I have had way too many of these sessions where LiveCode just lets me down. All the people on this list have been extremely wonderful and helpful. Right now I am too frustrated and tired to keep going. Thank you all. ----- Original Message ----- From: "J. Landman Gay" To: "How to use LiveCode" Sent: Saturday, June 07, 2014 11:24 PM Subject: Re: please help!! > On 6/7/2014, 11:55 PM, J. Landman Gay wrote: >> What happens if you omit the rowNum variable in the repeat loop: >> >> repeat with x = 1 to rowNum >> put ("tile1" & x) into thisButton >> set the opaque of btn thisButton to (the label of btn thisButton = "?") >> end repeat > > Which obviously I didn't. I meant to just test a different type of repeat > structure, but I don't really think it's going to make any difference. But > do double-check that the button names and labels match. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Sun Jun 8 02:00:50 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 08 Jun 2014 01:00:50 -0500 Subject: please help!! In-Reply-To: <54678D9DCC5449DA8602300D6985F74D@userd204a4d61c> References: <5393ECB4.90406@hyperactivesw.com> <5393F3AA.4040602@hyperactivesw.com> <54678D9DCC5449DA8602300D6985F74D@userd204a4d61c> Message-ID: <5393FC12.4050900@hyperactivesw.com> On 6/8/2014, 12:41 AM, larry at significantplanet.org wrote: > Right now I am too frustrated and tired to keep going. Yeah, been there. It's normal but it's really frustrating. Learning a new language is hard, no matter which one you choose. Send me your stack if you want and I can probably tell you where it's going off the rails. But rest up first. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From zryip.theslug at gmail.com Sun Jun 8 04:41:24 2014 From: zryip.theslug at gmail.com (zryip theSlug) Date: Sun, 8 Jun 2014 10:41:24 +0200 Subject: Weird data grid behaviour In-Reply-To: References: Message-ID: Gerry, 1 to 6: This is the normal behavior for all the datagrids: The template substack is composed by one card by datagrids in your project + the card id 1002 which contains the instructions as a background group shared by all the templates cards. The name of the window is set somewhere in the IDE and is not totally reflective of the template opened. However if you check the card opened in the inspector, you should be in the right card. 7. 2 possible reasons: - Your datagrid contains no data. The template is applied to existing rows in the datagrid. If the datagrid is empty, you will see nothing. - You have placed the new objects outside the row template group (i.e. in the card). Edit the template group and place your controls inside it. Note a trial version of our DGH plugin is available here: http://www.aslugontheroad.com/download/category/5-open-sources With DGH: 1. You can edit directly the template (one for a datagrid form, one by columns in a datagrid table) of your datagrid in a special DGH template area. No need to go in the template substack. 2. You can see the result of your changes in the datagrid preview, before to apply the changes to the final datagrid, even if the datagrid has no data. Best Regards, On Sun, Jun 8, 2014 at 2:26 AM, Gerry Orkin wrote: > Weirdness going on here with LC commercial 6.5.2 and all versions up to > 6.6.2: > > 1) I drag a new data grid onto a stack > 2) in the object inspector I make the datagrid a form datagrid (not strictly > relevant as the problem happens with table datagrids too) > 3) in the datagrid templates substack I see two cards, id 1002 and id 1005. > I've never seen that before! > 4) on card id 1002 I have ONLY the _DataGridTemplateInstructions_ group > 5) on card id 1005 I have the expected row template group and it's contents > 6) when I click the Row Template... button in the datagrid's inspector I see > what looks like card id 1005 (I can see the row template)...but the title > bar of that window says card id 1002. > 7) any changes I make to the row template on that card are NOT shown in the > datagrid itself. > 8) if I try to associate the row template on card id 1005 with the datagrid > (e.g. set the dgProps["row template"] of group "Datagrid 1" to the long id > of group id 1006 of card id 1005 stack "Data Grid Templates 1402184271384") > I get no errors in the msg box but nothing changes. > > Arghhhhh. Help! > > Gerry > > _______________________________________________ > livecode-dev mailing list > livecode-dev at lists.runrev.com > http://lists.runrev.com/mailman/listinfo/livecode-dev > -- Zryip TheSlug http://www.aslugontheroad.com From prothero at earthednet.org Sun Jun 8 10:22:10 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Sun, 8 Jun 2014 07:22:10 -0700 Subject: please help!! In-Reply-To: <1402202181685-4680333.post@n4.nabble.com> References: <1402202181685-4680333.post@n4.nabble.com> Message-ID: I've had similar problems using the snapshot command, where the engine seems to get behind. My latest problem was my own fault, though where I had locked the screen and it couldn't update. What fooled me was that when I put in a breakpoint, the breakpoint unlocked the screen and it looked as I expected. Finally, after getting a night's sleep, I tried an unlock screen command and it all worked as desired. I don't know if this would be considered a bug, but it is certainly a way the debugger can give a confusing result. Best, Bill William Prothero http://es.earthednet.org > On Jun 7, 2014, at 9:36 PM, As_Simon wrote: > > larry wrote >> If I debug and step through it, it always seems to work. > > This, it seems, always points toward the engine is not keeping up. > A "wait 1 millisec" before "if the label of button thisButton = "?" then" > tends to clear it up. (maybe somewhere else but in that area) > > Simon > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/please-help-tp4680326p4680333.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 Sun Jun 8 12:59:10 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sun, 8 Jun 2014 09:59:10 -0700 (PDT) Subject: Book on Programming by Example Message-ID: <1402246750108-4680341.post@n4.nabble.com> Hi All, Bookmark this webpage: http://web.media.mit.edu/~lieber/Your-Wish/ to read this mind opening book: Your Wish is My Command: Giving Users the Power to Instruct their Software Henry Lieberman, editor Media Laboratory Massachusetts Institute of Technology Have a nice week! :D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Book-on-Programming-by-Example-tp4680341.html Sent from the Revolution - User mailing list archive at Nabble.com. From mwieder at ahsoftware.net Sun Jun 8 13:20:32 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 8 Jun 2014 10:20:32 -0700 Subject: ScreenRect bug or not In-Reply-To: <53907C5B.5020805@fourthworld.com> References: <140350090625.20140604185133@ahsoftware.net> <53907C5B.5020805@fourthworld.com> Message-ID: <152665023529.20140608102032@ahsoftware.net> Richard- Thursday, June 5, 2014, 7:19:07 AM, you wrote: >>> There is an IDE rewrite underway, and a very large-scope effort to >>> improve overall rendering. >> >> Eh? > One of the problems with being OCD about my LiveCode consumption is that > I can no longer recall where I hear things, whether it was in a > newsletter article, a blog post, or the Global Jam chats Kevin and Ben > hosted. > The IDE rewrite is AFAIK very early-stage, a logical necessity from the > Open Language initiative and the implications thereof related to > extensibility. I imagine we'll be hearing more about it as it begins to > move from sketchpad to code, but right now it's all about supporting OL > so I don't believe there's much concrete that can be said about it until > OL gets fleshed out more. If there's a secret project going on behind the scenes to produce a new IDE, out of sight of the github process, then it's hardly worth the effort to ferret out fixes to existing bugs. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From pete at lcsql.com Sun Jun 8 13:39:35 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 8 Jun 2014 10:39:35 -0700 Subject: Open stack problem Message-ID: Trying to track down a strange problem involving opening a stack. I have a button with a script that issues an answer file statement to get the name of a stack file to open. After getting the file name and doing a couple of checks I open the stack file then do some other stuff. This all works fine if I double click a stack file in the answer file dialog. However if I single click a stack file and then click the Open button in the answer file dialog, the stack is opened but none of the statements after the open stack command are executed. Just to add to the merriment, if I set a breakpoint on the open stack command, all works fine. I've removed all front scripts but same behavior. Any ideas? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From ambassador at fourthworld.com Sun Jun 8 14:28:28 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 11:28:28 -0700 Subject: ScreenRect bug or not Message-ID: <5394AB4C.5030006@fourthworld.com> Mark Wieder wrote: > Richard- > > Thursday, June 5, 2014, 7:19:07 AM, you wrote: > >> The IDE rewrite is AFAIK very early-stage, a logical necessity >> from the Open Language initiative and the implications thereof >> related to extensibility. I imagine we'll be hearing more about >> it as it begins to move from sketchpad to code, but right now >> it's all about supporting OL so I don't believe there's much >> concrete that can be said about it until OL gets fleshed out more. > > If there's a secret project going on behind the scenes to produce a > new IDE, out of sight of the github process, then it's hardly worth > the effort to ferret out fixes to existing bugs. Mark, you're one of the smartest people I know, so I'm having a hard time understanding why would you choose such an unnecessarily emotionally-laden word like "secret"? A secret is a willful attempt to conceal, but we have no indication that anyone's doing that. So before anyone runs off to the hardware store to grab pitchforks for storming the castle over some imagined IDE conspiracy, please kindly take a moment to consider only what I wrote, and I'll try to make it even clearer here: AFAIK there is no other RunRev-borne IDE in existence (the community has several), just ideas, sketches, possibilities and imaginings which may become fleshed out into some actual thing in the future once Open Language is far enough along to make such a necessary change in the IDE to support it achievable. And as we all know, Open Language is among the least-urgent of all the Kickstarter goals, so don't expect it before critical fixes like Unicode, Cocoa, and multimedia are solidly completed. And don't expect any IDE that depends on Open Language until Open Language is far enough along to be dependable. So in the meantime, the core dev team uses the same IDE as the rest of us. And even when a new IDE project can be started on the foundation of a nearly-completed Open Language-based engine, we can anticipate that moment will be many months from now, and will take many months more to complete, so any work done on the current IDE seems likely to have a useful shelf life. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From jacque at hyperactivesw.com Sun Jun 8 16:15:51 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 08 Jun 2014 15:15:51 -0500 Subject: ScreenRect bug or not In-Reply-To: <5394AB4C.5030006@fourthworld.com> References: <5394AB4C.5030006@fourthworld.com> Message-ID: <5394C477.60007@hyperactivesw.com> On 6/8/2014, 1:28 PM, Richard Gaskin wrote: > AFAIK there is no other RunRev-borne IDE in existence (the community has > several), just ideas, sketches, possibilities and imaginings which may > become fleshed out into some actual thing in the future The idea for a new IDE was announced two RevLives ago (the time you missed Richard, but you sent a video and a random drawing prize.) I thought the new project browser was the first step in that direction. Then other things came up with more urgency and the PB is, so far, the only piece we have. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From mwieder at ahsoftware.net Sun Jun 8 17:18:59 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 8 Jun 2014 14:18:59 -0700 Subject: ScreenRect bug or not In-Reply-To: <5394AB4C.5030006@fourthworld.com> References: <5394AB4C.5030006@fourthworld.com> Message-ID: <160679330908.20140608141859@ahsoftware.net> Richard- Sunday, June 8, 2014, 11:28:28 AM, you wrote: > A secret is a willful attempt to conceal, but we have no indication that > anyone's doing that. > So before anyone runs off to the hardware store to grab pitchforks for > storming the castle over some imagined IDE conspiracy, please kindly > take a moment to consider only what I wrote Here is what you wrote: > There is an IDE rewrite underway, and a very large-scope effort to > improve overall rendering. As you know, I've been pushing for open-sourcing the IDE for over a year now, but so far I've seen no move in that direction. If you're privy to some information that the rest of us are not, then perhaps you have a better word for it than "secret", because it's certainly news to me. I recall some years ago there was a decision by the team to rewrite the datatbase library, and so all existing database bugs were "closed" and made duplicates of a single db-rewrite bug. To date all those bug reports remain in the limbo of duplicate entries and the database layer has not been rewritten. I trust it will happen someday, but in the meantime I'm not about to try fixing database layer bugs just to have them closed as duplicates. And I don't see any difference with the rest of the IDE if we don't know what parts are being rewritten. ...although possibly you mean something else by "IDE rewrite"... -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From larry at significantplanet.org Sun Jun 8 17:29:51 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Sun, 8 Jun 2014 15:29:51 -0600 Subject: please help!! References: <5393ECB4.90406@hyperactivesw.com> <5393F3AA.4040602@hyperactivesw.com><54678D9DCC5449DA8602300D6985F74D@userd204a4d61c> <5393FC12.4050900@hyperactivesw.com> Message-ID: <6A0EF7F5E83E49A69D40642C8B1A8332@userd204a4d61c> Hello Jacqueline, You are incredibly kind! I did rest up and then started over this morning. I went back to my original stack before this latest problem and just rebuilt it from scratch. I don't know that I did anything differently, but now it works just fine. Every once in awhile I will get the most random error message when running a program, but it never seems to ultimately matter. That is one of my frustrations with LiveCode. And as you point out, it's going to be hard to learning any new language. So, for today, I am tired but moving on. Maybe you'll give me a rain check to look at one of my stacks in the future? Thank you again, Larry ----- Original Message ----- From: "J. Landman Gay" To: "How to use LiveCode" Sent: Sunday, June 08, 2014 12:00 AM Subject: Re: please help!! > On 6/8/2014, 12:41 AM, larry at significantplanet.org wrote: >> Right now I am too frustrated and tired to keep going. > > Yeah, been there. It's normal but it's really frustrating. Learning a new > language is hard, no matter which one you choose. > > Send me your stack if you want and I can probably tell you where it's > going off the rails. But rest up first. > > -- > 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 Sun Jun 8 18:59:15 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 15:59:15 -0700 Subject: ScreenRect bug or not In-Reply-To: <160679330908.20140608141859@ahsoftware.net> References: <160679330908.20140608141859@ahsoftware.net> Message-ID: <5394EAC3.8050806@fourthworld.com> Mark Wieder wrote: > Richard- > > Sunday, June 8, 2014, 11:28:28 AM, you wrote: > >> A secret is a willful attempt to conceal, but we have no indication that >> anyone's doing that. > >> So before anyone runs off to the hardware store to grab pitchforks for >> storming the castle over some imagined IDE conspiracy, please kindly >> take a moment to consider only what I wrote > > Here is what you wrote: > >> There is an IDE rewrite underway, and a very large-scope effort to >> improve overall rendering. One of the problems with my admittedly-lengthy writing style is that it can make posts too long to read - I had also written: The IDE rewrite is AFAIK very early-stage, a logical necessity from the Open Language initiative and the implications thereof related to extensibility. I imagine we'll be hearing more about it as it begins to move from sketchpad to code, but right now it's all about supporting OL so I don't believe there's much concrete that can be said about it until OL gets fleshed out more. AFAIK there is no version of the engine in any usable form that supports Open Language (on the contrary, I would imagine there are many deep design decisions still being fleshed out), so it would not be possible for the folks at RunRev to be secretly using an IDE dependent on it. As Jacque noted, the core dev team has been discussing plans for a new IDE for a long time. Evolution of features and design are an inherent part of the process for all software, and a glance at the Road Map makes it clear that it will only become increasingly necessary for RunRev as well. I just think it'll be more productive if we can discuss future development options with a presumption of good intentions. > As you know, I've been pushing for open-sourcing the IDE for over a > year now, but so far I've seen no move in that direction. If you're > privy to some information that the rest of us are not, then perhaps > you have a better word for it than "secret", because it's certainly > news to me. If something is merely unknown, using "unknown" may be a good choice. :) As the current acting Community Manager, the nature of the role requires me to help find ways to remove obstacles that may be preventing anyone from doing what they want to do in this open source project. To recap where we are with the IDE in terms of open source process: The IDE files are on GitHub, and even better are licensed under the very permissive MIT license: We use LiveCode because it represents a very different way of working, but that same benefit for us poses unique challenges as an open source project. As you know better than most, off-the-shelf versioning systems don't handle LiveCode's unique structure for stack files, leaving it for us to invent our own way to make that happen. Good work has been done along those lines (and a lot of that by you - thank you for helping to bring it as far as it's come), and many options exist for ways to do productive work even now, before we have an even better system in place. But ultimately the bigger issue here isn't a technical one of all, but the central challenge with all open source projects: Finding people with the time and skills to contribute. The skills required go beyond just LiveCode proficiency. As with any open source project, there has to be a willingness to work within a wide range of divergent interests and goals, and a sometimes-dizzying variety of design visions. Very few of us in the LiveCode universe have much hands-on experience with this sort of process. I've made only modest contributions to the Ubuntu project (and thankfully none of them in C++ code ), most of LiveCode's user base makes and uses only proprietary software, and RunRev themselves have been open source just over a year. We're all learning as we go. It complicates things further that the nature of LiveCode stack files currently precludes us from easily using off-the-shelf systems to help support the process. But I still believe we can do it. There are some very smart, inventive people both here in the community and on the core dev team, and we all share the common vision of both sides working together productively to make the best LiveCode the world has seen. To help this along, we have the good fortune of having bugs in the IDE, which are of course annoying but also allow us an opportunity: If we prioritize addressing bugs in the current IDE right now, we'll not only have fewer bugs, but more importantly we will have found the team members and processes that can guide bigger objectives. This email has already gotten too long, so let me outline some of the ways we can work on the IDE today in a separate post. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From ambassador at fourthworld.com Sun Jun 8 19:31:31 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 16:31:31 -0700 Subject: Open Source IDE and You Message-ID: <5394F253.9000404@fourthworld.com> In another thread the topic came up about moving our open source process forward with the IDE. Let me describe some of the current options already on the table, and invite your suggestions for others: There are challenges with any open source project, and with LiveCode they're made even more complex by not being able to easily use off-the-shelf systems for our unique stack file structure. So in the interest of helping to find ways to move things forward with what we have now, members of the community and the core team at RunRev have been taking on some initiatives toward that end. As with just about any component in any software project, we can expect that the IDE we currently use will eventually be replaced with something better suited for the engine as it evolves. Ideally that process will include a lot of community contribution, and indeed Ben and others at RunRev have noted that much of the long-term planning revolves around community-driven components. However, dependent as it is on specific engine features that don't yet exist, I wouldn't expect it soon. In the meantime, there are bugs in the IDE and opportunities for refinement, and these can be done with the assistance of the community if anyone here is up for it. In broad terms: - Forums as a central working group resource we can use to explore ideas, assemble teams, and manage projects - Experimental "FIX:" protocol in the bug database - Forking to explore radical design initiatives In more detail: Forums as Working Groups ------------------------ To help move things along, Heather elevated my privileges in the forums so we can create new sections as needed to form working groups for IDE projects: The protocol used there is an attempt to bring some of the things I've seen work with other projects into this community: Topics are initially flagged as "Brainstorm", encouraging folks to discuss ideas and explore the range of things they'd like to work on. Once a given scope has become sufficiently well defined to be actionable, and with a team and a team leader to make it happen, we can make a separate thread for that with the heading of "Project:". A few projects are underway there, mostly on the documentation side but we've seen interest from some members of the community in helping with a triage on RevOnline, which seems a good focus while we're all still exploring the process because it's very valuable to the community and when it breaks people are vocal about it. :) EXPERIMENTAL "FIX:" protocol ----------------------------- I really do need to stress that this is EXPERIMENTAL, so please do not participate in this EXPERIMENTAL protocol if you require that your fixes be acted on immediately. Have I stressed that it's EXPERIMENTAL enough? Okay, here's the deal: If you have the time to fix a bug that's bugging you in the IDE, that's the best first step because at that point we have at least one copy of the IDE where that bug no longer exists. To share the fix with the core team, paste the code in your original bug report for the item, along with the object reference and line numbers of the script it belongs in. Once you've done that, change the Summary field to be prefixed with "FIX:", so the team can see it's flagged as a report that also includes a fix. Of course any FIX item, like any bug report, must have a recipe. If the recipe takes more than a single line in the Message Box to execute, please also include a sample test so the team can not only readily identify the problem, but also so that they can add it into their testing system to minimize possible regressions in the future. Did I note that this protocol is EXPERIMENTAL? On the RunRev side, things are hectic and complex. They're willing to experiment with this protocol to see if it's helpful, but if we see submissions lacking in quality or absent of sample stacks, it won't help at all. So right now this is EXPERIMENTAL, and it's up to us to make sure it's actually helpful. Forking the IDE --------------- The IDE is licensed under the permissive MIT license, just as the MetaCard IDE was in 2003, so anyone can modify it however they like. While forking can risk audience fragmentation, it can be a good choice for impatient people or radical visionaries. :) And it can be a good choice for making specialized IDEs for specific niches, like education. With a fork you're completely unencumbered by whatever long-term considerations the core dev team has to accommodate, or any backward compatibility any community members may expect. You can do whatever you like, and sometimes this can be a good way to explore ideas. In my own view, the risk to audience fragmentation is really only a learnability issue, since things like the User Guide by necessity will only document the IDE that ships with the main distribution from LiveCode.com. But if you want to make sweeping changes beyond what RunRev can accommodate, or just want to explore radical new designs without worrying about compatibility, fork away. That's what the GPL is all about, learning and proliferation. Another option along these lines worth mentioning is building an entirely new IDE, either forking MetaCard or building it from scratch as Mats Wilstrand did with rIDE: rIDE is an ambitious project, and rather exemplary in the the way Mats has embraced open source process and actively invites contributions. Other Options ------------- What would you like to contribute, and what obstacles have you found that have prevented you from doing so? Let's figure it out together, and make the best LiveCode ever. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From alex at tweedly.net Sun Jun 8 20:03:18 2014 From: alex at tweedly.net (Alex Tweedly) Date: Mon, 09 Jun 2014 01:03:18 +0100 Subject: Open Source IDE and You In-Reply-To: <5394F253.9000404@fourthworld.com> References: <5394F253.9000404@fourthworld.com> Message-ID: <5394F9C6.6030901@tweedly.net> On 09/06/2014 00:31, Richard Gaskin wrote: > In broad terms: > > - Forums as a central working group resource we can use to explore > ideas, assemble teams, and manage projects > Can we PLEASE PLEASE PLEASE get the forums mirrored (or gatewayed, or whatever the right term is) into e-mail ? I find the forums impossibly slow and tedious to check, search and read. Maybe I need to do it every day, maybe I need to use some option, or some external tool, maybe there is some way to get it to show me only the posts I haven't read yet (or highlight them?), or some way to download all new posts for off-line browsing, or ..... But right now, I go to the forum page and all I can see is 60 or 70 sections, some or all of which might have posts I might or might not have read - and it takes an age to go into each one and see if I can remember whether or not I've seen everything. On the other hand, I read the use-list and the dev-list - each time I go into my email, I find a simple, sorted, threaded (if I want) set of new postings - I read them (or skip them) and I'm very quickly and easily done. And if I am connected to the 'net, they are all downloaded and I can read them later even if I'm not connected (which happens often). Net result - I read and sometimes/often respond to the email lists, and every so often I try the forums for a day or two before giving up in frustration. Summary - please either gate-way them into an email-based system, or give some instructions on how the forums can be made to be user-friendly (which may well just be over-coming my ignorance :-) Thanks -- Alex. From MikeKerner at roadrunner.com Sun Jun 8 20:07:19 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:07:19 -0400 Subject: Copy of RevError Report Message-ID: I have a faceless application that, when it opens, is throwing up a blank dialog with an ok button. The title of the dialog it is throwing up is "Copy of RevError Report". Any clues what might be triggering this? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sun Jun 8 20:15:22 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:15:22 -0400 Subject: Open Source IDE and You In-Reply-To: <5394F9C6.6030901@tweedly.net> References: <5394F253.9000404@fourthworld.com> <5394F9C6.6030901@tweedly.net> Message-ID: I would much rather have new email lists than forums. Yes, some folks are forums people. I am not. On Sun, Jun 8, 2014 at 8:03 PM, Alex Tweedly wrote: > On 09/06/2014 00:31, Richard Gaskin wrote: > >> In broad terms: >> >> - Forums as a central working group resource we can use to explore ideas, >> assemble teams, and manage projects >> >> Can we PLEASE PLEASE PLEASE get the forums mirrored (or gatewayed, or > whatever the right term is) into e-mail ? > > I find the forums impossibly slow and tedious to check, search and read. > Maybe I need to do it every day, maybe I need to use some option, or some > external tool, maybe there is some way to get it to show me only the posts > I haven't read yet (or highlight them?), or some way to download all new > posts for off-line browsing, or ..... > > But right now, I go to the forum page and all I can see is 60 or 70 > sections, some or all of which might have posts I might or might not have > read - and it takes an age to go into each one and see if I can remember > whether or not I've seen everything. > > On the other hand, I read the use-list and the dev-list - each time I go > into my email, I find a simple, sorted, threaded (if I want) set of new > postings - I read them (or skip them) and I'm very quickly and easily done. > And if I am connected to the 'net, they are all downloaded and I can read > them later even if I'm not connected (which happens often). > > Net result - I read and sometimes/often respond to the email lists, and > every so often I try the forums for a day or two before giving up in > frustration. > > Summary - please either gate-way them into an email-based system, or give > some instructions on how the forums can be made to be user-friendly (which > may well just be over-coming my ignorance :-) > > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sun Jun 8 20:20:14 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:20:14 -0400 Subject: Open Source IDE and You In-Reply-To: References: <5394F253.9000404@fourthworld.com> <5394F9C6.6030901@tweedly.net> Message-ID: also, what's the difference between this forum and the "Extending" group? On Sun, Jun 8, 2014 at 8:15 PM, Mike Kerner wrote: > I would much rather have new email lists than forums. Yes, some folks are > forums people. I am not. > > > On Sun, Jun 8, 2014 at 8:03 PM, Alex Tweedly wrote: > >> On 09/06/2014 00:31, Richard Gaskin wrote: >> >>> In broad terms: >>> >>> - Forums as a central working group resource we can use to explore >>> ideas, assemble teams, and manage projects >>> >>> Can we PLEASE PLEASE PLEASE get the forums mirrored (or gatewayed, or >> whatever the right term is) into e-mail ? >> >> I find the forums impossibly slow and tedious to check, search and read. >> Maybe I need to do it every day, maybe I need to use some option, or some >> external tool, maybe there is some way to get it to show me only the posts >> I haven't read yet (or highlight them?), or some way to download all new >> posts for off-line browsing, or ..... >> >> But right now, I go to the forum page and all I can see is 60 or 70 >> sections, some or all of which might have posts I might or might not have >> read - and it takes an age to go into each one and see if I can remember >> whether or not I've seen everything. >> >> On the other hand, I read the use-list and the dev-list - each time I go >> into my email, I find a simple, sorted, threaded (if I want) set of new >> postings - I read them (or skip them) and I'm very quickly and easily done. >> And if I am connected to the 'net, they are all downloaded and I can read >> them later even if I'm not connected (which happens often). >> >> Net result - I read and sometimes/often respond to the email lists, and >> every so often I try the forums for a day or two before giving up in >> frustration. >> >> Summary - please either gate-way them into an email-based system, or give >> some instructions on how the forums can be made to be user-friendly (which >> may well just be over-coming my ignorance :-) >> >> 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 >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sun Jun 8 20:23:12 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:23:12 -0400 Subject: Open Source IDE and You In-Reply-To: <5394F253.9000404@fourthworld.com> References: <5394F253.9000404@fourthworld.com> Message-ID: I would also like to have a "class" on hacking the IDE, so when we are breaking things to look cool, we aren't doing something that will make our work harder to accept. On Sun, Jun 8, 2014 at 7:31 PM, Richard Gaskin wrote: > In another thread the topic came up about moving our open source process > forward with the IDE. Let me describe some of the current options already > on the table, and invite your suggestions for others: > > > There are challenges with any open source project, and with LiveCode > they're made even more complex by not being able to easily use > off-the-shelf systems for our unique stack file structure. > > So in the interest of helping to find ways to move things forward with > what we have now, members of the community and the core team at RunRev have > been taking on some initiatives toward that end. > > As with just about any component in any software project, we can expect > that the IDE we currently use will eventually be replaced with something > better suited for the engine as it evolves. > > Ideally that process will include a lot of community contribution, and > indeed Ben and others at RunRev have noted that much of the long-term > planning revolves around community-driven components. However, dependent > as it is on specific engine features that don't yet exist, I wouldn't > expect it soon. > > In the meantime, there are bugs in the IDE and opportunities for > refinement, and these can be done with the assistance of the community if > anyone here is up for it. > > In broad terms: > > - Forums as a central working group resource we can use to explore ideas, > assemble teams, and manage projects > > - Experimental "FIX:" protocol in the bug database > > - Forking to explore radical design initiatives > > > In more detail: > > > Forums as Working Groups > ------------------------ > To help move things along, Heather elevated my privileges in the forums so > we can create new sections as needed to form working groups for IDE > projects: > > > The protocol used there is an attempt to bring some of the things I've > seen work with other projects into this community: > > Topics are initially flagged as "Brainstorm", encouraging folks to discuss > ideas and explore the range of things they'd like to work on. > > Once a given scope has become sufficiently well defined to be actionable, > and with a team and a team leader to make it happen, we can make a separate > thread for that with the heading of "Project:". > > A few projects are underway there, mostly on the documentation side but > we've seen interest from some members of the community in helping with a > triage on RevOnline, which seems a good focus while we're all still > exploring the process because it's very valuable to the community and when > it breaks people are vocal about it. :) > > > > EXPERIMENTAL "FIX:" protocol > ----------------------------- > I really do need to stress that this is EXPERIMENTAL, so please do not > participate in this EXPERIMENTAL protocol if you require that your fixes be > acted on immediately. Have I stressed that it's EXPERIMENTAL enough? > Okay, here's the deal: > > If you have the time to fix a bug that's bugging you in the IDE, that's > the best first step because at that point we have at least one copy of the > IDE where that bug no longer exists. > > To share the fix with the core team, paste the code in your original bug > report for the item, along with the object reference and line numbers of > the script it belongs in. Once you've done that, change the Summary field > to be prefixed with "FIX:", so the team can see it's flagged as a report > that also includes a fix. > > Of course any FIX item, like any bug report, must have a recipe. If the > recipe takes more than a single line in the Message Box to execute, please > also include a sample test so the team can not only readily identify the > problem, but also so that they can add it into their testing system to > minimize possible regressions in the future. > > Did I note that this protocol is EXPERIMENTAL? On the RunRev side, things > are hectic and complex. They're willing to experiment with this protocol to > see if it's helpful, but if we see submissions lacking in quality or absent > of sample stacks, it won't help at all. So right now this is EXPERIMENTAL, > and it's up to us to make sure it's actually helpful. > > > Forking the IDE > --------------- > The IDE is licensed under the permissive MIT license, just as the MetaCard > IDE was in 2003, so anyone can modify it however they like. > > While forking can risk audience fragmentation, it can be a good choice for > impatient people or radical visionaries. :) And it can be a good choice > for making specialized IDEs for specific niches, like education. > > With a fork you're completely unencumbered by whatever long-term > considerations the core dev team has to accommodate, or any backward > compatibility any community members may expect. You can do whatever you > like, and sometimes this can be a good way to explore ideas. > > In my own view, the risk to audience fragmentation is really only a > learnability issue, since things like the User Guide by necessity will only > document the IDE that ships with the main distribution from LiveCode.com. > > But if you want to make sweeping changes beyond what RunRev can > accommodate, or just want to explore radical new designs without worrying > about compatibility, fork away. That's what the GPL is all about, learning > and proliferation. > > Another option along these lines worth mentioning is building an entirely > new IDE, either forking MetaCard or building it from scratch as Mats > Wilstrand did with rIDE: > > > rIDE is an ambitious project, and rather exemplary in the the way Mats has > embraced open source process and actively invites contributions. > > > Other Options > ------------- > What would you like to contribute, and what obstacles have you found that > have prevented you from doing so? > > Let's figure it out together, and make the best LiveCode ever. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From skiplondon at gmail.com Sun Jun 8 20:23:57 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Sun, 8 Jun 2014 20:23:57 -0400 Subject: Copy of RevError Report In-Reply-To: References: Message-ID: <0641AC79-EFB5-46DF-94DD-278C94839935@gmail.com> An application that throws up is never a good thing. A sure sign of something amiss. SKIP > On Jun 8, 2014, at 8:07 PM, Mike Kerner wrote: > > I have a faceless application that, when it opens, is throwing up a blank > dialog with an ok button. The title of the dialog it is throwing up is > "Copy of RevError Report". > > Any clues what might be triggering this? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 8 20:30:42 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 17:30:42 -0700 Subject: Open Source IDE and You In-Reply-To: <5394F9C6.6030901@tweedly.net> References: <5394F9C6.6030901@tweedly.net> Message-ID: <53950032.3060809@fourthworld.com> Alex Tweedly wrote: > Can we PLEASE PLEASE PLEASE get the forums mirrored (or gatewayed, or > whatever the right term is) into e-mail ? > > I find the forums impossibly slow and tedious to check, search and > read. Maybe I need to do it every day, maybe I need to use some > option, or some external tool, maybe there is some way to get it to > show me only the posts I haven't read yet (or highlight them?), or > some way to download all new posts for off-line browsing, or ..... PHPBB is pretty feature-rich, providing several options for having a productive experience with the forums for a wide range of personal preferences, including those who prefer email: - "View New Posts" This link is at the top of the front page, and the first time you visit the forums it'll bring up a long list, but every visit after that will show you only the new posts. Those who frequent the forums, such as those participating in the IDE working groups, will find that list pretty short. - RSS You have your choice of getting an RSS feed for every section, or just for the sections you care about. If you enjoy the convenience of RSS readers, this is a good option. The RSS feeds include a "Reply" link so you can join the conversation in one click. - Bookmarks At the bottom of every thread is a Bookmark option, which you can manage through your Account Control Panel. - Email Subscription Yep, email is already supported, but in a smart way that leaves you in control of your In Box. The forums are so active I can pretty much guarantee no one wants everything there coming into their In Box. But you can subscribe to any specific section or individual thread using the "Subscribe Forum" or "Subscribe Topic" link at the bottom of the page. Once subscribed you'll get email notifications of any new activity there, which IIRC includes a handy one-click link for replying. Future options: Why stop with just four conveniences when the sky's the limit? :) An upcoming version of RevNet will include a mashup that merges the most recent posts in all of the following venues into one convenient reader accessible right in the IDE: - LC forums - use-livecode list - LiveCode blog - LC topics on Stack Overflow Other mashups are possible as well. All of those venues and many more have some form of XML output, and with scrapers you're not even limited to that; I hear LiveCode's pretty good at parsing text. ;) There's no end to the ways we can access info from the LC universe. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From skiplondon at gmail.com Sun Jun 8 20:42:14 2014 From: skiplondon at gmail.com (Skip Kimpel) Date: Sun, 8 Jun 2014 20:42:14 -0400 Subject: Copy of RevError Report In-Reply-To: References: Message-ID: What version are you running? > On Jun 8, 2014, at 8:07 PM, Mike Kerner wrote: > > I have a faceless application that, when it opens, is throwing up a blank > dialog with an ok button. The title of the dialog it is throwing up is > "Copy of RevError Report". > > Any clues what might be triggering this? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 8 20:43:52 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 17:43:52 -0700 Subject: Open Source IDE and You In-Reply-To: References: Message-ID: <53950348.606@fourthworld.com> Mike Kerner wrote: > what's the difference between this forum and the "Extending" group? The description for "Extending LiveCode" reads: Are you developing tools to extend the LiveCode environment? This is the place to talk about the nuts and bolts of extending our nuts and bolts. If you want to use a LiveCode or third party Environment extension, visit the Using Evironment Extensions forum. The IDE ?ontributors section did not previously have a description (thanks for bringing that to my attention), but it now reads: This forum is a working group for community contributors to the LiveCode IDE included in the main LiveCode distribution. > I would also like to have a "class" on hacking the IDE, so when we are > breaking things to look cool, we aren't doing something that will make our > work harder to accept. That would be cool. For starters, if you set the global variable gRevDevelopment to true you'll have the same environment the core dev team at RunRev works in, with easier access to some objects and scripts. In this week's community meeting with Kevin I'll ask about any internal docs they may have which might be useful for community contributors. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From simon at asato-media.com Sun Jun 8 20:46:50 2014 From: simon at asato-media.com (As_Simon) Date: Sun, 8 Jun 2014 17:46:50 -0700 (PDT) Subject: Open Source IDE and You In-Reply-To: <53950032.3060809@fourthworld.com> References: <5394F253.9000404@fourthworld.com> <5394F9C6.6030901@tweedly.net> <53950032.3060809@fourthworld.com> Message-ID: <1402274810708-4680359.post@n4.nabble.com> Two things Richard left out: You must be logged in to the forum to view the "New Posts" and there is also an "Unread Posts (by you)" link. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Open-Source-IDE-and-You-tp4680349p4680359.html Sent from the Revolution - User mailing list archive at Nabble.com. From gerry.orkin at gmail.com Sun Jun 8 20:48:22 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Mon, 9 Jun 2014 10:48:22 +1000 Subject: Weird data grid behaviour In-Reply-To: References: Message-ID: <3CDB96A6-DE27-4B83-939F-B4091753050A@gmail.com> theSlug wrote: > 1 to 6: This is the normal behavior for all the datagrids: So weird. I've been using datagrids for a few years and never noticed this...in fact i've just looked at a couple of old projects and the datagrid template stacks only have 1 card in them...id 1002. > - You have placed the new objects outside the row template group (i.e. > in the card). Edit the template group and place your controls inside > it. Nope that wasn't it and nor was it the absence of data. Weird, but making a new datagrid seems to have fixed it. Gerry From MikeKerner at roadrunner.com Sun Jun 8 20:48:03 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:48:03 -0400 Subject: Open Source IDE and You In-Reply-To: <53950348.606@fourthworld.com> References: <53950348.606@fourthworld.com> Message-ID: I've been hacking the IDE for my own purposes for years, but I just posted my first FIX a week or two ago, since our effort is now hopefully going to be more helpful. I also asked to get some more detail on INTERNAL, because I have now bounced into it several times. The problem with setting gRevDevelopment is that I have been messing around with the script editor, and that's a little tricky. On Sun, Jun 8, 2014 at 8:43 PM, Richard Gaskin wrote: > Mike Kerner wrote: > > what's the difference between this forum and the "Extending" group? >> > > The description for "Extending LiveCode" reads: > > Are you developing tools to extend the LiveCode environment? > This is the place to talk about the nuts and bolts of extending > our nuts and bolts. If you want to use a LiveCode or third party > Environment extension, visit the Using Evironment Extensions > forum. > > The IDE ?ontributors section did not previously have a description (thanks > for bringing that to my attention), but it now reads: > > This forum is a working group for community contributors to > the LiveCode IDE included in the main LiveCode distribution. > > > > I would also like to have a "class" on hacking the IDE, so when we are >> breaking things to look cool, we aren't doing something that will make our >> work harder to accept. >> > > That would be cool. > > For starters, if you set the global variable gRevDevelopment to true > you'll have the same environment the core dev team at RunRev works in, with > easier access to some objects and scripts. > > In this week's community meeting with Kevin I'll ask about any internal > docs they may have which might be useful for community contributors. > > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Sun Jun 8 20:51:04 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 20:51:04 -0400 Subject: Open Source IDE and You In-Reply-To: References: <53950348.606@fourthworld.com> Message-ID: Also, the emails you get when you email subscribe to the forums don't tell you anything except that there's been a message. The content is not included. On Sun, Jun 8, 2014 at 8:48 PM, Mike Kerner wrote: > I've been hacking the IDE for my own purposes for years, but I just posted > my first FIX a week or two ago, since our effort is now hopefully going to > be more helpful. > > I also asked to get some more detail on INTERNAL, because I have now > bounced into it several times. > > The problem with setting gRevDevelopment is that I have been messing > around with the script editor, and that's a little tricky. > > > On Sun, Jun 8, 2014 at 8:43 PM, Richard Gaskin > wrote: > >> Mike Kerner wrote: >> >> what's the difference between this forum and the "Extending" group? >>> >> >> The description for "Extending LiveCode" reads: >> >> Are you developing tools to extend the LiveCode environment? >> This is the place to talk about the nuts and bolts of extending >> our nuts and bolts. If you want to use a LiveCode or third party >> Environment extension, visit the Using Evironment Extensions >> forum. >> >> The IDE ?ontributors section did not previously have a description >> (thanks for bringing that to my attention), but it now reads: >> >> This forum is a working group for community contributors to >> the LiveCode IDE included in the main LiveCode distribution. >> >> >> >> I would also like to have a "class" on hacking the IDE, so when we are >>> breaking things to look cool, we aren't doing something that will make >>> our >>> work harder to accept. >>> >> >> That would be cool. >> >> For starters, if you set the global variable gRevDevelopment to true >> you'll have the same environment the core dev team at RunRev works in, with >> easier access to some objects and scripts. >> >> In this week's community meeting with Kevin I'll ask about any internal >> docs they may have which might be useful for community contributors. >> >> >> -- >> Richard Gaskin >> LiveCode Community Manager >> richard at livecode.org >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jacque at hyperactivesw.com Sun Jun 8 20:52:16 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 08 Jun 2014 19:52:16 -0500 Subject: Open Source IDE and You In-Reply-To: <5394F9C6.6030901@tweedly.net> References: <5394F253.9000404@fourthworld.com> <5394F9C6.6030901@tweedly.net> Message-ID: <53950540.5090001@hyperactivesw.com> On 6/8/2014, 7:03 PM, Alex Tweedly wrote: > Can we PLEASE PLEASE PLEASE get the forums mirrored (or gatewayed, or > whatever the right term is) into e-mail ? You can! I hate the forum structure too and I just don't have the patience to navigate to every topic daily. But if you go to your user control panel (link at the top left of the forums window,) there's an option to receive a daily digest (last tab in the panel.) I did that. It's working great. I set mine up for daily digests of all topics, sent at 9 AM in HTML format. If you set it up to "reset my last visit date" then every digest will contain only the posts that are new since the last digest. I read it from my inbox every morning. If there is something I want to respond to, I click the topic link in the digest and it takes me right to the discussion where I can click "reply" and give an answer. This has saved my sanity. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Sun Jun 8 20:54:06 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Sun, 08 Jun 2014 19:54:06 -0500 Subject: please help!! In-Reply-To: <6A0EF7F5E83E49A69D40642C8B1A8332@userd204a4d61c> References: <5393ECB4.90406@hyperactivesw.com> <5393F3AA.4040602@hyperactivesw.com><54678D9DCC5449DA8602300D6985F74D@userd204a4d61c> <5393FC12.4050900@hyperactivesw.com> <6A0EF7F5E83E49A69D40642C8B1A8332@userd204a4d61c> Message-ID: <539505AE.2050100@hyperactivesw.com> On 6/8/2014, 4:29 PM, larry at significantplanet.org wrote: > Maybe you'll give me a rain check to look at one of my stacks in the > future? Sure, provided it's a weekend when most of my clients are ignoring me, and that you've exhausted all options and are once again on the brink of suicide. ;) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Sun Jun 8 20:54:26 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 17:54:26 -0700 Subject: Copy of RevError Report In-Reply-To: References: Message-ID: <539505C2.4080202@fourthworld.com> Mike Kerner write: > I have a faceless application that, when it opens, is throwing up a blank > dialog with an ok button. The title of the dialog it is throwing up is > "Copy of RevError Report". > > Any clues what might be triggering this? Somehow it seems the Error dialog was copied into your stack file, perhaps at build time. Double-check the original stack file and rebuild, though it may also be an indication of some other error in the script, so expect that even when you get rid of the dialog you'll see error info output to console (though you'll want to use the very latest version for that - some earlier builds had a bug which prevented console output on Windows). But even weirder is that it's able to display a dialog at all - normally, running facelessly is done by passing -ui on the command line, which is so much more efficient because it never initializes any GUI components. But if you were running facelessly, it shouldn't be possible for the engine to present any window at all. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From ambassador at fourthworld.com Sun Jun 8 20:57:47 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 08 Jun 2014 17:57:47 -0700 Subject: Open Source IDE and You In-Reply-To: References: Message-ID: <5395068B.2000303@fourthworld.com> Mike Kerner wrote: > Also, the emails you get when you email subscribe to the forums don't tell > you anything except that there's been a message. The content is not > included. Good catch - thanks. Ignore my instructions, and follow Jacque's instead: -- Richard Gaskin LiveCode Community Manager richard at livecode.org From MikeKerner at roadrunner.com Sun Jun 8 22:44:59 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 8 Jun 2014 22:44:59 -0400 Subject: Copy of RevError Report In-Reply-To: <539505C2.4080202@fourthworld.com> References: <539505C2.4080202@fourthworld.com> Message-ID: I know. It's really bizarre. It's also not modal. I have a timeout built into the standalone so that it will eventually just quit, and the dialog doesn't stop that. Well, more messing there will be. On Sun, Jun 8, 2014 at 8:54 PM, Richard Gaskin wrote: > Mike Kerner write: > > I have a faceless application that, when it opens, is throwing up a blank >> dialog with an ok button. The title of the dialog it is throwing up is >> "Copy of RevError Report". >> >> Any clues what might be triggering this? >> > > Somehow it seems the Error dialog was copied into your stack file, perhaps > at build time. Double-check the original stack file and rebuild, though it > may also be an indication of some other error in the script, so expect that > even when you get rid of the dialog you'll see error info output to console > (though you'll want to use the very latest version for that - some earlier > builds had a bug which prevented console output on Windows). > > But even weirder is that it's able to display a dialog at all - normally, > running facelessly is done by passing -ui on the command line, which is so > much more efficient because it never initializes any GUI components. But > if you were running facelessly, it shouldn't be possible for the engine to > present any window at all. > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > Follow me on Twitter: http://twitter.com/FourthWorldSys > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From gcanyon at gmail.com Mon Jun 9 01:31:07 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 9 Jun 2014 00:31:07 -0500 Subject: Flappy bird clone takes <= 9 hours in Swift Message-ID: Apparently it was 9 hours with some interruptions. If we're talking basic functionality -- fly the bird, flap the wings, move the pillars left and count how many the user has passed, collision detection, start/end games and high score tracking -- then I'm guessing this wouldn't go much faster in LiveCode. I might shave an hour or two off, which is significant when starting from 7 or 9, but I doubt I'd have this running in <= 4 hours. Curious if anyone else would estimate differently. http://techcrunch.com/2014/06/04/a-developer-cloned-flappy-bird-using-apples-new-programming-language-swift-in-a-matter-of-hours/?ncid=rss&source=gravity&cps=gravity From john at splash21.com Mon Jun 9 03:04:47 2014 From: john at splash21.com (John Craig) Date: Mon, 09 Jun 2014 08:04:47 +0100 Subject: [ANN] MobGUI V1.26 In-Reply-To: References: <5393720B.9080005@splash21.com> Message-ID: <53955C8F.4030801@splash21.com> Browser loads url OK for me in LC6, but not 7 - which I assume is an LC bug as it's the exact same code in the behavior for the control - I'll check it out today and file a QCC. The main fix was that the plugin actually runs in LC7. I don't think the any of the native controls are created properly in 7 with the mg behavior scripts - something doesn't fire. On 07/06/2014 21:23, Colin Holgate wrote: > With this version, how do you create a nav bar that has a title, or a tab bar that has buttons in it? I only seem to be able to make gray rectangles. Also, the browser object seems not to load the URL it has been given. > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at gmail.com Mon Jun 9 03:53:50 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Mon, 9 Jun 2014 02:53:50 -0500 Subject: please help!! In-Reply-To: References: Message-ID: I created a test stack. I created six buttons and grouped them. I ran the following in a seventh button. It never failed. I'm using 6.5.2. Somewhere along the way the more specific childControlIDs was added. I didn't know if it is available in 6.1.1 so I didn't use it. on mouseUp repeat 1000 lock screen repeat for each line tID in the controlids of grp 1 set the label of control id tID to char random(5) of "1234?" end repeat -- this is the important code for your purpose repeat for each line tID in the controlids of grp 1 set the opaque of control id tID to (the label of control id tID is "?") end repeat unlock screen wait 0 ticks repeat for each line tID in the controlids of grp 1 if the opaque of control id tID is not (the label of control id tID is "?") then answer "Problem!" exit repeat end if end repeat end repeat end mouseUp On Sat, Jun 7, 2014 at 9:41 PM, wrote: > I am using 6.1.1 (rc 4) on XP > > I have spent HOURS trying to do something that seems fairly simple. > > I have a column of buttons labeled "tile11", "tile12", etc > > After I label the buttons, they are all alpha-numeric characters except > for one being labeled "?" > > Then I call up the following command: > > on doOpaque > > put 0 into x > > repeat rowNum times > > put x + 1 into x > > put ("tile1" & x) into thisButton > > if the label of button thisButton = "?" then > > set the opaque of button thisButton to true > > else > > set the opaque of button thisButton to false > > end if > > end repeat > > end doOpaque > > > > If I debug and step through it, it always seems to work. However if I > just run it, it invariably sets the opaque of the "?" button to false and > some other button (NOT "?") to true. > > I'm really going crazy with this and would appreciate it if anyone knows > why this is happening. > > Thanks in advance, Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From zryip.theslug at gmail.com Mon Jun 9 04:23:08 2014 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 9 Jun 2014 10:23:08 +0200 Subject: Weird data grid behaviour In-Reply-To: <3CDB96A6-DE27-4B83-939F-B4091753050A@gmail.com> References: <3CDB96A6-DE27-4B83-939F-B4091753050A@gmail.com> Message-ID: Gerry, Sorry to be insistent, but having only one card in the datagrid template substack is not the normal behavior for datagrids. That is probably your problem when you are trying to edit a template. A new datagrid = a new template card = a new behavior button. A thing I doesn't understand: how are you customizing the row template group in the cd id 1002, as this card only contains the instruction group? This is probably a bug. May be the bug I can replicate in the IDE when my foreign inspector (not the LC inspector, the one I'm building) is opened. In this case my datagrid has no template and has the "datagrid" name, instead of "datagrid" + the number of the datagrid in the card. What are the names of your datagrids in your old projects? Now if you may believing I can affirm this is not the right behavior just by chance, open the msg box, place the cursor onto the tools palette, then type: edit script of cd 1 of the mousestack In the opened script, have a look to the AddDataGridToStack and CreateTemplateForControl handlers. Best, On Mon, Jun 9, 2014 at 2:48 AM, Gerry Orkin wrote: > theSlug wrote: > >> 1 to 6: This is the normal behavior for all the datagrids: > > So weird. I've been using datagrids for a few years and never noticed this...in fact i've just looked at a couple of old projects and the datagrid template stacks only have 1 card in them...id 1002. > >> - You have placed the new objects outside the row template group (i.e. >> in the card). Edit the template group and place your controls inside >> it. > > Nope that wasn't it and nor was it the absence of data. Weird, but making a new datagrid seems to have fixed it. > > > 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 -- Zryip TheSlug http://www.aslugontheroad.com From benr_mc at cogapp.com Mon Jun 9 04:26:41 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 09 Jun 2014 09:26:41 +0100 Subject: LiveCode on Kobo Touch? Message-ID: <53956FC1.4040505@cogapp.com> Has anyone used LiveCode on Kobo Touch (or any other reasonably cheap e-ink ereader)? I've been wanting to create a... thing... using an e-ink display, and it appears that hacking an e-reader is by the far the cheapest way to get the hardware. I've been looking at Kindles, but then I came across this: http://stevenyau.wordpress.com/2014/02/15/30-android-e-ink-ereader-kobo-with-android-install/ Sadly I've missed that particular cheap deal in the UK, but the principle seems good, and opens up the possibility that I could use LiveCode for the programming. Has anyone tried something of this nature? TIA. Ben From gerry.orkin at gmail.com Mon Jun 9 06:04:37 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Mon, 9 Jun 2014 20:04:37 +1000 Subject: Weird data grid behaviour In-Reply-To: References: <3CDB96A6-DE27-4B83-939F-B4091753050A@gmail.com> Message-ID: <9B451B21-0F19-4F08-9A75-53D429D82FDB@gmail.com> Apologies...it is id 1005, not id 1002 that I have in every template. And I've never to my recollection deleted any cards from the template stack. g On 9 Jun 2014, at 6:23 pm, zryip theSlug wrote: > A thing I doesn't understand: how are you customizing the row template > group in the cd id 1002, as this card only contains the instruction > group? From zryip.theslug at gmail.com Mon Jun 9 07:21:20 2014 From: zryip.theslug at gmail.com (zryip theSlug) Date: Mon, 9 Jun 2014 13:21:20 +0200 Subject: Weird data grid behaviour In-Reply-To: <9B451B21-0F19-4F08-9A75-53D429D82FDB@gmail.com> References: <3CDB96A6-DE27-4B83-939F-B4091753050A@gmail.com> <9B451B21-0F19-4F08-9A75-53D429D82FDB@gmail.com> Message-ID: Ok, my bad. Seems I do not understand when you wrote: 3) in the datagrid templates substack I see two cards, id 1002 and id 1005. I've never seen that before! When all is working, a template stack is composed at least by 2 cards: - id 1002 should be the card which contains the instructions group, shared in every template cards - id 1005 should be the card which contains the template group for the first datagrid The important thing here, is your problem is solved. Best, On Mon, Jun 9, 2014 at 12:04 PM, Gerry Orkin wrote: > Apologies...it is id 1005, not id 1002 that I have in every template. And I've never to my recollection deleted any cards from the template stack. > > g > > > On 9 Jun 2014, at 6:23 pm, zryip theSlug wrote: > >> A thing I doesn't understand: how are you customizing the row template >> group in the cd id 1002, as this card only contains the instruction >> group? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Zryip TheSlug http://www.aslugontheroad.com From john at splash21.com Mon Jun 9 08:59:16 2014 From: john at splash21.com (John Craig) Date: Mon, 09 Jun 2014 13:59:16 +0100 Subject: [ANN] MobGUI V1.26 In-Reply-To: References: <5393720B.9080005@splash21.com> Message-ID: <5395AFA4.3040203@splash21.com> QCC bug 12614 http://quality.runrev.com/show_bug.cgi?id=12614 On 07/06/2014 21:23, Colin Holgate wrote: > With this version, how do you create a nav bar that has a title, or a tab bar that has buttons in it? I only seem to be able to make gray rectangles. Also, the browser object seems not to load the URL it has been given. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From larry at significantplanet.org Mon Jun 9 10:43:54 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Mon, 9 Jun 2014 08:43:54 -0600 Subject: which release do you recommend? Message-ID: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> Hello All, I'm still getting some very weird behavior with the compiled program using Windows XP and 6.1.1 (rc4) - behavior that doesn't show up in the IDE, but does show up in the compiled. Do you have a recommendation as to any later release that would be more stable? TIA Larry From m.schonewille at economy-x-talk.com Mon Jun 9 11:02:41 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 09 Jun 2014 17:02:41 +0200 Subject: which release do you recommend? In-Reply-To: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> References: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> Message-ID: <5395CC91.8040102@economy-x-talk.com> Hi Larry, I don't use XP at the moment. Today I happen to be using LC 6.6.1.4005 on Windows 8.1 and I don't experience any problems. Revolution 4.5-dp4 always worked fine for me on Windows XP. What kind of weird behaviour to you observe? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/9/2014 16:43, larry at significantplanet.org wrote: > behavior with the compiled program using Windows XP and 6.1.1 (rc4) - behavior that doesn't show up in the IDE, but do From m.schonewille at economy-x-talk.com Mon Jun 9 11:22:28 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 09 Jun 2014 17:22:28 +0200 Subject: which release do you recommend? In-Reply-To: <5395CC91.8040102@economy-x-talk.com> References: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> <5395CC91.8040102@economy-x-talk.com> Message-ID: <5395D134.7020006@economy-x-talk.com> I shouldn't have written that, because LiveCode just crashed :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/9/2014 17:02, Mark Schonewille wrote: > Hi Larry, > > I don't use XP at the moment. Today I happen to be using LC 6.6.1.4005 > on Windows 8.1 and I don't experience any problems. Revolution 4.5-dp4 > always worked fine for me on Windows XP. What kind of weird behaviour to > you observe? > > -- > Best regards, > > Mark Schonewille From ambassador at fourthworld.com Mon Jun 9 11:40:23 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 09 Jun 2014 08:40:23 -0700 Subject: which release do you recommend? In-Reply-To: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> References: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> Message-ID: <5395D567.2070504@fourthworld.com> larry wrote: > I'm still getting some very weird behavior with the compiled program > using Windows XP and 6.1.1 (rc4) - behavior that doesn't show up in > the IDE, but does show up in the compiled. > > Do you have a recommendation as to any later release that would be > more stable? I tend to use the most recent test build for daily work, and build standalones with the most recent release version (marked as "Stable" on the Download page). Currently the most recent release version is 6.6.2, released June 5: There's always a risk of regressions with any new version of any software, but the increased number of bug fixes in later versions is a known positive. In the past I've used older versions for building standalones when a specific regression was encountered, but in the last couple years these have been very few for me. That said, I use XP only for testing, and only in a tightly-contained virtual machine, which I'm willing to throw away and replace at the first sign of trouble. And even then, I only test copies of my software; the originals never touch that environment. Microsoft has done an admirable job at least one other OS vendor could learn from with regard to providing clear guidance on when their OS versions reach end-of-life, and the security implications thereof. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From mwieder at ahsoftware.net Mon Jun 9 12:58:30 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 9 Jun 2014 16:58:30 +0000 (UTC) Subject: which release do you recommend? References: <1CE299A7106A417DA1D74CBDBA927189@userd204a4d61c> Message-ID: writes: > I'm still getting some very weird behavior with the compiled program using Windows XP and 6.1.1 (rc4) - > behavior that doesn't show up in the IDE, but does show up in the compiled. > > Do you have a recommendation as to any later release that would be more stable? dp => developer release (not stable) rc => release candidate (not stable) released versions do *not* have rc or dp suffixes and there's really no reason you should be using anything other than released versions unless you're feeling particularly like experimenting with new features and you have lots of backups. My main system is 4.6.4, but I use 6.6.2 for some work-related things. While it's hard to think of "Windows" and "stable" in the same breath, I have rarely had any instabilities with LiveCode that didn't turn out to be my own fault. YMMV. -- Mark Wieder ahsoftware at gmail.com From dsc at swcp.com Mon Jun 9 17:49:33 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 15:49:33 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows Message-ID: I can run my LiveCode standalone application on the command-line on OS X and writing to STDOUT goes to the terminal window. But on Windows 7 I don?t see STDOUT in the DOS prompt window. The -ui switch seems to work, because no GUI window is displayed. Also, the command-line prompt comes back quickly. There are no error messages in the DOS window. Ironically, I was a little worried about the STDOUT going to the console on OS X, but that was not a problem; it switched over when my app was run as a command-line app. So, what might I be doing wrong for Windows? Dar Scott From ambassador at fourthworld.com Mon Jun 9 18:07:14 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Mon, 09 Jun 2014 15:07:14 -0700 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: References: Message-ID: <53963012.6030809@fourthworld.com> Dar Scott wrote: > I can run my LiveCode standalone application on the command-line on > OS X and writing to STDOUT goes to the terminal window. > > But on Windows 7 I don?t see STDOUT in the DOS prompt window. Which version are you using? This bug was marked as Fixed for 6.6.2, the current stable release. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dsc at swcp.com Mon Jun 9 18:25:16 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 16:25:16 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: <53963012.6030809@fourthworld.com> References: <53963012.6030809@fourthworld.com> Message-ID: <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> Thanks! I?m still using 6.6.1. I?ll upgrade! Dar On Jun 9, 2014, at 4:07 PM, Richard Gaskin wrote: > Dar Scott wrote: > > > I can run my LiveCode standalone application on the command-line on > > OS X and writing to STDOUT goes to the terminal window. > > > > But on Windows 7 I don?t see STDOUT in the DOS prompt window. > > Which version are you using? > > This bug was marked as Fixed for 6.6.2, the current stable release. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From capellan2000 at gmail.com Mon Jun 9 20:14:51 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 9 Jun 2014 17:14:51 -0700 (PDT) Subject: Flappy bird clone takes <= 9 hours in Swift In-Reply-To: References: Message-ID: <1402359291699-4680384.post@n4.nabble.com> Scott McDonald from http://livecodegamedeveloper.com/index.html could provide the definitive answer, but your guess of 4 hours or more is accurate for an experienced LiveCode developer. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Flappy-bird-clone-takes-9-hours-in-Swift-tp4680368p4680384.html Sent from the Revolution - User mailing list archive at Nabble.com. From capellan2000 at gmail.com Mon Jun 9 20:21:00 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 9 Jun 2014 17:21:00 -0700 (PDT) Subject: Flappy bird clone takes <= 9 hours in Swift In-Reply-To: <1402359291699-4680384.post@n4.nabble.com> References: <1402359291699-4680384.post@n4.nabble.com> Message-ID: <1402359660538-4680385.post@n4.nabble.com> Ah, I forgot something really important: Like Video Players, all Games are greedy by nurture. They want/need all hardware resources available to perform better. Does LiveCode have this behavior? Could LiveCode grab all hardware resources available to perform better in a game? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Flappy-bird-clone-takes-9-hours-in-Swift-tp4680368p4680385.html Sent from the Revolution - User mailing list archive at Nabble.com. From jhj at jhj.com Mon Jun 9 20:28:47 2014 From: jhj at jhj.com (Jerry Jensen) Date: Mon, 9 Jun 2014 17:28:47 -0700 Subject: Flappy bird clone takes <= 9 hours in Swift In-Reply-To: References: Message-ID: <76E9B5D4-3DAA-4F80-AE6A-2FB3C05320B7@jhj.com> On Jun 8, 2014, at 10:31 PM, Geoff Canyon wrote: > Apparently it was 9 hours with some interruptions. If we're talking basic > functionality -- fly the bird, flap the wings, move the pillars left and > count how many the user has passed, collision detection, start/end games > and high score tracking -- then I'm guessing this wouldn't go much faster > in LiveCode. I might shave an hour or two off, which is significant when > starting from 7 or 9, but I doubt I'd have this running in <= 4 hours. > > Curious if anyone else would estimate differently. > > http://techcrunch.com/2014/06/04/a-developer-cloned-flappy-bird-using-apples-new-programming-language-swift-in-a-matter-of-hours/?ncid=rss&source=gravity&cps=gravity I'm curious about what he started with. If he had on hand a C++ or Obj-C implementation source, thats quite different from a scratch start. I'm learning about Swift now, and I'll spend more than 4 hours with the manual (and the playground) before I'm ready to do much of anything useful. By the way, I like it. It will NOT threaten LiveCode. .Jerry From prothero at earthednet.org Mon Jun 9 20:55:52 2014 From: prothero at earthednet.org (Wprothero) Date: Mon, 9 Jun 2014 17:55:52 -0700 (PDT) Subject: Flappy bird clone takes <= 9 hours in Swift In-Reply-To: <76E9B5D4-3DAA-4F80-AE6A-2FB3C05320B7@jhj.com> References: <76E9B5D4-3DAA-4F80-AE6A-2FB3C05320B7@jhj.com> Message-ID: <6B956AB1-E180-4433-BB49-A3E876051F8E@earthednet.org> I wonder if it would be a good platform for developing Xtras. Bill On Jun 9, 2014, at 5:29 PM, Jerry Jensen [via Runtime Revolution] wrote: > On Jun 8, 2014, at 10:31 PM, Geoff Canyon <[hidden email]> wrote: > > > Apparently it was 9 hours with some interruptions. If we're talking basic > > functionality -- fly the bird, flap the wings, move the pillars left and > > count how many the user has passed, collision detection, start/end games > > and high score tracking -- then I'm guessing this wouldn't go much faster > > in LiveCode. I might shave an hour or two off, which is significant when > > starting from 7 or 9, but I doubt I'd have this running in <= 4 hours. > > > > Curious if anyone else would estimate differently. > > > > http://techcrunch.com/2014/06/04/a-developer-cloned-flappy-bird-using-apples-new-programming-language-swift-in-a-matter-of-hours/?ncid=rss&source=gravity&cps=gravity > > I'm curious about what he started with. If he had on hand a C++ or Obj-C implementation source, thats quite different from a scratch start. I'm learning about Swift now, and I'll spend more than 4 hours with the manual (and the playground) before I'm ready to do much of anything useful. By the way, I like it. It will NOT threaten LiveCode. > .Jerry > > > _______________________________________________ > use-livecode mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > If you reply to this email, your message will be added to the discussion below: > http://runtime-revolution.278305.n4.nabble.com/Flappy-bird-clone-takes-9-hours-in-Swift-tp4680368p4680386.html > To start a new topic under Revolution - User, email ml-node+s278305n278306h53 at n4.nabble.com > To unsubscribe from Runtime Revolution, click here. > NAML ----- Http://es.earthednet.org -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Flappy-bird-clone-takes-9-hours-in-Swift-tp4680368p4680387.html Sent from the Revolution - User mailing list archive at Nabble.com. From dsc at swcp.com Mon Jun 9 21:05:24 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 19:05:24 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> Message-ID: <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> Well, technically STDOUT does go to the DOS window, but it is after the next prompt. And (so far) a quick test with shell() is not working. Dar On Jun 9, 2014, at 4:25 PM, Dar Scott wrote: > Thanks! > > I?m still using 6.6.1. I?ll upgrade! > > Dar > > > On Jun 9, 2014, at 4:07 PM, Richard Gaskin wrote: > >> Dar Scott wrote: >> >>> I can run my LiveCode standalone application on the command-line on >>> OS X and writing to STDOUT goes to the terminal window. >>> >>> But on Windows 7 I don?t see STDOUT in the DOS prompt window. >> >> Which version are you using? >> >> This bug was marked as Fixed for 6.6.2, the current stable release. >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 9 21:36:28 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 9 Jun 2014 18:36:28 -0700 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> Message-ID: <172781177471.20140609183628@ahsoftware.net> Dar- Monday, June 9, 2014, 6:05:24 PM, you wrote: > Well, technically STDOUT does go to the DOS window, but it is > after the next prompt. And (so far) a quick test with shell() is > not working. Yes, Microsoft has a rather strange definition of stdout. If you pipe the output to stderr instead I think you'll get what you're expecting. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From dsc at swcp.com Mon Jun 9 21:48:48 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 19:48:48 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> Message-ID: Oh. I forgot about launch applications and console applications on Windows. OK. So, I used ?start /w? on a command window and that works as expected. But shell() still has problems. If I set hideConsoleWindows to false, I see the output on the window that flashes up. But, whether true or false, I still don?t get the output in shell(). Use open process? Some other start options? Dar On Jun 9, 2014, at 7:05 PM, Dar Scott wrote: > Well, technically STDOUT does go to the DOS window, but it is after the next prompt. And (so far) a quick test with shell() is not working. > > Dar > > > On Jun 9, 2014, at 4:25 PM, Dar Scott wrote: > >> Thanks! >> >> I?m still using 6.6.1. I?ll upgrade! >> >> Dar >> >> >> On Jun 9, 2014, at 4:07 PM, Richard Gaskin wrote: >> >>> Dar Scott wrote: >>> >>>> I can run my LiveCode standalone application on the command-line on >>>> OS X and writing to STDOUT goes to the terminal window. >>>> >>>> But on Windows 7 I don?t see STDOUT in the DOS prompt window. >>> >>> Which version are you using? >>> >>> This bug was marked as Fixed for 6.6.2, the current stable release. >>> >>> -- >>> Richard Gaskin >>> Fourth World Systems >>> Software Design and Development for the Desktop, Mobile, and the Web >>> ____________________________________________________________________ >>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Mon Jun 9 22:01:55 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 20:01:55 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: <172781177471.20140609183628@ahsoftware.net> References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> <172781177471.20140609183628@ahsoftware.net> Message-ID: Thanks, Mark! I tried 1<&2, but it had no impact on the command line (after I put in ?start /w?) and did not help shell(). Do I need server? Dar On Jun 9, 2014, at 7:36 PM, Mark Wieder wrote: > Dar- > > Monday, June 9, 2014, 6:05:24 PM, you wrote: > >> Well, technically STDOUT does go to the DOS window, but it is >> after the next prompt. And (so far) a quick test with shell() is >> not working. > > Yes, Microsoft has a rather strange definition of stdout. If you pipe > the output to stderr instead I think you'll get what you're expecting. > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Mon Jun 9 22:59:00 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 20:59:00 -0600 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> Message-ID: I think I have some temporary workarounds. I can use ?open process? instead of ?shell()? to use the standalone as a command-line process. This is fine. In the command window I can use ?start /w? to use the standalone as a command-line process. This is a little embarrassing, but I can ship this. Dar On Jun 9, 2014, at 7:48 PM, Dar Scott wrote: > Oh. I forgot about launch applications and console applications on Windows. > > OK. So, I used ?start /w? on a command window and that works as expected. But shell() still has problems. If I set hideConsoleWindows to false, I see the output on the window that flashes up. But, whether true or false, I still don?t get the output in shell(). > > Use open process? Some other start options? > > Dar > > > On Jun 9, 2014, at 7:05 PM, Dar Scott wrote: > >> Well, technically STDOUT does go to the DOS window, but it is after the next prompt. And (so far) a quick test with shell() is not working. >> >> Dar >> >> >> On Jun 9, 2014, at 4:25 PM, Dar Scott wrote: >> >>> Thanks! >>> >>> I?m still using 6.6.1. I?ll upgrade! >>> >>> Dar >>> >>> >>> On Jun 9, 2014, at 4:07 PM, Richard Gaskin wrote: >>> >>>> Dar Scott wrote: >>>> >>>>> I can run my LiveCode standalone application on the command-line on >>>>> OS X and writing to STDOUT goes to the terminal window. >>>>> >>>>> But on Windows 7 I don?t see STDOUT in the DOS prompt window. >>>> >>>> Which version are you using? >>>> >>>> This bug was marked as Fixed for 6.6.2, the current stable release. >>>> >>>> -- >>>> Richard Gaskin >>>> Fourth World Systems >>>> Software Design and Development for the Desktop, Mobile, and the Web >>>> ____________________________________________________________________ >>>> Ambassador at FourthWorld.com http://www.FourthWorld.com >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Mon Jun 9 23:00:33 2014 From: dsc at swcp.com (Dar Scott) Date: Mon, 9 Jun 2014 21:00:33 -0600 Subject: Learning about server Message-ID: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> I would like to learn about server. But, as Frodo would way, I don?t know the way. Dar Scott From mwieder at ahsoftware.net Tue Jun 10 02:01:39 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 9 Jun 2014 23:01:39 -0700 Subject: nothing from STDOUT for LiveCode CLI on Windows In-Reply-To: References: <53963012.6030809@fourthworld.com> <15653898-768F-4EC4-8AEA-CED76DF8B972@swcp.com> <6910898E-51EB-4592-8B08-32A10CD60342@swcp.com> <172781177471.20140609183628@ahsoftware.net> Message-ID: <144797088697.20140609230139@ahsoftware.net> Dar- Monday, June 9, 2014, 7:01:55 PM, you wrote: > I tried 1<&2, but it had no impact on the command line (after I > put in ?start /w?) and did not help shell(). OK - maybe we're talking about two different things. In your standalone app, try directing the output of shell() to stderr. I think that should show up as output from your app. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From john at splash21.com Tue Jun 10 05:56:09 2014 From: john at splash21.com (John Craig) Date: Tue, 10 Jun 2014 10:56:09 +0100 Subject: Learning about server In-Reply-To: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> Message-ID: <5396D639.1000307@splash21.com> Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; Basic .lc server scripts Sessions Basic logging in and out with sessions SQL primer Server scripts with MySQL Logging in and out with a database Web applications User and group permissions Javascript AJAX Web APIs Push notifications: iOS/Android Basic record versioning with AJAX With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. On 10/06/2014 04:00, Dar Scott wrote: > I would like to learn about server. > > But, as Frodo would way, I don?t know the way. > > Dar Scott > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jun 10 06:05:05 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 10 Jun 2014 12:05:05 +0200 Subject: Learning about server In-Reply-To: <5396D639.1000307@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: I, for one, would buy it. Especially Push notifications would be more than interesting. Regards, Matthias Am 10.06.2014 um 11:56 schrieb John Craig : > Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; > > Basic .lc server scripts > Sessions > Basic logging in and out with sessions > SQL primer > Server scripts with MySQL > Logging in and out with a database > Web applications > User and group permissions > Javascript > AJAX > Web APIs > Push notifications: iOS/Android > Basic record versioning with AJAX > > > With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. > > > On 10/06/2014 04:00, Dar Scott wrote: >> I would like to learn about server. >> >> But, as Frodo would way, I don?t know the way. >> >> Dar Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 at applicationinsight.com Tue Jun 10 08:43:25 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 10 Jun 2014 05:43:25 -0700 (PDT) Subject: Learning about server In-Reply-To: <5396D639.1000307@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: <1402404205560-4680397.post@n4.nabble.com> Well we have books on general LC from Mark, on Mobile from Colin, and on gaming-making from Scott - but we have a gaping hole for LC Server just waiting for someone to fill! With at least two customers :) Actually it just occurs to me that we have another gaping lacuna in LC books, concerning communication (serial, USB etc) - feeling strong Dar? Dave ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680397.html Sent from the Revolution - User mailing list archive at Nabble.com. From marc.vancauwenberghe at pandora.be Tue Jun 10 09:01:08 2014 From: marc.vancauwenberghe at pandora.be (Marc Van Cauwenberghe) Date: Tue, 10 Jun 2014 15:01:08 +0200 Subject: Learning about server In-Reply-To: <5396D639.1000307@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: Hi John,, I would pre-order! Best regards, Marc Op 10-jun.-2014, om 11:56 heeft John Craig het volgende geschreven: > Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; > > Basic .lc server scripts > Sessions > Basic logging in and out with sessions > SQL primer > Server scripts with MySQL > Logging in and out with a database > Web applications > User and group permissions > Javascript > AJAX > Web APIs > Push notifications: iOS/Android > Basic record versioning with AJAX > > > With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. > > > On 10/06/2014 04:00, Dar Scott wrote: >> I would like to learn about server. >> >> But, as Frodo would way, I don?t know the way. >> >> Dar Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Tue Jun 10 09:28:05 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 10 Jun 2014 15:28:05 +0200 Subject: Learning about server In-Reply-To: <1402404205560-4680397.post@n4.nabble.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> Message-ID: I have been working on a general guide on LC server - its been a great way to figure out how everything works. There is a still a ton of stuff I would like to still add ... but if its helps people in the interim I am happy to share. I'll take a look when I am at home this evening and see if its a state I share. On Tue, Jun 10, 2014 at 2:43 PM, Dave Kilroy wrote: > Well we have books on general LC from Mark, on Mobile from Colin, and on > gaming-making from Scott - but we have a gaping hole for LC Server just > waiting for someone to fill! With at least two customers :) > > Actually it just occurs to me that we have another gaping lacuna in LC > books, concerning communication (serial, USB etc) - feeling strong Dar? > > Dave > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust > upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680397.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 > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From rjd318 at gmail.com Tue Jun 10 10:08:37 2014 From: rjd318 at gmail.com (rjd318) Date: Tue, 10 Jun 2014 09:08:37 -0500 Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: Ditto! In for one on a server book =) Sent from my iPhone > On Jun 10, 2014, at 8:01 AM, Marc Van Cauwenberghe wrote: > > Hi John,, > I would pre-order! > > Best regards, > Marc > >> Op 10-jun.-2014, om 11:56 heeft John Craig het volgende geschreven: >> >> Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; >> >> Basic .lc server scripts >> Sessions >> Basic logging in and out with sessions >> SQL primer >> Server scripts with MySQL >> Logging in and out with a database >> Web applications >> User and group permissions >> Javascript >> AJAX >> Web APIs >> Push notifications: iOS/Android >> Basic record versioning with AJAX >> >> >> With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. >> >> >>> On 10/06/2014 04:00, Dar Scott wrote: >>> I would like to learn about server. >>> >>> But, as Frodo would way, I don?t know the way. >>> >>> Dar Scott >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 10 10:23:06 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 10 Jun 2014 08:23:06 -0600 Subject: Learning about server In-Reply-To: <5396D639.1000307@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: My immediate need would not be a way to deliver web content, but just as a way to make a console application on Windows. But, I can see the former in my future. Dar On Jun 10, 2014, at 3:56 AM, John Craig wrote: > Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; > > Basic .lc server scripts > Sessions > Basic logging in and out with sessions > SQL primer > Server scripts with MySQL > Logging in and out with a database > Web applications > User and group permissions > Javascript > AJAX > Web APIs > Push notifications: iOS/Android > Basic record versioning with AJAX > > > With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. > > > On 10/06/2014 04:00, Dar Scott wrote: >> I would like to learn about server. >> >> But, as Frodo would way, I don?t know the way. >> >> Dar Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dsc at swcp.com Tue Jun 10 10:25:40 2014 From: dsc at swcp.com (Dar Scott) Date: Tue, 10 Jun 2014 08:25:40 -0600 Subject: Learning about server In-Reply-To: <1402404205560-4680397.post@n4.nabble.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> Message-ID: <96CEE8F0-0D24-4BF8-81D0-98090861960F@swcp.com> Thanks for the kind encouragement. I am pondering this. Dar On Jun 10, 2014, at 6:43 AM, Dave Kilroy wrote: > Well we have books on general LC from Mark, on Mobile from Colin, and on > gaming-making from Scott - but we have a gaping hole for LC Server just > waiting for someone to fill! With at least two customers :) > > Actually it just occurs to me that we have another gaping lacuna in LC > books, concerning communication (serial, USB etc) - feeling strong Dar? > > Dave > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680397.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 Tue Jun 10 10:49:07 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 07:49:07 -0700 Subject: Help with hosed LC UI on Ubuntu Message-ID: <53971AE3.60906@fourthworld.com> I've been using LC on Ubuntu for years, and while there are a few details where it's not quite HIG-savvy it's generally been pretty good. But I recently did a clean install of Ubuntu 14.04, and now LC 6.6.2 looks horrible. The Problem ----------- This screen shot shows both LC and GEdit side by side, so we can see that the Ubuntu theme is reflected well in GEDit, but at the moment LC looks like merde, with: - Menus and menu items with white text and no hilite (used to have orange hilite per the OS theme) - Controls look bland, not using theme settings Even the Save As dialog (not shown there) looks like the rest of LC's own controls, suggesting that somehow LC just isn't initializing support for the current theme, in a way that affects everything it touches. I've checked the lookAndFeel property and it's not "Motif" but "Appearance Manager" as we would normally expect. And on another machine here running Lubuntu 14.04, the same build of LC reflects the current theme just fine. So I'm at a loss to explain how to fix this. It seems to be specific to my Ubuntu install, but only affects LC. What's Different ---------------- Historically, the only way I could get LC to run in any 64-bit Linux is to install ialibs-32, but as many of you know that's no longer supported by Ubuntu. This post from Neil in the forums suggested a simpler alternative: Namely: sudo apt-get install libgtk2.0-0:i386 So the difference with my current Ubuntu over previous installs is that I don't have ialibs-32 installed, but I have installed libgtk2.0. FWIW, I've run LC with ldd and it appears that all library dependencies are being met. LC runs (quite well actually in terms of functionality) but it's so darned ugly right now it's just not much fun. And I'm guessing I'm not the only person seeing LC this way, which if true would be dismaying since I'd like LC to be something I'm proud to share with my Ubuntu friends. Next Steps ---------- 1. Anyone here seen this with LC before? 2. Anyone here have suggestions on how to fix it? Thanks in advance for any guidance you can offer - -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From prothero at earthednet.org Tue Jun 10 10:54:55 2014 From: prothero at earthednet.org (Earthednet-wp) Date: Tue, 10 Jun 2014 07:54:55 -0700 Subject: Learning about server In-Reply-To: <96CEE8F0-0D24-4BF8-81D0-98090861960F@swcp.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> <96CEE8F0-0D24-4BF8-81D0-98090861960F@swcp.com> Message-ID: Dar, I'd definitely buy your book. Some of the things I would be interested in is how to create a reasonable looking ui, which will require html5, JavaScript, and css3. I've dabbled in all 3 of these but since I use them rarely, it's a pain to use them. It would be nice to have a prescription for how to create commonly used interface elements. Bill William Prothero http://es.earthednet.org > On Jun 10, 2014, at 7:25 AM, Dar Scott wrote: > > Thanks for the kind encouragement. I am pondering this. > > Dar > > >> On Jun 10, 2014, at 6:43 AM, Dave Kilroy wrote: >> >> Well we have books on general LC from Mark, on Mobile from Colin, and on >> gaming-making from Scott - but we have a gaping hole for LC Server just >> waiting for someone to fill! With at least two customers :) >> >> Actually it just occurs to me that we have another gaping lacuna in LC >> books, concerning communication (serial, USB etc) - feeling strong Dar? >> >> Dave >> >> >> >> ----- >> "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior >> >> -- >> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680397.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 dave at applicationinsight.com Tue Jun 10 11:18:31 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 10 Jun 2014 08:18:31 -0700 (PDT) Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> Message-ID: <1402413511397-4680405.post@n4.nabble.com> Hi Simon I remember you posted something about a server book a while ago - if it's still on the cards I'll buy your book AND John's! If you're not at that stage yet then I'm sure there would be a lot of interest in anything you might want to share - actually, even helping produce up-to-date docs on how to install LC Server would be great :) Kind regards ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680405.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Jun 10 11:49:03 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 08:49:03 -0700 Subject: Learning about server In-Reply-To: References: Message-ID: <539728EF.901@fourthworld.com> Dar wrote: > My immediate need would not be a way to deliver web content, but just > as a way to make a console application on Windows. But, I can see > the former in my future. There are so many useful and interesting things to do with LiveCode Server, and even standalones on servers, it's almost overwhelming. These days a majority of the work I do is making client-server apps where LiveCode runs both sides. I currently have only one site where LC is used to generate output for the Web - everything else is either APIs for other services, or the backend for LC-based clients used in workgroup settings. Given the wide range of ways LC is useful on servers, with all due respect to the ambitions of those interested in writing a book on it, it would be a big one. Last month I outlined my plans for the LiveCode Server Center, in the works for LiveCode Journal now that I finally put a CMS in place there (and of course the CMS is made with LiveCode, all the way down to the data store): As I wrote then, I don't mean to discourage anyone from writing a book, and indeed there is likely a good audience for it. But given the scope of what LC Server can do, and the many other aspects that come into play with using it well (the critical role of performance in the inherently-short CGI runtime lifecycle, how mod_rewrite works, SSH keys, bash, rsync, custom servers like looping CLI daemons and simpler GUI apps, REST API design, and more), it would be nice if there were also a community-driven effort to provide as much material as we can in a format that's as free and open as LiveCode itself. That said, books also play a useful role in evangelizing LiveCode as a platform, esp. when they come from established publishers. A good publisher can do wonders for reinforcing a strong image of LiveCode and its ever-expanding third-party ecosystem. I have some contacts at publishers and would be happy to provide introductions if useful. And the upside for book publishing is that with RunRev's newsletters having displaced much of the energy that used to go into LiveCode Journal, at this point LCJ is mostly a one-man show. Being heavily booked with client commitments, devoting time to fleshing out what can go there has been challenging, and somewhat slow. Still, I felt obliged to note what's coming with the LiveCode Server Center at LCJ (hopefully sooner than later), and to extend an invitation for anyone interested in sharing free learning materials to consider LiveCodeJournal.com as an available venue for community resources, not only for LiveCode Server but anything else you feel would be of interest to the community. We have all the infrastructure Dreamhost provides, and plenty of disk space and bandwidth, all there for use by the LiveCode community. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From userev at canelasoftware.com Tue Jun 10 12:05:51 2014 From: userev at canelasoftware.com (Mark Talluto) Date: Tue, 10 Jun 2014 09:05:51 -0700 Subject: Help with hosed LC UI on Ubuntu In-Reply-To: <53971AE3.60906@fourthworld.com> References: <53971AE3.60906@fourthworld.com> Message-ID: On Jun 10, 2014, at 7:49 AM, Richard Gaskin wrote: > 1. Anyone here seen this with LC before? > > 2. Anyone here have suggestions on how to fix it? This is a view of 6.6.2 RC6 on my Mint installation via VMware Fusion. http://www.canelasoftware.com/pub/rev/mint%20linux.png I get a little of topic below. Ever since I changed over to Mint, I have been much happier with Linux. This does not explain how to fix Ubuntu though. But it is another justification of why I am not using Ubuntu for anything more than checking how things work. Lately I have been doing more server type work regarding Linux. I want to use the standard LiveCode vs the server iteration of LiveCode. Getting the standard version of LiveCode to install on a headless server is a lot of work. Each server is a unique Alice and Wonderland experience to get things working. It is very important that LiveCode runs well on Linux. The server world is all about Linux. We need to elegantly be able to support running LiveCode on 64 bit, headless installations of Linux. Any work that the team can do to improve the look and compatibility issues we are facing would be much appreciated. Best regards, Mark Talluto CanelaSoftware.com LiveCloud.io From dunbarx at aol.com Tue Jun 10 12:28:46 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Tue, 10 Jun 2014 12:28:46 -0400 (EDT) Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: <8D152E02FD014CC-DB8-CA88@webmail-va006.sysops.aol.com> I would pre- order two copies. Craig Newman -----Original Message----- From: Marc Van Cauwenberghe To: How to use LiveCode Sent: Tue, Jun 10, 2014 9:01 am Subject: Re: Learning about server Hi John,, I would pre-order! Best regards, Marc Op 10-jun.-2014, om 11:56 heeft John Craig het volgende geschreven: > Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; > > Basic .lc server scripts > Sessions > Basic logging in and out with sessions > SQL primer > Server scripts with MySQL > Logging in and out with a database > Web applications > User and group permissions > Javascript > AJAX > Web APIs > Push notifications: iOS/Android > Basic record versioning with AJAX > > > With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. > > > On 10/06/2014 04:00, Dar Scott wrote: >> I would like to learn about server. >> >> But, as Frodo would way, I don?t know the way. >> >> Dar Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode at 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 Jun 10 12:37:10 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 09:37:10 -0700 Subject: Help with hosed LC UI on Ubuntu In-Reply-To: References: Message-ID: <53973436.3040304@fourthworld.com> Mark Talluto wrote: > This is a view of 6.6.2 RC6 on my Mint installation via VMware > Fusion. > http://www.canelasoftware.com/pub/rev/mint%20linux.png Looks like you're getting theme adoption there, so that much is good. And thankfully Hanson at RunRev confirmed my issue this morning, so at least it's not me: Now that they have the issue reproduced, no doubt Fraser or Mark will be able to figure out how to handle the new UI libs for Ubuntu in 14.04 (doesn't happen in earlier Ubuntu versions). > It is very important that LiveCode runs well on Linux. The server > world is all about Linux. We need to elegantly be able to support > running LiveCode on 64 bit, headless installations of Linux. And as important as it is for servers, there's enough of an audience using desktop Linux (far more than the number of Mac users when Steve Jobs returned to Apple) that an open source toolkit could do wonders in the many charter schools and other places where Linux is very widely used. > Any work that the team can do to improve the look and compatibility > issues we are facing would be much appreciated. See my comment #8 at the bug report linked to above. I've discussed this in my Community meetings with the team as well, and they see the value in using Linux themselves more in-house, but haven't yet felt comfortable taking on what will be initially a productivity hit. For the others here who don't use Linux daily, let me clarify that the productivity hit is with using LiveCode on Linux, not with Linux itself. Firefox, Thunderbird, GIMP, Blender - pretty much every multi-platform app is as graceful to use on Linux as it is on OS X and Windows. But due to historical considerations, the LC Linux engine has been slow to adopt newer UI stuff on Linux, and in many cases this has left us with IDE limitations in areas where the engine was fixed long ago but the IDE not brought up to date to take advantage of it. For example, imagine how tedious it would be if every click in LC's Tools palette had to be made twice. On OS X and Windows we click only once because the raisePalettes is set to true by default, but on Linux raisePalettes it set to false (no, really) so we click once to bring the window forward and a second time to activate what we're clicking on. A very long time ago there were issues with raisePalettes in some environments, but those apparently went away a long time ago. If at least one person on the IDE team used Linux daily, all these little things would be seen and addressed. Hopefully that'll happen soon. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From cmsheffield at icloud.com Tue Jun 10 13:28:28 2014 From: cmsheffield at icloud.com (Chris Sheffield) Date: Tue, 10 Jun 2014 11:28:28 -0600 Subject: aligning text in columns Message-ID: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> Do we have the ability yet to set the text alignment for individual columns in a table field? I have a very simple field with just two columns. I want the alignment of the first one to be left, and the second one to be right. A data grid is overkill, otherwise I?d go with that. I couldn?t remember if, with all the new field changes, that was added or not. I can?t seem to find any obvious properties, but I could be missing something. Or would it be best to just use two separate fields for this? Thanks, Chris From ambassador at fourthworld.com Tue Jun 10 13:55:17 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 10:55:17 -0700 Subject: aligning text in columns In-Reply-To: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> References: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> Message-ID: <53974685.1090105@fourthworld.com> Chris Sheffield wrote: > Do we have the ability yet to set the text alignment for individual > columns in a table field? My understanding is that the work has been done, and it will be in a new build of 7.0dp soon. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jbv at souslelogo.com Tue Jun 10 14:24:45 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 10 Jun 2014 21:24:45 +0300 Subject: Best approach to introduce students in programing to LC ? In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> Message-ID: Hi list, Starting next september I might have the opportunity to give a few hours of teaching at the local technology institute for students in their 1st and 2nd year of learning techniques of internet, multimedia and programming. Of course the first idea that crossed my mind was to introduce them to LC, as a recent discussion with some of their teachers showed clearly that almost nobody there was aware of it, and those who knew about LC haven't found the time to test it... I might be wrong, but the best / most attractive approach seems to be "code once deploy many"... Do you guys have some suggestions about what the main chapters of such a teaching should be ? I'll also try to find the time to search the archives, as I'm sure that topic has already been discussed... Thanks jbv From dave at applicationinsight.com Tue Jun 10 14:37:23 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Tue, 10 Jun 2014 11:37:23 -0700 (PDT) Subject: Learning about server In-Reply-To: <539728EF.901@fourthworld.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <539728EF.901@fourthworld.com> Message-ID: <1402425443062-4680413.post@n4.nabble.com> Richard your LiveCode Server Center sounds supercalifragilisticexpialidocious! ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680413.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Tue Jun 10 14:51:35 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 11:51:35 -0700 Subject: Best approach to introduce students in programing to LC ? In-Reply-To: References: Message-ID: <539753B7.6050905@fourthworld.com> jbv wrote: > Starting next september I might have the opportunity to give > a few hours of teaching at the local technology institute > for students in their 1st and 2nd year of learning techniques > of internet, multimedia and programming. > Of course the first idea that crossed my mind was to introduce > them to LC, as a recent discussion with some of their teachers > showed clearly that almost nobody there was aware of it, and > those who knew about LC haven't found the time to test it... > I might be wrong, but the best / most attractive approach seems > to be "code once deploy many"... > Do you guys have some suggestions about what the main > chapters of such a teaching should be ? > I'll also try to find the time to search the archives, as I'm > sure that topic has already been discussed... Email lists are good for many things, but preserving conversational threads isn't one of them. Google doesn't bother indexing everything that happens here, so I've found GMane a better list archive search: But this may be a case where the forums can be useful, with categorized conversations that include a section on LiveCode in Education, and a topic devoted exclusively to Teaching with LiveCode: Every person I know who teaches and knows LiveCode readily grasps LC's relevance for a beginner's CS curriculum. Squeak is outgrown too quickly, and Java takes too long before it becomes fun. LC is the perfect fit in between - hopefully we can get some empowering exchanges happening in the LC EDU community to make this happen more now that LC is free and open. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From john at splash21.com Tue Jun 10 14:52:05 2014 From: john at splash21.com (John Craig) Date: Tue, 10 Jun 2014 19:52:05 +0100 Subject: Learning about server In-Reply-To: <539728EF.901@fourthworld.com> References: <539728EF.901@fourthworld.com> Message-ID: <539753D5.9030608@splash21.com> I wasn't thinking about writing "the big book of everything you can conceivably do with LiveCode Server" :D More like "The Hitchhiker's Guide To LiveCode Server"... with some suitably large, friendly message on the cover ... I still buy books - I'd rather leaf through a hard copy after staring at a screen all day. One of the first things I did after discovering Revolution was to search for books, and - sadly - there were none. On 10/06/2014 16:49, Richard Gaskin wrote: > Dar wrote: > > My immediate need would not be a way to deliver web content, but just > > as a way to make a console application on Windows. But, I can see > > the former in my future. > > There are so many useful and interesting things to do with LiveCode > Server, and even standalones on servers, it's almost overwhelming. > > These days a majority of the work I do is making client-server apps > where LiveCode runs both sides. I currently have only one site where > LC is used to generate output for the Web - everything else is either > APIs for other services, or the backend for LC-based clients used in > workgroup settings. > > Given the wide range of ways LC is useful on servers, with all due > respect to the ambitions of those interested in writing a book on it, > it would be a big one. > > Last month I outlined my plans for the LiveCode Server Center, in the > works for LiveCode Journal now that I finally put a CMS in place there > (and of course the CMS is made with LiveCode, all the way down to the > data store): > > > As I wrote then, I don't mean to discourage anyone from writing a > book, and indeed there is likely a good audience for it. > > But given the scope of what LC Server can do, and the many other > aspects that come into play with using it well (the critical role of > performance in the inherently-short CGI runtime lifecycle, how > mod_rewrite works, SSH keys, bash, rsync, custom servers like looping > CLI daemons and simpler GUI apps, REST API design, and more), it would > be nice if there were also a community-driven effort to provide as > much material as we can in a format that's as free and open as > LiveCode itself. > > That said, books also play a useful role in evangelizing LiveCode as a > platform, esp. when they come from established publishers. A good > publisher can do wonders for reinforcing a strong image of LiveCode > and its ever-expanding third-party ecosystem. I have some contacts at > publishers and would be happy to provide introductions if useful. > > And the upside for book publishing is that with RunRev's newsletters > having displaced much of the energy that used to go into LiveCode > Journal, at this point LCJ is mostly a one-man show. Being heavily > booked with client commitments, devoting time to fleshing out what can > go there has been challenging, and somewhat slow. > > Still, I felt obliged to note what's coming with the LiveCode Server > Center at LCJ (hopefully sooner than later), and to extend an > invitation for anyone interested in sharing free learning materials to > consider LiveCodeJournal.com as an available venue for community > resources, not only for LiveCode Server but anything else you feel > would be of interest to the community. > > We have all the infrastructure Dreamhost provides, and plenty of disk > space and bandwidth, all there for use by the LiveCode community. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 icloud.com Tue Jun 10 14:56:07 2014 From: cmsheffield at icloud.com (Chris Sheffield) Date: Tue, 10 Jun 2014 12:56:07 -0600 Subject: aligning text in columns In-Reply-To: <53974685.1090105@fourthworld.com> References: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> <53974685.1090105@fourthworld.com> Message-ID: <38F0CD5D-8BEC-474E-AF4E-1CB14797E14B@icloud.com> Thanks, Richard. Good to know. On Jun 10, 2014, at 11:55 AM, Richard Gaskin wrote: > Chris Sheffield wrote: > > Do we have the ability yet to set the text alignment for individual > > columns in a table field? > > My understanding is that the work has been done, and it will be in a new build of 7.0dp soon. > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Tue Jun 10 15:02:34 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 10 Jun 2014 21:02:34 +0200 Subject: Learning about server In-Reply-To: <539728EF.901@fourthworld.com> References: <539728EF.901@fourthworld.com> Message-ID: Hi Richard I would be happy to contribute to LCJ and it will be interesting to see what you have setup. Writing a book would be a mammoth task - and I for one, would not be certain just how large a target market there would be, so they would truly be a labour of love :) But for now - this is something I have been dabbling with, http://activethought.net/livecode-server/ its far from complete and hopefully not to many errors and spelling mistakes. It is probably a bit on the simple side - but if it helps one person, then I would be happy. Kind Regards Simon On Tue, Jun 10, 2014 at 5:49 PM, Richard Gaskin wrote: > Dar wrote: > > My immediate need would not be a way to deliver web content, but just > > as a way to make a console application on Windows. But, I can see > > the former in my future. > > There are so many useful and interesting things to do with LiveCode > Server, and even standalones on servers, it's almost overwhelming. > > These days a majority of the work I do is making client-server apps where > LiveCode runs both sides. I currently have only one site where LC is used > to generate output for the Web - everything else is either APIs for other > services, or the backend for LC-based clients used in workgroup settings. > > Given the wide range of ways LC is useful on servers, with all due respect > to the ambitions of those interested in writing a book on it, it would be a > big one. > > Last month I outlined my plans for the LiveCode Server Center, in the > works for LiveCode Journal now that I finally put a CMS in place there (and > of course the CMS is made with LiveCode, all the way down to the data > store): > > > As I wrote then, I don't mean to discourage anyone from writing a book, > and indeed there is likely a good audience for it. > > But given the scope of what LC Server can do, and the many other aspects > that come into play with using it well (the critical role of performance in > the inherently-short CGI runtime lifecycle, how mod_rewrite works, SSH > keys, bash, rsync, custom servers like looping CLI daemons and simpler GUI > apps, REST API design, and more), it would be nice if there were also a > community-driven effort to provide as much material as we can in a format > that's as free and open as LiveCode itself. > > That said, books also play a useful role in evangelizing LiveCode as a > platform, esp. when they come from established publishers. A good > publisher can do wonders for reinforcing a strong image of LiveCode and its > ever-expanding third-party ecosystem. I have some contacts at publishers > and would be happy to provide introductions if useful. > > And the upside for book publishing is that with RunRev's newsletters > having displaced much of the energy that used to go into LiveCode Journal, > at this point LCJ is mostly a one-man show. Being heavily booked with > client commitments, devoting time to fleshing out what can go there has > been challenging, and somewhat slow. > > Still, I felt obliged to note what's coming with the LiveCode Server > Center at LCJ (hopefully sooner than later), and to extend an invitation > for anyone interested in sharing free learning materials to consider > LiveCodeJournal.com as an available venue for community resources, not only > for LiveCode Server but anything else you feel would be of interest to the > community. > > We have all the infrastructure Dreamhost provides, and plenty of disk > space and bandwidth, all there for use by the LiveCode community. > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From john at splash21.com Tue Jun 10 15:03:32 2014 From: john at splash21.com (John Craig) Date: Tue, 10 Jun 2014 20:03:32 +0100 Subject: Learning about server In-Reply-To: <8D152E02FD014CC-DB8-CA88@webmail-va006.sysops.aol.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <8D152E02FD014CC-DB8-CA88@webmail-va006.sysops.aol.com> Message-ID: <53975684.6040300@splash21.com> Maybe we should all have a hangout some time and chew over a few ideas? On 10/06/2014 17:28, dunbarx at aol.com wrote: > I would pre- order two copies. > > > Craig Newman > > > > -----Original Message----- > From: Marc Van Cauwenberghe > To: How to use LiveCode > Sent: Tue, Jun 10, 2014 9:01 am > Subject: Re: Learning about server > > > Hi John,, > I would pre-order! > > Best regards, > Marc > > Op 10-jun.-2014, om 11:56 heeft John Craig het volgende > geschreven: > >> Any areas in particular that interest you? I was speaking to someone recently > about writing a book on LC server - not sure how much interest there would be, > but here is the current list of possible topics; >> Basic .lc server scripts >> Sessions >> Basic logging in and out with sessions >> SQL primer >> Server scripts with MySQL >> Logging in and out with a database >> Web applications >> User and group permissions >> Javascript >> AJAX >> Web APIs >> Push notifications: iOS/Android >> Basic record versioning with AJAX >> >> >> With hangouts / skype and all the other wonders of the interweb, delivery > could be fun.. >> >> On 10/06/2014 04:00, Dar Scott wrote: >>> I would like to learn about server. >>> >>> But, as Frodo would way, I don?t know the way. >>> >>> Dar Scott >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Tue Jun 10 15:05:09 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 10 Jun 2014 21:05:09 +0200 Subject: Learning about server In-Reply-To: <53975684.6040300@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <8D152E02FD014CC-DB8-CA88@webmail-va006.sysops.aol.com> <53975684.6040300@splash21.com> Message-ID: I'm game :) On Tue, Jun 10, 2014 at 9:03 PM, John Craig wrote: > Maybe we should all have a hangout some time and chew over a few ideas? > > > > On 10/06/2014 17:28, dunbarx at aol.com wrote: > >> I would pre- order two copies. >> >> >> Craig Newman >> >> >> >> -----Original Message----- >> From: Marc Van Cauwenberghe >> To: How to use LiveCode >> Sent: Tue, Jun 10, 2014 9:01 am >> Subject: Re: Learning about server >> >> >> Hi John,, >> I would pre-order! >> >> Best regards, >> Marc >> >> Op 10-jun.-2014, om 11:56 heeft John Craig het >> volgende >> geschreven: >> >> Any areas in particular that interest you? I was speaking to someone >>> recently >>> >> about writing a book on LC server - not sure how much interest there >> would be, >> but here is the current list of possible topics; >> >>> Basic .lc server scripts >>> Sessions >>> Basic logging in and out with sessions >>> SQL primer >>> Server scripts with MySQL >>> Logging in and out with a database >>> Web applications >>> User and group permissions >>> Javascript >>> AJAX >>> Web APIs >>> Push notifications: iOS/Android >>> Basic record versioning with AJAX >>> >>> >>> With hangouts / skype and all the other wonders of the interweb, delivery >>> >> could be fun.. >> >>> >>> On 10/06/2014 04:00, Dar Scott wrote: >>> >>>> I would like to learn about server. >>>> >>>> But, as Frodo would way, I don?t know the way. >>>> >>>> Dar Scott >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription >>>> >>> preferences: >> >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription >>> >> preferences: >> >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From ambassador at fourthworld.com Tue Jun 10 15:25:07 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 10 Jun 2014 12:25:07 -0700 Subject: Learning about server In-Reply-To: References: Message-ID: <53975B93.9040503@fourthworld.com> Simon Smith wrote: > Writing a book would be a mammoth task - and I for one, would not be > certain just how large a target market there would be, so they would truly > be a labour of love :) It would indeed. I've known enough people in the book business that I stay with software. :) > But for now - this is something I have been dabbling with, > http://activethought.net/livecode-server/ its far from complete and > hopefully not to many errors and spelling mistakes. It is probably a bit on > the simple side - but if it helps one person, then I would be happy. Nice, Simon! I hadn't come across that before - well done. I just sent that URL to Heather to forward to the Web team so it can be added to the Resources page at LiveCode.com. Hopefully we'll see it linked there soon - good resource, thanks for putting that together. -- Richard Gaskin LiveCode Community Manager richard at livecode.org From benr_mc at cogapp.com Tue Jun 10 15:32:09 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 10 Jun 2014 20:32:09 +0100 Subject: Running an LC app from the command line In-Reply-To: <0D154967-9B1A-448E-8D59-76294EFFEA90@canelasoftware.com> References: <150350307073.20140604185510@ahsoftware.net> <0D154967-9B1A-448E-8D59-76294EFFEA90@canelasoftware.com> Message-ID: <53975D39.2090507@cogapp.com> On 05/06/2014 17:46, Mark Talluto wrote: > On Jun 5, 2014, at 9:26 AM, Peter Haworth wrote: > >> Thanks everyone. SOunds like hiding and positioning off screen is the way >> to go, particularly since I need this to work on Windows as well as Mac and >> I think -ui is Mac only (and possibly Linux?) > > You can always just set the vis of the stack to false and leave it where you like. FWIW, I have an app which runs fine as standalone or CLI, on Mac Windows and Linux. Originally developed for the former, it took quite a bit of work to get it stable CLI. When it starts up, it hides the main stack if it's in CLI mode; and also needs to check in various places if it is in CLI mode to avoid performing other graphic operations, which would indeed lead to an early and immediate exit. Also - it may be obvious! - to ensure that when unusual things happen which would normally throw up a dialog box, they instead write something to the console. The code to check if it's in CLI mode used to just check "the environment" - but a note in my code records that this ceased to return the correct value sometime between version 3.5 and 4.6 (I haven't checked if it's been fixed since). It now checks the environment (= "command line"?), the windowID of the main stack (= 1?) and finally $1 ( = "headless" ?) and if any of those are true considers that it must be in CLI mode. It's so long ago that I don't recall, but I assume that the last of these tests was a desperation move allowing me to force it into that mode. Ben From hello at simonsmith.co Tue Jun 10 15:49:55 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 10 Jun 2014 21:49:55 +0200 Subject: Learning about server In-Reply-To: <53975B93.9040503@fourthworld.com> References: <53975B93.9040503@fourthworld.com> Message-ID: Thanks, much appreciated. Only put it live a few minutes ago, there is no time like the present and if I don't do it now - then I probably never will. It is also a great motivation to work on it and try to complete everything that is missing. Simon On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin wrote: > Simon Smith wrote: > > Writing a book would be a mammoth task - and I for one, would not be >> certain just how large a target market there would be, so they would truly >> be a labour of love :) >> > > It would indeed. I've known enough people in the book business that I > stay with software. :) > > > But for now - this is something I have been dabbling with, >> http://activethought.net/livecode-server/ its far from complete and >> hopefully not to many errors and spelling mistakes. It is probably a bit >> on >> the simple side - but if it helps one person, then I would be happy. >> > > Nice, Simon! I hadn't come across that before - well done. > > I just sent that URL to Heather to forward to the Web team so it can be > added to the Resources page at LiveCode.com. Hopefully we'll see it linked > there soon - good resource, thanks for putting that together. > > > -- > Richard Gaskin > LiveCode Community Manager > richard at livecode.org > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From scott at tactilemedia.com Tue Jun 10 16:09:12 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 10 Jun 2014 13:09:12 -0700 Subject: [OT] Remember Be? Message-ID: There's a woman speaking at a local CHI event here tonight whose UX career started at Be, Inc. If you don't remember Be, it was an alternative operating system and hardware platform started in the early 90s, by ex Apple exec Jean-Louis Gass?e. Be eventually became one of the options considered to replace Apple's OS at the time (Next was the other option). Reading up on the Be's fate on Wikipedia, this tidbit on Be's name was mentioned: "According to several sources including Macworld UK, the company name "Be" had its origin in a conversation between Gass?e and Be co-founder Steve Sakoman. Gass?e originally thought the company should be called "United Technoids Inc.", but Sakoman disagreed and said he would start looking through the dictionary for a better name. A few days later, when Gass?e asked if he had made any progress, Sakoman replied that he had got tired and stopped at "B." Gass?e said, "Be is nice. End of story." :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design From scott at tactilemedia.com Tue Jun 10 16:12:30 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 10 Jun 2014 13:12:30 -0700 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: Bookmarked :-) Thanks for this. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/10/14 12:49 PM, "Simon Smith" wrote: >Thanks, much appreciated. > >Only put it live a few minutes ago, there is no time like the present and >if I don't do it now - then I probably never will. It is also a great >motivation to work on it and try to complete everything that is missing. > >Simon > > >On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin > >wrote: > >> Simon Smith wrote: >> >> Writing a book would be a mammoth task - and I for one, would not be >>> certain just how large a target market there would be, so they would >>>truly >>> be a labour of love :) >>> >> >> It would indeed. I've known enough people in the book business that I >> stay with software. :) >> >> >> But for now - this is something I have been dabbling with, >>> http://activethought.net/livecode-server/ its far from complete and >>> hopefully not to many errors and spelling mistakes. It is probably a >>>bit >>> on >>> the simple side - but if it helps one person, then I would be happy. >>> >> >> Nice, Simon! I hadn't come across that before - well done. >> >> I just sent that URL to Heather to forward to the Web team so it can be >> added to the Resources page at LiveCode.com. Hopefully we'll see it >>linked >> there soon - good resource, thanks for putting that together. >> >> >> -- >> Richard Gaskin >> LiveCode Community Manager >> richard at livecode.org From prothero at earthednet.org Tue Jun 10 17:21:25 2014 From: prothero at earthednet.org (William Prothero) Date: Tue, 10 Jun 2014 14:21:25 -0700 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: <7E695414-9A87-43FB-AC37-7224E3E475C5@earthednet.org> Simon: Re the server installation, one thing that worries me is the server load. As a cgi, the livecode app needs to be loaded for every call, AFAIK, and would demand a lot from the server. It seemed that the installation where it is integrated into the Apache configuration would be best, but I was worried that I would screw up the other configuration items. like the php and sql configuration directives. So, I installed it, for test purposes, as a cgi. This issue should be addressed in installation tutorials. FYI, I have a VPS hosted by liquidweb, which has fantastic customer support and reliability. Bill On Jun 10, 2014, at 1:12 PM, Scott Rossi wrote: > Bookmarked :-) Thanks for this. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX/UI Design > > > > > On 6/10/14 12:49 PM, "Simon Smith" wrote: > >> Thanks, much appreciated. >> >> Only put it live a few minutes ago, there is no time like the present and >> if I don't do it now - then I probably never will. It is also a great >> motivation to work on it and try to complete everything that is missing. >> >> Simon >> >> >> On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin >> >> wrote: >> >>> Simon Smith wrote: >>> >>> Writing a book would be a mammoth task - and I for one, would not be >>>> certain just how large a target market there would be, so they would >>>> truly >>>> be a labour of love :) >>>> >>> >>> It would indeed. I've known enough people in the book business that I >>> stay with software. :) >>> >>> >>> But for now - this is something I have been dabbling with, >>>> http://activethought.net/livecode-server/ its far from complete and >>>> hopefully not to many errors and spelling mistakes. It is probably a >>>> bit >>>> on >>>> the simple side - but if it helps one person, then I would be happy. >>>> >>> >>> Nice, Simon! I hadn't come across that before - well done. >>> >>> I just sent that URL to Heather to forward to the Web team so it can be >>> added to the Resources page at LiveCode.com. Hopefully we'll see it >>> linked >>> there soon - good resource, thanks for putting that together. >>> >>> >>> -- >>> Richard Gaskin >>> LiveCode Community Manager >>> richard at livecode.org > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hello at simonsmith.co Tue Jun 10 17:55:35 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 10 Jun 2014 23:55:35 +0200 Subject: Learning about server In-Reply-To: <7E695414-9A87-43FB-AC37-7224E3E475C5@earthednet.org> References: <53975B93.9040503@fourthworld.com> <7E695414-9A87-43FB-AC37-7224E3E475C5@earthednet.org> Message-ID: Hi William It will live quiet happily with php and mysql and should not cause any problems. I remember reading (think it was a forum post Richard commented on) where there was a question re: cgi vs fast cgi (with fast cgi there is only a single process so it speeds up execution) He mentioned the disadvantages of running Fast CGI - if there is a problem and the process gets blocked, it can kill it for everything on the server, where the LiveCode CGI is pretty small and executes very quickly and should handle a relatively large load. I am not certain if there are plans to port LiveCode Server to fast cgi. I have not come across any benchmarks comparing LCServer to the likes of php - that would be an interesting experiment to see what the capabilities of it is. Something I want to look at (not had a chance yet) is to setup a vps running the hiawatha webserver (hiawatha-webserver.org). It is smaller than apache and should run faster as its designed for older servers. That combined with something like maria db instead of mysql should let you get quiet a bit out of a small server. Kind regards Simon On Tue, Jun 10, 2014 at 11:21 PM, William Prothero wrote: > Simon: > Re the server installation, one thing that worries me is the server load. > As a cgi, the livecode app needs to be loaded for every call, AFAIK, and > would demand a lot from the server. It seemed that the installation where > it is integrated into the Apache configuration would be best, but I was > worried that I would screw up the other configuration items. like the php > and sql configuration directives. So, I installed it, for test purposes, as > a cgi. > > This issue should be addressed in installation tutorials. FYI, I have a > VPS hosted by liquidweb, which has fantastic customer support and > reliability. > > Bill > > > On Jun 10, 2014, at 1:12 PM, Scott Rossi wrote: > > > Bookmarked :-) Thanks for this. > > > > Regards, > > > > Scott Rossi > > Creative Director > > Tactile Media, UX/UI Design > > > > > > > > > > On 6/10/14 12:49 PM, "Simon Smith" wrote: > > > >> Thanks, much appreciated. > >> > >> Only put it live a few minutes ago, there is no time like the present > and > >> if I don't do it now - then I probably never will. It is also a great > >> motivation to work on it and try to complete everything that is missing. > >> > >> Simon > >> > >> > >> On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin > >> > >> wrote: > >> > >>> Simon Smith wrote: > >>> > >>> Writing a book would be a mammoth task - and I for one, would not be > >>>> certain just how large a target market there would be, so they would > >>>> truly > >>>> be a labour of love :) > >>>> > >>> > >>> It would indeed. I've known enough people in the book business that I > >>> stay with software. :) > >>> > >>> > >>> But for now - this is something I have been dabbling with, > >>>> http://activethought.net/livecode-server/ its far from complete and > >>>> hopefully not to many errors and spelling mistakes. It is probably a > >>>> bit > >>>> on > >>>> the simple side - but if it helps one person, then I would be happy. > >>>> > >>> > >>> Nice, Simon! I hadn't come across that before - well done. > >>> > >>> I just sent that URL to Heather to forward to the Web team so it can be > >>> added to the Resources page at LiveCode.com. Hopefully we'll see it > >>> linked > >>> there soon - good resource, thanks for putting that together. > >>> > >>> > >>> -- > >>> Richard Gaskin > >>> LiveCode Community Manager > >>> richard at livecode.org > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From m.schonewille at economy-x-talk.com Tue Jun 10 18:42:00 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jun 2014 00:42:00 +0200 Subject: Best approach to introduce students in programing to LC ? In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> Message-ID: <539789B8.9010707@economy-x-talk.com> Hi JBV, I could imagine that first-year students have no or almost no experience with programming. They might need to get acquainted with concepts such as abstract thinking, logic, recursion and perhaps GUI design. Additionally, they will need to learn elementary syntax, and how to use variables and other containers. Not very long ago, I announced that I'm working on a new book. While my current book might be useful --specifically for second-year students-- the new book is probably more suitable for your first-year students. This new book will deal with all basic concepts mentioned in the above and leave out all advanced subjects, which a teacher could still add to the course as a bonus. I'm looking for people who want to review this book and you might want to join. Perhaps we can arrange something, so you'll be able to use it in September. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/10/2014 20:24, jbv at souslelogo.com wrote: > Hi list, > Starting next september I might have the opportunity to give > a few hours of teaching at the local technology institute for > students in their 1st and 2nd year of learning techniques of > internet, multimedia and programming. > Of course the first idea that crossed my mind was to introduce > them to LC, as a recent discussion with some of their teachers > showed clearly that almost nobody there was aware of it, and > those who knew about LC haven't found the time to test it... > I might be wrong, but the best / most attractive approach seems > to be "code once deploy many"... > Do you guys have some suggestions about what the main > chapters of such a teaching should be ? > I'll also try to find the time to search the archives, as I'm sure > that topic has already been discussed... > > Thanks > jbv > From Nakia.Brewer at westrac.com.au Tue Jun 10 19:57:13 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Tue, 10 Jun 2014 23:57:13 +0000 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: <67116DB20798A94285EEE12A67079A284CB22DD1@MHSEXC02.westrac.com.au> This is good! Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au ? ACN 009 342 572 -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Scott Rossi Sent: Wednesday, 11 June 2014 6:13 AM To: LiveCode Mail List Subject: Re: Learning about server Bookmarked :-) Thanks for this. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/10/14 12:49 PM, "Simon Smith" wrote: >Thanks, much appreciated. > >Only put it live a few minutes ago, there is no time like the present >and if I don't do it now - then I probably never will. It is also a >great motivation to work on it and try to complete everything that is missing. > >Simon > > >On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin > >wrote: > >> Simon Smith wrote: >> >> Writing a book would be a mammoth task - and I for one, would not be >>> certain just how large a target market there would be, so they would >>>truly be a labour of love :) >>> >> >> It would indeed. I've known enough people in the book business that >> I stay with software. :) >> >> >> But for now - this is something I have been dabbling with, >>> http://activethought.net/livecode-server/ its far from complete and >>>hopefully not to many errors and spelling mistakes. It is probably a >>>bit on the simple side - but if it helps one person, then I would >>>be happy. >>> >> >> Nice, Simon! I hadn't come across that before - well done. >> >> I just sent that URL to Heather to forward to the Web team so it can >>be added to the Resources page at LiveCode.com. Hopefully we'll see >>it linked there soon - good resource, thanks for putting that >>together. >> >> >> -- >> Richard Gaskin >> LiveCode Community Manager >> richard at livecode.org _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From m.schonewille at economy-x-talk.com Tue Jun 10 21:32:33 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jun 2014 03:32:33 +0200 Subject: [ANN] More info about the LC meeting in Switzerland Message-ID: <5397B1B1.2070004@economy-x-talk.com> Hi everyone, On Saturday, 28th June 2014, Bj?rnke von Gierke and Mark Schonewille will organise a LiveCode meeting. On this day, we'll welcome you at the Zentrum Karl der Grosse (Charles the Great Centre) in Zurich, Switzerland. We can now provide you with a little more info about the meeting. *Agenda* While the agenda for the meeting hasn't been decided on, we can already mention a few items that are likely to be included: 1) Opening at 13:00h. 2) A discussion about the question why LiveCode "doesn't catch on", or why people "don't get it". 3) A raffle with great prizes, including a SuperCard license, a copy of the book Programming LiveCode for the Real Beginner, a Charts Engine license, an Animation Engine license and more. 4) We will have a goodie bag (or envelope) containing a coupon code for a 30% discount on a LiveCode license and a 50% discount in Installer Maker. We are still looking for more items in the goodie bag; let us know if you want to add something. 5) Closing at 17:00h. 6) Dinner on the premises at 18:00h. There is plenty of time left in our schedule and we invite you to send in proposals for discussion topics and presentations. If you have been struggling with a question for a long time, you can ask the attendants for an answer; if you have a cool trick, you can show us; if you have a product to announce, you can give a demonstration; etc. Obviously, you can also just attend the meeting. *Registration and participation* Because there is limited space on the premises where we hire a conference room, we would like you to register as soon as possible by sending an e-mail to Bj?rnke at bvg at mac.com . While entry is free, you'll need to bring sufficient cash for drinks and dinner. We will provide coffee and tea. The hotel will be at your own expense. We can recommend a hotel on request. *Important info:* Meeting: Saturday 28 June 2014, from 13:00 to 17:00h. Dinner: Saturday 28 June 2014, from 18:00h. Address: Zentrum Karl der Grosse Kirchgasse 14 8001 Z?rich Map: https://goo.gl/maps/BqqKz Picture of conference room: http://i.imgur.com/r6KlUeD.jpg *Current sponsors/products* RunRev http://www.livecode.com SuperCard http://www.supercard.us Animation Engine https://livecode.com/store/marketplace/animation-engine-5/ Charts Engine https://livecode.com/store/marketplace/charts-engine-1-2-1/ Installer Maker http://rrinstallermaker.economy-x-talk.com Programming LiveCode... http://livecodebeginner.economy-x-talk.com/ Datagrid Helper http://www.aslugontheroad.com/ourproducts/2-what-is-dgh -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From lan.kc.macmail at gmail.com Tue Jun 10 21:46:54 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 11 Jun 2014 09:46:54 +0800 Subject: Learning about server In-Reply-To: References: <539728EF.901@fourthworld.com> Message-ID: On Wed, Jun 11, 2014 at 3:02 AM, Simon Smith wrote: but if it helps one person, then I would be happy. Well it helped me, so please be happy. Now to make you sad. I'm surprised that security didn't make a mention in John's lists of topics, nor is it an obvious link on your page. I know there are many posts on this list that cover the topic and there's probably a books worth of detail on this one subject alone, but it would be really nice if, when you cross that bridge, you were to add a Hitch Hiker's Guide on how to keep data private as it travels back and forth between LC standalones and LC Server. For me, once I've got past step one of the installation of LC Server the very next hurdle would be to keep all comms secure, or which comms do I need to keep secure and which ones I need not waste time worrying about. But again, thanks for the link! From hello at simonsmith.co Wed Jun 11 01:49:05 2014 From: hello at simonsmith.co (Simon Smith) Date: Wed, 11 Jun 2014 07:49:05 +0200 Subject: Learning about server In-Reply-To: References: <539728EF.901@fourthworld.com> Message-ID: Thanks Kay :) I would love to look at the security side of things sometime - it seems to be something a lot of developers take less seriously now days. One of the things I like about LiveCode is how easy it makes it to work with encryption. LiveCode has added support for Open SSL & encryption support for iOS and Android - so that would be the place to start. Simon On Wed, Jun 11, 2014 at 3:46 AM, Kay C Lan wrote: > On Wed, Jun 11, 2014 at 3:02 AM, Simon Smith wrote: > but if it helps one person, then I would be happy. > > Well it helped me, so please be happy. > > Now to make you sad. I'm surprised that security didn't make a mention > in John's lists of topics, nor is it an obvious link on your page. I > know there are many posts on this list that cover the topic and > there's probably a books worth of detail on this one subject alone, > but it would be really nice if, when you cross that bridge, you were > to add a Hitch Hiker's Guide on how to keep data private as it travels > back and forth between LC standalones and LC Server. For me, once I've > got past step one of the installation of LC Server the very next > hurdle would be to keep all comms secure, or which comms do I need to > keep secure and which ones I need not waste time worrying about. > > But again, thanks for the link! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Wed Jun 11 02:01:27 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 11 Jun 2014 09:01:27 +0300 Subject: Best approach to introduce students in programing to LC ? In-Reply-To: <539789B8.9010707@economy-x-talk.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <1402404205560-4680397.post@n4.nabble.com> <539789B8.9010707@economy-x-talk.com> Message-ID: Mark, Thanks for the offer, I will be glad to review your new book. Although I think you might be somewhat wrong about those students' needs. These people are 18 to 20 years old and have already been exposed to the basic concepts of coding in highschool or are self-educated on these matters. Furthermore, they'll have other teachers talking about css, js, php, java and other similar stuff. IOW they don't need me to introduce them to coding through LC; the question is rather : how could I use LC to put a few things in perspective and introduce them to other options... Those few hours of teaching should rather be viewed as an add-on that the regular teachers will accept to include in the regular program because it brings useful content... I hope I'm making myself clear enough. Best, jbv > Hi JBV, > > I could imagine that first-year students have no or almost no experience > with programming. They might need to get acquainted with concepts such > as abstract thinking, logic, recursion and perhaps GUI design. > Additionally, they will need to learn elementary syntax, and how to use > variables and other containers. > > Not very long ago, I announced that I'm working on a new book. While my > current book might be useful --specifically for second-year students-- > the new book is probably more suitable for your first-year students. > This new book will deal with all basic concepts mentioned in the above > and leave out all advanced subjects, which a teacher could still add to > the course as a bonus. > > I'm looking for people who want to review this book and you might want > to join. Perhaps we can arrange something, so you'll be able to use it > in September. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > On 6/10/2014 20:24, jbv at souslelogo.com wrote: >> Hi list, >> Starting next september I might have the opportunity to give >> a few hours of teaching at the local technology institute for >> students in their 1st and 2nd year of learning techniques of >> internet, multimedia and programming. >> Of course the first idea that crossed my mind was to introduce >> them to LC, as a recent discussion with some of their teachers >> showed clearly that almost nobody there was aware of it, and >> those who knew about LC haven't found the time to test it... >> I might be wrong, but the best / most attractive approach seems >> to be "code once deploy many"... >> Do you guys have some suggestions about what the main >> chapters of such a teaching should be ? >> I'll also try to find the time to search the archives, as I'm sure >> that topic has already been discussed... >> >> Thanks >> jbv >> > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Wed Jun 11 02:04:49 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 11 Jun 2014 09:04:49 +0300 Subject: [OT] Remember Be? In-Reply-To: References: Message-ID: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> Yep, I do remember Be. AFAIR it could be installed on Macintosh clones made by other manufactors back then... They had a very specific icons design and there was a kind of freeware that could be installed on Mac OS to make the GUI look like Be... Best, jbv From scott at tactilemedia.com Wed Jun 11 03:29:01 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Wed, 11 Jun 2014 00:29:01 -0700 Subject: [OT] Remember Be? In-Reply-To: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> References: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> Message-ID: Be was also very forward thinking about Internet-connected home appliances. In 1999, they hired me to create a UI for a prototype touch screen "kitchen manager" -- for planning meals, ordering groceries, and handling personal communications. They were very shorthanded at the time, so they left it up to me to make everything. I wound up shooting video of myself for the "video email" portion (scary!). Many months later I was surprised to see the prototype appear on a ZDTV segment with Jim Louderback. Sadly, I only have a low quality digitized VHS recording of the episode (never been able to find a good copy online). For grins: http://www.tactilemedia.com/demo/be_kitchen_demo.html Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/10/14 11:04 PM, "jbv at souslelogo.com" wrote: >Yep, I do remember Be. >AFAIR it could be installed on Macintosh clones made by other >manufactors back then... They had a very specific icons design >and there was a kind of freeware that could be installed on >Mac OS to make the GUI look like Be... > >Best, >jbv From john at splash21.com Wed Jun 11 04:16:31 2014 From: john at splash21.com (John Craig) Date: Wed, 11 Jun 2014 09:16:31 +0100 Subject: Learning about server In-Reply-To: References: <539728EF.901@fourthworld.com> Message-ID: <5398105F.7010903@splash21.com> That's a pretty cool reference site - nice! B) On 10/06/2014 20:02, Simon Smith wrote: > Hi Richard > > I would be happy to contribute to LCJ and it will be interesting to see > what you have setup. > > Writing a book would be a mammoth task - and I for one, would not be > certain just how large a target market there would be, so they would truly > be a labour of love :) > > But for now - this is something I have been dabbling with, > http://activethought.net/livecode-server/ its far from complete and > hopefully not to many errors and spelling mistakes. It is probably a bit on > the simple side - but if it helps one person, then I would be happy. > > Kind Regards > Simon > > On Tue, Jun 10, 2014 at 5:49 PM, Richard Gaskin > wrote: > >> Dar wrote: >>> My immediate need would not be a way to deliver web content, but just >>> as a way to make a console application on Windows. But, I can see >>> the former in my future. >> There are so many useful and interesting things to do with LiveCode >> Server, and even standalones on servers, it's almost overwhelming. >> >> These days a majority of the work I do is making client-server apps where >> LiveCode runs both sides. I currently have only one site where LC is used >> to generate output for the Web - everything else is either APIs for other >> services, or the backend for LC-based clients used in workgroup settings. >> >> Given the wide range of ways LC is useful on servers, with all due respect >> to the ambitions of those interested in writing a book on it, it would be a >> big one. >> >> Last month I outlined my plans for the LiveCode Server Center, in the >> works for LiveCode Journal now that I finally put a CMS in place there (and >> of course the CMS is made with LiveCode, all the way down to the data >> store): >> >> >> As I wrote then, I don't mean to discourage anyone from writing a book, >> and indeed there is likely a good audience for it. >> >> But given the scope of what LC Server can do, and the many other aspects >> that come into play with using it well (the critical role of performance in >> the inherently-short CGI runtime lifecycle, how mod_rewrite works, SSH >> keys, bash, rsync, custom servers like looping CLI daemons and simpler GUI >> apps, REST API design, and more), it would be nice if there were also a >> community-driven effort to provide as much material as we can in a format >> that's as free and open as LiveCode itself. >> >> That said, books also play a useful role in evangelizing LiveCode as a >> platform, esp. when they come from established publishers. A good >> publisher can do wonders for reinforcing a strong image of LiveCode and its >> ever-expanding third-party ecosystem. I have some contacts at publishers >> and would be happy to provide introductions if useful. >> >> And the upside for book publishing is that with RunRev's newsletters >> having displaced much of the energy that used to go into LiveCode Journal, >> at this point LCJ is mostly a one-man show. Being heavily booked with >> client commitments, devoting time to fleshing out what can go there has >> been challenging, and somewhat slow. >> >> Still, I felt obliged to note what's coming with the LiveCode Server >> Center at LCJ (hopefully sooner than later), and to extend an invitation >> for anyone interested in sharing free learning materials to consider >> LiveCodeJournal.com as an available venue for community resources, not only >> for LiveCode Server but anything else you feel would be of interest to the >> community. >> >> We have all the infrastructure Dreamhost provides, and plenty of disk >> space and bandwidth, all there for use by the LiveCode community. >> >> -- >> Richard Gaskin >> LiveCode Community Manager >> richard at livecode.org >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From john at splash21.com Wed Jun 11 04:55:29 2014 From: john at splash21.com (John Craig) Date: Wed, 11 Jun 2014 09:55:29 +0100 Subject: Learning about server In-Reply-To: References: <539728EF.901@fourthworld.com> Message-ID: <53981981.6090803@splash21.com> Don't be sad - the reason for posting the topics was for feedback :D The security topic would appear naturally when talking about logging in, etc. (but a dedicated topic would be possible). A few examples that work nicely with LC... SSL connections for encrypting all traffic to/from browser - (the easy option!) Javascript MD5 for sending encrypted data over non SSL connections. Using encrypt/decrypt to talk to your web app. from a standalone. Generating auth tokens from your standalone for non encrypted comms. What I really had in mind was "The Hitchhiker's Guide To LiveCode Server Scripting". On 11/06/2014 02:46, Kay C Lan wrote: > On Wed, Jun 11, 2014 at 3:02 AM, Simon Smith wrote: > but if it helps one person, then I would be happy. > > Well it helped me, so please be happy. > > Now to make you sad. I'm surprised that security didn't make a mention > in John's lists of topics, nor is it an obvious link on your page. I > know there are many posts on this list that cover the topic and > there's probably a books worth of detail on this one subject alone, > but it would be really nice if, when you cross that bridge, you were > to add a Hitch Hiker's Guide on how to keep data private as it travels > back and forth between LC standalones and LC Server. For me, once I've > got past step one of the installation of LC Server the very next > hurdle would be to keep all comms secure, or which comms do I need to > keep secure and which ones I need not waste time worrying about. > > But again, thanks for the link! > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From toolbook at kestner.de Wed Jun 11 06:26:54 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Wed, 11 Jun 2014 12:26:54 +0200 Subject: AW: [ANN] More info about the LC meeting in Switzerland In-Reply-To: <5397B1B1.2070004@economy-x-talk.com> References: <5397B1B1.2070004@economy-x-talk.com> Message-ID: <000001cf855f$ab5b7a00$02126e00$@de> Beeing on holiday on that day, I wish you a lot of fun. Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Mark Schonewille > Gesendet: Mittwoch, 11. Juni 2014 03:33 > An: How to use LiveCode > Betreff: [ANN] More info about the LC meeting in Switzerland > > Hi everyone, > > On Saturday, 28th June 2014, Bj?rnke von Gierke and Mark Schonewille will > organise a LiveCode meeting. On this day, we'll welcome you at the Zentrum > Karl der Grosse (Charles the Great Centre) in Zurich, Switzerland. We can now > provide you with a little more info about the meeting. > > > *Agenda* > > While the agenda for the meeting hasn't been decided on, we can already > mention a few items that are likely to be included: > > 1) Opening at 13:00h. > > 2) A discussion about the question why LiveCode "doesn't catch on", or why > people "don't get it". > > 3) A raffle with great prizes, including a SuperCard license, a copy of the > book Programming LiveCode for the Real Beginner, a Charts Engine license, an > Animation Engine license and more. > > 4) We will have a goodie bag (or envelope) containing a coupon code for a 30% > discount on a LiveCode license and a 50% discount in Installer Maker. We are > still looking for more items in the goodie bag; let us know if you want to add > something. > > 5) Closing at 17:00h. > > 6) Dinner on the premises at 18:00h. > > There is plenty of time left in our schedule and we invite you to send in > proposals for discussion topics and presentations. If you have been struggling > with a question for a long time, you can ask the attendants for an answer; if > you have a cool trick, you can show us; if you have a product to announce, you > can give a demonstration; etc. Obviously, you can also just attend the > meeting. > > > *Registration and participation* > > Because there is limited space on the premises where we hire a conference > room, we would like you to register as soon as possible by sending an e-mail > to Bj?rnke at bvg at mac.com . > > While entry is free, you'll need to bring sufficient cash for drinks and > dinner. We will provide coffee and tea. The hotel will be at your own expense. > We can recommend a hotel on request. > > > *Important info:* > > Meeting: Saturday 28 June 2014, from 13:00 to 17:00h. > Dinner: Saturday 28 June 2014, from 18:00h. > > Address: > Zentrum Karl der Grosse > Kirchgasse 14 > 8001 Z?rich > Map: https://goo.gl/maps/BqqKz > Picture of conference room: http://i.imgur.com/r6KlUeD.jpg > > > *Current sponsors/products* > > RunRev > http://www.livecode.com > > SuperCard > http://www.supercard.us > > Animation Engine > https://livecode.com/store/marketplace/animation-engine-5/ > > Charts Engine > https://livecode.com/store/marketplace/charts-engine-1-2-1/ > > Installer Maker > http://rrinstallermaker.economy-x-talk.com > > Programming LiveCode... > http://livecodebeginner.economy-x-talk.com/ > > Datagrid Helper > http://www.aslugontheroad.com/ourproducts/2-what-is-dgh > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john at splash21.com Wed Jun 11 09:34:03 2014 From: john at splash21.com (John Craig) Date: Wed, 11 Jun 2014 14:34:03 +0100 Subject: [ANN] MobGUI V1.27 Message-ID: <53985ACB.8060701@splash21.com> Now iOS distribution files can be automatically created and copied to a remote server after build with scp, ftp, sftp, etc. Android file transfer will be added next. http://forums.livecode.com/viewtopic.php?f=54&t=20747 From devin_asay at byu.edu Wed Jun 11 10:28:00 2014 From: devin_asay at byu.edu (Devin Asay) Date: Wed, 11 Jun 2014 14:28:00 +0000 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: Great site, Simon! I've bookmarked that link for when I talk to my classes about LC Server. So far I've only got a *very* cursory set of introductory notes that I've used in classes and workshops. http://livecode.byu.edu/internet/lc_servercripting.php http://livecode.byu.edu/internet/lc_server_notes.php In addition to your notes on installing Server, I also remember that Keith Clarke posted some instructions a couple of years back for installing it on OS X and OS X Server. Unfortunately, his links seem to be dead. On Feb 16, 2011, at 3:08 PM, Keith Clarke wrote: > Hi folks, > I promised to publish some notes on the above - new to blogging as well as LiveCode and OSX server, so I hope they help a bit: > ? OSX Server vs Regular OSX considerations: http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-vs-osx.html > ? Configuring OSX Server for revServer: http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-snow-leopard.html > ? RevServer and OSX Server Custom sites: http://blog.clarityforsuccess.com/2011/02/configure-osx-server-custom-site-for.html > Best, > Keith.. Anybody have live links to this? You still out there Keith? I'd love to see more how-to materials for LC Server. I would definitely buy a book if it came to be. Devin On Jun 10, 2014, at 1:49 PM, Simon Smith wrote: > Thanks, much appreciated. > > Only put it live a few minutes ago, there is no time like the present and > if I don't do it now - then I probably never will. It is also a great > motivation to work on it and try to complete everything that is missing. > > Simon > > > On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin > wrote: > >> Simon Smith wrote: >> >> Writing a book would be a mammoth task - and I for one, would not be >>> certain just how large a target market there would be, so they would truly >>> be a labour of love :) >>> >> >> It would indeed. I've known enough people in the book business that I >> stay with software. :) >> >> >> But for now - this is something I have been dabbling with, >>> http://activethought.net/livecode-server/ its far from complete and >>> hopefully not to many errors and spelling mistakes. It is probably a bit >>> on >>> the simple side - but if it helps one person, then I would be happy. >>> >> >> Nice, Simon! I hadn't come across that before - well done. >> >> I just sent that URL to Heather to forward to the Web team so it can be >> added to the Resources page at LiveCode.com. Hopefully we'll see it linked >> there soon - good resource, thanks for putting that together. >> >> Devin Asay Office of Digital Humanities Brigham Young University From keith.clarke at clarkeandclarke.co.uk Wed Jun 11 10:56:30 2014 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 11 Jun 2014 15:56:30 +0100 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: Don?t mourn the loss of those old dead links regarding server on OSX. They were rendered obsolete almost immediately by new releases of LiveCode server and OSX server & admin setup. I?ve not revisited since, as I moved to on-rev for an installation-free development playground - the wrenched-out hair hasn?t grown back yet though! ;-) Best, Keith.. On 11 Jun 2014, at 15:28, Devin Asay wrote: > Great site, Simon! I've bookmarked that link for when I talk to my classes about LC Server. So far I've only got a *very* cursory set of introductory notes that I've used in classes and workshops. > > http://livecode.byu.edu/internet/lc_servercripting.php > http://livecode.byu.edu/internet/lc_server_notes.php > > In addition to your notes on installing Server, I also remember that Keith Clarke posted some instructions a couple of years back for installing it on OS X and OS X Server. Unfortunately, his links seem to be dead. > > On Feb 16, 2011, at 3:08 PM, Keith Clarke wrote: > >> Hi folks, >> I promised to publish some notes on the above - new to blogging as well as LiveCode and OSX server, so I hope they help a bit: >> ? OSX Server vs Regular OSX considerations: http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-vs-osx.html >> ? Configuring OSX Server for revServer: http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-snow-leopard.html >> ? RevServer and OSX Server Custom sites: http://blog.clarityforsuccess.com/2011/02/configure-osx-server-custom-site-for.html >> Best, >> Keith.. > > Anybody have live links to this? You still out there Keith? > > I'd love to see more how-to materials for LC Server. I would definitely buy a book if it came to be. > > Devin > > > On Jun 10, 2014, at 1:49 PM, Simon Smith wrote: > >> Thanks, much appreciated. >> >> Only put it live a few minutes ago, there is no time like the present and >> if I don't do it now - then I probably never will. It is also a great >> motivation to work on it and try to complete everything that is missing. >> >> Simon >> >> >> On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin >> wrote: >> >>> Simon Smith wrote: >>> >>> Writing a book would be a mammoth task - and I for one, would not be >>>> certain just how large a target market there would be, so they would truly >>>> be a labour of love :) >>>> >>> >>> It would indeed. I've known enough people in the book business that I >>> stay with software. :) >>> >>> >>> But for now - this is something I have been dabbling with, >>>> http://activethought.net/livecode-server/ its far from complete and >>>> hopefully not to many errors and spelling mistakes. It is probably a bit >>>> on >>>> the simple side - but if it helps one person, then I would be happy. >>>> >>> >>> Nice, Simon! I hadn't come across that before - well done. >>> >>> I just sent that URL to Heather to forward to the Web team so it can be >>> added to the Resources page at LiveCode.com. Hopefully we'll see it linked >>> there soon - good resource, thanks for putting that together. >>> >>> > > Devin Asay > Office of Digital Humanities > Brigham Young University > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lfredricks at proactive-intl.com Wed Jun 11 11:03:43 2014 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Wed, 11 Jun 2014 08:03:43 -0700 Subject: Be, OpenDoc, P & S and... In-Reply-To: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> References: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> Message-ID: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> Very interesting time in MacOS land when Be came around. I wrote an article for their developer magazine about sales & distribution. At the time, I was also involved in selling a different RAD tool and in talks with Be to port it to the BeOS. Had they agreed to terms, I think it would have changed things for them. It wasn't just that Apple didn't acquire them that they failed, it was to get momentum on commercial applications - for which there were few. There were a few Mac OS focused vendors who were looking at Be as a possible platform (as they held their noses and ported to Windows), but I think many were still sensitive to declining revenues on the Mac platform and being stung by various initiatives that died horribly, like OpenDoc. Remember OpenDoc? Publish and subscribe? :-) Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina Reports: Best Reporting Solution for LiveCode From ambassador at fourthworld.com Wed Jun 11 11:52:54 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 11 Jun 2014 08:52:54 -0700 Subject: Be, OpenDoc, P & S and... In-Reply-To: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> References: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> Message-ID: <53987B56.6070509@fourthworld.com> If anyone feels nostalgic enough for a download, fire up Virtual Box and have your own Be OS running now - courtesy of the open source version, Haiku: Lynn Fredricks wrote: > ...like OpenDoc. Remember OpenDoc? Publish and subscribe... ...and Sk8, and ScriptX, and Dylan, and of course HyperCard. As interesting as Swift is, given this long history I can't help but think we'll want to see some commitment from Apple over time before smart devs will commit everything they have to it. Then again, the smart devs making money are mostly making cross-platform apps, where Swift can't help them (no doubt very much the point). -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From alain_farmer at yahoo.com Wed Jun 11 12:18:38 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Wed, 11 Jun 2014 09:18:38 -0700 (PDT) Subject: Be, OpenDoc, P & S and... In-Reply-To: <53987B56.6070509@fourthworld.com> References: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> <53987B56.6070509@fourthworld.com> Message-ID: <1402503518.62492.YahooMailNeo@web126103.mail.ne1.yahoo.com> I rermember OpenDoc. It would have been revolutionary. And it was READY to go. I knew the guy at Apple Canada that was in charge of promoting it. He was profoundly disappointed when Apple dropped-the-ball; just as we were when HyperCard was steved. And so it was with many other promising R&D initiatives, before the Return of the King. I signed petition that stipulated that I would stop using any Apple product until they rescued HyperCard. They never did, and I never looked back. I am running Debian on PC-hardware. Bye bye! Alain On Wednesday, June 11, 2014 11:53:23 AM, Richard Gaskin wrote: If anyone feels nostalgic enough for a download, fire up Virtual Box and have your own Be OS running now - courtesy of the open source version, Haiku: Lynn Fredricks wrote: > ...like OpenDoc. Remember OpenDoc? Publish and subscribe... ...and Sk8, and ScriptX, and Dylan, and of course HyperCard. As interesting as Swift is, given this long history I can't help but think we'll want to see some commitment from Apple over time before smart devs will commit everything they have to it. Then again, the smart devs making money are mostly making cross-platform apps, where Swift can't help them (no doubt very much the point). -- ? Richard Gaskin ? Fourth World ? LiveCode training and consulting: http://www.fourthworld.com ? Webzine for LiveCode developers: http://www.LiveCodeJournal.com ? Follow me on Twitter:? http://twitter.com/FourthWorldSys _______________________________________________ use-livecode mailing list use-livecode at 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 icloud.com Wed Jun 11 12:20:01 2014 From: cmsheffield at icloud.com (Chris Sheffield) Date: Wed, 11 Jun 2014 10:20:01 -0600 Subject: segmentation fault? Message-ID: <50933608-05BC-473F-B6B5-039EAE42F83C@icloud.com> I have an iOS app that?s crashing unexpectedly when run on a device (iPad Air). The error in the console is ?Segmentation fault: 11?. Anybody know what this means or how I might go about fixing it? What?s strange is it only crashes after running just fine for a while, which makes me wonder if there?s a memory leak somewhere in LC that might be causing this. As far as I can tell, it?s happening when trying to set an opacity value for the outer glow property of a graphic. Any help is appreciated. I?ll most likely submit a report to RunRev, but thought I?d ask here first. I?m running LC 6.6.2 and iOS 7.1.1, if that makes any difference. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com From dochawk at gmail.com Wed Jun 11 12:25:22 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Wed, 11 Jun 2014 09:25:22 -0700 Subject: Be, OpenDoc, P & S and... In-Reply-To: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> References: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> Message-ID: On Wed, Jun 11, 2014 at 8:03 AM, Lynn Fredricks < lfredricks at proactive-intl.com> wrote: > Remember > OpenDoc? Publish and subscribe? :-) > Oh, yes. Publish & Subscribe seemed perfect for some of what I was doing back then. And any minute now, that update from my excel sheet to my word document may finally complete . . . (but I'm not getting my hopes up). They really overlooked that things had to complete in finite time--and I had a fast machine for the time. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From MikeKerner at roadrunner.com Wed Jun 11 12:35:09 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 11 Jun 2014 12:35:09 -0400 Subject: Copy of RevError Report In-Reply-To: References: <539505C2.4080202@fourthworld.com> Message-ID: For the next person who runs into this, it happened because when I copied the new version of the compiled application, I (brilliantly) didn't copy the dll's and the like, too, so when the database functions came along, we had a problem. It also created a copy of another file in the directory, and gave it the same name - "copy of RevError Report". The dialog popped up because I can't type and the -ui didn't make it. It was close, but it didn't make it. On Sun, Jun 8, 2014 at 10:44 PM, Mike Kerner wrote: > I know. It's really bizarre. It's also not modal. I have a timeout > built into the standalone so that it will eventually just quit, and the > dialog doesn't stop that. > Well, more messing there will be. > > > On Sun, Jun 8, 2014 at 8:54 PM, Richard Gaskin > wrote: > >> Mike Kerner write: >> >> I have a faceless application that, when it opens, is throwing up a blank >>> dialog with an ok button. The title of the dialog it is throwing up is >>> "Copy of RevError Report". >>> >>> Any clues what might be triggering this? >>> >> >> Somehow it seems the Error dialog was copied into your stack file, >> perhaps at build time. Double-check the original stack file and rebuild, >> though it may also be an indication of some other error in the script, so >> expect that even when you get rid of the dialog you'll see error info >> output to console (though you'll want to use the very latest version for >> that - some earlier builds had a bug which prevented console output on >> Windows). >> >> But even weirder is that it's able to display a dialog at all - normally, >> running facelessly is done by passing -ui on the command line, which is so >> much more efficient because it never initializes any GUI components. But >> if you were running facelessly, it shouldn't be possible for the engine to >> present any window at all. >> >> -- >> Richard Gaskin >> Fourth World >> LiveCode training and consulting: http://www.fourthworld.com >> Webzine for LiveCode developers: http://www.LiveCodeJournal.com >> Follow me on Twitter: http://twitter.com/FourthWorldSys >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From lfredricks at proactive-intl.com Wed Jun 11 12:42:32 2014 From: lfredricks at proactive-intl.com (Lynn Fredricks) Date: Wed, 11 Jun 2014 09:42:32 -0700 Subject: Be, OpenDoc, P & S and... In-Reply-To: <1402503518.62492.YahooMailNeo@web126103.mail.ne1.yahoo.com> References: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY><53987B56.6070509@fourthworld.com> <1402503518.62492.YahooMailNeo@web126103.mail.ne1.yahoo.com> Message-ID: <7579376688DB4253B056D0AC191CDE92@GATEWAY> > I rermember OpenDoc. It would have been revolutionary. And it > was READY to go. I knew the guy at Apple Canada that was in > charge of promoting it. It was extremely hard to develop for, and several vendors did just that - and lost a huge amount of development investment. My favorite word pro Nisus did. I was at Now Software at the time, and our Mac devs wanted to jump in whole hog on OpenDoc for Now Up-to-Date & Contact. We were stretched too thin on the next gen NUD&C and Palm stuff to do it. And strangely enough, I don't remember Apple being all that pushy about it either. They just seemed to be happy we were still developing for the Mac. Best regards, Lynn Fredricks President Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server From alain_farmer at yahoo.com Wed Jun 11 12:45:45 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Wed, 11 Jun 2014 09:45:45 -0700 (PDT) Subject: Be, OpenDoc, P & S and... In-Reply-To: References: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> Message-ID: <1402505145.92701.YahooMailNeo@web126106.mail.ne1.yahoo.com> Yes, there was Publish-&-Subscribe in it, but the really-amazing thing about OpenDoc is that everything would have been document-centric, versus application-centric like it is now and has been forever. In any document/application you would systematically use the components of your choice: your favorite text-editing object for ANY text-editing, your favorite graphics-editing obj for ANY graphics-editing,and so-on. Furthermore, these widgets would interoperate with each other, automatically share screen real-estate, negotiate among themselves ... like active software agents, aka Artificial Intelligence. It would have been.. GREAT! Especially nowadays with all of the horsepower we have. Sigh! On Wednesday, June 11, 2014 12:25:37 PM, Dr. Hawkins wrote: On Wed, Jun 11, 2014 at 8:03 AM, Lynn Fredricks < lfredricks at proactive-intl.com> wrote: > Remember > OpenDoc? Publish and subscribe? :-) > Oh, yes.? Publish & Subscribe seemed perfect for some of what I was doing back then.? And any minute now, that update from my excel sheet to my word document may finally complete . . . (but I'm not getting my hopes up). They really overlooked that things had to complete in finite time--and I had a fast machine for the time. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode at 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 Jun 11 13:08:03 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 11 Jun 2014 17:08:03 +0000 (UTC) Subject: segmentation fault? References: <50933608-05BC-473F-B6B5-039EAE42F83C@icloud.com> Message-ID: Chris Sheffield writes: > > I have an iOS app that?s crashing unexpectedly when run on a device (iPad Air). The error in the console is > ?Segmentation fault: 11?. Anybody know what this means or how I might go about fixing it? Wow... congratulations. I've never even heard of anyone getting a segfault on an iOS device before. It's probably nothing you can do at a script level - a segmentation fault is an attempt by the cpu to access memory in a prohibited manner. -- Mark Wieder ahsoftware at gmail.com From cmsheffield at icloud.com Wed Jun 11 13:12:21 2014 From: cmsheffield at icloud.com (Chris Sheffield) Date: Wed, 11 Jun 2014 11:12:21 -0600 Subject: segmentation fault? In-Reply-To: References: <50933608-05BC-473F-B6B5-039EAE42F83C@icloud.com> Message-ID: Cool! :-) I?ll get a report over to RunRev then for sure. Hopefully if I provide the crash log they can figure something out. Thanks. On Jun 11, 2014, at 11:08 AM, Mark Wieder wrote: > Chris Sheffield writes: > >> >> I have an iOS app that?s crashing unexpectedly when run on a device (iPad > Air). The error in the console is >> ?Segmentation fault: 11?. Anybody know what this means or how I might go > about fixing it? > > Wow... congratulations. I've never even heard of anyone getting a segfault > on an iOS device before. It's probably nothing you can do at a script level > - a segmentation fault is an attempt by the cpu to access memory in a > prohibited manner. > > -- > Mark Wieder > ahsoftware 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 andre.bisseret at wanadoo.fr Wed Jun 11 14:14:52 2014 From: andre.bisseret at wanadoo.fr (=?iso-8859-1?Q?Andr=E9_Bisseret?=) Date: Wed, 11 Jun 2014 20:14:52 +0200 Subject: aligning text in columns In-Reply-To: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> References: <9758D973-05BD-4B20-BBBB-D02B0B30C7C8@icloud.com> Message-ID: <57BB3148-A3AA-4F02-8689-DE19AC2384A6@wanadoo.fr> Bonjour Chris, In some stacks, specially before the dataGrid, I right aligned using format (see "format" in the dictionary For example, the following handler : local theData set the itemDel to tab put fld "fData" into theData repeat with x = 1 to the number of lines in theData repeat with y = 1 to the number of items in line x of theData if item y of line x of theData is a number then put format("%13s",item y of line x of theData) into item y of line x of theData end if end repeat end repeat put theData into fld "fData" In this example, "13" is the number of chararacters which is possible in a column. To use right align in this way it is necessary to use monospaced font in the field. Best regards Andr? Le 10 juin 2014 ? 19:28, Chris Sheffield a ?crit : > Do we have the ability yet to set the text alignment for individual columns in a table field? > > I have a very simple field with just two columns. I want the alignment of the first one to be left, and the second one to be right. A data grid is overkill, otherwise I?d go with that. I couldn?t remember if, with all the new field changes, that was added or not. I can?t seem to find any obvious properties, but I could be missing something. > > Or would it be best to just use two separate fields for this? > > Thanks, > Chris > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From skip at magicgate.com Wed Jun 11 14:23:14 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Wed, 11 Jun 2014 14:23:14 -0400 Subject: Removing all NON numbers from a data element Message-ID: Hello LC'ers I have data element that I need to scan for all NON numbers and remove them. For instance this data element should read 0123456789 but sometimes is listed as 0123-4-5678-9 or has foreign characters in it or reads NOT AVAILABLE. so: if item 14 of tLine <> number then.... There are about 500,000 rows of data to go through so my dilemma is to make the code as efficient as possible. Thank you for any input you might have! From mwieder at ahsoftware.net Wed Jun 11 14:31:40 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Wed, 11 Jun 2014 18:31:40 +0000 (UTC) Subject: Removing all NON numbers from a data element References: Message-ID: Magicgate Software - Skip Kimpel writes: > I have data element that I need to scan for all NON numbers and remove > them. For instance this data element should read 0123456789 but sometimes > is listed as 0123-4-5678-9 or has foreign characters in it or reads NOT > AVAILABLE. > > so: > if item 14 of tLine <> number then.... > > There are about 500,000 rows of data to go through so my dilemma is to > make the code as efficient as possible. Check out the new options for the filter command, especially the regex pattern matching. -- Mark Wieder ahsoftware at gmail.com From m.schonewille at economy-x-talk.com Wed Jun 11 14:47:42 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 11 Jun 2014 20:47:42 +0200 Subject: Removing all NON numbers from a data element In-Reply-To: References: Message-ID: <5398A44E.8020506@economy-x-talk.com> Hi, This regex does what you want: on foo put "123-f-78-x0//" into x put replacetext(x,"[^0-9]","") end foo Probably you will need a repeat loop, unless you really just have a list of 500000 phone numbers. In that case you could use replacetext(x,"[^0-9\n]","") to modify the entire list at once. I don't know how long that would take, though. Just try it. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/11/2014 20:23, Magicgate Software - Skip Kimpel wrote: > Hello LC'ers > > I have data element that I need to scan for all NON numbers and remove > them. For instance this data element should read 0123456789 but sometimes > is listed as 0123-4-5678-9 or has foreign characters in it or reads NOT > AVAILABLE. > > so: > if item 14 of tLine <> number then.... > > There are about 500,000 rows of data to go through so my dilemma is to > make the code as efficient as possible. > > Thank you for any input you might have! From alain_farmer at yahoo.com Wed Jun 11 14:50:15 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Wed, 11 Jun 2014 11:50:15 -0700 (PDT) Subject: Removing all NON numbers from a data element In-Reply-To: References: Message-ID: <1402512615.67821.YahooMailNeo@web126101.mail.ne1.yahoo.com> Use replaceText: put replaceText ( yourData, "^[0-9]*", empty) into yourData On Wednesday, June 11, 2014 2:25:11 PM, Magicgate Software - Skip Kimpel wrote: Hello LC'ers I have data element that I need to scan for all NON numbers and remove them.? For instance this data element should read 0123456789 but sometimes is listed as 0123-4-5678-9 or has foreign characters in it or reads NOT AVAILABLE. so: if item 14 of tLine <> number then.... There are about 500,000 rows of data to go through so my dilemma is to make the code as efficient as possible. Thank you for any input you might have! _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bonnmike at gmail.com Wed Jun 11 15:36:52 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jun 2014 13:36:52 -0600 Subject: Removing all NON numbers from a data element In-Reply-To: <1402512615.67821.YahooMailNeo@web126101.mail.ne1.yahoo.com> References: <1402512615.67821.YahooMailNeo@web126101.mail.ne1.yahoo.com> Message-ID: Another version.. put replacetext(tData,"(?!\n)(\D)",empty) If there are lines with no numbers at all the list will end up with some empties, but those can easily be filtered out after the replacetext. This replaces everything except the newline and digits ( \d matches a digit, \D matches all non-digits. (?!\n) is a NOT match to the newline. In my example, order matters, the \n check needs to be first) On Wed, Jun 11, 2014 at 12:50 PM, Alain Farmer wrote: > Use replaceText: > put replaceText ( yourData, "^[0-9]*", empty) into yourData > > > On Wednesday, June 11, 2014 2:25:11 PM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > > > > Hello LC'ers > > I have data element that I need to scan for all NON numbers and remove > them. For instance this data element should read 0123456789 but sometimes > is listed as 0123-4-5678-9 or has foreign characters in it or reads NOT > AVAILABLE. > > so: > if item 14 of tLine <> number then.... > > There are about 500,000 rows of data to go through so my dilemma is to > make the code as efficient as possible. > > Thank you for any input you might have! > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Jun 11 18:46:02 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 11 Jun 2014 16:46:02 -0600 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: Just set up lc community server on mavericks server (fresh install since previous updates had completely horked things). For those interested, I had to create the CGI-Executables folder in /Library/Server/Web/data and then set proper ownership and permissions on the folder. To do the clean install I removed all the old files that were there, and the CGI folder wasn't re-created with everything else. Probably nobody else will have to do this. Then copied livecode-community-server and its sub folders into the CGI-Executables folder and set ownership and permissions. Then edited the /Library/Server/Web/Config/apache2/httpd_server_app.conf file to add the 2 required lines. Right under the existing AddHandler line, added AddHandler lc-script .lc Then right under that added Action lc-script /cgi-bin/livecode-community-server Didn't have to change options or anything else, these 2 lines were sufficient to get it running. Restarted the web server from the server app and it works. This should make lc server active for all websites. I THINK if you only want for example... the default site to be active, you can change the file in /Library/Server/Web/Config/apache2/Sites/0000_any_80_.conf Haven't tried it though, and have no virtual hosts set up so. /shrug If things go as usual, the next server update will toast things and I'll have to fix it again. On Wed, Jun 11, 2014 at 8:56 AM, Keith Clarke < keith.clarke at clarkeandclarke.co.uk> wrote: > Don?t mourn the loss of those old dead links regarding server on OSX. They > were rendered obsolete almost immediately by new releases of LiveCode > server and OSX server & admin setup. > I?ve not revisited since, as I moved to on-rev for an installation-free > development playground - the wrenched-out hair hasn?t grown back yet > though! ;-) > Best, > Keith.. > > On 11 Jun 2014, at 15:28, Devin Asay wrote: > > > Great site, Simon! I've bookmarked that link for when I talk to my > classes about LC Server. So far I've only got a *very* cursory set of > introductory notes that I've used in classes and workshops. > > > > http://livecode.byu.edu/internet/lc_servercripting.php > > http://livecode.byu.edu/internet/lc_server_notes.php > > > > In addition to your notes on installing Server, I also remember that > Keith Clarke posted some instructions a couple of years back for installing > it on OS X and OS X Server. Unfortunately, his links seem to be dead. > > > > On Feb 16, 2011, at 3:08 PM, Keith Clarke < > keith.clarke at clarkeandclarke.co.uk> wrote: > > > >> Hi folks, > >> I promised to publish some notes on the above - new to blogging as well > as LiveCode and OSX server, so I hope they help a bit: > >> ? OSX Server vs Regular OSX considerations: > http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-vs-osx.html > >> ? Configuring OSX Server for revServer: > http://blog.clarityforsuccess.com/2011/02/revserver-on-osx-server-snow-leopard.html > >> ? RevServer and OSX Server Custom sites: > http://blog.clarityforsuccess.com/2011/02/configure-osx-server-custom-site-for.html > >> Best, > >> Keith.. > > > > Anybody have live links to this? You still out there Keith? > > > > I'd love to see more how-to materials for LC Server. I would definitely > buy a book if it came to be. > > > > Devin > > > > > > On Jun 10, 2014, at 1:49 PM, Simon Smith wrote: > > > >> Thanks, much appreciated. > >> > >> Only put it live a few minutes ago, there is no time like the present > and > >> if I don't do it now - then I probably never will. It is also a great > >> motivation to work on it and try to complete everything that is missing. > >> > >> Simon > >> > >> > >> On Tue, Jun 10, 2014 at 9:25 PM, Richard Gaskin < > ambassador at fourthworld.com> > >> wrote: > >> > >>> Simon Smith wrote: > >>> > >>> Writing a book would be a mammoth task - and I for one, would not be > >>>> certain just how large a target market there would be, so they would > truly > >>>> be a labour of love :) > >>>> > >>> > >>> It would indeed. I've known enough people in the book business that I > >>> stay with software. :) > >>> > >>> > >>> But for now - this is something I have been dabbling with, > >>>> http://activethought.net/livecode-server/ its far from complete and > >>>> hopefully not to many errors and spelling mistakes. It is probably a > bit > >>>> on > >>>> the simple side - but if it helps one person, then I would be happy. > >>>> > >>> > >>> Nice, Simon! I hadn't come across that before - well done. > >>> > >>> I just sent that URL to Heather to forward to the Web team so it can be > >>> added to the Resources page at LiveCode.com. Hopefully we'll see it > linked > >>> there soon - good resource, thanks for putting that together. > >>> > >>> > > > > Devin Asay > > Office of Digital Humanities > > Brigham Young University > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simon at asato-media.com Wed Jun 11 19:48:17 2014 From: simon at asato-media.com (As_Simon) Date: Wed, 11 Jun 2014 16:48:17 -0700 (PDT) Subject: Shout out to Hugh Senior Message-ID: <1402530497780-4680458.post@n4.nabble.com> Hi Hugh, The link from the LiveCode store to your Chartmaker demo is off Current https://www.flexiblelearning.com/chartmaker/downloads/ChartMaker_LC.zip Actual link on your site http://www.flexiblelearning.com/chartmaker/downloads/ChartMaker.zip Not sure if you want to wait for runRev to fix it. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Shout-out-to-Hugh-Senior-tp4680458.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Wed Jun 11 21:20:05 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 12 Jun 2014 03:20:05 +0200 Subject: [OT] A note for purchasers of "Programming LiveCode..." Message-ID: <53990045.1000701@economy-x-talk.com> Hello, This morning, we sent out a message to everybody who bought my book "Programming LiveCode for the Real Beginner" to request confirmation of their postal mail addresses. We are still waiting for more replies. If you bought the book and haven't received it yet, please check your mail box. Not seeing the request? Send a message to support at economy-x-talk.com and check that you get a reply within 5 minutes. If not, try contacting us from a different e-mail address. If you're getting multiple requests, it means that we don't receive your replies. Please try replying from a different e-mail address if this happens. Different means: an address using a different domain name and IP address. We will ship the books tomorrow. If we don't have your confirmation, we'll ship it one week later. If you order the book tonight, we'll send a request for confirmation in the morning and will be able to ship your book tomorrow if you keep an eye on your mail box. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From igor at semperuna.com Thu Jun 12 00:57:04 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Thu, 12 Jun 2014 14:57:04 +1000 Subject: Learning about server In-Reply-To: References: <53975B93.9040503@fourthworld.com> Message-ID: On 12 Jun 2014, at 8:46 am, Mike Bonner wrote: > Just set up lc community server on mavericks server (fresh install since > previous updates had completely horked things). [?] For those interested, please see this: http://forums.livecode.com/viewtopic.php?f=15&t=20465 I have 3 Mavericks Servers running with LiveCode Server installed, no issues at all. -- Igor Couto Sydney, Australia From toolbook at kestner.de Thu Jun 12 03:10:02 2014 From: toolbook at kestner.de (Tiemo Hollmann TB) Date: Thu, 12 Jun 2014 09:10:02 +0200 Subject: AW: OT: Is there a kind of F5 on Mac? In-Reply-To: <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> References: <004001cf7ff6$0a6a3a50$1f3eaef0$@de> <1402029098596-4680273.post@n4.nabble.com> <65BE977E-46E2-4AAC-ABB6-F6C0E6172592@verizon.net> Message-ID: <004001cf860d$553fdfe0$ffbf9fa0$@de> Thanks Colin, thats what I meant Tiemo > -----Urspr?ngliche Nachricht----- > Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag > von Colin Holgate > Gesendet: Freitag, 6. Juni 2014 16:06 > An: How to use LiveCode > Betreff: Re: OT: Is there a kind of F5 on Mac? > > That?s different. Relaunching Finder would be the same as relaunching the > Windows explorer window. What?s being asked is how to you get a Finder window > to reconsider the list of files it?s showing. That should never be needed, but > sometimes it does seem slow to react to changes of files on a server. > > I just found this page: > > http://hints.macworld.com/article.php?story=2009091413423819 > > (you may have to answer a survey question to read the whole page) > > On that page is shown this AppleScript, and a link to an app that uses that > script: > > tell application "Finder" > tell front window > update every item with necessity > end tell > end tell > > I didn?t test it as a script, but I have the app installed. Can?t be sure if > it?s doing anything. Here?s a discussion page, that includes a link to > download the app: > > http://www.macupdate.com/app/mac/24714/refresh-finder > > One thing to note, you install the app by dragging it first to Applications, > then command-dragging it to the Finder window tool bar area. > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From admin at FlexibleLearning.com Thu Jun 12 03:37:18 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Thu, 12 Jun 2014 08:37:18 +0100 Subject: Shout out to Hugh Senior Message-ID: <000701cf8611$2379e1f0$6a6da5d0$@FlexibleLearning.com> Thank you for the heads-up, Simon. Something strange going on with the LC website server. It is insisting on an https prefix for the download link, which is why a spurious certificate error is displayed. The correct download link should be... http://www.flexiblelearning.com/chartmaker/downloads/ChartMaker_LC.zip It seems I am unable to correct the link, and have notified Heather. Thanks again Best regards Hugh Senior FLCo -- Original message Hi Hugh, The link from the LiveCode store to your Chartmaker demo is off Current https://www.flexiblelearning.com/chartmaker/downloads/ChartMaker_LC.zip Actual link on your site http://www.flexiblelearning.com/chartmaker/downloads/ChartMaker.zip Not sure if you want to wait for runRev to fix it. Simon From lists at mangomultimedia.com Thu Jun 12 13:16:15 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 12 Jun 2014 13:16:15 -0400 Subject: Handlers for reading/writing image density info in PNG/JPEG? Message-ID: Hi everyone, Now that LiveCode has high-dpi support we can create images using export snapshot whose physical pixels dimensions are not the dimensions the image should be displayed at. For example, on an OS X retina computer with a screen pixel scale of 2 you could create an image that has 600x300 pixels of data but should be displayed at 300x150. Currently the engine does not provide a way to embed the pixel density information in the PNG/JPEG files that it can create. In addition, the engine cannot read pixel density information from images on the clipboard. This means we can't determine what dimensions the clipboard image should be displayed at. I'm wondering if anybody has already created handlers for reading and writing pixel density information to JPEG and PNG data that they would be willing to share? If not I'll take a look at the file formats and come up with something but if someone already did this that would be great. Thanks, -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From rdimola at evergreeninfo.net Thu Jun 12 13:17:24 2014 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 12 Jun 2014 13:17:24 -0400 Subject: Google PlayStore and Android Tablets Message-ID: <002b01cf8662$2ddcdd40$899697c0$@net> My app received these warnings from Google Play. My app is designed for both small and large formats. Warning 1 look like just setting the minimum version to Android 3.0 (API level 11) or above should fix this. Warning 2 appears that LC needs a tablet check box in the Android standalone settings to correct the manifest. Warning 3 looks like we need additional icon selections in the Android standalone settings. Are the last 2 warnings a feature request or am I missing something? Thanks! Design your app for tablets Your Production APK needs to meet the following criteria: The minimum Android version and target Android version need to support tablets (check targetSdkVersion and minSdkVersion). Learn more Your APK should support common tablet screen sizes (LARGE and XLARGE). Learn more Your APK should include custom drawables assets for common tablet screen densities. Learn more Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From jacque at hyperactivesw.com Thu Jun 12 15:01:34 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jun 2014 14:01:34 -0500 Subject: Memory and CPU Usage Script In-Reply-To: <53925DE5.4000501@fourthworld.com> References: <53925DE5.4000501@fourthworld.com> Message-ID: <5399F90E.3030405@hyperactivesw.com> On 6/6/2014, 7:33 PM, Richard Gaskin wrote: > > But even more fun, you can take a trip back to 1997 to read Scott > Raney's article in Linux Journal about using LiveCode (back then called > "MetaCard") to build a GUI for top: > This looked pretty cool so I recreated his stack. I think Mavericks stores the file somewhere else because the scripts ran just fine but I got no data back. If anyone knows where Mavericks put the file, I'd like to try it. As-is, it's looking for "/proc/stat" and there is no proc folder in OS X. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Thu Jun 12 18:45:55 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 12 Jun 2014 15:45:55 -0700 Subject: Memory and CPU Usage Script In-Reply-To: <5399F90E.3030405@hyperactivesw.com> References: <5399F90E.3030405@hyperactivesw.com> Message-ID: <539A2DA3.5010405@fourthworld.com> J. Landman Gay wrote: > On 6/6/2014, 7:33 PM, Richard Gaskin wrote: >> >> But even more fun, you can take a trip back to 1997 to read Scott >> Raney's article in Linux Journal about using LiveCode (back then called >> "MetaCard") to build a GUI for top: >> > > This looked pretty cool so I recreated his stack. I think Mavericks > stores the file somewhere else because the scripts ran just fine but I > got no data back. > > If anyone knows where Mavericks put the file, I'd like to try it. As-is, > it's looking for "/proc/stat" and there is no proc folder in OS X. One nice thing about Unix/Linux is that everything is setup to appear as a file, so piping and other goodies work together nicely. One tricky thing about Unix/Linux is that not everything that appears to be a file is actually a file. :) /proc is a virtual file system containing system info ("processes"). It's more akin to an associative array than a directory tree. Handy as it is, not all *nixes support it - this site explains more, with some suggestions of OS X alternatives to some /proc info: -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Thu Jun 12 18:55:43 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 12 Jun 2014 17:55:43 -0500 Subject: Memory and CPU Usage Script In-Reply-To: <539A2DA3.5010405@fourthworld.com> References: <5399F90E.3030405@hyperactivesw.com> <539A2DA3.5010405@fourthworld.com> Message-ID: <539A2FEF.50209@hyperactivesw.com> On 6/12/2014, 5:45 PM, Richard Gaskin wrote: > Handy as it is, not all *nixes support it - this site explains more, > with some suggestions of OS X alternatives to some /proc info: > > > Thanks, but this would be way more work than the simple example I was trying to build, so until I become proficient with *nix I think I'll let this go. I'd have to study for days before I could even understand what that web page is saying. I'll just put my little stack into a pending folder for now. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From john at splash21.com Fri Jun 13 06:54:23 2014 From: john at splash21.com (John Craig) Date: Fri, 13 Jun 2014 11:54:23 +0100 Subject: Handlers for reading/writing image density info in PNG/JPEG? In-Reply-To: References: Message-ID: <539AD85F.6050701@splash21.com> Hi, Trevor. Check out http://splash21.com/downloads/sQuiRtGPL.zip There's a function in the library for creating PNG images and also the required functions for deflate compression and crc32 checksums - maybe those will help you getting started on the PNG side of things. :) On 12/06/2014 18:16, Trevor DeVore wrote: > Hi everyone, > > Now that LiveCode has high-dpi support we can create images using export > snapshot whose physical pixels dimensions are not the dimensions the image > should be displayed at. For example, on an OS X retina computer with a > screen pixel scale of 2 you could create an image that has 600x300 pixels > of data but should be displayed at 300x150. > > Currently the engine does not provide a way to embed the pixel density > information in the PNG/JPEG files that it can create. In addition, the > engine cannot read pixel density information from images on the clipboard. > This means we can't determine what dimensions the clipboard image should be > displayed at. > > I'm wondering if anybody has already created handlers for reading and > writing pixel density information to JPEG and PNG data that they would be > willing to share? > > If not I'll take a look at the file formats and come up with something but > if someone already did this that would be great. > > Thanks, > From ambassador at fourthworld.com Fri Jun 13 10:26:54 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 13 Jun 2014 07:26:54 -0700 Subject: Put a stack into a variable? Message-ID: <539B0A2E.3020103@fourthworld.com> I'd like to put a stack into a variable, but without reading the stack file from disk. Is there a way to do this? I'm considering a scenario in which we have a standalone with the securityPermissions all turned off except "network". At that point we have a app more secure than any browser. So far so good: we can download and run any stack with complete safety for the local system. In that environment I'd like to be able to let the user modify the stacks, and save those back to the server. I have the POST worked out with encryption and all that, so that much is good - for data within the stack, but not the stack itself. It would be very convenient in this scenario if I could somehow get the data that comprises the stack from memory and put it into a variable to send back to the server. Stephen Barncard has done some experiments with the copy command, but I'm unable to find a way to obtain the binary date from the clipboard contents when they contain LC objects. Also, it would be nice to be able to also get any substacks, but the copy command only copies the stack itself. Ideally what I'd have is the same as we get from doing this: put url tPathToSomeRemoteStack into tVar go stack tVar At that point, tVar contains the stack data - substacks and all, just as if it were read from disk. So now the trick is to find a way to get that from the current copy of the stack file in memory - any ideas? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From feliphil at gmx.net Fri Jun 13 10:57:20 2014 From: feliphil at gmx.net (Wolfgang Keller) Date: Fri, 13 Jun 2014 16:57:20 +0200 Subject: Be, OpenDoc, P & S and... In-Reply-To: <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> References: <269a092387305631d83b2f0b92317eea.squirrel@185.8.104.234> <4DBE841D8CFC4FADAF5FD4B447F6953F@GATEWAY> Message-ID: <20140613165720.9388a83a7328e252c564c03c@gmx.net> > Remember OpenDoc? Publish and subscribe? :-) http://www.linkbackproject.org/ MacOSX-specific afaik. Sincerely, Wolfgang From ambassador at fourthworld.com Fri Jun 13 17:10:31 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 13 Jun 2014 14:10:31 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B0A2E.3020103@fourthworld.com> References: <539B0A2E.3020103@fourthworld.com> Message-ID: <539B68C7.1030107@fourthworld.com> In case anyone needs this, this works in a button but not in the Message Box, which is why I had missed this before: on mouseUp copy this stack put the clipboardData["objects"] into tVar put tVar end mouseUp -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From m.schonewille at economy-x-talk.com Fri Jun 13 17:17:19 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 13 Jun 2014 23:17:19 +0200 Subject: Put a stack into a variable? In-Reply-To: <539B68C7.1030107@fourthworld.com> References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> Message-ID: <539B6A5F.2020502@economy-x-talk.com> How do you "paste" the stack? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/13/2014 23:10, Richard Gaskin wrote: > In case anyone needs this, this works in a button but not in the Message > Box, which is why I had missed this before: > > on mouseUp > copy this stack > put the clipboardData["objects"] into tVar > put tVar > end mouseUp > From ambassador at fourthworld.com Fri Jun 13 17:48:53 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 13 Jun 2014 14:48:53 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B6A5F.2020502@economy-x-talk.com> References: <539B6A5F.2020502@economy-x-talk.com> Message-ID: <539B71C5.4050700@fourthworld.com> Mark Schonewille wrote: > How do you "paste" the stack? If you use the copy command on a stack, the paste command will do the same as the clone command, duplicating the stack with a name prepended with "Copy of". That said, it appears there's a difference in the binary data of a copied stack and a saved copy of the same stack file. For starters, LC 6.6.2 saved in the v5 format, but copied stacks have a "2700" header for the old 2.7 format. Bug maybe? But worse, even when I save a stack in the old 2.7 format, the data in the stack file still differs from the data in the clipboard is a surprisingly large number of ways, including an apparent replication of nearly the entire data in the clipboard, and with a different header than used in the stack file. So right now, my dream of being able to get a stack's data from RAM to save to a server without going to disk as an intermediary step is hosed. :( -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From dochawk at gmail.com Fri Jun 13 17:59:11 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 13 Jun 2014 14:59:11 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B6A5F.2020502@economy-x-talk.com> References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> Message-ID: On Fri, Jun 13, 2014 at 2:17 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > How do you "paste" the stack? > It seems to me that I played around with this a while back (or did someone else play around on my musings?), and found that cards could be cut/moved/paste like this. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From m.schonewille at economy-x-talk.com Fri Jun 13 18:06:59 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 14 Jun 2014 00:06:59 +0200 Subject: Put a stack into a variable? In-Reply-To: References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> Message-ID: <539B7603.3030502@economy-x-talk.com> Hi, If you want to move cards within a stack, you can just set the number. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/13/2014 23:59, Dr. Hawkins wrote: > On Fri, Jun 13, 2014 at 2:17 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> How do you "paste" the stack? >> > > It seems to me that I played around with this a while back (or did someone > else play around on my musings?), and found that cards could be > cut/moved/paste like this. > > From dochawk at gmail.com Fri Jun 13 18:09:43 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 13 Jun 2014 15:09:43 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B7603.3030502@economy-x-talk.com> References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> <539B7603.3030502@economy-x-talk.com> Message-ID: On Fri, Jun 13, 2014 at 3:06 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > If you want to move cards within a stack, you can just set the number. > My interest is actually in passing forms from my service to a compiled customer application. So if the Western District of Lincoln has it's own form, the customer could get it from my server, stash it to a local database, and it would get inserted on program run. Possibly even for saving customer generated forms to the local db to be inserted at runtime. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From m.schonewille at economy-x-talk.com Fri Jun 13 18:42:46 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 14 Jun 2014 00:42:46 +0200 Subject: Put a stack into a variable? In-Reply-To: References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> <539B7603.3030502@economy-x-talk.com> Message-ID: <539B7E66.4070304@economy-x-talk.com> Hi, If you want to add a new form to an existing application, you can save the card with the form on your server and download and save it locally when the app starts. No database involved. If your app needs to get new form data from the server, that's even easier. Just download the data and save them in the local database. It is important to treat interface and data separately. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/14/2014 00:09, Dr. Hawkins wrote: > On Fri, Jun 13, 2014 at 3:06 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> If you want to move cards within a stack, you can just set the number. >> > > My interest is actually in passing forms from my service to a compiled > customer application. So if the Western District of Lincoln has it's own > form, the customer could get it from my server, stash it to a local > database, and it would get inserted on program run. Possibly even for > saving customer generated forms to the local db to be inserted at runtime. > > From m.schonewille at economy-x-talk.com Fri Jun 13 18:59:34 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sat, 14 Jun 2014 00:59:34 +0200 Subject: Put a stack into a variable? In-Reply-To: <539B71C5.4050700@fourthworld.com> References: <539B6A5F.2020502@economy-x-talk.com> <539B71C5.4050700@fourthworld.com> Message-ID: <539B8256.1030104@economy-x-talk.com> It means that you can make it work. "Go to url" won't work, but you can download the data, set clipboarddata["objects"] and paste. Not sure if it is a bug. It is if copied stacks lose properties that aren't part of the old format. Otherwise I'd call it a feature request. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/13/2014 23:48, Richard Gaskin wrote: > Mark Schonewille wrote: >> How do you "paste" the stack? > > If you use the copy command on a stack, the paste command will do the > same as the clone command, duplicating the stack with a name prepended > with "Copy of". > > That said, it appears there's a difference in the binary data of a > copied stack and a saved copy of the same stack file. For starters, LC > 6.6.2 saved in the v5 format, but copied stacks have a "2700" header for > the old 2.7 format. Bug maybe? > > But worse, even when I save a stack in the old 2.7 format, the data in > the stack file still differs from the data in the clipboard is a > surprisingly large number of ways, including an apparent replication of > nearly the entire data in the clipboard, and with a different header > than used in the stack file. > > So right now, my dream of being able to get a stack's data from RAM to > save to a server without going to disk as an intermediary step is hosed. :( > From alain_farmer at yahoo.com Fri Jun 13 19:52:40 2014 From: alain_farmer at yahoo.com (Alain Farmer) Date: Fri, 13 Jun 2014 16:52:40 -0700 (PDT) Subject: Put a stack into a variable? In-Reply-To: <539B8256.1030104@economy-x-talk.com> References: <539B6A5F.2020502@economy-x-talk.com> <539B71C5.4050700@fourthworld.com> <539B8256.1030104@economy-x-talk.com> Message-ID: <1402703560.68574.YahooMailNeo@web126103.mail.ne1.yahoo.com> This may seem off-topic, sort-of, but it might be simpler to transmit an exhaustive DESCRIPTION of the stack, and have their LiveCode create it all from scratch. Then it gets filled with content that is gotten by URL. Kind-of like how web-pages work. It's all text, no binaries. On Friday, June 13, 2014 7:00:08 PM, Mark Schonewille wrote: It means that you can make it work. "Go to url" won't work, but you can download the data, set clipboarddata["objects"] and paste. Not sure if it is a bug. It is if copied stacks lose properties that aren't part of the old format. Otherwise I'd call it a feature request. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/13/2014 23:48, Richard Gaskin wrote: > Mark Schonewille wrote: >> How do you "paste" the stack? > > If you use the copy command on a stack, the paste command will do the > same as the clone command, duplicating the stack with a name prepended > with "Copy of". > > That said, it appears there's a difference in the binary data of a > copied stack and a saved copy of the same stack file.? For starters, LC > 6.6.2 saved in the v5 format, but copied stacks have a "2700" header for > the old 2.7 format.? Bug maybe? > > But worse, even when I save a stack in the old 2.7 format, the data in > the stack file still differs from the data in the clipboard is a > surprisingly large number of ways, including an apparent replication of > nearly the entire data in the clipboard, and with a different header > than used in the stack file. > > So right now, my dream of being able to get a stack's data from RAM to > save to a server without going to disk as an intermediary step is hosed. :( > _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Fri Jun 13 20:40:39 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 13 Jun 2014 17:40:39 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B7E66.4070304@economy-x-talk.com> References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> <539B7603.3030502@economy-x-talk.com> <539B7E66.4070304@economy-x-talk.com> Message-ID: On Fri, Jun 13, 2014 at 3:42 PM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > If you want to add a new form to an existing application, you can save the > card with the form on your server and download and save it locally when the > app starts. No database involved. > There is a local database for preferences, data, and so forth. Also, it is intrinsically networked. The installation at my office, for example, has the postgres server on my desk, which serves to itself, my paralegal, my laptop over vpn, a remote assistant via vpn, etc. When this is complete, it and every other central machine would also periodically update with the upstream root machine for updates (whether forms, dictionary of creditor additions, finding out if there's a new version, license keys, etc.). Anyway, for however many machines there are at a law office, they all need to have access to the same cards, and tho.se cards are going to come from an upstream postgreSQL server. Keeping them on the corporate db server (where they may well cache down to the local machines) seems the natural solution; otherwise I'm dealing with files syncing to the dbs. > If your app needs to get new form data from the server, that's even > easier. Just download the data and save them in the local database. > > It is important to treat interface and data separately. > In this space, though, interface *is* data to some extent. There are something like 216 judicial districts in the US, and some attorneys regularly filing in up to a half dozen or so--and all issueing new forms at unpredictable intervals -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From Mark_Smith at cpe.umanitoba.ca Fri Jun 13 23:28:10 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Fri, 13 Jun 2014 20:28:10 -0700 (PDT) Subject: Book on Programming by Example In-Reply-To: <1402246750108-4680341.post@n4.nabble.com> References: <1402246750108-4680341.post@n4.nabble.com> Message-ID: <1402716490483-4680481.post@n4.nabble.com> Alejandro Tejada wrote > Hi All, > > Bookmark this webpage: > http://web.media.mit.edu/~lieber/Your-Wish/ > > to read this mind opening book: I dunno about that Alejandro, I think I still prefer main() { printf("hello world"); } or, if using LC on mouseUp put "hello world" after msg end mouseUp Cheers, Mark ;-) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Book-on-Programming-by-Example-tp4680341p4680481.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Sat Jun 14 00:24:55 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 13 Jun 2014 22:24:55 -0600 Subject: Put a stack into a variable? In-Reply-To: References: <539B0A2E.3020103@fourthworld.com> <539B68C7.1030107@fourthworld.com> <539B6A5F.2020502@economy-x-talk.com> <539B7603.3030502@economy-x-talk.com> <539B7E66.4070304@economy-x-talk.com> Message-ID: If I can find it, somewhere around here I have a rudimentary vcs that used the copy stack method. Seemed to work well (I could pop stacks into an array and save the array to a file then reconstitute a stacks structure from the array at a later date) unfortunately, catastrophic hardware failure assisted me in losing track of some things. Think I have a backup here somewhere maybe and can dig it up if it would be helpful, but from what richard says, i'd be a little leery of the concept. On Fri, Jun 13, 2014 at 6:40 PM, Dr. Hawkins wrote: > On Fri, Jun 13, 2014 at 3:42 PM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > > > If you want to add a new form to an existing application, you can save > the > > card with the form on your server and download and save it locally when > the > > app starts. No database involved. > > > > There is a local database for preferences, data, and so forth. Also, it is > intrinsically networked. The installation at my office, for example, has > the postgres server on my desk, which serves to itself, my paralegal, my > laptop over vpn, a remote assistant via vpn, etc. When this is complete, > it and every other central machine would also periodically update with the > upstream root machine for updates (whether forms, dictionary of creditor > additions, finding out if there's a new version, license keys, etc.). > > Anyway, for however many machines there are at a law office, they all need > to have access to the same cards, and tho.se cards are going to come from > an upstream postgreSQL server. Keeping them on the corporate db server > (where they may well cache down to the local machines) seems the natural > solution; otherwise I'm dealing with files syncing to the dbs. > > > > If your app needs to get new form data from the server, that's even > > easier. Just download the data and save them in the local database. > > > > It is important to treat interface and data separately. > > > > In this space, though, interface *is* data to some extent. There are > something like 216 judicial districts in the US, and some attorneys > regularly filing in up to a half dozen or so--and all issueing new forms at > unpredictable intervals > > > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 11:07:37 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 14 Jun 2014 08:07:37 -0700 Subject: Put a stack into a variable? In-Reply-To: <539B71C5.4050700@fourthworld.com> References: <539B71C5.4050700@fourthworld.com> Message-ID: <539C6539.2000301@fourthworld.com> Thanks for the thoughts on this conundrum. Mark S' suggestion of restoring by saving the clipboardData["objects"] by pasting is a good one and might be worth testing to see if this can be done with LC Server, but since the clipboard version of a stack is nearly twice as large as its native format I'm reluctant to spend much time with that option in a setting already concerned with network latency. Similarly, Alain's suggestion of serializing to a text format (I tend to use arrays for object serialization now that we have arrayEncode(); I'm lazy so I let the engine do the parsing ) would also be a good one in some contexts but suffers from the same limitation as the binary clipboard data in terms of size. It's hard to beat the compact expression of stack data in the native stack file format. At the moment I'm resigned to allowing file I/O in the app, rationalizing the use of a cache folder for other benefits beyond the necessity of sending stack files back to the server. For the future, I've submitted a feature request: Request: copy to Also relevant for those of you who make client-server apps, an older request that would be useful in some scenarios by limiting file I/O to one specific folder, prohibiting all other reads/writes: secureFolder -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bonnmike at gmail.com Sat Jun 14 13:13:19 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 14 Jun 2014 11:13:19 -0600 Subject: Put a stack into a variable? In-Reply-To: <539C6539.2000301@fourthworld.com> References: <539B71C5.4050700@fourthworld.com> <539C6539.2000301@fourthworld.com> Message-ID: The paste is how I did it in my little stack. Theres an old post about it here: http://forums.livecode.com/viewtopic.php?f=9&t=12876&hilit=objects+clipboarddata but I still haven't relocated the little stack thingy. Love the idea of copying a stack directly to a variable. On Sat, Jun 14, 2014 at 9:07 AM, Richard Gaskin wrote: > Thanks for the thoughts on this conundrum. > > Mark S' suggestion of restoring by saving the clipboardData["objects"] by > pasting is a good one and might be worth testing to see if this can be done > with LC Server, but since the clipboard version of a stack is nearly twice > as large as its native format I'm reluctant to spend much time with that > option in a setting already concerned with network latency. > > Similarly, Alain's suggestion of serializing to a text format (I tend to > use arrays for object serialization now that we have arrayEncode(); I'm > lazy so I let the engine do the parsing ) would also be a good one in > some contexts but suffers from the same limitation as the binary clipboard > data in terms of size. > > It's hard to beat the compact expression of stack data in the native stack > file format. > > At the moment I'm resigned to allowing file I/O in the app, rationalizing > the use of a cache folder for other benefits beyond the necessity of > sending stack files back to the server. > > For the future, I've submitted a feature request: > > Request: copy to > > > > Also relevant for those of you who make client-server apps, an older > request that would be useful in some scenarios by limiting file I/O to one > specific folder, prohibiting all other reads/writes: > > secureFolder > > > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 14 13:25:27 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 14 Jun 2014 11:25:27 -0600 Subject: Put a stack into a variable? In-Reply-To: References: <539B71C5.4050700@fourthworld.com> <539C6539.2000301@fourthworld.com> Message-ID: On the clipboard data question.. is it possible to compress the data in memory on one end and decompress it on the other? (talking about lc server interactions) Am now also wondering if it would be worthwhile to have rev be able to load and decompress stack files on the fly. As far as getting stacks from a database, shouldn't it be possible to have a database interface script, and have actuall stack files saved to a db that can be requested with go stack " http://wheres.the.stack.com/grabstack?which=stackname.livecode", query the db and send the stackfile back intact? On Sat, Jun 14, 2014 at 11:13 AM, Mike Bonner wrote: > The paste is how I did it in my little stack. Theres an old post about it > here: > http://forums.livecode.com/viewtopic.php?f=9&t=12876&hilit=objects+clipboarddata > but I still haven't relocated the little stack thingy. Love the idea of > copying a stack directly to a variable. > > > On Sat, Jun 14, 2014 at 9:07 AM, Richard Gaskin < > ambassador at fourthworld.com> wrote: > >> Thanks for the thoughts on this conundrum. >> >> Mark S' suggestion of restoring by saving the clipboardData["objects"] by >> pasting is a good one and might be worth testing to see if this can be done >> with LC Server, but since the clipboard version of a stack is nearly twice >> as large as its native format I'm reluctant to spend much time with that >> option in a setting already concerned with network latency. >> >> Similarly, Alain's suggestion of serializing to a text format (I tend to >> use arrays for object serialization now that we have arrayEncode(); I'm >> lazy so I let the engine do the parsing ) would also be a good one in >> some contexts but suffers from the same limitation as the binary clipboard >> data in terms of size. >> >> It's hard to beat the compact expression of stack data in the native >> stack file format. >> >> At the moment I'm resigned to allowing file I/O in the app, rationalizing >> the use of a cache folder for other benefits beyond the necessity of >> sending stack files back to the server. >> >> For the future, I've submitted a feature request: >> >> Request: copy to >> >> >> >> Also relevant for those of you who make client-server apps, an older >> request that would be useful in some scenarios by limiting file I/O to one >> specific folder, prohibiting all other reads/writes: >> >> secureFolder >> >> >> >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 Jun 14 13:51:59 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 14 Jun 2014 10:51:59 -0700 Subject: Put a stack into a variable? In-Reply-To: References: Message-ID: <539C8BBF.1000707@fourthworld.com> Mike Bonner wrote: > On the clipboard data question.. is it possible to compress the data in > memory on one end and decompress it on the other? (talking about lc server > interactions) Am now also wondering if it would be worthwhile to have rev > be able to load and decompress stack files on the fly. LiveCode's built-in support for gzip is well suited for this: on mouseUp GoStack "http://www.fourthworld.net/revnet/devolution/4W_gzipper.mc.gz" end mouseUp on GoStack pURL put url pURL into tStackData -- Try to decompress .gz files: if char -3 to -1 of pURL = ".gz" then try put decompress(tStackData) into tStackData catch tErr answer "Corrupted gzip data in URL ""e& pURL "e exit to top end try end if -- go stack tStackData end GoStack The URL there may also be of interest: it's a simple LC stack I keep in my Plugins folder that will compress any file dropped onto it, and add a .gz suffix to the compressed copy. Side note: Why is it that some LC commands (like decompress) throw an error when they fail, but others (like decrypt) set "the result"? Is there a rule somewhere that I missed that would make it easy for scripters to anticipate when "try" is necessary? > As far as getting stacks from a database, shouldn't it be possible to > have a database interface script, and have actuall stack files saved > to a db that can be requested with go stack " > http://wheres.the.stack.com/grabstack?which=stackname.livecode", query > the db and send the stackfile back intact? Yes, in any context where you can read from disk (pretty much anytime unless you have the securityPermissions set to disallow it) reading the stack file as binary allows you to store that data in a way that you can later "go" to it. That's one of the oddities about "go url" - when I write: put url tUrlToSomeStackFile into tVar ...I can later write: go tVar ...and it'll go just as if I'd passed a file name rather than a binary blob of stack data. But once we "go" to a stack contained a variable, it becomes unpacked into a form that's no longer reachable within the language, except to write it to disk (or get parts of it in a nearly duplicated strange format with clipboardData["objects"]). -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From david.bovill at gmail.com Sat Jun 14 14:44:34 2014 From: david.bovill at gmail.com (David Bovill) Date: Sat, 14 Jun 2014 19:44:34 +0100 Subject: Copying Behaviors to iOS Message-ID: I have widgets organised as stacks - so each widget is in its own stack with a behavior and all it's resources. What's the best way to copy a behavior on iOS? Libraries and stacks seem best copied using the "Copy Files" tab in the Standalone Application Settings... tab. But "using" the stack with the widget in is not enough for the behavior to load - and I don't really want the hassle of creating sub stacks or copying objects. What's the best way to have a behavior work in another stack? From capellan2000 at gmail.com Sat Jun 14 16:52:03 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 14 Jun 2014 13:52:03 -0700 (PDT) Subject: Book on Programming by Example In-Reply-To: <1402716490483-4680481.post@n4.nabble.com> References: <1402246750108-4680341.post@n4.nabble.com> <1402716490483-4680481.post@n4.nabble.com> Message-ID: <1402779123576-4680488.post@n4.nabble.com> Mark Smith wrote > I dunno about that Alejandro, > I think I still prefer > main() > { > printf("hello world"); > } > or, if using LC > on mouseUp > put "hello world" after msg > end mouseUp Really Funny! :-D Ideally, programming should be as simple as saying: I need a computer program Who wants to make it?... And a thousands hands raises all around the world, asking for the assignment... More or less like this: http://moneypantry.com/amazon-mechanical-turk-crowdsourcing-alternatives/ But only a truly knowledgeable buyer could get real value from crowdsourcing. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Book-on-Programming-by-Example-tp4680341p4680488.html Sent from the Revolution - User mailing list archive at Nabble.com. From gcanyon at gmail.com Sat Jun 14 17:19:52 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Sat, 14 Jun 2014 16:19:52 -0500 Subject: Put a stack into a variable? In-Reply-To: <539B0A2E.3020103@fourthworld.com> References: <539B0A2E.3020103@fourthworld.com> Message-ID: On Fri, Jun 13, 2014 at 9:26 AM, Richard Gaskin wrote: > I'd like to put a stack into a variable, but without reading the stack > file from disk. > Other languages have first class functions, you want first class stacks. ;-) From bonnmike at gmail.com Sun Jun 15 00:07:06 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Sat, 14 Jun 2014 22:07:06 -0600 Subject: Put a stack into a variable? In-Reply-To: References: <539B0A2E.3020103@fourthworld.com> Message-ID: Thanks much for the gzip example, as well as the go tVar trick. Too bad its one directional. Would be pretty cool if you could "put stack into URL " http://data.catch.page" On Sat, Jun 14, 2014 at 3:19 PM, Geoff Canyon wrote: > On Fri, Jun 13, 2014 at 9:26 AM, Richard Gaskin < > ambassador at fourthworld.com> > wrote: > > > I'd like to put a stack into a variable, but without reading the stack > > file from disk. > > > > Other languages have first class functions, you want first class stacks. > ;-) > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 15 01:40:46 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 14 Jun 2014 22:40:46 -0700 (PDT) Subject: Handlers for reading/writing image density info in PNG/JPEG? In-Reply-To: References: Message-ID: <1402810846782-4680491.post@n4.nabble.com> Could this help? http://www.fileformat.info/mirror/egff/index.htm http://www.fileformat.info/format/jpeg/egff.htm http://www.fileformat.info/format/png/egff.htm -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Handlers-for-reading-writing-image-density-info-in-PNG-JPEG-tp4680464p4680491.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Sun Jun 15 05:14:43 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 15 Jun 2014 11:14:43 +0200 Subject: [OT] "Programming LiveCode..." In-Reply-To: <53990045.1000701@economy-x-talk.com> References: <53990045.1000701@economy-x-talk.com> Message-ID: <539D6403.4090107@economy-x-talk.com> Hi, We have sent a few people multiple requests to confirm their addresses. Not getting our e-mails? Please contact me off-list! Haven't you ordered the book yet? We're currently shipping. If you order now, we'll ship the book within a few days and you may have it next week (depending on your location). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From mwieder at ahsoftware.net Sun Jun 15 13:28:45 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Sun, 15 Jun 2014 10:28:45 -0700 Subject: Memory and CPU Usage Script In-Reply-To: <539A2DA3.5010405@fourthworld.com> References: <5399F90E.3030405@hyperactivesw.com> <539A2DA3.5010405@fourthworld.com> Message-ID: <5856235508.20140615102845@ahsoftware.net> Richard- Thursday, June 12, 2014, 3:45:55 PM, you wrote: > That's a dead link, and even osxbook.com just returns "Hello". I treasure my hardcopy of that book, and apparently there's an updated version in the works. Serious geeky wonderfulness for anyone willing do dive that deep, but definitely in need of an upgrade: a lot has changed since 2006. http://blog.darkrainfall.org/2013/01/os-x-internals/ For now, check out the sysctl commands: -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From m.schonewille at economy-x-talk.com Mon Jun 16 04:11:48 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 16 Jun 2014 10:11:48 +0200 Subject: Duplicating XML tree Message-ID: <539EA6C4.5040905@economy-x-talk.com> Hi, I have an XML tree in memory, loaded with revXMLCreateTreeFromFile. Now I want to make a copy of the tree. I could load it from file again, but it seems more logical to me to duplicate the existing tree, something like revXMLCopyTree, but that function doesn't seem to exist. Is there a command or function for this purpose that I haven't discovered yet? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From mkoob at rogers.com Mon Jun 16 10:07:42 2014 From: mkoob at rogers.com (Martin Koob) Date: Mon, 16 Jun 2014 07:07:42 -0700 (PDT) Subject: Duplicating XML tree In-Reply-To: <539EA6C4.5040905@economy-x-talk.com> References: <539EA6C4.5040905@economy-x-talk.com> Message-ID: <1402927662231-4680495.post@n4.nabble.com> I think you can do it this way. put revXMLtext(tTreeID) into tXMLdata put revXMLCreateTree(tXMLdata,false,true,false) into tTreeIDCopy Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Duplicating-XML-tree-tp4680494p4680495.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Mon Jun 16 10:18:38 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 16 Jun 2014 16:18:38 +0200 Subject: Duplicating XML tree In-Reply-To: <1402927662231-4680495.post@n4.nabble.com> References: <539EA6C4.5040905@economy-x-talk.com> <1402927662231-4680495.post@n4.nabble.com> Message-ID: <539EFCBE.2090707@economy-x-talk.com> Hi Martin, I was hoping to copy the tree directly. I thought of your solution and I could also load the tree from file twice in this particular case, but I'd rather copy an existing tree directly if possible. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/16/2014 16:07, Martin Koob wrote: > I think you can do it this way. > > put revXMLtext(tTreeID) into tXMLdata > put revXMLCreateTree(tXMLdata,false,true,false) into tTreeIDCopy > > Martin From dfepstein at comcast.net Mon Jun 16 14:13:33 2014 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Mon, 16 Jun 2014 18:13:33 +0000 (UTC) Subject: numberFormat question In-Reply-To: <1853756985.271810.1402942312549.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> I am trying to set the numberFormat so that calculation is precise enough for the situation.? Since I don't know ahead of time how many decimal places will be used, I wrote a function that I hoped would adjust things as necessary. But when this function is called with parameters m = 1.09131 and n = .0000001 and k = 1, it returns 1.09131 rather than 1.0913101. The last couple of lines were added for testing, and the debugger shows that the numberFormat is being set correctly?but that the truncated value is put into hold. Can anybody see what is going wrong? Many thanks. David Epstein function preciseEnough m,n,k ?? -- return the value m + k*n ?? -- default numberFormat shows up to 6 decimal places ?? -- If m, n, or k? has more than that precision, this function sets the numberFormat with a margin of safety ?? -- before returning the answer ?? put length(m) - offset(".",m) into aPlaces ?? put length(n) - offset(".",n) into bPlaces ?? put length(k) - offset(".",k) into cPlaces ?? put the numberFormat into myString ?? if max(aPlaces,bPlaces,cPlaces) + 4 > length(myString) then ????? get myString & "####" ????? set the numberFormat to it ?? end if ?? put the numberFormat into nf ?? put m + k*n into hold ?? return hold end preciseEnough From jacque at hyperactivesw.com Mon Jun 16 15:25:14 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jun 2014 14:25:14 -0500 Subject: Diagnosing server error 400 Message-ID: <539F449A.3000002@hyperactivesw.com> I need help figuring out why AWS is returning an error 400 "bad request" in a limited number of cases. We have a test group of some dozens of people and only 2 have the problem. What I know: The data sent to the server is the same for everyone, and is correctly formatted. I have logs of that and the requests are okay. One person moved to another computer (and consequently another network) and the problem resolved itself. Once, my client was getting the same 400 error all morning and then that afternoon it started working again by itself, without changing anything. This definitely seems network-related to me but I don't know what it could be. The queries are reaching AWS and it is returning the error. We don't have access (or don't know how) to see the server logs that Amazon has; we only have access to the logs on our own server, and the requests never get that far. Any ideas? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Mon Jun 16 16:15:40 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 16 Jun 2014 22:15:40 +0200 Subject: numberFormat question In-Reply-To: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <539F506C.8040702@economy-x-talk.com> David, The numberformat doesn't affect precision. It only affects output as is shown by on mouseUp set the numberformat to "00" put 0.01*1 into x set the numberformat to "00.00" put x*1 end mouseUp It even only affects the current handler and doesn't affect precision in calling handlers: on mouseUp // default is "0.######" put a1() into x put x*1 end mouseUp function a1 set the numberformat to "00" return 0.01*1 end a1 The above script returns 0.01 instead of 00. I don't think LiveCode allows you to adjust the precision as other languages to with e.g. signed and unsigned integers and floating precision. You'd have to write special routines for this. I think there is quite a lot of discussion to find in the archives about high precision and floating point numbers. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/16/2014 20:13, dfepstein at comcast.net wrote: > > > I am trying to set the numberFormat so that calculation is precise enough for the situation. Since I don't know ahead of time how many decimal places will be used, I wrote a function that I hoped would adjust things as necessary. > But when this function is called with parameters m = 1.09131 and n = .0000001 and k = 1, it returns 1.09131 rather than 1.0913101. > The last couple of lines were added for testing, and the debugger shows that the numberFormat is being set correctly but that the truncated value is put into hold. > Can anybody see what is going wrong? > > > > Many thanks. > > > > David Epstein > > > > function preciseEnough m,n,k > -- return the value m + k*n > -- default numberFormat shows up to 6 decimal places > -- If m, n, or k has more than that precision, this function sets the numberFormat with a margin of safety > -- before returning the answer > put length(m) - offset(".",m) into aPlaces > put length(n) - offset(".",n) into bPlaces > put length(k) - offset(".",k) into cPlaces > put the numberFormat into myString > if max(aPlaces,bPlaces,cPlaces) + 4 > length(myString) then > get myString & "####" > set the numberFormat to it > end if > put the numberFormat into nf > put m + k*n into hold > return hold > end preciseEnough From jacque at hyperactivesw.com Mon Jun 16 16:34:38 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jun 2014 15:34:38 -0500 Subject: numberFormat question In-Reply-To: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <539F54DE.6010202@hyperactivesw.com> On 6/16/2014, 1:13 PM, dfepstein at comcast.net wrote: > > > I am trying to set the numberFormat so that calculation is precise enough for the situation. Since I don't know ahead of time how many decimal places will be used, I wrote a function that I hoped would adjust things as necessary. > But when this function is called with parameters m = 1.09131 and n = .0000001 and k = 1, it returns 1.09131 rather than 1.0913101. > The last couple of lines were added for testing, and the debugger shows that the numberFormat is being set correctly but that the truncated value is put into hold. > Can anybody see what is going wrong? > > > > Many thanks. > > > > David Epstein > > > > function preciseEnough m,n,k > -- return the value m + k*n > -- default numberFormat shows up to 6 decimal places > -- If m, n, or k has more than that precision, this function sets the numberFormat with a margin of safety > -- before returning the answer > put length(m) - offset(".",m) into aPlaces > put length(n) - offset(".",n) into bPlaces > put length(k) - offset(".",k) into cPlaces > put the numberFormat into myString > if max(aPlaces,bPlaces,cPlaces) + 4 > length(myString) then > get myString & "####" > set the numberFormat to it > end if > put the numberFormat into nf > put m + k*n into hold > return hold > end preciseEnough As Mark said, numberformat is only retained during the local handler so you need to reset it each time the handler runs. When you use #, it means to include a numerical value in that postion only if there is an actual value there; if there is no value then that position is ignored. If you use 0 in the numberformat instead, empty positions are padded with zeros. So, to get the precision you want, you don't need to calculate the number of places/positions, just use the # as you are now. Include enough #s to cover your longest anticipated number, up to LC limits (I think that's 16 places.) Since numberformat only affects the display, you need to force the calculation from a numerical value to a text value. You can do that by simply putting the result of the calculation into a field. If you want it in a variable, you can use value() to do that instead. So your whole handler can be like this: function preciseEnough m,n,k put m + k*n into hold set the numberformat to "0.##############" -- add more if you want put value(hold) into hold return hold end preciseEnough -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Mon Jun 16 18:07:28 2014 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Mon, 16 Jun 2014 22:07:28 +0000 Subject: numberFormat question In-Reply-To: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> References: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <47378376-3844-4517-9536-1258D32EC268@iotecdigital.com> Also, if you don?t care about display, just set the *precision* to LC max. Numberformat is as others have posted, really a display function. After you are done, set the numberFormat back to default or ?0?. I bit myself in the butt because I had a counter that I was using to append a number to a variable name, and it hosed my names. Bob S On Jun 16, 2014, at 11:13 , wrote: > > > I am trying to set the numberFormat so that calculation is precise enough for the situation. Since I don't know ahead of time how many decimal places will be used, I wrote a function that I hoped would adjust things as necessary. > But when this function is called with parameters m = 1.09131 and n = .0000001 and k = 1, it returns 1.09131 rather than 1.0913101. > The last couple of lines were added for testing, and the debugger shows that the numberFormat is being set correctly but that the truncated value is put into hold. > Can anybody see what is going wrong? > > > > Many thanks. > > > > David Epstein > > > > function preciseEnough m,n,k > -- return the value m + k*n > -- default numberFormat shows up to 6 decimal places > -- If m, n, or k has more than that precision, this function sets the numberFormat with a margin of safety > -- before returning the answer > put length(m) - offset(".",m) into aPlaces > put length(n) - offset(".",n) into bPlaces > put length(k) - offset(".",k) into cPlaces > put the numberFormat into myString > if max(aPlaces,bPlaces,cPlaces) + 4 > length(myString) then > get myString & "####" > set the numberFormat to it > end if > put the numberFormat into nf > put m + k*n into hold > return hold > end preciseEnough > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From shawnlivecode at gmail.com Mon Jun 16 18:47:35 2014 From: shawnlivecode at gmail.com (Shawn Blc) Date: Mon, 16 Jun 2014 17:47:35 -0500 Subject: Diagnosing server error 400 In-Reply-To: <539F449A.3000002@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> Message-ID: Are you using sessions? On Mon, Jun 16, 2014 at 2:25 PM, J. Landman Gay wrote: > I need help figuring out why AWS is returning an error 400 "bad request" > in a limited number of cases. We have a test group of some dozens of people > and only 2 have the problem. > > What I know: > > The data sent to the server is the same for everyone, and is correctly > formatted. I have logs of that and the requests are okay. > > One person moved to another computer (and consequently another network) > and the problem resolved itself. > > Once, my client was getting the same 400 error all morning and then that > afternoon it started working again by itself, without changing anything. > > This definitely seems network-related to me but I don't know what it could > be. The queries are reaching AWS and it is returning the error. We don't > have access (or don't know how) to see the server logs that Amazon has; we > only have access to the logs on our own server, and the requests never get > that far. > > Any ideas? > > -- > 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 simon at asato-media.com Mon Jun 16 19:17:02 2014 From: simon at asato-media.com (As_Simon) Date: Mon, 16 Jun 2014 16:17:02 -0700 (PDT) Subject: Diagnosing server error 400 In-Reply-To: <539F449A.3000002@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> Message-ID: <1402960622488-4680503.post@n4.nabble.com> Hi Jacque, AWS does have logs, you have to set them up for each bucket. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Diagnosing-server-error-400-tp4680498p4680503.html Sent from the Revolution - User mailing list archive at Nabble.com. From simon at asato-media.com Mon Jun 16 19:21:22 2014 From: simon at asato-media.com (As_Simon) Date: Mon, 16 Jun 2014 16:21:22 -0700 (PDT) Subject: Diagnosing server error 400 In-Reply-To: <1402960622488-4680503.post@n4.nabble.com> References: <539F449A.3000002@hyperactivesw.com> <1402960622488-4680503.post@n4.nabble.com> Message-ID: <1402960882583-4680504.post@n4.nabble.com> Sorry that was a cop-out. I'm using CloudBerry Explorer for Amazon. Right click on the bucket Logging > Logging Settings or Cloudfront logging settings. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Diagnosing-server-error-400-tp4680498p4680504.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Mon Jun 16 20:53:55 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Tue, 17 Jun 2014 08:53:55 +0800 Subject: numberFormat question In-Reply-To: <539F54DE.6010202@hyperactivesw.com> References: <938907292.271887.1402942413912.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> <539F54DE.6010202@hyperactivesw.com> Message-ID: On Tue, Jun 17, 2014 at 4:34 AM, J. Landman Gay wrote: > set the numberformat to "0.##############" -- add more if you want I think the reason David isn't doing that, and is trying to limit the number of # to the absolute minimum is because of this note in the Dictionary: Note: Since LiveCode does not use decimal numbers for its internal calculations (for reasons of speed), the decimal representation of a number is sometimes slightly off the correct number. For example, 10^-1 is equal to 0.1, but is calculated (to eighteen decimal places) as 0.100000000000000006. Because of this, setting the numberFormat to specify many decimal places after the decimal point may produce unexpected results in a statement that tests for an exact number. To prevent this, either avoid setting the numberFormat to a value more precise than you need, or use the abs function instead of the = operator to test equality: I think we all know that at least once or twice a year we get a post to this List questioning why LC is getting it's math wrong and the reason is as stated above. For anyone whose app requires precision math that shouldn't be a note, it should be a CAUTION! It's so easy to have your app work perfectly 99.9999999999999999% of the time... but then ruin someone's day. From jacque at hyperactivesw.com Mon Jun 16 23:28:50 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jun 2014 22:28:50 -0500 Subject: Diagnosing server error 400 In-Reply-To: <1402960882583-4680504.post@n4.nabble.com> References: <539F449A.3000002@hyperactivesw.com> <1402960622488-4680503.post@n4.nabble.com> <1402960882583-4680504.post@n4.nabble.com> Message-ID: <539FB5F2.5020608@hyperactivesw.com> On 6/16/2014, 6:21 PM, As_Simon wrote: > Sorry that was a cop-out. > I'm using CloudBerry Explorer for Amazon. > Right click on the bucket > Logging > Logging Settings or Cloudfront logging settings. I'm in the dark about what's going on over at the server side, but on my end, I'm just doing a GET to a URL. There is an SQS queue (I'm not sure what that is actually,) which is being processed server-side. I think we need to know what's happening before my request hits the queue. Sorry to be so vague, but my understanding of the process is really limited. Does this make any sense? Do you know if there is logging available under this scenario? I'll pass on your comment to the right person though. Thanks. @Shawn: no, we're not using sessions. Each send to the server is independent. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Jun 16 23:56:40 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 16 Jun 2014 22:56:40 -0500 Subject: Diagnosing server error 400 In-Reply-To: <539FB5F2.5020608@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> <1402960622488-4680503.post@n4.nabble.com> <1402960882583-4680504.post@n4.nabble.com> <539FB5F2.5020608@hyperactivesw.com> Message-ID: <539FBC78.9090905@hyperactivesw.com> On 6/16/2014, 10:28 PM, J. Landman Gay wrote: > I'm just doing a GET to a URL. There is an SQS queue (I'm not sure what > that is actually,) which is being processed server-side. I think we need > to know what's happening before my request hits the queue. I should expand that a little bit. The server person said my requests are hitting the SQS queue, which isn't related to Cloudfront. She knows about Cloudtrail logs but suspects that the hit isn't even making it to SQS to get logged. This is sort of gibberish to me, but it means something. Maybe a better question to everyone would be: can a server 400 error be related to a bad SSL certificate chain? Because that's the only thing I can think of. Are these security chains static or do they vary depending on the computer/network involved? That is, is it like a URL request that can take any path to the destination, or more like a specific, unchanging set of security checkpoints? Amazon talks about a PEM file that lists the security checkpoints, so I suspect the latter. If so, my theory isn't correct. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From lists at mangomultimedia.com Tue Jun 17 00:08:49 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 17 Jun 2014 00:08:49 -0400 Subject: Diagnosing server error 400 In-Reply-To: <539F449A.3000002@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> Message-ID: On Mon, Jun 16, 2014 at 3:25 PM, J. Landman Gay wrote: > I need help figuring out why AWS is returning an error 400 "bad request" > in a limited number of cases. We have a test group of some dozens of people > and only 2 have the problem. > I think that some XML should be sent back by the server as well. It will contain additional error information about what went wrong. Have you looked at that? -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From mwieder at ahsoftware.net Tue Jun 17 01:25:18 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Mon, 16 Jun 2014 22:25:18 -0700 Subject: Diagnosing server error 400 In-Reply-To: <539FBC78.9090905@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> <1402960622488-4680503.post@n4.nabble.com> <1402960882583-4680504.post@n4.nabble.com> <539FB5F2.5020608@hyperactivesw.com> <539FBC78.9090905@hyperactivesw.com> Message-ID: <7185626429.20140616222518@ahsoftware.net> Jacque- Monday, June 16, 2014, 8:56:40 PM, you wrote: > Maybe a better question to everyone would be: can a server 400 error be > related to a bad SSL certificate chain? I'd expect something more like a 401 for a security problem. The official definition of a 400 response is "malformed syntax". -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From larry at significantplanet.org Tue Jun 17 10:22:23 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Tue, 17 Jun 2014 08:22:23 -0600 Subject: which is faster for searching? Message-ID: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> I have a large variable containing about 3000 lines of data - each line about 100 characters. I want to search through the variable and find all the lines that contain a specified string Should I use (repeatedly) "lineoffset...", or should I use "repeat for each line..." or maybe some other faster way? Or with only 3000 lines of data, does it even matter? TIA Larry From m.schonewille at economy-x-talk.com Tue Jun 17 10:38:59 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 17 Jun 2014 16:38:59 +0200 Subject: which is faster for searching? In-Reply-To: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> Message-ID: <53A05303.9010706@economy-x-talk.com> Hi Larry, If you want to do a one-time search, possible invoked by a user action, 3000 lines is nothing. Don't bother about speed and just use the most convenient way to search. If you want to search repeatedly without user interactions between the searches, speed may be important. In that case, a repeat for each loop may be surprisingly fast. If you just want to find relevant lines and dispose of irrelevant lines, the filter command will probably be what you need, especially with its recently introduced new features. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/17/2014 16:22, larry at significantplanet.org wrote: > I have a large variable containing about 3000 lines of data - each line about 100 characters. > > I want to search through the variable and find all the lines that contain a specified string > > Should I use (repeatedly) "lineoffset...", or should I use "repeat for each line..." or maybe some other faster way? > > Or with only 3000 lines of data, does it even matter? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Tue Jun 17 10:38:33 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 Jun 2014 17:38:33 +0300 Subject: which is faster for searching? In-Reply-To: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> Message-ID: <6a87bd8666244519a0a879b18e36ea0d.squirrel@185.8.104.234> Larry, "repeat for each line..." is definitely faster and repeat for each line j in myVar if j contains myText then end if end repeat should be pretty fast. jbv > I have a large variable containing about 3000 lines of data - each line > about 100 characters. > > I want to search through the variable and find all the lines that contain > a specified string > > Should I use (repeatedly) "lineoffset...", or should I use "repeat for > each line..." or maybe some other faster way? > > Or with only 3000 lines of data, does it even matter? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jun 17 13:06:33 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Jun 2014 12:06:33 -0500 Subject: Diagnosing server error 400 In-Reply-To: References: <539F449A.3000002@hyperactivesw.com> Message-ID: <53A07599.2000106@hyperactivesw.com> On 6/16/2014, 11:08 PM, Trevor DeVore wrote: > On Mon, Jun 16, 2014 at 3:25 PM, J. Landman Gay > wrote: > >> I need help figuring out why AWS is returning an error 400 "bad request" >> in a limited number of cases. We have a test group of some dozens of people >> and only 2 have the problem. >> > > I think that some XML should be sent back by the server as well. It will > contain additional error information about what went wrong. Have you looked > at that? > I have looked at it during debugging but since I don't ever get a 400 error I haven't seen that particular data. I'll add it to the logging though so that the testers have a record, maybe that will show something. Thanks. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From larry at significantplanet.org Tue Jun 17 13:11:37 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Tue, 17 Jun 2014 11:11:37 -0600 Subject: which is faster for searching? References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6a87bd8666244519a0a879b18e36ea0d.squirrel@185.8.104.234> Message-ID: Thanks to Mark and jbv for the good advice. I ended up using the "for each line..." since that was easy and fast Larry ----- Original Message ----- From: To: "How to use LiveCode" Sent: Tuesday, June 17, 2014 8:38 AM Subject: Re: which is faster for searching? > Larry, > > "repeat for each line..." is definitely faster > > and > > repeat for each line j in myVar > if j contains myText then > end if > end repeat > > should be pretty fast. > > jbv > > >> I have a large variable containing about 3000 lines of data - each line >> about 100 characters. >> >> I want to search through the variable and find all the lines that contain >> a specified string >> >> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >> each line..." or maybe some other faster way? >> >> Or with only 3000 lines of data, does it even matter? >> >> TIA >> Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Jun 17 13:15:59 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 17 Jun 2014 12:15:59 -0500 Subject: Diagnosing server error 400 In-Reply-To: <7185626429.20140616222518@ahsoftware.net> References: <539F449A.3000002@hyperactivesw.com> <1402960622488-4680503.post@n4.nabble.com> <1402960882583-4680504.post@n4.nabble.com> <539FB5F2.5020608@hyperactivesw.com> <539FBC78.9090905@hyperactivesw.com> <7185626429.20140616222518@ahsoftware.net> Message-ID: <53A077CF.6090500@hyperactivesw.com> On 6/17/2014, 12:25 AM, Mark Wieder wrote: > Jacque- > > Monday, June 16, 2014, 8:56:40 PM, you wrote: > >> Maybe a better question to everyone would be: can a server 400 error be >> related to a bad SSL certificate chain? > > I'd expect something more like a 401 for a security problem. The > official definition of a 400 response is "malformed syntax". > Yes, but that doesn't make sense because the app is sending identical data from every test computer, and only two (so far) have failed. So I'm grasping at straws. I did some googling before I asked on the list, and it seems that proxy servers can interfere (but the testers aren't using a proxy) or sometimes intermediary servers between the app and AWS. So that led me down the path of the security chain, since as far as I can see, that would be the only thing that's different -- provided the security chain is dynamic. If it isn't, then something else is wrong. Also, there's the thing where my client was getting a 400 error all one morning, and by afternoon it had resolved itself on the same computer and the same network. That makes me think that something is dynamic in the path to AWS. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From pete at lcsql.com Tue Jun 17 13:25:31 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 17 Jun 2014 10:25:31 -0700 Subject: which is faster for searching? In-Reply-To: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> Message-ID: You might want to try the filter command too, especially the new version that has a lot more options including the ability to put the qualifying lines into a different container. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jun 17, 2014 at 7:22 AM, wrote: > I have a large variable containing about 3000 lines of data - each line > about 100 characters. > > I want to search through the variable and find all the lines that contain > a specified string > > Should I use (repeatedly) "lineoffset...", or should I use "repeat for > each line..." or maybe some other faster way? > > Or with only 3000 lines of data, does it even matter? > > TIA > Larry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skip at magicgate.com Tue Jun 17 13:26:23 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 17 Jun 2014 13:26:23 -0400 Subject: which is faster for searching? In-Reply-To: References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6a87bd8666244519a0a879b18e36ea0d.squirrel@185.8.104.234> Message-ID: I used the "for each line" in a recent project that evaluates 500,000 lines and takes just a couple of seconds to complete. It is VERY fast! SKIP On Tue, Jun 17, 2014 at 1:11 PM, wrote: > Thanks to Mark and jbv for the good advice. > I ended up using the "for each line..." since that was easy and fast > Larry > > ----- Original Message ----- From: > To: "How to use LiveCode" > Sent: Tuesday, June 17, 2014 8:38 AM > Subject: Re: which is faster for searching? > > > > Larry, >> >> "repeat for each line..." is definitely faster >> >> and >> >> repeat for each line j in myVar >> if j contains myText then >> end if >> end repeat >> >> should be pretty fast. >> >> jbv >> >> >> I have a large variable containing about 3000 lines of data - each line >>> about 100 characters. >>> >>> I want to search through the variable and find all the lines that contain >>> a specified string >>> >>> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >>> each line..." or maybe some other faster way? >>> >>> Or with only 3000 lines of data, does it even matter? >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Tue Jun 17 14:04:41 2014 From: dan at clearvisiontech.com (Dan Friedman) Date: Tue, 17 Jun 2014 11:04:41 -0700 Subject: Mobile Styled Text In-Reply-To: References: Message-ID: <87820229-83EA-455E-9621-12168A5BC378@clearvisiontech.com> I'm wondering... Is it possible to display and edit multi-styled text (font sizes, colors, justifications, etc.) in a native multiline control? Thanks! -Dan From larry at significantplanet.org Tue Jun 17 14:17:52 2014 From: larry at significantplanet.org (larry at significantplanet.org) Date: Tue, 17 Jun 2014 12:17:52 -0600 Subject: which is faster for searching? References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> Message-ID: <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Thanks Pete, Which version exactly is it? Larry ----- Original Message ----- From: "Peter Haworth" To: "How to use LiveCode" Sent: Tuesday, June 17, 2014 11:25 AM Subject: Re: which is faster for searching? > You might want to try the filter command too, especially the new version > that has a lot more options including the ability to put the qualifying > lines into a different container. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Tue, Jun 17, 2014 at 7:22 AM, wrote: > >> I have a large variable containing about 3000 lines of data - each line >> about 100 characters. >> >> I want to search through the variable and find all the lines that contain >> a specified string >> >> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >> each line..." or maybe some other faster way? >> >> Or with only 3000 lines of data, does it even matter? >> >> TIA >> Larry >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jbv at souslelogo.com Tue Jun 17 14:21:37 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 Jun 2014 21:21:37 +0300 Subject: which is faster for searching? In-Reply-To: References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6a87bd8666244519a0a879b18e36ea0d.squirrel@185.8.104.234> Message-ID: > I used the "for each line" in a recent project that evaluates 500,000 > lines > and takes just a couple of seconds to complete. It is VERY fast! > > SKIP > I guess the reason it's fast is because it implements the equivalent C loop in a very raw manner... jbv From capellan2000 at gmail.com Tue Jun 17 14:35:31 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Jun 2014 11:35:31 -0700 (PDT) Subject: [OT] Address-Sanitizer for C and Cpp Message-ID: <1403030131000-4680521.post@n4.nabble.com> Hi All, Just out of curiosity, What are the results of running the code of LiveCode engine in a tool like AddressSanitizer (ASan): https://code.google.com/p/address-sanitizer/ AddressSanitizer is a fast memory error detector. It finds use-after-free and {heap,stack,global} buffer overflow bugs in C/C++ programs. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Address-Sanitizer-for-C-and-Cpp-tp4680521.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Tue Jun 17 15:04:11 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 17 Jun 2014 12:04:11 -0700 Subject: which is faster for searching? In-Reply-To: <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Message-ID: I think it came in with 6.5. Would be interesting to see how it performs compared to a repeat loop. I always like less lines of code as ling as things still work well. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jun 17, 2014 at 11:17 AM, wrote: > Thanks Pete, > Which version exactly is it? > Larry > > ----- Original Message ----- From: "Peter Haworth" > To: "How to use LiveCode" > Sent: Tuesday, June 17, 2014 11:25 AM > Subject: Re: which is faster for searching? > > > You might want to try the filter command too, especially the new version >> that has a lot more options including the ability to put the qualifying >> lines into a different container. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> >> On Tue, Jun 17, 2014 at 7:22 AM, wrote: >> >> I have a large variable containing about 3000 lines of data - each line >>> about 100 characters. >>> >>> I want to search through the variable and find all the lines that contain >>> a specified string >>> >>> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >>> each line..." or maybe some other faster way? >>> >>> Or with only 3000 lines of data, does it even matter? >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jbv at souslelogo.com Tue Jun 17 16:10:36 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Tue, 17 Jun 2014 23:10:36 +0300 Subject: which is faster for searching? In-Reply-To: References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Message-ID: less lines of code is often more elegant but not always easy to maintain, and quite some times doesn't mean faster execution... jbv > I think it came in with 6.5. Would be interesting to see how it performs > compared to a repeat loop. I always like less lines of code as ling as > things still work well. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > From pete at lcsql.com Tue Jun 17 16:18:30 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 17 Jun 2014 13:18:30 -0700 Subject: which is faster for searching? In-Reply-To: <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Message-ID: I just did a very simple test comparing repeat with filter. I put 500,000 lines of 6 random chars into a variable then used a repeat for loop to check for a 3 character string in each line and append the line to another variable, plus a filter statement to do the same thing. The repeat loop took 153 ms and the filter took 38ms. Neither time is particularly significant but impressive that filter is faster than a repeat loop by a factor of around 4. I did find that the times got closer when I increased the number of chars in each line and the length of the search string but filter was still twice as fast as repeat. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Tue, Jun 17, 2014 at 11:17 AM, wrote: > Thanks Pete, > Which version exactly is it? > Larry > > ----- Original Message ----- From: "Peter Haworth" > To: "How to use LiveCode" > Sent: Tuesday, June 17, 2014 11:25 AM > Subject: Re: which is faster for searching? > > > You might want to try the filter command too, especially the new version >> that has a lot more options including the ability to put the qualifying >> lines into a different container. >> >> Pete >> lcSQL Software >> Home of lcStackBrowser and >> SQLiteAdmin >> >> >> On Tue, Jun 17, 2014 at 7:22 AM, wrote: >> >> I have a large variable containing about 3000 lines of data - each line >>> about 100 characters. >>> >>> I want to search through the variable and find all the lines that contain >>> a specified string >>> >>> Should I use (repeatedly) "lineoffset...", or should I use "repeat for >>> each line..." or maybe some other faster way? >>> >>> Or with only 3000 lines of data, does it even matter? >>> >>> TIA >>> Larry >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hello at simonsmith.co Tue Jun 17 16:42:56 2014 From: hello at simonsmith.co (Simon Smith) Date: Tue, 17 Jun 2014 22:42:56 +0200 Subject: Simple benchmark of LiveCode vs PHP Message-ID: I have not seen any benchmarks comparing LiveCode server to other web server languages so gave it a bash comparing it to PHP. I chose PHP as its what I work with on a daily basis and the most popular of the server side languages. I probably should have used more complicated scripts aswell, which I will probably do in the future. The web server was an entry level 512mb virtual server from Digital Ocean. I am also a continent away from the server - so my latency is pretty high. I used the Apache ab program to run the tests. As expected PHP yielded better results, but only by fractions of a second. It is also running via an Apache process which is faster than CGI. This was also run on a $5 a month VPS that is probably not very well suited for the likes of Apache or testing load on. While this is by no means a definitive benchmark and open for interpretation, I think it does show that LiveCode delivers pretty great performance as it is only slightly slower than PHP. I think it also shows that LiveCode is a great option when approaching web projects - especially if it lets you get the job done faster. For the benchmark test, I used 2 simple loops: LiveCode Server: PHP: My latency to the server is about 234ms. Concurrency Level: 5 LiveCode Results Requests per second: 4.05 [#/sec] (mean) Time per request: 246.952 [ms] (mean, across all concurrent requests) PHP Results Requests per second: 4.06 [#/sec] (mean) Time per request: 246.063 [ms] (mean, across all concurrent requests) Concurrency Level: 20 LiveCode Results Requests per second: 3.95 [#/sec] (mean) Time per request: 253.401 [ms] (mean, across all concurrent requests) PHP Results Requests per second: 4.02 [#/sec] (mean) Time per request: 248.650 [ms] (mean, across all concurrent requests) Simon From lists at mangomultimedia.com Tue Jun 17 16:56:07 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Tue, 17 Jun 2014 16:56:07 -0400 Subject: Diagnosing server error 400 In-Reply-To: <53A07599.2000106@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> <53A07599.2000106@hyperactivesw.com> Message-ID: On Tue, Jun 17, 2014 at 1:06 PM, J. Landman Gay wrote: > On 6/16/2014, 11:08 PM, Trevor DeVore wrote: >> >> I think that some XML should be sent back by the server as well. It will >> contain additional error information about what went wrong. Have you >> looked >> at that? >> > > I have looked at it during debugging but since I don't ever get a 400 > error I haven't seen that particular data. I'll add it to the logging > though so that the testers have a record, maybe that will show something. > Thanks. I think that will prove very helpful. The errors in the XML are usually helpful. It should tell you if the issue is with the signature, key, etc. -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From capellan2000 at gmail.com Tue Jun 17 18:43:20 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Jun 2014 15:43:20 -0700 (PDT) Subject: Simple benchmark of LiveCode vs PHP In-Reply-To: References: Message-ID: <1403045000051-4680527.post@n4.nabble.com> Simon Smith-2 wrote > I have not seen any benchmarks comparing LiveCode server to other web > server languages so gave it a bash comparing it to PHP. I chose PHP as its > what I work with on a daily basis and the most popular of the server side > languages. > [snip] Many Thanks Simon for publishing these tests! :D Hopefully, you will find time to make more detailed tests with uploading, downloading and processing data. Thanks again! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Simple-benchmark-of-LiveCode-vs-PHP-tp4680525p4680527.html Sent from the Revolution - User mailing list archive at Nabble.com. From lan.kc.macmail at gmail.com Tue Jun 17 20:59:43 2014 From: lan.kc.macmail at gmail.com (Kay C Lan) Date: Wed, 18 Jun 2014 08:59:43 +0800 Subject: which is faster for searching? In-Reply-To: References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Message-ID: On Wed, Jun 18, 2014 at 4:18 AM, Peter Haworth wrote: > I put 500,000 lines... > The repeat loop took 153 ms and the filter took 38ms. That's more like it. Skip's 'just a couple of seconds' must have been for some extremely long lines of difficult data with some very convoluted search criteria. For me, repeat for each has always been a ms process until I get well into millions of records. From capellan2000 at gmail.com Tue Jun 17 21:30:46 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Jun 2014 18:30:46 -0700 (PDT) Subject: Visual Effects unexpected differences Message-ID: <1403055046784-4680529.post@n4.nabble.com> Hi all, Recently, I was testing the visual effects in Livecode 7 dp6 and noticed the following: 1) Barn Door [close/open] visual effect works fine although is not included in the Dictionary 2) Visual effects: Plain, Checkerboard, Venetian Blinds, Wipe, Barn Door, Dissolve, Iris works only in the control, without affecting the rectangular area around the control (use a transparent png over a photo or a background pattern) 3) Visual effects: Push, Reveal, Scroll, Shrink, Stretch, Zoom works over all control's rectangular area affecting all surrounding controls. (use a transparent png over a photo or a background pattern) I found these visual effects: Push, Reveal, Scroll, Shrink, Stretch, Zoom will be more useful if they do not affect the whole rectangle of the control, just the shape of the control itself What's your opinion? Did you think that all these effects would be more useful if the use only the control shape and not the whole rectangular area? If you are interested in this topic, please check these current bug reports and enhancement requests about visual effects within the Quality Center: http://quality.runrev.com/show_bug.cgi?id=7190 http://quality.runrev.com/show_bug.cgi?id=10539 http://quality.runrev.com/show_bug.cgi?id=11578 http://quality.runrev.com/show_bug.cgi?id=11827 http://quality.runrev.com/show_bug.cgi?id=12415 http://quality.runrev.com/show_bug.cgi?id=12641 Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-unexpected-differences-tp4680529.html Sent from the Revolution - User mailing list archive at Nabble.com. From skip at magicgate.com Tue Jun 17 21:46:37 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Tue, 17 Jun 2014 21:46:37 -0400 Subject: which is faster for searching? In-Reply-To: References: <54E30EBE9DEF4121B6C2604E0C37ED5B@userd204a4d61c> <6035DB99D39144DC8CD778F44EAC8313@userd204a4d61c> Message-ID: Yes, my 500,000 lines of text are about 2000 characters long and has multiple criteria applied against it. The text file that it is analyzing is about 200MB. I am very happy with "a couple of seconds." :) On Tue, Jun 17, 2014 at 8:59 PM, Kay C Lan wrote: > On Wed, Jun 18, 2014 at 4:18 AM, Peter Haworth wrote: > > I put 500,000 lines... > > The repeat loop took 153 ms and the filter took 38ms. > > That's more like it. Skip's 'just a couple of seconds' must have been > for some extremely long lines of difficult data with some very > convoluted search criteria. For me, repeat for each has always been a > ms process until I get well into millions of records. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Tue Jun 17 22:36:05 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 17 Jun 2014 19:36:05 -0700 Subject: Visual Effects unexpected differences In-Reply-To: <1403055046784-4680529.post@n4.nabble.com> References: <1403055046784-4680529.post@n4.nabble.com> Message-ID: Hi Al: What script did you use to to test the effects? Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/17/14 6:30 PM, "Alejandro Tejada" wrote: >Hi all, > >Recently, I was testing the visual effects in Livecode 7 dp6 >and noticed the following: > >1) Barn Door [close/open] visual effect works fine >although is not included in the Dictionary > >2) Visual effects: >Plain, Checkerboard, Venetian Blinds, Wipe, >Barn Door, Dissolve, Iris >works only in the control, without affecting >the rectangular area around the control >(use a transparent png over a photo or >a background pattern) > >3) Visual effects: >Push, Reveal, Scroll, Shrink, Stretch, Zoom >works over all control's rectangular area >affecting all surrounding controls. >(use a transparent png over a photo or >a background pattern) > >I found these visual effects: >Push, Reveal, Scroll, Shrink, Stretch, Zoom >will be more useful if they do not affect >the whole rectangle of the control, just >the shape of the control itself > >What's your opinion? >Did you think that all these effects would be >more useful if the use only the control shape >and not the whole rectangular area? > >If you are interested in this topic, please check >these current bug reports and enhancement requests >about visual effects within the Quality Center: > >http://quality.runrev.com/show_bug.cgi?id=7190 >http://quality.runrev.com/show_bug.cgi?id=10539 >http://quality.runrev.com/show_bug.cgi?id=11578 >http://quality.runrev.com/show_bug.cgi?id=11827 >http://quality.runrev.com/show_bug.cgi?id=12415 >http://quality.runrev.com/show_bug.cgi?id=12641 > >Al > > > > > >-- >View this message in context: >http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-unexpected-d >ifferences-tp4680529.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 Tue Jun 17 23:22:02 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Tue, 17 Jun 2014 20:22:02 -0700 (PDT) Subject: Visual Effects unexpected differences In-Reply-To: References: <1403055046784-4680529.post@n4.nabble.com> Message-ID: <1403061722494-4680532.post@n4.nabble.com> Pick this file from Nabble: LiveCode_Testing_Visual_Effects.zip http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-unexpected-differences-td4680529.html LiveCode_Testing_Visual_Effects.zip -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Visual-Effects-unexpected-differences-tp4680529p4680532.html Sent from the Revolution - User mailing list archive at Nabble.com. From gerry.orkin at gmail.com Wed Jun 18 02:15:49 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Wed, 18 Jun 2014 16:15:49 +1000 Subject: Mobile Styled Text In-Reply-To: <87820229-83EA-455E-9621-12168A5BC378@clearvisiontech.com> References: <87820229-83EA-455E-9621-12168A5BC378@clearvisiontech.com> Message-ID: <98CDAF54-5EEC-477D-BA9F-B1ADEAB9094E@gmail.com> No. g On 18 Jun 2014, at 4:04 am, Dan Friedman wrote: > I'm wondering... Is it possible to display and edit multi-styled text (font sizes, colors, justifications, etc.) in a native multiline control? > > Thanks! > -Dan > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Wed Jun 18 11:09:47 2014 From: vclement at gmail.com (Vaughn Clement) Date: Wed, 18 Jun 2014 08:09:47 -0700 Subject: IOS 8 and xCode Message-ID: How to: The recent beta release of Apple IOS beta 8 and xCode 6, how will this effect LiveCode development? Does the current or coming IDE support IOS 8? If it does support IOS 8, will it also address any content that can be used where "Swift Programming" is used? This means is the IDE going to allow Swift scripting in the IDE? I am asking this because I know HTML can be used in LiveCode. It is a general question to see if it is worth the time to learn Swift programming for development. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From ambassador at fourthworld.com Wed Jun 18 11:41:31 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Wed, 18 Jun 2014 08:41:31 -0700 Subject: which is faster for searching? In-Reply-To: References: Message-ID: <53A1B32B.9040805@fourthworld.com> "Filter" is a wonderful command that's almost always much faster than "repeat for each...", provided you're looking for data across a collection comprised of single-column rows. Once you get to multiple columns and you're searching just one of them, "repeat for each..." scales linearly quite nicely but the performance of "filter" degrades almost geometrically. This is understandable given what regex is designed for: any generalized solution optimized for the programmer's convenience will be doing a lot of work under the hood. Many aspects of LiveCode are seductive that way, leading us to believe that the less typing we're doing the more efficient our code will be. While often true there are many exceptions, and the dynamic compiler can be surprisingly efficient at times. There are even cases where "repeat for each" on simple chunks is faster than array traversal, if the array is nested deeply enough. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From MikeKerner at roadrunner.com Wed Jun 18 13:19:46 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Wed, 18 Jun 2014 13:19:46 -0400 Subject: IOS 8 and xCode In-Reply-To: References: Message-ID: Beta 2 just came out yesterday, and when 7 was in beta, it was very late before LC was willing to support it, so I wouldn't get too excited about installing it on anything other than a play device. On Wed, Jun 18, 2014 at 11:09 AM, Vaughn Clement wrote: > How to: > > The recent beta release of Apple IOS beta 8 and xCode 6, how will this > effect LiveCode development? > > Does the current or coming IDE support IOS 8? > If it does support IOS 8, will it also address any content that can be used > where "Swift Programming" is used? This means is the IDE going to allow > Swift scripting in the IDE? I am asking this because I know HTML can be > used in LiveCode. It is a general question to see if it is worth the time > to learn Swift programming for development. > > Thank you > > Vaughn Clement > > Apps by Vaughn Clement (Support) > *http://www.appsbyvaughnclement.com/tools/home-page/ > * > Skype: vaughn.clement > https://secure.join.me/appsbyvclement > FaceTime: vclement at gmail.com > LogMeIn also avaialble > Call on "ooVoo" at address: vaughnclement or 9282549062 > Ph. 928-254-9062 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From jbv at souslelogo.com Wed Jun 18 13:35:27 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Wed, 18 Jun 2014 20:35:27 +0300 Subject: which is faster for searching? In-Reply-To: <53A1B32B.9040805@fourthworld.com> References: <53A1B32B.9040805@fourthworld.com> Message-ID: <1b3347f1d4d3c73600ad1d182dfb4dc1.squirrel@185.8.104.234> Regarding code such as : repeat for each line j in myVar if item 1 of j > 1 and item 2 of j > tMin and item 3 of j < tMax then end if end repeat I remember a discussion several years ago on this very list mentioning that in the "if" line, the engine would drop evaluation as soon as a false is encountered (which I think is a feature common to many languages now). Therefore carefully organizing the order of the items in each line of myVar can also be a way to preserve the speed of "repeat for each" when complex testing must be done. I wonder how "filter" compares to this... Besides, when very complex testing must be done on several items of each line j, I found that speed can be even more preserved by spliting each line into an array and comparing each array cell to a refernce array... Example : put 1 into Tref1["a"] put 1 into Tref1["b"] put 1 into Tref2[4] put 1 into Tref2[15] put 1 into Tref2[26] repeat for each line j in myVar split j using tab if Tref1[j[1]] is not empty and Tref2[j[2]] is not empty then end if end repeat jbv > "Filter" is a wonderful command that's almost always much faster than > "repeat for each...", provided you're looking for data across a > collection comprised of single-column rows. > > Once you get to multiple columns and you're searching just one of them, > "repeat for each..." scales linearly quite nicely but the performance of > "filter" degrades almost geometrically. > From capellan2000 at gmail.com Wed Jun 18 15:42:04 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Wed, 18 Jun 2014 12:42:04 -0700 (PDT) Subject: [LC 7 dp6] Playing Audioclips in Linux Message-ID: <1403120523978-4680538.post@n4.nabble.com> Hi All, Could LiveCode Linux developers test this stack? https://dl.dropboxusercontent.com/u/3834621/LiveCode_audioclips_fails_under_linux.zip Which audioclips plays fine in your own setup within LiveCode 7 dp6 for Linux? Please, include name and version of your Linux distribution. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/LC-7-dp6-Playing-Audioclips-in-Linux-tp4680538.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Thu Jun 19 02:36:43 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jun 2014 09:36:43 +0300 Subject: Richmond buys an iMac G5 Message-ID: <53A284FB.4020403@gmail.com> 75 Euros, currently running Mac OS 10.5.8 and smoking; may later partition and install Xubuntu on the second bit - especially if the chaps down in the engine room do what they said they would do with the Livecode source code. Could somebody tell me which is the last version of Livecode that will work on Mac PPC? Could there be some sort of overt sign to that affect on the downloads page. Richmond. From sims at ezpzapps.com Thu Jun 19 07:32:30 2014 From: sims at ezpzapps.com (Jim sims) Date: Thu, 19 Jun 2014 12:32:30 +0100 Subject: iOS reference document - iOSBrowser Message-ID: In LC Version 6.6.1, in the Dictionary for iOSBrowser it has: *Note: *For full details of what the UIWebView control is capable of, and background about it see the iOS reference document. 1. Does anyone know how i might find this "iOS reference document"? 2. Does one of the newer versions of LC for iOS contain an even better browser, one with more features or capability? 3. Is there a stack somewhere that demonstrates features of a newer iOS browser? Thanks in advance... sims From mark at sorcery-ltd.co.uk Thu Jun 19 08:53:58 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Thu, 19 Jun 2014 05:53:58 -0700 Subject: IOS 8 and xCode In-Reply-To: References: Message-ID: <1403182438.4412.130580545.1A01A25A@webmail.messagingengine.com> > Does the current or coming IDE support IOS 8? > If it does support IOS 8, will it also address any content that can be > used > where "Swift Programming" is used? This means is the IDE going to allow > Swift scripting in the IDE? Swift is not a scripting language, it is a compiled language like Objective-C. You can't use Objective-C in the IDE and you won't be able to use Swift. It will be possible to write extensions (externals) in Swift but because the engine is C++ they will need a standard C or Objective-C wrapper to be able to talk to the engine. -- Mark Wilcox mark at sorcery-ltd.co.uk From mark at sorcery-ltd.co.uk Thu Jun 19 09:01:52 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Thu, 19 Jun 2014 06:01:52 -0700 Subject: iOS reference document - iOSBrowser In-Reply-To: References: Message-ID: <1403182912.6462.130581873.4E1303E7@webmail.messagingengine.com> > 1. Does anyone know how i might find this "iOS reference document"? [1]https://developer.apple.com/library/ios/documentation/uikit/referenc e/UIWebView_Class/Reference/Reference.html > 2. Does one of the newer versions of LC for iOS contain an even better > browser, one with more features or capability? No, UIWebView has not changed significantly (until iOS 8) and the App Store rules prevent you from shipping your own browser engine. I believe LiveCode is going to be shipping it's own WebKit version on other platforms though. > 3. Is there a stack somewhere that demonstrates features of a newer iOS > browser? No, although there is a new WKWebView class in iOS 8 that allows significantly more interaction between the app and the web content. There are of course no official plans to support it in LiveCode yet. -- Mark Wilcox mark at sorcery-ltd.co.uk References 1. https://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html From sims at ezpzapps.com Thu Jun 19 09:07:06 2014 From: sims at ezpzapps.com (Jim sims) Date: Thu, 19 Jun 2014 14:07:06 +0100 Subject: iOS reference document - iOSBrowser In-Reply-To: <1403182912.6462.130581873.4E1303E7@webmail.messagingengine.com> References: <1403182912.6462.130581873.4E1303E7@webmail.messagingengine.com> Message-ID: Thank you Mark for all these nuggets of information. sims On Thu, Jun 19, 2014 at 2:01 PM, Mark Wilcox wrote: > > 1. Does anyone know how i might find this "iOS reference document"? > > > > [1]https://developer.apple.com/library/ios/documentation/uikit/referenc > e/UIWebView_Class/Reference/Reference.html > > > > > 2. Does one of the newer versions of LC for iOS contain an even > better > > > browser, one with more features or capability? > > > > No, UIWebView has not changed significantly (until iOS 8) and the App > Store rules prevent you from shipping your own browser engine. I > believe LiveCode is going to be shipping it's own WebKit version on > other platforms though. > > > > > 3. Is there a stack somewhere that demonstrates features of a newer > iOS > > > browser? > > > > No, although there is a new WKWebView class in iOS 8 that allows > significantly more interaction between the app and the web content. > There are of course no official plans to support it in LiveCode yet. > > > > -- > > Mark Wilcox > > mark at sorcery-ltd.co.uk > > References > > 1. > https://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.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 m.schonewille at economy-x-talk.com Thu Jun 19 10:09:06 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 19 Jun 2014 16:09:06 +0200 Subject: [OT] M. S. Pease Message-ID: <53A2EF02.8090209@economy-x-talk.com> Dear M.S. Pease, Would you please be so kind to contact support at economy-x-talk.com? We have been trying to contact you by e-mail several times, but we get not reply from you. Please send an e-mail to aforementioned address. If you don't get an (auto-) reply within 24 hours, please try a different e-mail address (no Hotmail). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From vclement at gmail.com Thu Jun 19 10:18:16 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 19 Jun 2014 07:18:16 -0700 Subject: [OT] M. S. Pease In-Reply-To: <53A2EF02.8090209@economy-x-talk.com> References: <53A2EF02.8090209@economy-x-talk.com> Message-ID: Hi Mark What is the subject of this email? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 19, 2014 at 7:09 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Dear M.S. Pease, > > Would you please be so kind to contact support at economy-x-talk.com? We > have been trying to contact you by e-mail several times, but we get not > reply from you. Please send an e-mail to aforementioned address. If you > don't get an (auto-) reply within 24 hours, please try a different e-mail > address (no Hotmail). > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > Installer Maker for LiveCode: > http://qery.us/468 > > Buy my new book "Programming LiveCode for the Real Beginner" > http://qery.us/3fi > > LiveCode on Facebook: > https://www.facebook.com/groups/runrev/ > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From devin_asay at byu.edu Thu Jun 19 10:44:57 2014 From: devin_asay at byu.edu (Devin Asay) Date: Thu, 19 Jun 2014 14:44:57 +0000 Subject: Richmond buys an iMac G5 In-Reply-To: <53A284FB.4020403@gmail.com> References: <53A284FB.4020403@gmail.com> Message-ID: On Jun 19, 2014, at 12:36 AM, Richmond wrote: > 75 Euros, currently running Mac OS 10.5.8 and smoking; may later partition and install Xubuntu > on the second bit - especially if the chaps down in the engine room do what they said they would do > with the Livecode source code. > > Could somebody tell me which is the last version of Livecode > that will work on Mac PPC? > > Could there be some sort of overt sign to that affect on the downloads page. In the release notes for LC 6.6.2 it says OS X 10.5.8 for Intel and PPC is supported. I believe 10.5 and PPC support had to be dropped in LC 6.7 in order to do the Cocoa conversion. Devin Devin Asay Office of Digital Humanities Brigham Young University From bvg at mac.com Thu Jun 19 10:57:17 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Thu, 19 Jun 2014 16:57:17 +0200 Subject: [OT] M. S. Pease In-Reply-To: References: <53A2EF02.8090209@economy-x-talk.com> Message-ID: <73302F2F-38E8-4955-8CE8-BDA23FBC736A@mac.com> I am not sure either. It could be that Mark wants to contact a person, possibly called "M.S. Pease" or similar. I could be wrong of course, maybe It's actually about someone else, or not a quest for contact at all? I wonder what it could be about? Maybe he wants an email, to actually be able to write to the person (or another person) who send him that email. Or he wants to know why he didn't get an email before, and this plea is a way to actually be contacted, ideal via email. On the other hand, maybe he's asking for contact of someone whom he previously had contact, which would mean there's an interruption in communication happening, always a bad thing for someone in the business of communication otherwise known as information technologies. I wonder if the information that he cannot send is also about communication, especially as Mark has made available a old fashioned communication device. Said device has to be sent physically, so proper contact information is crucial for that, and often Mark has asked for people to contact him so he can be able to send them information in form of a device (it's based on paper and called "book" I believe, but I only got one of said devices so I can't know for sure if other people actually get the same as I did). Said that, maybe there's a way to send stuff without knowing where the other person currently is, I'm sure that'd be a very nice thing. Ideally it'd be possible to contact people anywhere at any time, just by knowing they exist, I'm sure it'd be a great way to advertise things. For example one could send everyone on the world information that stickers are cool, and then everyone would know it, because everyone was contacted, no matter where they are. I'm sure everyone would like to know that stickers are cool. I had a short break eating a bread with salami and pickles, and though I'd do a little research, and it seems Mark has done this before! Look here for similar messages! I never would have known without searching! For example: http://lists.runrev.com/pipermail/use-livecode/2014-June/203000.html http://lists.runrev.com/pipermail/use-livecode/2014-May/201675.html I hope Mark will have time to explain the actual meaning of his email himself, so we can be more assured of his intentions. Cheese Bj?rnke On 19 Jun 2014, at 16:18, Vaughn Clement wrote: > Hi Mark > > What is the subject of this email? > > > Thank you > > Vaughn Clement > > On Thu, Jun 19, 2014 at 7:09 AM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Dear M.S. Pease, >> >> Would you please be so kind to contact support at economy-x-talk.com? We >> have been trying to contact you by e-mail several times, but we get not >> reply from you. Please send an e-mail to aforementioned address. If you >> don't get an (auto-) reply within 24 hours, please try a different e-mail >> address (no Hotmail). >> >> -- >> Best regards, >> >> Mark Schonewille From richmondmathewson at gmail.com Thu Jun 19 13:38:33 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 19 Jun 2014 20:38:33 +0300 Subject: Richmond buys an iMac G5 In-Reply-To: References: <53A284FB.4020403@gmail.com> Message-ID: <53A32019.5080003@gmail.com> On 19/06/14 17:44, Devin Asay wrote: > On Jun 19, 2014, at 12:36 AM, Richmond > wrote: > >> 75 Euros, currently running Mac OS 10.5.8 and smoking; may later partition and install Xubuntu >> on the second bit - especially if the chaps down in the engine room do what they said they would do >> with the Livecode source code. >> >> Could somebody tell me which is the last version of Livecode >> that will work on Mac PPC? >> >> Could there be some sort of overt sign to that affect on the downloads page. > In the release notes for LC 6.6.2 it says OS X 10.5.8 for Intel and PPC is supported. I believe 10.5 and PPC support had to be dropped in LC 6.7 in order to do the Cocoa conversion. > > Devin > > Great. Richmond. From jacque at hyperactivesw.com Thu Jun 19 15:26:42 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 19 Jun 2014 14:26:42 -0500 Subject: Diagnosing server error 400 In-Reply-To: References: <539F449A.3000002@hyperactivesw.com> <53A07599.2000106@hyperactivesw.com> Message-ID: <53A33972.1000006@hyperactivesw.com> On 6/17/2014, 3:56 PM, Trevor DeVore wrote: > On Tue, Jun 17, 2014 at 1:06 PM, J. Landman Gay > wrote: > >> On 6/16/2014, 11:08 PM, Trevor DeVore wrote: >>> >>> I think that some XML should be sent back by the server as well. It will >>> contain additional error information about what went wrong. Have you >>> looked >>> at that? >>> >> >> I have looked at it during debugging but since I don't ever get a 400 >> error I haven't seen that particular data. I'll add it to the logging >> though so that the testers have a record, maybe that will show something. >> Thanks. > > > I think that will prove very helpful. The errors in the XML are usually > helpful. It should tell you if the issue is with the signature, key, etc. > I have to thank you for this, Trevor. You were absolutely right. The XML told me that the request was rejected because it had expired. We're using signed URLs set for 15 minutes duration, but this user must have the wrong time zone set on their computer clock because the request was "expiring" hours and hours before they sent it. Thanks so much. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From Nakia.Brewer at westrac.com.au Thu Jun 19 19:58:34 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Thu, 19 Jun 2014 23:58:34 +0000 Subject: Compile IOS Externals Message-ID: <67116DB20798A94285EEE12A67079A284CB2F4E5@MHSEXC02.westrac.com.au> Hi, In the past (Before xCode5) I have been able to compile and use the following external without issue but in xCode5 I get errors that are way beyond my understanding. https://github.com/trevordevore/iosclipboard Would any of the external builders perhaps be interested in getting this to compile for a fee? COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From dfepstein at comcast.net Fri Jun 20 08:54:28 2014 From: dfepstein at comcast.net (dfepstein at comcast.net) Date: Fri, 20 Jun 2014 12:54:28 +0000 (UTC) Subject: Achieving highest resolution output In-Reply-To: <1384291432.332602.1403268838751.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> Message-ID: <1195989007.332627.1403268868693.JavaMail.root@sz0051a.westchester.pa.mail.comcast.net> I hope someone can help me understand printing resolution. If I use LiveCode to generate a PDF that will be printed at 300 dpi, how do I achieve the best output? For vectors, I assume that it makes no difference at what scale I compose the picture. (Is that true?) But suppose I want to print a bit map 1 inch wide. I would tell LiveCode to "print into rect 0,72,0,72" (for example) to indicate that it should be 1 inch square. Will this work better if the original bit map is 300 pixels wide (to match the intended 300 dpi resolution)? Or if it's a multiple of 72, like 288, pixels wide? Further suppose that I want some 9 point text on my 1 inch square. For the case where I'm printing 288 pixels of width into a rectangle that is 72 wide, it seems clear I can compose with 36 point text. But if I'm printing 300 pixels into that 72 wide rectangle, will 36 be slightly too small? Should I use 37 point text? Is composing at 300 pixels better for the bit map quality but 288 pixels better for getting the right the text size? Thanks for any guidance. David Epstein From lists at mangomultimedia.com Fri Jun 20 10:22:40 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 20 Jun 2014 10:22:40 -0400 Subject: Diagnosing server error 400 In-Reply-To: <53A33972.1000006@hyperactivesw.com> References: <539F449A.3000002@hyperactivesw.com> <53A07599.2000106@hyperactivesw.com> <53A33972.1000006@hyperactivesw.com> Message-ID: On Thu, Jun 19, 2014 at 3:26 PM, J. Landman Gay wrote: > > I have to thank you for this, Trevor. You were absolutely right. The XML > told me that the request was rejected because it had expired. We're using > signed URLs set for 15 minutes duration, but this user must have the wrong > time zone set on their computer clock because the request was "expiring" > hours and hours before they sent it. > You're welcome. -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From vclement at gmail.com Fri Jun 20 11:23:59 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 20 Jun 2014 08:23:59 -0700 Subject: Image control in a Background Message-ID: Hi All I asked this question recently and I did not get any responses. I have a substack with a background group where there is an Image Control is being populated using the mobilePickPhoto "library" The image is added to the control correctly and displays, but if I leave the card and return the image is gone. To solve this the image is stored in the folder on in the app as per this script: *on* mouseUp /* the image from mobilePickPhoto uses the template image construct set it off screen so we don't see ift flash */ *set* the loc of the templateImage to -10000,-10000 /*choose a photo*/ mobilePickPhoto "library" *lock* screen *if* the result <> "cancel" *then* /* make the filepath to save the chosen image*/ *put* specialFolderPath("documents") & "/photos/" & the short ID of this card into thePath /* put the image into a file in the photos folder */ *put* the text of the last image of this card into URL("binfile:" & thePath) /*set the loc of image 1 to the loc of group "picgroup' so it will align*/ *--set the loc of image "imageField1" to the loc of group "picgroup"* /* show the image on the card */ *set* the filename of image "ImageField1" of this card to thePath /* destroy the image imported from the library */ *delete* the last image of this card *end* *if* *end* mouseUp The image control is supposed load when the card opens and the last photo is to be displayed? *on* openCard *set* the defaultfolder to specialFolderPath ("documents") & "/photos/" *--answer the files* *if* the number of this card >1 *then* *set* the defaultfolder to specialFolderPath ("documents") & "/photos/" *then* *if* there is a file the short id of this card *then* *put* specialFolderPath ("documents") & "/photos/" & the short ID of this card into thePath *set* the filename of image "imegeField1" of this card to thepath *end* *if* *end* *if* *end* openCard Several different changes were tried and the image still will not load into the card as scripted above. Can anyone reference the information or see what might cause this issue? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From skip at magicgate.com Fri Jun 20 12:09:03 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Fri, 20 Jun 2014 12:09:03 -0400 Subject: Check for running application in Windows Message-ID: Good afternoon! Is there a way to check to see if there is a program currently running on a Windows machine? For instance, I want to verify that a 3rd party piece of software is currently running (not just installed) before proceeding with my LC script. As usual, your comments and suggestions are always appreciated! SKIP From paul at researchware.com Fri Jun 20 12:14:09 2014 From: paul at researchware.com (Paul Dupuis) Date: Fri, 20 Jun 2014 12:14:09 -0400 Subject: Check for running application in Windows In-Reply-To: References: Message-ID: <53A45DD1.8080902@researchware.com> On 6/20/2014 12:09 PM, Magicgate Software - Skip Kimpel wrote: > Good afternoon! > > Is there a way to check to see if there is a program currently running on a > Windows machine? For instance, I want to verify that a 3rd party piece of > software is currently running (not just installed) before proceeding with > my LC script. > > As usual, your comments and suggestions are always appreciated! > > SKIP Use the function below to return a cr delimited list of running programs and then filter the list to see if the app you are interested is on it or not. function runningPrograms local myList, myColPos, myNewList switch platform() case "MacOS" -- OSX Only 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 break case "Win32" set the hideConsoleWindows to true put shell("tasklist /V /FO ""e&"CSV""e) into myList -- or use the pv command set the hideConsoleWindows to false delete first line of myList -- remove header repeat for each line myLine in myList put item 1 of myLine & cr after myNewList -- item 1 = "programname.exe" end repeat return myNewList break default return empty end switch end runningPrograms From skip at magicgate.com Fri Jun 20 12:46:29 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Fri, 20 Jun 2014 12:46:29 -0400 Subject: Check for running application in Windows In-Reply-To: <53A45DD1.8080902@researchware.com> References: <53A45DD1.8080902@researchware.com> Message-ID: Paul, you are the BEST! Thank you... it works perfectly. SKIP On Fri, Jun 20, 2014 at 12:14 PM, Paul Dupuis wrote: > On 6/20/2014 12:09 PM, Magicgate Software - Skip Kimpel wrote: > > Good afternoon! > > > > Is there a way to check to see if there is a program currently running > on a > > Windows machine? For instance, I want to verify that a 3rd party piece > of > > software is currently running (not just installed) before proceeding with > > my LC script. > > > > As usual, your comments and suggestions are always appreciated! > > > > SKIP > > Use the function below to return a cr delimited list of running programs > and then filter the list to see if the app you are interested is on it > or not. > > function runningPrograms > local myList, myColPos, myNewList > switch platform() > case "MacOS" -- OSX Only > 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 > break > case "Win32" > set the hideConsoleWindows to true > put shell("tasklist /V /FO ""e&"CSV""e) into myList -- or > use the pv command > set the hideConsoleWindows to false > delete first line of myList -- remove header > repeat for each line myLine in myList > put item 1 of myLine & cr after myNewList -- item 1 = > "programname.exe" > end repeat > return myNewList > break > default > return empty > end switch > end runningPrograms > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 20 13:02:41 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 20 Jun 2014 10:02:41 -0700 Subject: Check for running application in Windows In-Reply-To: <53A45DD1.8080902@researchware.com> References: <53A45DD1.8080902@researchware.com> Message-ID: <21486664697.20140620100241@ahsoftware.net> Paul- Friday, June 20, 2014, 9:14:09 AM, you wrote: > Use the function below to return a cr delimited list of running programs > and then filter the list to see if the app you are interested is on it > or not. Nice. Note that the OSX shell command should actually be put shell("ps xcw") into myList (without the "-") and it works on linux as well. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jacque at hyperactivesw.com Fri Jun 20 15:13:14 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jun 2014 14:13:14 -0500 Subject: Image control in a Background In-Reply-To: References: Message-ID: <53A487CA.3010205@hyperactivesw.com> On 6/20/2014, 10:23 AM, Vaughn Clement wrote: > The image control is supposed load when the card opens and the last photo > is to be displayed? > > *on* openCard > > *set* the defaultfolder to specialFolderPath ("documents") & "/photos/" > > *--answer the files* > > *if* the number of this card >1*then* > > *set* the defaultfolder to specialFolderPath ("documents") & > "/photos/"*then* > > *if* there is a file the short id of this card*then* > > *put* specialFolderPath ("documents") & "/photos/" & the short > ID of this card into thePath > > *set* the filename of image "imegeField1" of this card to > thepath > > *end* *if* > > *end* *if* > > *end* openCard Is this a direct copy/paste? This line is malformed: set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <-- Remove the trailing "then". Also, the image name is misspelled as "imegeField1" ("e" rather than "a") which is more likely the reason for the problem. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From simon at asato-media.com Fri Jun 20 15:16:25 2014 From: simon at asato-media.com (Simon) Date: Fri, 20 Jun 2014 12:16:25 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: Message-ID: <1403291785035-4680559.post@n4.nabble.com> Hi Vaughn, Aside from a spelling mistake just add parentheses around all the folder paths e.g. put (specialFolderPath("documents") & "/photos/" & the short ID of this card) into thePath and then delete the current filename on mouseUp --/ the image from mobilePickPhoto uses the template image construct --set it off screen so we don't see ift flash / set the loc of the templateImage to -10000,-10000 set the filename of image "imageField1" of this card to "" Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680559.html Sent from the Revolution - User mailing list archive at Nabble.com. From mark at sorcery-ltd.co.uk Fri Jun 20 16:28:06 2014 From: mark at sorcery-ltd.co.uk (Mark Wilcox) Date: Fri, 20 Jun 2014 13:28:06 -0700 Subject: Compile IOS Externals In-Reply-To: <67116DB20798A94285EEE12A67079A284CB2F4E5@MHSEXC02.westrac.com.au> References: <67116DB20798A94285EEE12A67079A284CB2F4E5@MHSEXC02.westrac.com.au> Message-ID: <1403296086.7139.131129401.3C2D730E@webmail.messagingengine.com> Hi, This external is only a couple of lines of code - I very much doubt it doesn't compile, you probably have a linking problem. If you post the errors then maybe it'll be easy to solve and it might also provide valuable learning for other externals. -- Mark Wilcox mark at sorcery-ltd.co.uk On Thu, Jun 19, 2014, at 04:58 PM, Nakia Brewer wrote: > Hi, > > In the past (Before xCode5) I have been able to compile and use the > following external without issue but in xCode5 I get errors that are way > beyond my understanding. > https://github.com/trevordevore/iosclipboard > > Would any of the external builders perhaps be interested in getting this > to compile for a fee? > > > COPYRIGHT / DISCLAIMER: This message and/or including attached files may > contain confidential proprietary or privileged information. If you are > not the intended recipient, you are strictly prohibited from using, > reproducing, disclosing or distributing the information contained in this > email without authorisation from WesTrac. If you have received this > message in error please contact WesTrac on +61 8 9377 9444. We do not > accept liability in connection with computer virus, data corruption, > delay, interruption, unauthorised access or unauthorised amendment. We > reserve the right to monitor all e-mail communications. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Fri Jun 20 17:43:34 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 20 Jun 2014 14:43:34 -0700 Subject: Image control in a Background In-Reply-To: <1403291785035-4680559.post@n4.nabble.com> References: <1403291785035-4680559.post@n4.nabble.com> Message-ID: Hi Thanks for the help, my dyslectic eyes are subject to misspelling and not even able to see the error. Great for scripting right! I've lived with it all my life? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Jun 20, 2014 at 12:16 PM, Simon wrote: > Hi Vaughn, > Aside from a spelling mistake just add parentheses around all the folder > paths > e.g. > put (specialFolderPath("documents") & "/photos/" & the short ID of this > card) into thePath > > and then delete the current filename > on mouseUp > --/ the image from mobilePickPhoto uses the template image construct > --set it off screen so we don't see ift flash / > set the loc of the templateImage to -10000,-10000 > set the filename of image "imageField1" of this card to "" > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680559.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 bvlahos at mac.com Fri Jun 20 19:12:14 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Fri, 20 Jun 2014 16:12:14 -0700 Subject: Windows pathing question Message-ID: <4DA4829D-2647-4328-9C3E-8D580A3666AD@mac.com> I want to sent a command line command to a Windows executable to pass information and a command to it so that the application dials the phone number I send it (it is a telephony application). The command works fine if I specify the complete path. Is there a way I can issue the command without explicitly defining the path or asking the user to find the navigate to the application and I store the path? Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) From pete at lcsql.com Fri Jun 20 21:18:59 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 20 Jun 2014 18:18:59 -0700 Subject: Nested Repeat loops Message-ID: Wondering if anyone has an elegant way of exiting all the way out of a set of nested repeat loops., e.g: repeat for... repeat for... repeat for.... repeat for if ..... then end repeat end repeat end repeat end repeat Right now, I set a flag to true when the exit condition is met then test it in the stuff. Works fine but feels a little kludgy. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From dochawk at gmail.com Fri Jun 20 21:34:05 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Fri, 20 Jun 2014 18:34:05 -0700 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: On Fri, Jun 20, 2014 at 6:18 PM, Peter Haworth wrote: > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat loops., e.g: > It's a badly needed language addition, and one of the things I want from Fortran. Then again, I actually used a GOTO in the software for my dissertation, after realizing it was the rare case one was called for, and had spent hours making parallel sets of code to avoid it. (not to mention what I did with a trailing preposition in that last sentence!) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Fri Jun 20 21:55:21 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 20 Jun 2014 20:55:21 -0500 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: <336a1cae-eb2a-4069-ac5e-2ddbada9dc32@email.android.com> I've needed that too occasionally but I've always had to set a flag like you do. We need an "exit all repeats" command. On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: >Wondering if anyone has an elegant way of exiting all the way out of a >set >of nested repeat loops. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jhj at jhj.com Fri Jun 20 23:16:20 2014 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 20 Jun 2014 20:16:20 -0700 Subject: Nested Repeat loops In-Reply-To: <336a1cae-eb2a-4069-ac5e-2ddbada9dc32@email.android.com> References: <336a1cae-eb2a-4069-ac5e-2ddbada9dc32@email.android.com> Message-ID: Its not always easy, or worth the trouble, but putting the whole nested structure in a separate handler lets you use the exit command. .Jerry On Jun 20, 2014, at 6:55 PM, J. Landman Gay wrote: > I've needed that too occasionally but I've always had to set a flag like you do. We need an "exit all repeats" command. > > On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: >> Wondering if anyone has an elegant way of exiting all the way out of a >> set >> of nested repeat loops. > -- > 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 warren at warrensweb.us Fri Jun 20 23:21:18 2014 From: warren at warrensweb.us (Warren Samples) Date: Fri, 20 Jun 2014 22:21:18 -0500 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: <53A4FA2E.8050100@warrensweb.us> On 06/20/2014 08:18 PM, Peter Haworth wrote: > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat loops., e.g: > > repeat for... > repeat for... > repeat for.... > repeat for > if ..... then here> > end repeat > > end repeat > > end repeat > > end repeat > > Right now, I set a flag to true when the exit condition is met then test it > in the stuff. Works fine but feels a little kludgy. > > Pete Maybe I've completely failed to understand what it is you don't like about your current method, but... Would it be practical and feel cleaner to wrap your nested repeats inside a command, say,'doLoop'. When your 'if' condition in the nth repeat is met, you 'exit doLoop'. You only have to reference and check a condition once this way and you cleanly exit the entire nested structure exactly when and where the condition is found. A useless example that works: Create a card with four fields and a button. Put this script in the button: on mouseUp doLoop answer "exited loop" end mouseUp on doLoop repeat 10 times add 1 to field 1 repeat 10 times add 1 to field 2 repeat 10 times add 1 to field 3 repeat 10 times if field 3 is 3 then exit doLoop add 1 to field 4 end repeat end repeat end repeat end repeat end doLoop Warren From gcanyon at gmail.com Sat Jun 21 00:41:07 2014 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 20 Jun 2014 23:41:07 -0500 Subject: Nested Repeat loops In-Reply-To: <336a1cae-eb2a-4069-ac5e-2ddbada9dc32@email.android.com> References: <336a1cae-eb2a-4069-ac5e-2ddbada9dc32@email.android.com> Message-ID: It's hard to say without context, but one way to handle things like this is to fold it all into a function/handler. Then if you want to exit you can exit/return. On Fri, Jun 20, 2014 at 8:55 PM, J. Landman Gay wrote: > I've needed that too occasionally but I've always had to set a flag like > you do. We need an "exit all repeats" command. > > On June 20, 2014 8:18:59 PM CDT, Peter Haworth wrote: > >Wondering if anyone has an elegant way of exiting all the way out of a > >set > >of nested repeat loops. > -- > 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 jbv at souslelogo.com Sat Jun 21 02:02:23 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Sat, 21 Jun 2014 09:02:23 +0300 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: In some cases I managed to replace "repeat for" with "repeat while" and thus eliminating the flag and the test on it since the condition is in the repeat loop itself. jbv > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat loops., e.g: > > repeat for... > repeat for... > repeat for.... > repeat for > if ..... then here> > end repeat > > end repeat > > end repeat > > end repeat > > Right now, I set a flag to true when the exit condition is met then test > it > in the stuff. Works fine but feels a little kludgy. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Sat Jun 21 02:33:43 2014 From: richmondmathewson at gmail.com (Richmond) Date: Sat, 21 Jun 2014 09:33:43 +0300 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: <53A52747.60405@gmail.com> On 21/06/14 04:34, Dr. Hawkins wrote: > On Fri, Jun 20, 2014 at 6:18 PM, Peter Haworth wrote: > >> Wondering if anyone has an elegant way of exiting all the way out of a set >> of nested repeat loops., e.g: >> > It's a badly needed language addition, and one of the things I want from > Fortran. > > Then again, I actually used a GOTO in the software for my dissertation, > after realizing it was the rare case one was called for, and had spent > hours making parallel sets of code to avoid it. (not to mention what I did > with a trailing preposition in that last sentence!) > > This is where some sort of "get out quickly" phrase is needed. Yesterday one of my 12 year old 'victims' was getting her feet wet with her first SWITCH statement, and got badly bogged down, and we found that exit switch seemed to work a bit better than break the 'funny' thing is that the Dictionary (err: "Hitch Hiker's Guide to the Galaxy") says they are synonymous; but, as we linguists say 'no 2 words are ever completely synonymous'. I suppose a GOTO statement would be really good; especially as, although Livecode scripts supposedly don't have line numbers, there are those numbers down the left-hand side :/ The only bother about those numbers is that every time one pops a bit of code into one's script they will refer to different places. This sort of thing might not be bad: put 1 into XX repeat until XX>7 do something put 1 into ZZ repeat until ZZ>7 do something else put 1 into YY repeat until YY>7 ask "What colour are you socks?" if it contains "purple" then goto %%% end if add 1 to YY end repeat add 1 to ZZ end repeat add 1 to XX end repeat %%% Richmond. From john at splash21.com Sat Jun 21 03:21:36 2014 From: john at splash21.com (John Craig) Date: Sat, 21 Jun 2014 08:21:36 +0100 Subject: Nested Repeat loops In-Reply-To: References: Message-ID: <53A53280.9030701@splash21.com> You could wrap the repeats in a try structure - stick the following script in a button... on mouseUp try repeat with i = 1 to 10 repeat with j = 1 to 10 repeat with k = 1 to 10 put i && j && k wait for 2 millisecs with messages if the shiftKey is down then throw "exit" end repeat end repeat end repeat end try end mouseUp On 21/06/2014 02:18, Peter Haworth wrote: > Wondering if anyone has an elegant way of exiting all the way out of a set > of nested repeat loops. From pmbrig at gmail.com Sat Jun 21 09:47:29 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Sat, 21 Jun 2014 09:47:29 -0400 Subject: Nested Repeat loops In-Reply-To: <53A52747.60405@gmail.com> References: <53A52747.60405@gmail.com> Message-ID: <3CE4C105-25B0-4184-8706-C7AEA8757614@gmail.com> On Jun 21, 2014, at 2:33 AM, Richmond wrote: > put 1 into XX > repeat until XX>7 > do something > put 1 into ZZ > repeat until ZZ>7 > do something else > put 1 into YY > repeat until YY>7 > ask "What colour are you socks?" > if it contains "purple" then > goto %%% > end if > add 1 to YY > end repeat > add 1 to ZZ > end repeat > add 1 to XX > end repeat > %%% I like this. The syntax could be go %n -- eg, %4 then the execution would jump to the statement %n -- eg, %4 (Which would allow really flexible GOTO equivalents that would be independent of script line numbering. I always struggled with the Fortran GOTO statements, since I was always having to renumber my lines when I revised my programs.) Enhancement request, anyone? -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From ambassador at fourthworld.com Sat Jun 21 10:22:37 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sat, 21 Jun 2014 07:22:37 -0700 Subject: Nested Repeat loops In-Reply-To: <3CE4C105-25B0-4184-8706-C7AEA8757614@gmail.com> References: <3CE4C105-25B0-4184-8706-C7AEA8757614@gmail.com> Message-ID: <53A5952D.8010202@fourthworld.com> Peter M. Brigham wrote: > On Jun 21, 2014, at 2:33 AM, Richmond wrote: > >> put 1 into XX >> repeat until XX>7 >> do something >> put 1 into ZZ >> repeat until ZZ>7 >> do something else >> put 1 into YY >> repeat until YY>7 >> ask "What colour are you socks?" >> if it contains "purple" then >> goto %%% >> end if >> add 1 to YY >> end repeat >> add 1 to ZZ >> end repeat >> add 1 to XX >> end repeat >> %%% > > I like this. The syntax could be > go %n -- eg, %4 > > then the execution would jump to the statement > %n -- eg, %4 > > (Which would allow really flexible GOTO equivalents that would be independent of script line numbering. I always struggled with the Fortran GOTO statements, since I was always having to renumber my lines when I revised my programs.) > > Enhancement request, anyone? At the RevLive conference in Vegas a few yeas back, Robert Cailliau's opening keynote covered some of the most adventurous feature requests I've ever heard anyone suggest for xTalks. Among them was the notion of named control structures, in part for exactly the reason covered in this thread, the desire to exit a specific loop when loops are nested. I can't recall the specifics of his proposed syntax, but I remember being impressed by how natural it seemed. Maybe it was along the lines of: repeat with i = 1 to tSomething named "MySomethingLoop" repeat with j = 1 to tSomethingElse named "MyOtherLoop" DoSomethingWith i,j exit "MySomethingLoop" end repeat end repeat With named control structures we'd never need to worry about line numbers. I'm not sure if that was submitted as a feature request, but IMO it should be. And it would be cool to have just about everything else he proposed go into the DB as well - all of it was valuable, very forward-thinking, reflecting the best of many other languages, all presented in a very xTalk way. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From Mark_Smith at cpe.umanitoba.ca Sat Jun 21 10:57:44 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sat, 21 Jun 2014 07:57:44 -0700 (PDT) Subject: SQL Join question Message-ID: <1403362664255-4680574.post@n4.nabble.com> I have two tables A and B, both with the same structure (about 50 columns each). I would like to combine them into a single table (ie. rows from Table A followed by rows from Table B). Does anyone know of an SQL statement that will do that? Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.html Sent from the Revolution - User mailing list archive at Nabble.com. From john at splash21.com Sat Jun 21 11:56:51 2014 From: john at splash21.com (John Craig) Date: Sat, 21 Jun 2014 16:56:51 +0100 Subject: SQL Join question In-Reply-To: <1403362664255-4680574.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: <53A5AB43.8010602@splash21.com> What database are you using? The following should work with MySL (and maybe others) If tableA was empty or both tables didn't have any overlapping primary key values, then this would work, but I'm assuming there's a primary key in there that would mess things up. INSERT INTO tableA SELECT * FROM tableB If you have an auto incrementing primary key 'id' as the first field in both tables... INSERT INTO tableA SELECT 0, field1, field2, field3, etc... FROM tableB If you want to overwrite any conflicting records in tableA with the records from tableB... REPLACE INTO tableA SELECT * FROM tableB HTH On 21/06/2014 15:57, Mark Smith wrote: > I have two tables A and B, both with the same structure (about 50 columns > each). I would like to combine them into a single table (ie. rows from Table > A followed by rows from Table B). Does anyone know of an SQL statement that > will do that? > > Thanks > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.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 john at splash21.com Sat Jun 21 11:59:16 2014 From: john at splash21.com (John Craig) Date: Sat, 21 Jun 2014 16:59:16 +0100 Subject: SQL Join question In-Reply-To: <53A5AB43.8010602@splash21.com> References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> Message-ID: <53A5ABD4.9070405@splash21.com> I really should have started with '0, field2' in the example below - assuming field 1 is the primary key.. > If you have an auto incrementing primary key 'id' as the first field > in both tables... > INSERT INTO tableA SELECT 0, field1, field2, field3, etc... FROM tableB > From pete at lcsql.com Sat Jun 21 12:04:06 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 09:04:06 -0700 Subject: SQL Join question In-Reply-To: <1403362664255-4680574.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: SELECT * FROM TableA UNION SELECT * FROM TableB Both tables must have the same number of columns. You'll end up with separate Records from each table so if you need to differentiate between them and there isn't a column that does that, you could do something like SELECT 'A',* FROM tableA UNION SELECT 'B',* FROM tableB You'll probably need to sort the Records so the related entries appear together assuming the two tables each have a column that relate them to each other. If there is a column that ties the tables together then SELECT tableA.*,tableB.* FROM tableA JOIN tableB ON tableB.keycolumn=tableA.keycolumn Pete lcSQL Software On Jun 21, 2014 7:57 AM, "Mark Smith" wrote: > I have two tables A and B, both with the same structure (about 50 columns > each). I would like to combine them into a single table (ie. rows from > Table > A followed by rows from Table B). Does anyone know of an SQL statement that > will do that? > > Thanks > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Jun 21 12:29:17 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 09:29:17 -0700 Subject: SQL Join question In-Reply-To: <1403362664255-4680574.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: Forget my earlier post, thought you were wanting to select not insert. John's INSERT...... SELECT is the way to do it. Pete lcSQL Software On Jun 21, 2014 7:57 AM, "Mark Smith" wrote: > I have two tables A and B, both with the same structure (about 50 columns > each). I would like to combine them into a single table (ie. rows from > Table > A followed by rows from Table B). Does anyone know of an SQL statement that > will do that? > > Thanks > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Jun 21 13:03:44 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 10:03:44 -0700 Subject: Nested Repeat loops In-Reply-To: <53A53280.9030701@splash21.com> References: <53A53280.9030701@splash21.com> Message-ID: Thanks for all the suggestions. I like the idea of putting the whole nest of repeats in a separate handler as far as the current capabilities of the language, but I really like the idea in Richard's email to have the ability tp name each loop then exit out of a named loop. Is there a QCC report on that already? If not, I'll put one in. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin > From pete at lcsql.com Sat Jun 21 13:19:14 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 10:19:14 -0700 Subject: SQL Join question In-Reply-To: References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: Just looking at this again, I don't think the primary key column is an issue if the goal is to put all tableB rows into tableA. You'll have to enumerate all the tableA and tableB columns omitting the primary key column for each one: INSERT INTO tableA (colA1,colA2,colA3.....,colAn) SELECT colB1,ColB2,ColB3......,ColBn FROM tableB ... where the primary key column isn't named for either table. That way a new primary key value will be created automatically for each new row. All that, of course, assuming there is an INTEGER PRIMARY KEY column defined in tableA As an aside, it isn't necessary to include AUTOINCREMENT on the primary key column to have it automatically calculated, at least in SQLite, all that's needed is to define the column as INTEGER PRIMARY KEY. With no AUTOINCREMENT, a newly inserted row will usually get the next highest primary key value but there are exceptions. For example, if the highest possible primary key value has been reached, then any value made available by the deletion of rows will be used. With AUTOINCREMENT, every new row is guaranteed to have a primary key value 1 higher than the previous highest value so if you reach the highest possible primary key value and then insert a new row, you'll get an error. There's really isn't a practical difference since I think the maximum possible highest key value is 2 to the power of 64. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 9:29 AM, Peter Haworth wrote: > Forget my earlier post, thought you were wanting to select not insert. > John's INSERT...... SELECT is the way to do it. > > Pete > lcSQL Software > On Jun 21, 2014 7:57 AM, "Mark Smith" wrote: > >> I have two tables A and B, both with the same structure (about 50 columns >> each). I would like to combine them into a single table (ie. rows from >> Table >> A followed by rows from Table B). Does anyone know of an SQL statement >> that >> will do that? >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.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 hello at simonsmith.co Sat Jun 21 14:08:45 2014 From: hello at simonsmith.co (Simon Smith) Date: Sat, 21 Jun 2014 20:08:45 +0200 Subject: Windows pathing question In-Reply-To: <4DA4829D-2647-4328-9C3E-8D580A3666AD@mac.com> References: <4DA4829D-2647-4328-9C3E-8D580A3666AD@mac.com> Message-ID: Would adding the path of the exe to the environmental variables work? On Sat, Jun 21, 2014 at 1:12 AM, Bill Vlahos wrote: > I want to sent a command line command to a Windows executable to pass > information and a command to it so that the application dials the phone > number I send it (it is a telephony application). The command works fine if > I specify the complete path. > > Is there a way I can issue the command without explicitly defining the > path or asking the user to find the navigate to the application and I store > the path? > > Bill Vlahos > _________________ > InfoWallet (http://www.infowallet.com) is about keeping your important > life information with you, accessible, and secure. > lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) > RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From alex at tweedly.org Sat Jun 21 18:00:54 2014 From: alex at tweedly.org (Alex Tweedly) Date: Sat, 21 Jun 2014 23:00:54 +0100 Subject: Nested Repeat loops In-Reply-To: <53A5952D.8010202@fourthworld.com> References: <3CE4C105-25B0-4184-8706-C7AEA8757614@gmail.com> <53A5952D.8010202@fourthworld.com> Message-ID: <53A60096.3020700@tweedly.org> On 21/06/2014 15:22, Richard Gaskin wrote: > At the RevLive conference in Vegas a few yeas back, Robert Cailliau's > opening keynote covered some of the most adventurous feature requests > I've ever heard anyone suggest for xTalks. > > Among them was the notion of named control structures, in part for > exactly the reason covered in this thread, the desire to exit a > specific loop when loops are nested. > > I can't recall the specifics of his proposed syntax, but I remember > being impressed by how natural it seemed. Maybe it was along the > lines of: > > repeat with i = 1 to tSomething named "MySomethingLoop" > repeat with j = 1 to tSomethingElse named "MyOtherLoop" > DoSomethingWith i,j > exit "MySomethingLoop" > end repeat > end repeat > > With named control structures we'd never need to worry about line > numbers. > > I'm not sure if that was submitted as a feature request, but IMO it > should be. And it would be cool to have just about everything else he > proposed go into the DB as well - all of it was valuable, very > forward-thinking, reflecting the best of many other languages, all > presented in a very xTalk way. I believe it would be even better to (be able to) name both ends of the control structure, and thereby get some extra help from the compiler if there was any mismatch, as well as a better visual clue when reading the code. (Without this, when you see an "exit repeat 'name'" statement you need to look backwards to see the named control structure, and then forwards to find the matching end; far easier to have the name at the end as well). repeat for each key K in myArray named "arrayloop" repeat with i = 1 to 1000 if someFunc(K,i) then doit K, i next repeat "arrayloop" end if end repeat if something() then exit repeat "arrayloop" end repeat named "arrayloop IMO, either or both named clauses should be optional - no need to put in both unless you choose to do the extra work for the extra convenience of compiler checks, cf. explicitvariables. -- Alex. From vclement at gmail.com Sat Jun 21 20:41:58 2014 From: vclement at gmail.com (Vaughn Clement) Date: Sat, 21 Jun 2014 17:41:58 -0700 Subject: Image control in a Background In-Reply-To: <1403291785035-4680559.post@n4.nabble.com> References: <1403291785035-4680559.post@n4.nabble.com> Message-ID: Hi Simon I found the following in the dictionary: iOS Note: iOS imposes strict controls over what you can and cannot access. Each application in iOS is stored in its own 'sandbox' folder (referred to as the home folder). An application is free to *read* and *write* files within this folder and its descendants, but it is not allowed to access anything outside of the 'sandbox'. *Examples: * specialFolderPath("Preferences") set the defaultFolder to specialFolderPath("desktop") put specialFolderPath("asup") into appSupportFolder put url ("file:" & specialFolderPath("engine") & slash & "foo.txt") into tFileContents set the folder to specialFolderPath("engine") & slash & "myimages" put the files into tMyImages Use the *specialFolderPath* function to place preferences in the Preferences folder, save files to the Documents folder, find out which files are installed in the System or Fonts folders, and so on. *Parameters:* folderIdentifier - One of the items below. ******** When I edit the script to add the " EXAMPLE; put url ("file:" & specialFolderPath("engine") & slash & "foo.txt") into tFileContents the script gives and error. ************* J. Landman Gay I edited the spelling error, and the image is now retained in the group image control for the card it was added too. The problem is all of the cards now have the same image that was added on the first card? The image on each card background needs to retain the one that was added on that card. Is the a setting or a script issue? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Jun 20, 2014 at 12:16 PM, Simon wrote: > Hi Vaughn, > Aside from a spelling mistake just add parentheses around all the folder > paths > e.g. > put (specialFolderPath("documents") & "/photos/" & the short ID of this > card) into thePath > > and then delete the current filename > on mouseUp > --/ the image from mobilePickPhoto uses the template image construct > --set it off screen so we don't see ift flash / > set the loc of the templateImage to -10000,-10000 > set the filename of image "imageField1" of this card to "" > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680559.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sat Jun 21 20:43:04 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 17:43:04 -0700 Subject: specialfolderpath Message-ID: How do I get the location of the application folder using specialfolderpath? With LC 6.6.2 on a Mac, specialfolderpath("Applications") returns "/Users//Library/Application Support", not the path to the applications folder. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From mkoob at rogers.com Sat Jun 21 21:04:28 2014 From: mkoob at rogers.com (Martin Koob) Date: Sat, 21 Jun 2014 18:04:28 -0700 (PDT) Subject: specialfolderpath In-Reply-To: References: Message-ID: <1403399068382-4680585.post@n4.nabble.com> You can use 4 digit codes http://www.sonsothunder.com/devres/livecode/tips/file010.htm The application folder is apps specialfolderpath("apps") Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680585.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sat Jun 21 21:30:17 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 21 Jun 2014 18:30:17 -0700 Subject: specialfolderpath In-Reply-To: <1403399068382-4680585.post@n4.nabble.com> References: <1403399068382-4680585.post@n4.nabble.com> Message-ID: Thanks,added it to my useful bookmarks. Seems like the dictionary should include all that info instead of the very short list that's in there right now. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 6:04 PM, Martin Koob wrote: > You can use 4 digit codes > > http://www.sonsothunder.com/devres/livecode/tips/file010.htm > > The application folder is apps > > specialfolderpath("apps") > > > Martin > > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680585.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 mkoob at rogers.com Sat Jun 21 21:41:52 2014 From: mkoob at rogers.com (Martin Koob) Date: Sat, 21 Jun 2014 18:41:52 -0700 (PDT) Subject: specialfolderpath In-Reply-To: References: Message-ID: <1403401312103-4680587.post@n4.nabble.com> That looks like a bug. I found that almost anything you type that is not one of the proper terms will return /Users//Library/Application Support Try specialfolderpath("Aardvark") or specialfolderpath("elvis is alive") You will get: /Users//Library/Application Support You want to report this as a bug? You can get applications and the application support folder that is in the /Library folder as well with the four character codes apps - Applications folder - /Applications asup - Applications support - /Library/Application Support These and the others listed in Ken Ray's page http://www.sonsothunder.com/devres/livecode/tips/file010.htm> are not listed in the docs. Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680587.html Sent from the Revolution - User mailing list archive at Nabble.com. From mkoob at rogers.com Sat Jun 21 21:43:48 2014 From: mkoob at rogers.com (Martin Koob) Date: Sat, 21 Jun 2014 18:43:48 -0700 (PDT) Subject: specialfolderpath In-Reply-To: References: <1403399068382-4680585.post@n4.nabble.com> Message-ID: <1403401428563-4680588.post@n4.nabble.com> Yes the docs should have Those listed. You can report it as a documentation bug in the QA centre Martin -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680588.html Sent from the Revolution - User mailing list archive at Nabble.com. From m.schonewille at economy-x-talk.com Sun Jun 22 04:31:21 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Sun, 22 Jun 2014 10:31:21 +0200 Subject: specialfolderpath In-Reply-To: References: <1403399068382-4680585.post@n4.nabble.com> Message-ID: <53A69459.1020602@economy-x-talk.com> Hi, A more complete list for Mac OS X and Windows is in my book. Note that you can also use absolute paths like /Applications "/Application Support" and relative paths like ~/Applications "~/Application Support" This may make it easier to get to the right folder. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/22/2014 03:30, Peter Haworth wrote: > Thanks,added it to my useful bookmarks. Seems like the dictionary should > include all that info instead of the very short list that's in there right > now. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > > > On Sat, Jun 21, 2014 at 6:04 PM, Martin Koob wrote: > >> You can use 4 digit codes >> >> http://www.sonsothunder.com/devres/livecode/tips/file010.htm >> >> The application folder is apps >> >> specialfolderpath("apps") >> >> >> Martin >> >> From Mark_Smith at cpe.umanitoba.ca Sun Jun 22 09:55:43 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 22 Jun 2014 06:55:43 -0700 (PDT) Subject: SQL Join question In-Reply-To: <53A5ABD4.9070405@splash21.com> References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> <53A5ABD4.9070405@splash21.com> Message-ID: <1403445343790-4680590.post@n4.nabble.com> John Craig-4 wrote > I really should have started with '0, field2' in the example below - > assuming field 1 is the primary key.. >> If you have an auto incrementing primary key 'id' as the first field >> in both tables... >> INSERT INTO tableA SELECT 0, field1, field2, field3, etc... FROM tableB >> Hi John, good guess on field1 being an auto incrementing primary key. If you don't mind me asking,what does the leading '0' in your insert statement select? This discussion btw, reminds me that I have another problem. We started out in a pilot collecting data on one iPad when the volume increased to the point where a second unit was required. There are 3 tables in the database and they are all linked on the auto incrementing primary key in table 1 (ie. table 1 holds the primary key that links all 3 tables). With 2 iPads in the field I now have duplicate primary keys (1 set on each iPad). I never did resolve how to make the primary keys unique across devices and would welcome suggestions on how to do that. At present what I think I will do is just export these files into excel and add a column with a device name to distinguish the two sets and then combine then into 1 set of files (using excel, or cut and past? total volumes are actually quite low it just took time to enter the data which is why they ended up needing two iPads). Thanks for the advice Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680590.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Sun Jun 22 10:23:02 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 22 Jun 2014 07:23:02 -0700 (PDT) Subject: SQL Join question In-Reply-To: References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: <1403446982649-4680591.post@n4.nabble.com> Peter Haworth wrote > SELECT tableA.*,tableB.* FROM tableA JOIN tableB ON > tableB.keycolumn=tableA.keycolumn Hi Peter. So, do I understand correctly that if table A has fields first, last and table B has fields age, sex and they both have an id column (key column) then this code would produce a file with fields id, first, last, age, sex? And also, that I could do this without having to name each of the columns individually? If so, this is great because I need to do that as well (and there are hundreds of columns). My simple database design has 3 tables (a, b, c) which have unique sets of columns except for a matching ID field. It would be really great if I could combine all 3 tables into 1 for our data analysis phase (i.e. width wise, so that if there are 100 records in each table with 50 columns each the output has 100 records with 150 columns). And then, as per my response to John, combine all of the records from the first device with all of the records from the second device so that I have just one great big rectangular table to analyze (ie. so if there are 100 records on the first device and 100 on the second the result (after JOINing the tables on each device) would be 200 records by 150 columns). So I think the plan would be to run your code above to create 1 rectangular table consisting of all columns and rows on each device, then export to excel and combine them into 1 file in excel (with an added field indicating which device the records came from). Does this makes sense? Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680591.html Sent from the Revolution - User mailing list archive at Nabble.com. From bvlahos at mac.com Sun Jun 22 11:31:45 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 22 Jun 2014 08:31:45 -0700 Subject: Windows pathing question In-Reply-To: References: <4DA4829D-2647-4328-9C3E-8D580A3666AD@mac.com> Message-ID: <10386C9E-FB86-4236-8340-7CE0D9608EE2@mac.com> Probably but the problem is that I didn?t install the application so my dialing plugin doesn?t know where the application is. Bill On Jun 21, 2014, at 11:08 AM, Simon Smith wrote: > Would adding the path of the exe to the environmental variables work? > > > On Sat, Jun 21, 2014 at 1:12 AM, Bill Vlahos wrote: > >> I want to sent a command line command to a Windows executable to pass >> information and a command to it so that the application dials the phone >> number I send it (it is a telephony application). The command works fine if >> I specify the complete path. >> >> Is there a way I can issue the command without explicitly defining the >> path or asking the user to find the navigate to the application and I store >> the path? >> >> Bill Vlahos >> _________________ >> InfoWallet (http://www.infowallet.com) is about keeping your important >> life information with you, accessible, and secure. >> lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) >> RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > *Simon Smith* > *seo, online marketing, web development* > > w. http://www.simonsmith.co > m. +27 83 306 7862 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Sun Jun 22 11:38:23 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 22 Jun 2014 08:38:23 -0700 Subject: specialfolderpath In-Reply-To: <1403401428563-4680588.post@n4.nabble.com> References: <1403399068382-4680585.post@n4.nabble.com> <1403401428563-4680588.post@n4.nabble.com> Message-ID: Will report both these. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 6:43 PM, Martin Koob wrote: > Yes the docs should have Those listed. You can report it as a > documentation > bug in the QA centre > > Martin > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680588.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Jun 22 11:51:27 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 22 Jun 2014 08:51:27 -0700 Subject: SQL Join question In-Reply-To: <1403446982649-4680591.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> <1403446982649-4680591.post@n4.nabble.com> Message-ID: Hi Mark, Yes, you would end up with one row containing all the columns from all three tables, but if there are three tables, the SELECT becomes: SELECT tableA.*, tableB.*, tableC.* FROM tableA JOIN tableB ON tableB.=tableA. JOIN tableC ON tableC.=tableA. But the keycolumn must have the same value for all three tables. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jun 22, 2014 at 7:23 AM, Mark Smith wrote: > Peter Haworth wrote > > SELECT tableA.*,tableB.* FROM tableA JOIN tableB ON > > tableB.keycolumn=tableA.keycolumn > > Hi Peter. So, do I understand correctly that if table A has fields first, > last and table B has fields age, sex and they both have an id column (key > column) then this code would produce a file with fields id, first, last, > age, sex? > > And also, that I could do this without having to name each of the columns > individually? If so, this is great because I need to do that as well (and > there are hundreds of columns). My simple database design has 3 tables (a, > b, c) which have unique sets of columns except for a matching ID field. It > would be really great if I could combine all 3 tables into 1 for our data > analysis phase (i.e. width wise, so that if there are 100 records in each > table with 50 columns each the output has 100 records with 150 columns). > > And then, as per my response to John, combine all of the records from the > first device with all of the records from the second device so that I have > just one great big rectangular table to analyze (ie. so if there are 100 > records on the first device and 100 on the second the result (after JOINing > the tables on each device) would be 200 records by 150 columns). So I think > the plan would be to run your code above to create 1 rectangular table > consisting of all columns and rows on each device, then export to excel and > combine them into 1 file in excel (with an added field indicating which > device the records came from). > > Does this makes sense? > > Mark > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680591.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From pete at lcsql.com Sun Jun 22 12:13:47 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 22 Jun 2014 09:13:47 -0700 Subject: SQL Join question In-Reply-To: <1403445343790-4680590.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> <53A5ABD4.9070405@splash21.com> <1403445343790-4680590.post@n4.nabble.com> Message-ID: On Sun, Jun 22, 2014 at 6:55 AM, Mark Smith wrote: > I never did > resolve how to make the primary keys unique across devices > Assuming you are using SQLite, there are a couple of ways to achieve this, one riskier than the other. The less risky approach is to give up on using an autoincrementing primary key field and use your own counter along with a device identifier column as a prefix. The two columns together would become your primary key column. The CREATE TABLE statement for this would something like: CREATE TABLE mytable (Device TEXT DEFAULT 'D1', Recno INTEGER,...other columns) PRIMARY KEY (Device,Recno) The Device column would have a different default value on each iPad, or you could omit the DEFAULT specification and your application could supply the appropriate value on each iPad. Your application would be responsible for incrementing the Recno column for each row added to the table. Alternatively, you could simply set it to the milliseconds when each row is added. The result would be that each row would have a unique primary key consisting of the Device and Recno concatenated together and since the Device column would be different on each device, you're guaranteed that there would be no duplicates across devices. The riskier one involves using an internal SQLite table named sqlite_sequence. This table has 2 columns, table and seq. There is one row for each table in the db with the seq column containing the last used primary key value. When you first install your db on each iPad, you could set the seq field for the table to a value that would guarantee there would never be an overlap. For example, if you know that there will never be more than 499,999 rows in the tabnle on any individual iPad, iPad 1 would have seq zero, iPad 2 would have seq 499,999, ipad 3 would have seq 999,999. You can do that with a simple INSERT statement on the sqlite_sequence table but make sure the database is empty when you do it. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From Mark_Smith at cpe.umanitoba.ca Sun Jun 22 18:15:45 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 22 Jun 2014 15:15:45 -0700 (PDT) Subject: SQL Join question In-Reply-To: References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> <53A5ABD4.9070405@splash21.com> <1403445343790-4680590.post@n4.nabble.com> Message-ID: <1403475345024-4680596.post@n4.nabble.com> Hi Peter, thanks for that. I definitely prefer your option 1. Would it still be possible to have an auto incrementing field that combines with the device id to make the primary key (ie. could recno in your example be auto incrementing)? Also, I wonder if there is a device ID that could be grabbed from the device itself? Combining the two would make this foolproof since no manual intervention would be required, and each iPad device would be guaranteed to have/contribute its own unique id. Peter Haworth wrote > Assuming you are using SQLite, there are a couple of ways to achieve this, > one riskier than the other. > > The less risky approach is to give up on using an autoincrementing primary > key field and use your own counter along with a device identifier column > as > a prefix. The two columns together would become your primary key column. > The CREATE TABLE statement for this would something like: > > CREATE TABLE mytable (Device TEXT DEFAULT 'D1', Recno INTEGER,...other > columns) PRIMARY KEY (Device,Recno) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680596.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Sun Jun 22 18:17:25 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 22 Jun 2014 15:17:25 -0700 (PDT) Subject: SQL Join question In-Reply-To: References: <1403362664255-4680574.post@n4.nabble.com> <1403446982649-4680591.post@n4.nabble.com> Message-ID: <1403475445990-4680597.post@n4.nabble.com> Perfect, thank you. Peter Haworth wrote > but if there are three tables, the SELECT becomes: > > SELECT tableA.*, tableB.*, tableC.* FROM tableA JOIN tableB ON > tableB. > > =tableA. > > JOIN tableC ON > tableC. > > =tableA. > > But the keycolumn must have the same value for all three tables. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680597.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sun Jun 22 20:11:33 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 22 Jun 2014 17:11:33 -0700 Subject: SQL Join question In-Reply-To: <1403475345024-4680596.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> <53A5ABD4.9070405@splash21.com> <1403445343790-4680590.post@n4.nabble.com> <1403475345024-4680596.post@n4.nabble.com> Message-ID: Unfortunately, autoincrementing can only be done on primary keys and there can only be one primary key per table. However, it just occurred to me that if you go back to an autoincrementing primary key you could create the concatenated key in your SELECT with: SELECT Device || pKey AS UniqueKey,..... "||" is the SQLite concatenation operator so the SELECT would create a column named UniqueKey. Don't know enough about iOS to know if there is some sort of unique ID you could get from it to use as the device column but that would work great if so. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Jun 22, 2014 at 3:15 PM, Mark Smith wrote: > Hi Peter, thanks for that. I definitely prefer your option 1. Would it > still > be possible to have an auto incrementing field that combines with the > device > id to make the primary key (ie. could recno in your example be auto > incrementing)? Also, I wonder if there is a device ID that could be grabbed > from the device itself? Combining the two would make this foolproof since > no > manual intervention would be required, and each iPad device would be > guaranteed to have/contribute its own unique id. > > > Peter Haworth wrote > > Assuming you are using SQLite, there are a couple of ways to achieve > this, > > one riskier than the other. > > > > The less risky approach is to give up on using an autoincrementing > primary > > key field and use your own counter along with a device identifier column > > as > > a prefix. The two columns together would become your primary key column. > > The CREATE TABLE statement for this would something like: > > > > CREATE TABLE mytable (Device TEXT DEFAULT 'D1', Recno INTEGER,...other > > columns) PRIMARY KEY (Device,Recno) > > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680596.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 Sun Jun 22 20:41:38 2014 From: gbojsza at gmail.com (Glen Bojsza) Date: Sun, 22 Jun 2014 20:41:38 -0400 Subject: SQL Join question In-Reply-To: <1403362664255-4680574.post@n4.nabble.com> References: <1403362664255-4680574.post@n4.nabble.com> Message-ID: <33C0E4DF-216D-4A24-ADCA-2D5529840989@gmail.com> Austin! Time for BBQ. How long are you there? thanks, Glen > On Jun 21, 2014, at 10:57 AM, Mark Smith wrote: > > I have two tables A and B, both with the same structure (about 50 columns > each). I would like to combine them into a single table (ie. rows from Table > A followed by rows from Table B). Does anyone know of an SQL statement that > will do that? > > Thanks > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574.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 Mark_Smith at cpe.umanitoba.ca Sun Jun 22 23:14:55 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 22 Jun 2014 20:14:55 -0700 (PDT) Subject: SQL Join question In-Reply-To: References: <1403362664255-4680574.post@n4.nabble.com> <53A5AB43.8010602@splash21.com> <53A5ABD4.9070405@splash21.com> <1403445343790-4680590.post@n4.nabble.com> <1403475345024-4680596.post@n4.nabble.com> Message-ID: <1403493295541-4680600.post@n4.nabble.com> Thanks Peter. Good discussion. I'll check on the developer list to see if anyone knows if there is an iPad device ID I can grab. Perhaps another widget for Monte to work on :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/SQL-Join-question-tp4680574p4680600.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Mon Jun 23 02:28:12 2014 From: richmondmathewson at gmail.com (Richmond) Date: Mon, 23 Jun 2014 09:28:12 +0300 Subject: Using Facebook for something sensible. Message-ID: <53A7C8FC.90400@gmail.com> I have about 20 kids (10 - 13 years old) doing something with Livecode this summer. Between classes We are using Facebook for help, corrections and so on. This is a good use for Facebook. Richmond. From vclement at gmail.com Mon Jun 23 09:13:47 2014 From: vclement at gmail.com (Vaughn Clement) Date: Mon, 23 Jun 2014 06:13:47 -0700 Subject: Image control in a Background In-Reply-To: References: <1403291785035-4680559.post@n4.nabble.com> Message-ID: Hi I am trying to understand the usage of a image control when it is used in a group background: The issue: when I add a image from the IOS library to the BG image control in the background it replaces the current card image and all other images in all card backgrounds in the stack that uses that image control. So, here is my question; when I set the special folder path and the card id and put the last image in the control of that card ID on openCard, why would it replace all of the images in all of the cards? - Is there a special way to Set the image from the Photos folder in the script? - Can the image control be used in a group background? - It was suggested to use a custom property to set the image for the image control. But, I cannot find any examples of where to script the custom control for this purpose. - I read about the custom control, searched the dictionary, viewed all of the RunRev lessons on using the image control, and the User Guide, the IOS reference document. I still have not found the answer to the issue I need to solve. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Sat, Jun 21, 2014 at 5:41 PM, Vaughn Clement wrote: > Hi Simon > > I found the following in the dictionary: > > iOS Note: iOS imposes strict controls over what you can and cannot > access. Each application in iOS is stored in its own 'sandbox' folder > (referred to as the home folder). An application is free to *read* and > *write* files within this folder and its descendants, but it is not > allowed to access anything outside of the 'sandbox'. > > > *Examples: * > > specialFolderPath("Preferences") > > > set the defaultFolder to specialFolderPath("desktop") > > > put specialFolderPath("asup") into appSupportFolder > > > put url ("file:" & specialFolderPath("engine") & slash & "foo.txt") into > tFileContents > > > set the folder to specialFolderPath("engine") & slash & "myimages" > > put the files into tMyImages > > > > Use the *specialFolderPath* function to place preferences in the > Preferences folder, save files to the Documents folder, find out which > files are installed in the System or Fonts folders, and so on. > > *Parameters:* > > folderIdentifier - One of the items below. > > > ******** When I edit the script to add the " EXAMPLE; put url ("file:" & > specialFolderPath("engine") & slash & "foo.txt") into tFileContents > > the script gives and error. > > ************* > J. Landman Gay > I edited the spelling error, and the image is now retained in the group > image control for the card it was added too. The problem is all of the > cards now have the same image that was added on the first card? The image > on each card background needs to retain the one that was added on that > card. Is the a setting or a script issue? > > Thank you > > Vaughn Clement > > Apps by Vaughn Clement (Support) > *http://www.appsbyvaughnclement.com/tools/home-page/ > * > Skype: vaughn.clement > https://secure.join.me/appsbyvclement > FaceTime: vclement at gmail.com > LogMeIn also avaialble > Call on "ooVoo" at address: vaughnclement or 9282549062 > Ph. 928-254-9062 > > > > On Fri, Jun 20, 2014 at 12:16 PM, Simon wrote: > >> Hi Vaughn, >> Aside from a spelling mistake just add parentheses around all the folder >> paths >> e.g. >> put (specialFolderPath("documents") & "/photos/" & the short ID of this >> card) into thePath >> >> and then delete the current filename >> on mouseUp >> --/ the image from mobilePickPhoto uses the template image construct >> --set it off screen so we don't see ift flash / >> set the loc of the templateImage to -10000,-10000 >> set the filename of image "imageField1" of this card to "" >> >> Simon >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680559.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 jacque at hyperactivesw.com Mon Jun 23 16:25:17 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Jun 2014 15:25:17 -0500 Subject: URLEncode accent-i Message-ID: <53A88D2D.2010904@hyperactivesw.com> I need to send this word to the server: Santer?a When urlEncoded, LiveCode produces: Santer%92a The encoded character is a backslash instead of the accent-i. The server doesn't recognize that, and online URL encoders give various different encodings depending on what source I designate (ascii, UTF8, UTF16, etc.) Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, we're not ready to make a switch yet. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From matthias_livecode_150811 at m-r-d.de Mon Jun 23 17:26:37 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Mon, 23 Jun 2014 23:26:37 +0200 Subject: URLEncode accent-i In-Reply-To: <53A88D2D.2010904@hyperactivesw.com> References: <53A88D2D.2010904@hyperactivesw.com> Message-ID: <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> Hi, this is because you are working on Mac. You have to convert it first from Mac to Iso. A URLencode(mactoiso("Santer?a")) should do. Regards, Matthias Am 23.06.2014 um 22:25 schrieb J. Landman Gay : > I need to send this word to the server: Santer?a > > When urlEncoded, LiveCode produces: Santer%92a > > The encoded character is a backslash instead of the accent-i. The server doesn't recognize that, and online URL encoders give various different encodings depending on what source I designate (ascii, UTF8, UTF16, etc.) > > Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, we're not ready to make a switch yet. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Jun 23 17:30:46 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 23 Jun 2014 16:30:46 -0500 Subject: URLEncode accent-i In-Reply-To: <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> References: <53A88D2D.2010904@hyperactivesw.com> <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> Message-ID: <53A89C86.8010605@hyperactivesw.com> Aha! Thanks Matthias. Very helpful. I will be so happy when all this happens automatically. On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote: > Hi, > > this is because you are working on Mac. You have to convert it first from Mac to Iso. > > A URLencode(mactoiso("Santer?a")) > > should do. > > Regards, > > Matthias > > > Am 23.06.2014 um 22:25 schrieb J. Landman Gay : > >> I need to send this word to the server: Santer?a >> >> When urlEncoded, LiveCode produces: Santer%92a >> >> The encoded character is a backslash instead of the accent-i. The server doesn't recognize that, and online URL encoders give various different encodings depending on what source I designate (ascii, UTF8, UTF16, etc.) >> >> Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, we're not ready to make a switch yet. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From simon at asato-media.com Mon Jun 23 20:28:03 2014 From: simon at asato-media.com (Simon) Date: Mon, 23 Jun 2014 17:28:03 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <1403291785035-4680559.post@n4.nabble.com> Message-ID: <1403569683395-4680606.post@n4.nabble.com> Hi Vaughn, Did you get this sorted out? > ******** When I edit the script to add the " EXAMPLE; put url ("file:" & > specialFolderPath("engine") & slash & "foo.txt") into tFileContents foo.txt has to be in the Copy Files of the standalone settings. (We're talking mobile right?) "...why would it replace all of the images in all of the cards?" if it's in a group who's "behave like background" it true then that's what happens to all the cards that group was placed on. "- Can the image control be used in a group background?" Yes, if it's the lowest layer control. Since you create a new image from the templateImage it's the top control. Not sure on how you have things set up but I think you should be saving the last image to the documents folder and set the filename of the image already in the group to that name then "delete last image". Ah wait.. since it's a standalone the last image wont be saved anyways so no need to delete. "- Is there a special way to Set the image from the Photos folder in the script?" You'll have to copy the image over to specialFolderPath("documents") and read it from there. Maybe I'm misunderstanding all this. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680606.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Mon Jun 23 21:51:49 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 23 Jun 2014 18:51:49 -0700 Subject: [ANN] Version 1.3.5 of SQLiteAdmin available Message-ID: The above version of SQLiteAdmin is now available for download at www.lcsql.com/sqliteadmin.html. This version is free to all existing SQLiteAdmin users. The main focus of this release is bug fixes and the inclusion of version 3.8.3.1 of the SQLite library, with support for new language elements such as WITHOUT ROWID when creating a table, creation of partial indexes using a WHERE clause, and various new PRAGMA statements. There is also a new feature to create a table when importing a delimited text file. Full details are available in the release notes . SQLiteAdmin is an database administration tool for SQLite providing schema maintenance functions not available in the standard SQLite language, plus powerful table browsing and maintenance features. A 30-day demo is available for download at www.lcsql.com/sqliteadmin.html Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From bvlahos at mac.com Mon Jun 23 22:45:52 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 23 Jun 2014 19:45:52 -0700 Subject: Shell command syntax in Windows Message-ID: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> I?m trying to run a shell command on Windows and the following code gives an error on the ?put the wheel of ?dir? into field ?one?. The goal of the script below is to get a directory listing in the Programs folder. Setup: A field ?one? and a button where this script is in. on mouseUp set the shellCommand to ?C:\ProgramData\Microsoft\Start Menu\Programs? put shell (?dir?) into field ?one? end mouseUp Bill Vlahos From richmondmathewson at gmail.com Tue Jun 24 02:33:26 2014 From: richmondmathewson at gmail.com (Richmond) Date: Tue, 24 Jun 2014 09:33:26 +0300 Subject: URLEncode accent-i In-Reply-To: <53A88D2D.2010904@hyperactivesw.com> References: <53A88D2D.2010904@hyperactivesw.com> Message-ID: <53A91BB6.1000000@gmail.com> On 23/06/14 23:25, J. Landman Gay wrote: > I need to send this word to the server: Santer?a > > When urlEncoded, LiveCode produces: Santer%92a > > The encoded character is a backslash instead of the accent-i. The > server doesn't recognize that, and online URL encoders give various > different encodings depending on what source I designate (ascii, UTF8, > UTF16, etc.) > > Where did LC get %92, and how would I correct the encoding? I'm using > LC 6.6.1, we're not ready to make a switch yet. > With 6.6.1: set the useUnicode to true put numToChar(237) into fld "wherever" Richmond. From matthias_livecode_150811 at m-r-d.de Tue Jun 24 03:34:52 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 24 Jun 2014 09:34:52 +0200 Subject: =?iso-8859-1?Q?=5BOT=5D_I_am_giving_away_Colin=B4s_printed_book_?= =?iso-8859-1?Q?=22LiveCode_Mobile_Development=22_to_someone_in_g?= =?iso-8859-1?Q?ermany?= Message-ID: Hi, today i received my Kickstarter package with the printed version of Colin?s excellent book about LC Mobile Development. As i already own one copy of the printed book, i would like to give away the other one for free (i even take the shipping costs ) to someone living in Germany. And no, you don?t have to be german. You just have to live here. ;) The book is in english. So if someone is interested, please send me a private email with your shipping address. As always, the first one gets it. Regards, Matthias From matthias_livecode_150811 at m-r-d.de Tue Jun 24 04:06:30 2014 From: matthias_livecode_150811 at m-r-d.de (Matthias Rebbe | M-R-D) Date: Tue, 24 Jun 2014 10:06:30 +0200 Subject: =?iso-8859-1?Q?Re=3A_=5BOT=5D_I_am_giving_away_Colin=B4s_printed?= =?iso-8859-1?Q?_book_=22LiveCode_Mobile_Development=22_to_someon?= =?iso-8859-1?Q?e_in_germany?= In-Reply-To: References: Message-ID: Hi again, the book has found its new owner. Regards Matthias Am 24.06.2014 um 09:34 schrieb Matthias Rebbe | M-R-D : > Hi, > > today i received my Kickstarter package with the printed version of Colin?s excellent book about LC Mobile Development. > > As i already own one copy of the printed book, i would like to give away the other one for free (i even take the shipping costs ) to someone living in Germany. > And no, you don?t have to be german. You just have to live here. ;) > > The book is in english. > > So if someone is interested, please send me a private email with your shipping address. As always, the first one gets it. > > > 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 Nakia.Brewer at westrac.com.au Tue Jun 24 04:57:27 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Tue, 24 Jun 2014 08:57:27 +0000 Subject: Printing Cards to PDF Message-ID: <67116DB20798A94285EEE12A67079A284CB3388C@MHSEXC02.westrac.com.au> Hi, I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file. This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2). When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly..... (Happy to send someone the generated PDF). I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure (Weird that card 2 prints correct when its the same size etc as card 1) I appreciate any ideas.... anyway code below. put ("Print" & return & "Print2") into tCardsToPrint -- Lock screen so user doesn't see card change lock screen open stack "Printing" open printing to pdf tFilePath if the result is "Cancel" then exit saveInspection repeat with x = 1 to the number of lines of tCardsToPrint print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700 print break end repeat close printing close stack "Printing" send resetForm to me in 0 milliseconds send buildPendingTasks to this stack in 0 milliseconds COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From Nakia.Brewer at westrac.com.au Tue Jun 24 05:31:12 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Tue, 24 Jun 2014 09:31:12 +0000 Subject: Printing Cards to PDF In-Reply-To: <67116DB20798A94285EEE12A67079A284CB3388C@MHSEXC02.westrac.com.au> References: <67116DB20798A94285EEE12A67079A284CB3388C@MHSEXC02.westrac.com.au> Message-ID: <79637B30-3CF0-4948-A957-08038C07209A@westrac.com.au> FWIW I changed the loop to just print card 2 twice and am still seeing the error. It seems some sort of automatic scaling is happening after the first print or perhaps after the first print break... Sent from my iPhone > On 24 Jun 2014, at 6:57 pm, "Nakia Brewer" wrote: > > Hi, > > I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file. > This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2). > > When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly..... > (Happy to send someone the generated PDF). > > I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure > (Weird that card 2 prints correct when its the same size etc as card 1) > > I appreciate any ideas.... > > anyway code below. > > put ("Print" & return & "Print2") into tCardsToPrint > -- Lock screen so user doesn't see card change > lock screen > open stack "Printing" > open printing to pdf tFilePath > if the result is "Cancel" then exit saveInspection > repeat with x = 1 to the number of lines of tCardsToPrint > print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700 > print break > end repeat > close printing > close stack "Printing" > send resetForm to me in 0 milliseconds > send buildPendingTasks to this stack in 0 milliseconds > COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From Nakia.Brewer at westrac.com.au Tue Jun 24 05:41:06 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Tue, 24 Jun 2014 09:41:06 +0000 Subject: Printing Cards to PDF In-Reply-To: <79637B30-3CF0-4948-A957-08038C07209A@westrac.com.au> References: <67116DB20798A94285EEE12A67079A284CB3388C@MHSEXC02.westrac.com.au>, <79637B30-3CF0-4948-A957-08038C07209A@westrac.com.au> Message-ID: <0A8F76A3-CA0A-4ADA-BD4E-B8816A401464@westrac.com.au> Hmmmm card 2 has some images. Think this is where the issue lies. If I print card 1 twice (which has no images) it works as expected... Sent from my iPhone > On 24 Jun 2014, at 7:31 pm, "Nakia Brewer" wrote: > > FWIW I changed the loop to just print card 2 twice and am still seeing the error. > > It seems some sort of automatic scaling is happening after the first print or perhaps after the first print break... > > Sent from my iPhone > >> On 24 Jun 2014, at 6:57 pm, "Nakia Brewer" wrote: >> >> Hi, >> >> I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file. >> This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2). >> >> When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly..... >> (Happy to send someone the generated PDF). >> >> I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure >> (Weird that card 2 prints correct when its the same size etc as card 1) >> >> I appreciate any ideas.... >> >> anyway code below. >> >> put ("Print" & return & "Print2") into tCardsToPrint >> -- Lock screen so user doesn't see card change >> lock screen >> open stack "Printing" >> open printing to pdf tFilePath >> if the result is "Cancel" then exit saveInspection >> repeat with x = 1 to the number of lines of tCardsToPrint >> print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700 >> print break >> end repeat >> close printing >> close stack "Printing" >> send resetForm to me in 0 milliseconds >> send buildPendingTasks to this stack in 0 milliseconds >> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From vclement at gmail.com Tue Jun 24 11:35:29 2014 From: vclement at gmail.com (Vaughn Clement) Date: Tue, 24 Jun 2014 08:35:29 -0700 Subject: Image control in a Background In-Reply-To: <53A487CA.3010205@hyperactivesw.com> References: <53A487CA.3010205@hyperactivesw.com> Message-ID: Hi I am somewhat closer to the solution? I tested the correction that J. Landman Gay suggested where I remove the "then" at the end of the this line: "set the defaultfolder to specialFolderPath ("documents") & "/photos/" then <--" This had the effect of not updating the image in any card. When I added it back in, the image control will not change all of the cards now, but it will not update the current image either until I go to a different card and return to find the image then updated to the correct image. The script now does not change all of the cards, it just does not update while the image control is being edited. As I found out the update only occurs after I return to the edited card. It seems that the script is not making the image control update at the time of the edit. Can you suggest a correction? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Fri, Jun 20, 2014 at 12:13 PM, J. Landman Gay wrote: > On 6/20/2014, 10:23 AM, Vaughn Clement wrote: > > The image control is supposed load when the card opens and the last photo >> is to be displayed? >> > > > >> *on* openCard >> >> *set* the defaultfolder to specialFolderPath ("documents") & >> "/photos/" >> >> *--answer the files* >> >> *if* the number of this card >1*then* >> >> *set* the defaultfolder to specialFolderPath ("documents") & >> "/photos/"*then* >> >> *if* there is a file the short id of this card*then* >> >> *put* specialFolderPath ("documents") & "/photos/" & the >> short >> >> ID of this card into thePath >> >> *set* the filename of image "imegeField1" of this card to >> thepath >> >> *end* *if* >> >> *end* *if* >> >> *end* openCard >> > > > Is this a direct copy/paste? This line is malformed: > > set the defaultfolder to specialFolderPath ("documents") & "/photos/" > then <-- > > Remove the trailing "then". Also, the image name is misspelled as > "imegeField1" ("e" rather than "a") which is more likely the reason for the > problem. > > -- > 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 livfoss at mac.com Tue Jun 24 14:02:56 2014 From: livfoss at mac.com (Graham Samuel) Date: Tue, 24 Jun 2014 20:02:56 +0200 Subject: "nan" v. try-catch for arithmetic Message-ID: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> Hi I have a bit of code that looks for input errors where the user is supposed to write an arithmetic expression into a field. The relevant fragment looks like this try put value(fld "myField") into testResult catch answer "oops, that's not a valid real number. Try again" exit mouseUp end try ... Now I input a legitimate expression like 3+sin(pi/2) the catch doesn't fire, as expected. If I put in something which isn't a well-formed expression, like ardvaark + 92 it does fire, as expected. If I put sqrt(-1) that fires too. But if I put (-8)^(2/3) I get a result, "nan", and the catch doesn't fire. Why not? Maybe someone can explain what the engine is doing here - or is it just an obscure bug? TIA Graham From pete at lcsql.com Tue Jun 24 16:25:56 2014 From: pete at lcsql.com (Peter Haworth) Date: Tue, 24 Jun 2014 13:25:56 -0700 Subject: Nested Repeat loops In-Reply-To: <53A60096.3020700@tweedly.org> References: <3CE4C105-25B0-4184-8706-C7AEA8757614@gmail.com> <53A5952D.8010202@fourthworld.com> <53A60096.3020700@tweedly.org> Message-ID: Submitted QCC report 12691 for this. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sat, Jun 21, 2014 at 3:00 PM, Alex Tweedly wrote: > On 21/06/2014 15:22, Richard Gaskin wrote: > >> At the RevLive conference in Vegas a few yeas back, Robert Cailliau's >> opening keynote covered some of the most adventurous feature requests I've >> ever heard anyone suggest for xTalks. >> >> Among them was the notion of named control structures, in part for >> exactly the reason covered in this thread, the desire to exit a specific >> loop when loops are nested. >> >> I can't recall the specifics of his proposed syntax, but I remember being >> impressed by how natural it seemed. Maybe it was along the lines of: >> >> repeat with i = 1 to tSomething named "MySomethingLoop" >> repeat with j = 1 to tSomethingElse named "MyOtherLoop" >> DoSomethingWith i,j >> exit "MySomethingLoop" >> end repeat >> end repeat >> >> With named control structures we'd never need to worry about line numbers. >> >> I'm not sure if that was submitted as a feature request, but IMO it >> should be. And it would be cool to have just about everything else he >> proposed go into the DB as well - all of it was valuable, very >> forward-thinking, reflecting the best of many other languages, all >> presented in a very xTalk way. >> > I believe it would be even better to (be able to) name both ends of the > control structure, and thereby get some extra help from the compiler if > there was any mismatch, as well as a better visual clue when reading the > code. (Without this, when you see an "exit repeat 'name'" statement you > need to look backwards to see the named control structure, and then > forwards to find the matching end; far easier to have the name at the end > as well). > > repeat for each key K in myArray named "arrayloop" > repeat with i = 1 to 1000 > if someFunc(K,i) then > doit K, i > next repeat "arrayloop" > end if > end repeat > if something() then exit repeat "arrayloop" > end repeat named "arrayloop > > IMO, either or both named clauses should be optional - no need to put in > both unless you choose to do the extra work for the extra convenience of > compiler checks, cf. explicitvariables. > > -- 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 jacque at hyperactivesw.com Tue Jun 24 17:32:51 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jun 2014 16:32:51 -0500 Subject: "nan" v. try-catch for arithmetic In-Reply-To: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> References: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> Message-ID: <53A9EE83.5050109@hyperactivesw.com> On 6/24/2014, 1:02 PM, Graham Samuel wrote: > I get a result, "nan", and the catch doesn't fire. Why not? Maybe > someone can explain what the engine is doing here - or is it just an > obscure bug? A "catch" only triggers when there is a script error. In this case there is no error, "nan" is a legitimate value for a calculation that can't be computed. You may have to change to an "if" statement to check for any non-numerical value, which would also include "nan". -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jun 24 17:41:02 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 24 Jun 2014 16:41:02 -0500 Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> Message-ID: <53A9F06E.3060907@hyperactivesw.com> On 6/24/2014, 10:35 AM, Vaughn Clement wrote: > I am somewhat closer to the solution? I tested the correction that J. > Landman Gay suggested where I remove the "then" at the end of the this > line: "set the defaultfolder to specialFolderPath ("documents") & > "/photos/" then <--" > This had the effect of not updating the image in any card. When I added it > back in, the image control will not change all of the cards now, but it > will not update the current image either until I go to a different card and > return to find the image then updated to the correct image. The "then" is superfluous, so its removal shouldn't affect anything. A "then" can only occur at the end of a line that begins with "if". The engine must be ignoring the extra "then" because it isn't throwing an error. At any rate, you don't need it. Previously I believe you had the image in a background group with "act like a background" turned on, which means the same image will appear on every card that contains that background. I think you've changed that now by turning off "act like a background" or by moving the image out of the group. That is why only one card updates now. The reason you need to leave the card and return in order to see the new image content is because you have placed the command in an openCard handler, which only triggers when you arrive at the card. Leaving and returning to the card will cause an openCard message to be sent, which updates the image content. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From m.schonewille at economy-x-talk.com Tue Jun 24 17:41:12 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 24 Jun 2014 23:41:12 +0200 Subject: "nan" v. try-catch for arithmetic In-Reply-To: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> References: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> Message-ID: <53A9F078.5020807@economy-x-talk.com> Hi Graham, If I execute (-8)^(2/3) in LiveCode 6.6.1, I get "execution error at line 7 (pow: range error (overflow)), char 17", i.e. an execution error instead of NaN. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 6/24/2014 20:02, Graham Samuel wrote: > Hi > > I have a bit of code that looks for input errors where the user is supposed to write an arithmetic expression into a field. The relevant fragment looks like this > > try > put value(fld "myField") into testResult > catch > answer "oops, that's not a valid real number. Try again" > exit mouseUp > end try > ... > > Now I input a legitimate expression like 3+sin(pi/2) > > the catch doesn't fire, as expected. If I put in something which isn't a well-formed expression, like > > ardvaark + 92 > > it does fire, as expected. If I put > > sqrt(-1) > > that fires too. But if I put > > (-8)^(2/3) > > I get a result, "nan", and the catch doesn't fire. Why not? Maybe someone can explain what the engine is doing here - or is it just an obscure bug? > > TIA > > Graham > From jhj at jhj.com Tue Jun 24 18:06:35 2014 From: jhj at jhj.com (Jerry Jensen) Date: Tue, 24 Jun 2014 15:06:35 -0700 Subject: "nan" v. try-catch for arithmetic In-Reply-To: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> References: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> Message-ID: <6DF633E9-0175-4A9B-9349-BD54029508BD@jhj.com> On Jun 24, 2014, at 11:02 AM, Graham Samuel wrote: > If I put > > sqrt(-1) > > that fires too. But if I put > > (-8)^(2/3) > > I get a result, "nan", and the catch doesn't fire. Why not? Gee, you'd expect sqrt(-1) and (-1)^(1/2) to evaluate the same. Apparently, the sqrt function checks the parameter to be non-negative, like it says in the dictionary. That would be a lot harder to do in a generalized arithmetic expression. .Jerry From vclement at gmail.com Tue Jun 24 18:23:41 2014 From: vclement at gmail.com (Vaughn Clement) Date: Tue, 24 Jun 2014 15:23:41 -0700 Subject: Image control in a Background In-Reply-To: <53A9F06E.3060907@hyperactivesw.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> Message-ID: Hi Your comments: The "then" is superfluous, so its removal shouldn't affect anything. A "then" can only occur at the end of a line that begins with "if". The engine must be ignoring the extra "then" because it isn't throwing an error. At any rate, you don't need it. Question: Not new to coding but new to LiveCode scripting, I have a don't ask questions approach to code suggestions from other scripters. I've seen a lot of odd behavior in scripts within live code. For some a nude live code, it was nothing like coding I've done before and I go all the way back to the first basic on XT computers. It appeared to me that when I removed the then from line of script it had an effect on the image control. I am not questioning which are telling me, I just found it interesting that it had an effect on the way the script ran. Previously I believe you had the image in a background group with "act like a background" turned on, which means the same image will appear on every card that contains that background. I think you've changed that now by turning off "act like a background" or by moving the image out of the group. That is why only one card updates now. Question: I used HyperCard in the old days, and I recognize that live code manages backgrounds differently. I have never fully understood the limits about background objects and the settings. This is a good example of that where a group of objects included the image control so that each new card created would include the image control. The gray area I have at this point is, how to manage an image control where it needs to be on each card, but not contain the same image when it is edited and replaced on all cards. I think it's an interesting result that a image control cannot display a different image on each new card. I haven't seen this limitation referenced anywhere until now in this email. If I read what you're telling me correctly, if I include the image control in the group background in acts differently? Is it possible to have a image control separate from the group background? This would mean I should include a separate image control in its own background? And that background settings would be different in that it would not act like a background? Or, using scripting I would need to address a on closeCard script to manage what is saved to the image control. These questions may sound na?ve, but I can imagine that all new users have questions just like this. The reason you need to leave the card and return in order to see the new image content is because you have placed the command in an openCard handler, which only triggers when you arrive at the card. Leaving and returning to the card will cause an openCard message to be sent, which updates the image content. Question: To be honest, every time I start building a new script to perform a task, I need to start searching for syntax reference, or examples. Unlike a lot of the seasoned developers like my friend John Dixon who can pull scripts out of the air, it takes me quite a bit longer to pull together the script structure. That being said, that is why I was creating my own app dictionary where I could search a word or phrase that would give me script structures that could work to perform tasks. I often ponder how seasoned developers of liveCode learned liveCode. The answer I get is it just takes a long time to learn? This doesn't solve the current issue though carrying on a conversation about my learning curve. So based on your comments in this email, I either need to include in on closeCard script, or to change the way the image control works within the background. Frankly I don't see why standard items like an image control doesn't include the ability to save different images in a grouped background. This seems to be a logical feature that should be included in the image control settings. You might be able to tell by my comments that I am clueless as to the next step to correct the image control to save different images on each card. It appears to me that the reference script data I included in the first email is close to what I need to correct the image editing and saving on each card? But it would help if you could suggest the next steps I need to take to solve the image control issue. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Tue, Jun 24, 2014 at 2:41 PM, J. Landman Gay wrote: > On 6/24/2014, 10:35 AM, Vaughn Clement wrote: > >> I am somewhat closer to the solution? I tested the correction that J. >> Landman Gay suggested where I remove the "then" at the end of the this >> line: "set the defaultfolder to specialFolderPath ("documents") & >> "/photos/" then <--" >> This had the effect of not updating the image in any card. When I added it >> back in, the image control will not change all of the cards now, but it >> will not update the current image either until I go to a different card >> and >> return to find the image then updated to the correct image. >> > > The "then" is superfluous, so its removal shouldn't affect anything. A > "then" can only occur at the end of a line that begins with "if". The > engine must be ignoring the extra "then" because it isn't throwing an > error. At any rate, you don't need it. > > Previously I believe you had the image in a background group with "act > like a background" turned on, which means the same image will appear on > every card that contains that background. I think you've changed that now > by turning off "act like a background" or by moving the image out of the > group. That is why only one card updates now. > > The reason you need to leave the card and return in order to see the new > image content is because you have placed the command in an openCard > handler, which only triggers when you arrive at the card. Leaving and > returning to the card will cause an openCard message to be sent, which > updates the image content. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mwieder at ahsoftware.net Tue Jun 24 18:56:22 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 24 Jun 2014 15:56:22 -0700 Subject: "nan" v. try-catch for arithmetic In-Reply-To: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> References: <854F2ED5-FBD6-46CC-8009-79B1DEE93A53@mac.com> Message-ID: <127853478307.20140624155622@ahsoftware.net> Graham- Tuesday, June 24, 2014, 11:02:56 AM, you wrote: > I get a result, "nan", and the catch doesn't fire. Why not? Maybe > someone can explain what the engine is doing here - or is it just an > obscure bug? It fires for me in either case. To get the actual error code, change the code to try put value(fld "myField") into testResult catch e answer e exit mouseUp end try That way you see that sqrt(-1) results in 555 "sqrt: domain error" and (-8)^(2/3) results in 402 "pow: range error (overflow)". Both of them also return "-nan", as expected. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From mwieder at ahsoftware.net Tue Jun 24 18:59:40 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Tue, 24 Jun 2014 15:59:40 -0700 Subject: Shell command syntax in Windows In-Reply-To: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> References: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> Message-ID: <124853676987.20140624155940@ahsoftware.net> Bill- Monday, June 23, 2014, 7:45:52 PM, you wrote: > I?m trying to run a shell command on Windows and the following > code gives an error on the ?put the wheel of ?dir? into field ?one?. > The goal of the script below is to get a directory listing in the Programs folder. > Setup: A field ?one? and a button where this script is in. > on mouseUp > set the shellCommand to ?C:\ProgramData\Microsoft\Start Menu\Programs? > put shell (?dir?) into field ?one? > end mouseUp Been a while since I've had to deal with Windows, but I believe the shellCommand has to point to either command.com or cmd.exe, depending on the Windows version. If you want to get a directory listing of the Programs folder, why not set the defaultFolder and get the files? -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From bonnmike at gmail.com Tue Jun 24 20:19:43 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Tue, 24 Jun 2014 18:19:43 -0600 Subject: Shell command syntax in Windows In-Reply-To: <124853676987.20140624155940@ahsoftware.net> References: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> <124853676987.20140624155940@ahsoftware.net> Message-ID: Easiest way to do it with shell is with the absolute path. Or you could cd to the location, and use a semicolon to string two commands like so: put shell(merge("cd [[path]] ; dir")) into field one -- changes directory, then gets the dir. Or this with an absolute path. put the shortfilepath of "c:\whatever path\you need\" into tPath -- shortfilepath so you don't have to worry about escaping spaces. Turns it into an 8.3 path. put shell(merge("dir [[tPath]]")) into field one -- single shell command rather than 2 strung together with semicolon The shellcommand isn't used to set the path, it should point to the shell you wish to use for the command execution. (not on my windows machine, so can't tell you where cmd is) Shouldn't be needed in this case though. On Tue, Jun 24, 2014 at 4:59 PM, Mark Wieder wrote: > Bill- > > Monday, June 23, 2014, 7:45:52 PM, you wrote: > > > I m trying to run a shell command on Windows and the following > > code gives an error on the put the wheel of dir into field one . > > > The goal of the script below is to get a directory listing in the > Programs folder. > > > Setup: A field one and a button where this script is in. > > > on mouseUp > > set the shellCommand to C:\ProgramData\Microsoft\Start Menu\Programs > > put shell ( dir ) into field one > > end mouseUp > > Been a while since I've had to deal with Windows, but I believe the > shellCommand has to point to either command.com or cmd.exe, depending > on the Windows version. > > If you want to get a directory listing of the Programs folder, why not > set the defaultFolder and get the files? > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From scott at tactilemedia.com Tue Jun 24 20:59:25 2014 From: scott at tactilemedia.com (Scott Rossi) Date: Tue, 24 Jun 2014 17:59:25 -0700 Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> Message-ID: Vaughn: I can't tell if you understand the basics of groups/backgrounds, so apologies if this is redundant for you. First, try to forget anything Hypercard related and start over. In fact, it will probably help you ignore the term "background" and consider groups only (the terms "group" and "background" are synonymous in most cases). A group, regardless of what you might associate with the name, can consist of a single object. You can group an image for example, and that single image is now contained within a group object. The group can exist on one card, or can be placed on multiple cards. If the group appears on multiple cards, that same image will appear on all cards that contain the group. This implementation is where you can start using a group as a background object for multiple cards. LiveCode doesn't have any designated object that automatically sits behind everything on every card in a stack. The above mentioned group is how you create this result. You create a group, and you *place* that group (as opposed to paste) on every card where you want the same image to appear. This is how you display a single image (or any objects) efficiently across multiple cards. If you want a different image to appear on every card in your stack, the most straightforward method is to import or paste an image on every card. There's no need to use a group. But using a group can display the images more efficiently, depending on how you're able to deliver your stack. If you can include an external folder of images (JPEGs, for example) along with your stack, you can use the grouped image option mentioned above and simply change the fileName of the grouped image to the file path of the external image that is needed upon opening a card. The benefit of this method is that only one image is loaded in memory at any given time, instead of loading all the needed images at once (if they were all imported into the stack). The one image still appears on all cards, but the user only sees one card at a time, and the image is updated each time the user navigates to a new card. Last, keep in mind that with groups, "place" is different than "paste". If you place a group on a card, you are creating an instance of a group that already exists in the stack. If you copy and paste a group, you are creating an entirely new group object with its own id, and you now have two separate groups in your stack, each with their own contained objects. Once you get the hang of this, you'll understand that groups are really useful objects. Hope this helps. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 6/24/14 3:23 PM, "Vaughn Clement" wrote: >Hi > >Your comments: > >The "then" is superfluous, so its removal shouldn't affect anything. A >"then" can only occur at the end of a line that begins with "if". The >engine must be ignoring the extra "then" because it isn't throwing an >error. At any rate, you don't need it. >Question: >Not new to coding but new to LiveCode scripting, I have a don't ask >questions approach to code suggestions from other scripters. I've seen a >lot of odd behavior in scripts within live code. For some a nude live >code, >it was nothing like coding I've done before and I go all the way back to >the first basic on XT computers. It appeared to me that when I removed the >then from line of script it had an effect on the image control. I am not >questioning which are telling me, I just found it interesting that it had >an effect on the way the script ran. > >Previously I believe you had the image in a background group with "act >like >a background" turned on, which means the same image will appear on every >card that contains that background. I think you've changed that now by >turning off "act like a background" or by moving the image out of the >group. That is why only one card updates now. > Question: >I used HyperCard in the old days, and I recognize that live code manages >backgrounds differently. I have never fully understood the limits about >background objects and the settings. This is a good example of that where >a >group of objects included the image control so that each new card created >would include the image control. The gray area I have at this point is, >how >to manage an image control where it needs to be on each card, but not >contain the same image when it is edited and replaced on all cards. I >think >it's an interesting result that a image control cannot display a different >image on each new card. I haven't seen this limitation referenced anywhere >until now in this email. If I read what you're telling me correctly, if I >include the image control in the group background in acts differently? Is >it possible to have a image control separate from the group background? >This would mean I should include a separate image control in its own >background? And that background settings would be different in that it >would not act like a background? >Or, using scripting I would need to address a on closeCard script to >manage >what is saved to the image control. These questions may sound na?ve, but I >can imagine that all new users have questions just like this. > >The reason you need to leave the card and return in order to see the new >image content is because you have placed the command in an openCard >handler, which only triggers when you arrive at the card. Leaving and >returning to the card will cause an openCard message to be sent, which >updates the image content. >Question: >To be honest, every time I start building a new script to perform a task, >I >need to start searching for syntax reference, or examples. Unlike a lot of >the seasoned developers like my friend John Dixon who can pull scripts out >of the air, it takes me quite a bit longer to pull together the script >structure. That being said, that is why I was creating my own app >dictionary where I could search a word or phrase that would give me script >structures that could work to perform tasks. I often ponder how seasoned >developers of liveCode learned liveCode. The answer I get is it just takes >a long time to learn? >This doesn't solve the current issue though carrying on a conversation >about my learning curve. >So based on your comments in this email, I either need to include in on >closeCard script, or to change the way the image control works within the >background. >Frankly I don't see why standard items like an image control doesn't >include the ability to save different images in a grouped background. This >seems to be a logical feature that should be included in the image control >settings. >You might be able to tell by my comments that I am clueless as to the next >step to correct the image control to save different images on each card. > It appears to me that the reference script data I included in the first >email is close to what I need to correct the image editing and saving on >each card? But it would help if you could suggest the next steps I need to >take to solve the image control issue. > >Thank you > >Vaughn Clement > >Apps by Vaughn Clement (Support) >*http://www.appsbyvaughnclement.com/tools/home-page/ >* >Skype: vaughn.clement >https://secure.join.me/appsbyvclement >FaceTime: vclement at gmail.com >LogMeIn also avaialble >Call on "ooVoo" at address: vaughnclement or 9282549062 >Ph. 928-254-9062 > > > >On Tue, Jun 24, 2014 at 2:41 PM, J. Landman Gay >wrote: > >> On 6/24/2014, 10:35 AM, Vaughn Clement wrote: >> >>> I am somewhat closer to the solution? I tested the correction that J. >>> Landman Gay suggested where I remove the "then" at the end of the this >>> line: "set the defaultfolder to specialFolderPath ("documents") & >>> "/photos/" then <--" >>> This had the effect of not updating the image in any card. When I >>>added it >>> back in, the image control will not change all of the cards now, but it >>> will not update the current image either until I go to a different card >>> and >>> return to find the image then updated to the correct image. >>> >> >> The "then" is superfluous, so its removal shouldn't affect anything. A >> "then" can only occur at the end of a line that begins with "if". The >> engine must be ignoring the extra "then" because it isn't throwing an >> error. At any rate, you don't need it. >> >> Previously I believe you had the image in a background group with "act >> like a background" turned on, which means the same image will appear on >> every card that contains that background. I think you've changed that >>now >> by turning off "act like a background" or by moving the image out of the >> group. That is why only one card updates now. >> >> The reason you need to leave the card and return in order to see the new >> image content is because you have placed the command in an openCard >> handler, which only triggers when you arrive at the card. Leaving and >> returning to the card will cause an openCard message to be sent, which >> updates the image content. >> >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >_______________________________________________ >use-livecode mailing list >use-livecode at lists.runrev.com >Please visit this url to subscribe, unsubscribe and manage your >subscription preferences: >http://lists.runrev.com/mailman/listinfo/use-livecode From simon at asato-media.com Tue Jun 24 21:03:57 2014 From: simon at asato-media.com (Simon) Date: Tue, 24 Jun 2014 18:03:57 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> Message-ID: <1403658237952-4680627.post@n4.nabble.com> Hi Vaughn, First off "The answer I get is it just takes a long time to learn?" No, but I understand that if you have been a programmer using another language then it is more difficult. Lots of times I just think of a word to describe what I want to do and there it is in the dictionary. This plugin helps things even further; http://bjoernke.com/?target=bvgdocu Now to the problem at hand. To make things clear when you say "...group background..." you mean a group who's "background behavior is set to true" and in that case if the image control is in that group it will be the same on all pages with that group. Now you could continue doing it the way you have it setup in your openCard script and in the mouseUp, just make sure to; set the filename of image "imageField1" of this card to "" ("" is shorthand for empty) Where I mention it in the above post. Trust me I had your script running with only removing the "then" correcting the spelling and that line. Now I'm not sure what impact on performance of using it when all the images get updated but it probably doesn't matter as I think the things like that are only set when the card opens. If it does then yes, you have to break the image out of the group. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680627.html Sent from the Revolution - User mailing list archive at Nabble.com. From paulhibbert at mac.com Tue Jun 24 22:14:35 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Tue, 24 Jun 2014 19:14:35 -0700 Subject: Printing Cards to PDF In-Reply-To: <0A8F76A3-CA0A-4ADA-BD4E-B8816A401464@westrac.com.au> References: <67116DB20798A94285EEE12A67079A284CB3388C@MHSEXC02.westrac.com.au> <79637B30-3CF0-4948-A957-08038C07209A@westrac.com.au> <0A8F76A3-CA0A-4ADA-BD4E-B8816A401464@westrac.com.au> Message-ID: <0918F7FA-16A4-498D-A7E5-2F967C557BE2@mac.com> Nakia, I tried your script on cards with and without images, I didn't experience any problems at all. Tested with LC 6.6.2 on Mac using OS X 10.8.5 and on Win 7 I can send you my test stack if it's any use. Paul On 2014-06-24, at 2:41 AM, Nakia Brewer wrote: > Hmmmm card 2 has some images. > Think this is where the issue lies. > > If I print card 1 twice (which has no images) it works as expected... > > > > Sent from my iPhone > >> On 24 Jun 2014, at 7:31 pm, "Nakia Brewer" wrote: >> >> FWIW I changed the loop to just print card 2 twice and am still seeing the error. >> >> It seems some sort of automatic scaling is happening after the first print or perhaps after the first print break... >> >> Sent from my iPhone >> >>> On 24 Jun 2014, at 6:57 pm, "Nakia Brewer" wrote: >>> >>> Hi, >>> >>> I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file. >>> This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2). >>> >>> When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly..... >>> (Happy to send someone the generated PDF). >>> >>> I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure >>> (Weird that card 2 prints correct when its the same size etc as card 1) >>> >>> I appreciate any ideas.... >>> >>> anyway code below. >>> >>> put ("Print" & return & "Print2") into tCardsToPrint >>> -- Lock screen so user doesn't see card change >>> lock screen >>> open stack "Printing" >>> open printing to pdf tFilePath >>> if the result is "Cancel" then exit saveInspection >>> repeat with x = 1 to the number of lines of tCardsToPrint >>> print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700 >>> print break >>> end repeat >>> close printing >>> close stack "Printing" >>> send resetForm to me in 0 milliseconds >>> send buildPendingTasks to this stack in 0 milliseconds >>> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvlahos at mac.com Wed Jun 25 01:43:47 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Tue, 24 Jun 2014 22:43:47 -0700 Subject: Shell command syntax in Windows In-Reply-To: <124853676987.20140624155940@ahsoftware.net> References: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> <124853676987.20140624155940@ahsoftware.net> Message-ID: <21403BA3-769C-4E87-B746-7A3B602D6A64@mac.com> I was able to get a dir listing but not at the correct folder. The example I used was to get a directory listing from shell. What I really want to do is send ?cmd=show? to the mxie.lnk (shortcut to the application) in the path ?C:\ProgramData\Microsoft\Start Menu\Programs\Zultys MX\ . If I navigate to C:\ProgramData\Microsoft\Start Menu\Programs\Zultys MX\ in the Windows cmd shell and then issue ?mxie.lnk cmd=show? at the prompt the mxie application comes to the front. Bill On Jun 24, 2014, at 3:59 PM, Mark Wieder wrote: > Bill- > > Monday, June 23, 2014, 7:45:52 PM, you wrote: > >> I?m trying to run a shell command on Windows and the following >> code gives an error on the ?put the wheel of ?dir? into field ?one?. > >> The goal of the script below is to get a directory listing in the Programs folder. > >> Setup: A field ?one? and a button where this script is in. > >> on mouseUp >> set the shellCommand to ?C:\ProgramData\Microsoft\Start Menu\Programs? >> put shell (?dir?) into field ?one? >> end mouseUp > > Been a while since I've had to deal with Windows, but I believe the > shellCommand has to point to either command.com or cmd.exe, depending > on the Windows version. > > If you want to get a directory listing of the Programs folder, why not > set the defaultFolder and get the files? > > -- > -Mark Wieder > ahsoftware at gmail.com > > This communication may be unlawfully collected and stored by the National > Security Agency (NSA) in secret. The parties to this email do not > consent to the retrieving or storing of this communication and any > related metadata, as well as printing, copying, re-transmitting, > disseminating, or otherwise using it. If you believe you have received > this communication in error, please delete it immediately. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Wed Jun 25 10:56:15 2014 From: vclement at gmail.com (Vaughn Clement) Date: Wed, 25 Jun 2014 07:56:15 -0700 Subject: Image control in a Background In-Reply-To: <1403658237952-4680627.post@n4.nabble.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> Message-ID: Hi Simon Very interesting link you included. The stack is another great reference material that is undocumented. It only took me about three minutes to understand what he was trying to accomplish here. I did a version similar to this in FileMaker while back so that I could do quick searches by a word or phrase to find answers to my scripting tasks. I offered it to of the developers not knowing that this stack was available. This is the kind of thing that needs to be developed and updated by LC for all developers. I have an issue with LC in that they want to sell instruction at pretty high cost when it should be included in the product documentation. I understand they're trying to use this to raise capital to keep the business running, but it also doesn't help to retain new users who struggle to learn live code and to afford the expensive instructional content offered by LC. The latest example was a summer school. I'm not saying that this is not good for people that have in less money to spend. Most new developers simply can't afford to spend hundreds if not thousands of dollars a year to learn LC. For example; Apple just released a new programming language for Xcode swift, and they supplied a 600 page PDF document defining how to use swift to design ISO apps. In addition to that they have an online help system that has heaps of technical assistance available to all users. One caveat about the help is that it does include developer support for general questions at no cost. They also include many PDFs and instructional videos. Obviously the user base is a lot larger than live code, but if you're going to provide a product like live code at a minimum you need to provide adequate instructional media. Looking at the how-to forum is clear that there are endless questions by developers but cannot find the proper instructional media. Enough preaching most new developers understand by now the shortfall in instructional media. I just answered Scott Rossi's email that describes the issue, and some questions and comments. Please refer to that in this how-to email. Your comment: Now you could continue doing it the way you have it setup in your openCard script and in the mouseUp, just make sure to; set the filename of image "imageField1" of this card to "" ("" is shorthand for empty) Where I mention it in the above post. Trust me I had your script running with only removing the "then" correcting the spelling and that line. Please clarify why this line is used: set the filename of image "imageField1" of this card to "" ("" is shorthand for empty) Where in the script are you using this to empty the image control. And why would you empty the image control? Sorry for the novice question, but not to ask the question doesn't help to get the answer. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Tue, Jun 24, 2014 at 6:03 PM, Simon wrote: > Hi Vaughn, > First off > "The answer I get is it just takes a long time to learn?" > No, but I understand that if you have been a programmer using another > language then it is more difficult. Lots of times I just think of a word > to > describe what I want to do and there it is in the dictionary. > This plugin helps things even further; > http://bjoernke.com/?target=bvgdocu > > Now to the problem at hand. > To make things clear when you say "...group background..." you mean a group > who's "background behavior is set to true" and in that case if the image > control is in that group it will be the same on all pages with that group. > > Now you could continue doing it the way you have it setup in your openCard > script and in the mouseUp, just make sure to; > set the filename of image "imageField1" of this card to "" ("" is > shorthand for empty) > Where I mention it in the above post. > Trust me I had your script running with only removing the "then" correcting > the spelling and that line. > > Now I'm not sure what impact on performance of using it when all the images > get updated but it probably doesn't matter as I think the things like that > are only set when the card opens. > If it does then yes, you have to break the image out of the group. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680627.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Wed Jun 25 12:03:29 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 25 Jun 2014 10:03:29 -0600 Subject: Shell command syntax in Windows In-Reply-To: References: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> <124853676987.20140624155940@ahsoftware.net> Message-ID: DOH, ignore the ; method. For some reason I was stuck in mac/linux thinking. The absolute method still works fine. (could embed a return in your command string rather than a semicolon.) Sorry bout that, was sleepy. On Tue, Jun 24, 2014 at 6:19 PM, Mike Bonner wrote: > Easiest way to do it with shell is with the absolute path. Or you could cd > to the location, and use a semicolon to string two commands like so: > put shell(merge("cd [[path]] ; dir")) into field one -- changes directory, > then gets the dir. > Or this with an absolute path. > > put the shortfilepath of "c:\whatever path\you need\" into tPath -- > shortfilepath so you don't have to worry about escaping spaces. Turns it > into an 8.3 path. > put shell(merge("dir [[tPath]]")) into field one -- single shell command > rather than 2 strung together with semicolon > > The shellcommand isn't used to set the path, it should point to the shell > you wish to use for the command execution. (not on my windows machine, so > can't tell you where cmd is) Shouldn't be needed in this case though. > > > On Tue, Jun 24, 2014 at 4:59 PM, Mark Wieder > wrote: > >> Bill- >> >> Monday, June 23, 2014, 7:45:52 PM, you wrote: >> >> > I m trying to run a shell command on Windows and the following >> > code gives an error on the put the wheel of dir into field one . >> >> > The goal of the script below is to get a directory listing in the >> Programs folder. >> >> > Setup: A field one and a button where this script is in. >> >> > on mouseUp >> > set the shellCommand to C:\ProgramData\Microsoft\Start Menu\Programs >> > put shell ( dir ) into field one >> > end mouseUp >> >> Been a while since I've had to deal with Windows, but I believe the >> shellCommand has to point to either command.com or cmd.exe, depending >> on the Windows version. >> >> If you want to get a directory listing of the Programs folder, why not >> set the defaultFolder and get the files? >> >> -- >> -Mark Wieder >> ahsoftware at gmail.com >> >> This communication may be unlawfully collected and stored by the National >> Security Agency (NSA) in secret. The parties to this email do not >> consent to the retrieving or storing of this communication and any >> related metadata, as well as printing, copying, re-transmitting, >> disseminating, or otherwise using it. If you believe you have received >> this communication in error, please delete it immediately. >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From simon at asato-media.com Wed Jun 25 13:46:59 2014 From: simon at asato-media.com (Simon) Date: Wed, 25 Jun 2014 10:46:59 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> Message-ID: <1403718419734-4680632.post@n4.nabble.com> Here: "on mouseUp --/ the image from mobilePickPhoto uses the template image construct --set it off screen so we don't see ift flash / set the loc of the templateImage to -10000,-10000 set the filename of image "imageField1" of this card to "" " Now as to why that works I didn't test if it was a screen refresh problem which is what it appears to be. The test would have been to throw in a "wait 1 (or can it be 0?) milliseconds with messages" into that script. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680632.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Wed Jun 25 14:04:15 2014 From: vclement at gmail.com (Vaughn Clement) Date: Wed, 25 Jun 2014 11:04:15 -0700 Subject: Image control in a Background In-Reply-To: <1403718419734-4680632.post@n4.nabble.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <1403718419734-4680632.post@n4.nabble.com> Message-ID: Hi Simon If you read the reply to Scott you will see the full description of the solution I am trying to come up with. On Wednesday, June 25, 2014, Simon wrote: > Here: > "on mouseUp > --/ the image from mobilePickPhoto uses the template image construct > --set it off screen so we don't see ift flash / > set the loc of the templateImage to -10000,-10000 > set the filename of image "imageField1" of this card to "" " > > Now as to why that works I didn't test if it was a screen refresh problem > which is what it appears to be. The test would have been to throw in a > "wait 1 (or can it be 0?) milliseconds with messages" into that script. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680632.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 > -- Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From jacque at hyperactivesw.com Wed Jun 25 14:55:37 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jun 2014 13:55:37 -0500 Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> Message-ID: <53AB1B29.5010801@hyperactivesw.com> On 6/25/2014, 9:56 AM, Vaughn Clement wrote: > Very interesting link you included. > The stack is another great reference material that is undocumented. The User Guide is often overlooked. A pretty good explanation of groups and backgrounds, and their differences and behavior, begins on page 107 of the guide. The User Guide can be accessed from either the Help menu or from the Resources icon in the toolbar. > Please clarify why this line is used: set the filename of image > "imageField1" of this card to "" ("" is > shorthand for empty) > > Where in the script are you using this to empty the image control. And why > would you empty the image control? This may be superstitious behavior based on an occasional delay when loading multimedia into player objects. In a player, it is sometimes necessary to set the filename to empty before resetting it to a different video. But for image objects it isn't needed, and you can omit that instruction. I have a stack that does exactly what you're doing; it loads a different image into a grouped image object every time the card changes. It works fine by just replacing the content with a new image. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jun 25 15:35:01 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jun 2014 14:35:01 -0500 Subject: URLEncode accent-i In-Reply-To: <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> References: <53A88D2D.2010904@hyperactivesw.com> <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> Message-ID: <53AB2465.9070603@hyperactivesw.com> I had high hopes but converting to ISO didn't work. That yields: Santer%EDa The server wants UTF8 and I think (but am not sure) that I need to get: Santer%C3%ADa I haven't found the right combination of uniEncode/Decode and urlEncode that doesn't make a mess of the string. Does anyone know how to do this without manually replacing every possible combination of high-ascii characters? On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote: > Hi, > > this is because you are working on Mac. You have to convert it first from Mac to Iso. > > A URLencode(mactoiso("Santer?a")) > > should do. > > Regards, > > Matthias > > > Am 23.06.2014 um 22:25 schrieb J. Landman Gay : > >> I need to send this word to the server: Santer?a >> >> When urlEncoded, LiveCode produces: Santer%92a >> >> The encoded character is a backslash instead of the accent-i. The server doesn't recognize that, and online URL encoders give various different encodings depending on what source I designate (ascii, UTF8, UTF16, etc.) >> >> Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, we're not ready to make a switch yet. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From sc at sahores-conseil.com Wed Jun 25 16:27:21 2014 From: sc at sahores-conseil.com (Pierre Sahores) Date: Wed, 25 Jun 2014 22:27:21 +0200 Subject: URLEncode accent-i In-Reply-To: <53AB2465.9070603@hyperactivesw.com> References: <53A88D2D.2010904@hyperactivesw.com> <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> <53AB2465.9070603@hyperactivesw.com> Message-ID: Hi Jacqueline, When you say ? I need to send this word to the server: Santer?a ? : Are you speaking from the web server or from the database server ? If the database server is your problematic target, witch one are you using : PostgreSQL; MySQL; SQLite; other ? I got, times ago such kind of troubles against PostgreSQL before solving them definitively in using a simple and trustable solution i can explicit if appropriate. Best Regards, Pierre Le 25 juin 2014 ? 21:35, J. Landman Gay a ?crit : > I had high hopes but converting to ISO didn't work. That yields: Santer%EDa > > The server wants UTF8 and I think (but am not sure) that I need to get: > Santer%C3%ADa > > I haven't found the right combination of uniEncode/Decode and urlEncode that doesn't make a mess of the string. Does anyone know how to do this without manually replacing every possible combination of high-ascii characters? > > On 6/23/2014, 4:26 PM, Matthias Rebbe | M-R-D wrote: >> Hi, >> >> this is because you are working on Mac. You have to convert it first from Mac to Iso. >> >> A URLencode(mactoiso("Santer?a")) >> >> should do. >> >> Regards, >> >> Matthias >> >> >> Am 23.06.2014 um 22:25 schrieb J. Landman Gay : >> >>> I need to send this word to the server: Santer?a >>> >>> When urlEncoded, LiveCode produces: Santer%92a >>> >>> The encoded character is a backslash instead of the accent-i. The server doesn't recognize that, and online URL encoders give various different encodings depending on what source I designate (ascii, UTF8, UTF16, etc.) >>> >>> Where did LC get %92, and how would I correct the encoding? I'm using LC 6.6.1, we're not ready to make a switch yet. >>> >>> -- >>> Jacqueline Landman Gay | jacque at hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com > > -- > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From lists at mangomultimedia.com Wed Jun 25 16:29:25 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Wed, 25 Jun 2014 16:29:25 -0400 Subject: URLEncode accent-i In-Reply-To: <53AB2465.9070603@hyperactivesw.com> References: <53A88D2D.2010904@hyperactivesw.com> <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> <53AB2465.9070603@hyperactivesw.com> Message-ID: On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay wrote: > > The server wants UTF8 and I think (but am not sure) that I need to get: > Santer%C3%ADa Convert the string to UTF8 prior to urlencoding it: put "Santer?a" into theStr put unidecode(uniencode(theStr), "utf8") into thestr put urlencode(theStr) -- Trevor DeVore Blue Mango Learning Systems www.screensteps.com - www.clarify-it.com From jacque at hyperactivesw.com Wed Jun 25 16:47:51 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jun 2014 15:47:51 -0500 Subject: URLEncode accent-i In-Reply-To: References: <53A88D2D.2010904@hyperactivesw.com> <68DE4BD8-64DA-4552-8B58-904993EFE58C@m-r-d.de> <53AB2465.9070603@hyperactivesw.com> Message-ID: <53AB3577.3090804@hyperactivesw.com> On 6/25/2014, 3:29 PM, Trevor DeVore wrote: > On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay > wrote: > >> >> The server wants UTF8 and I think (but am not sure) that I need to get: >> Santer%C3%ADa > > > Convert the string to UTF8 prior to urlencoding it: > > put "Santer?a" into theStr > put unidecode(uniencode(theStr), "utf8") into thestr > put urlencode(theStr) > Thanks (again) Trevor, that seems to do it. I'll see if the server likes that incarnation. Pierre, the data is going to a Rails script, which does some things and then puts it into a database. I'm not actually sure what type of database it is, but I don't send to it directly. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From john at splash21.com Wed Jun 25 17:19:03 2014 From: john at splash21.com (John Craig) Date: Wed, 25 Jun 2014 22:19:03 +0100 Subject: Learning about server In-Reply-To: <5396D639.1000307@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> Message-ID: <53AB3CC7.5060007@splash21.com> I've created a url shortening service with LC server that I want to write up as an example app. It seems like quite a good project to start with as it's fairly short / easy to complete, but not without having to solve a few problems first. There's exposure to quite a good mix of things to get it up and running - and I'll also add a captcha image to prevent robots... http://8up.uk On 10/06/2014 10:56, John Craig wrote: > Any areas in particular that interest you? I was speaking to someone > recently about writing a book on LC server - not sure how much > interest there would be, but here is the current list of possible topics; > > Basic .lc server scripts > Sessions > Basic logging in and out with sessions > SQL primer > Server scripts with MySQL > Logging in and out with a database > Web applications > User and group permissions > Javascript > AJAX > Web APIs > Push notifications: iOS/Android > Basic record versioning with AJAX > > > With hangouts / skype and all the other wonders of the interweb, > delivery could be fun.. > > > On 10/06/2014 04:00, Dar Scott wrote: >> I would like to learn about server. >> >> But, as Frodo would way, I don?t know the way. >> >> Dar Scott >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From simon at asato-media.com Wed Jun 25 17:51:44 2014 From: simon at asato-media.com (Simon) Date: Wed, 25 Jun 2014 14:51:44 -0700 (PDT) Subject: Image control in a Background In-Reply-To: <53AB1B29.5010801@hyperactivesw.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> Message-ID: <1403733104077-4680640.post@n4.nabble.com> Hi Jacque, "But for image objects it isn't needed, and you can omit that instruction." Actually it was the only way to get the script to work on mobile when I actually put it on my device. You are correct in that aside from the small errors the code should run perfectly. I figured it had something to do with coming out of the photo library. The first time you add/change the photo it works as it should but if you decide that you don't like that photo and try to change it then it gets all frumpy and throws all it's toys out of the cradle -set the filename of image "imageField1" of this card to ""- does the trick. One other improvement I found set the loc of the templateImage to -10000,-10000 Makes it very slow in coming out of the photo library set the vis of the templateImage to false Is much much faster. Both of these things are mobile related only. Or... it's just me. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680640.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Wed Jun 25 18:10:42 2014 From: vclement at gmail.com (Vaughn Clement) Date: Wed, 25 Jun 2014 15:10:42 -0700 Subject: Image control in a Background In-Reply-To: <1403733104077-4680640.post@n4.nabble.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> Message-ID: Hi So many great suggestions, I am pleased to see the variety of solutions. Scott pointed out that LC has many ways to be coded and it is the designers choice. Now I need to finish testing to see if I can get the desired result. I have a lot to consider and to try each suggestion to see what works best. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Wed, Jun 25, 2014 at 2:51 PM, Simon wrote: > Hi Jacque, > "But for image objects it isn't needed, and you can omit that instruction." > Actually it was the only way to get the script to work on mobile when I > actually put it on my device. > You are correct in that aside from the small errors the code should run > perfectly. I figured it had something to do with coming out of the photo > library. > > The first time you add/change the photo it works as it should but if you > decide that you don't like that photo and try to change it then it gets all > frumpy and throws all it's toys out of the cradle -set the filename of > image > "imageField1" of this card to ""- does the trick. > > One other improvement I found > set the loc of the templateImage to -10000,-10000 > Makes it very slow in coming out of the photo library > set the vis of the templateImage to false > Is much much faster. Both of these things are mobile related only. > > Or... it's just me. > > Simon > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680640.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 sc at sahores-conseil.com Wed Jun 25 18:14:50 2014 From: sc at sahores-conseil.com (Pierre Sahores) Date: Thu, 26 Jun 2014 00:14:50 +0200 Subject: URLEncode accent-i References: <53AB3577.3090804@hyperactivesw.com> Message-ID: D?but du message r?exp?di? : > De: "J. Landman Gay" > Objet: R?p : URLEncode accent-i > Date: 25 juin 2014 22:47:51 UTC+2 > ?: How to use LiveCode > R?pondre ?: How to use LiveCode > > On 6/25/2014, 3:29 PM, Trevor DeVore wrote: >> On Wed, Jun 25, 2014 at 3:35 PM, J. Landman Gay >> wrote: >> >>> >>> The server wants UTF8 and I think (but am not sure) that I need to get: >>> Santer%C3%ADa >> >> >> Convert the string to UTF8 prior to urlencoding it: >> >> put "Santer?a" into theStr >> put unidecode(uniencode(theStr), "utf8") into thestr >> put urlencode(theStr) >> > > Thanks (again) Trevor, that seems to do it. I'll see if the server likes that incarnation. Hopefully, this will do the work as long as ... > > Pierre, the data is going to a Rails script, which does some things and then puts it into a database. I'm not actually sure what type of database it is, but I don't send to it directly. ? my way would?t help in this case as long as, in short, the solution consists to set up the client-encoding charset used by LC-Server to communicate with the SQL Server via an SQL request sent just after opening the SQL connection and before any further SQL insert/update requests. > > -- > 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 -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com From roger.e.eller at sealedair.com Wed Jun 25 19:07:46 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 25 Jun 2014 19:07:46 -0400 Subject: Learning about server In-Reply-To: <53AB3CC7.5060007@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> Message-ID: On Android, when I try to copy the shortened URL, this is what I get: "You can now copy the shortened URL... Powered by LiveCode Community Server" It would hilite the URL, "http://8up.uk/M" but not copy it. ~Roger Sent from my Android tablet On Jun 25, 2014 5:19 PM, "John Craig" wrote: > I've created a url shortening service with LC server that I want to write > up as an example app. It seems like quite a good project to start with as > it's fairly short / easy to complete, but not without having to solve a few > problems first. There's exposure to quite a good mix of things to get it > up and running - and I'll also add a captcha image to prevent robots... > > http://8up.uk > > > On 10/06/2014 10:56, John Craig wrote: > >> Any areas in particular that interest you? I was speaking to someone >> recently about writing a book on LC server - not sure how much interest >> there would be, but here is the current list of possible topics; >> >> Basic .lc server scripts >> Sessions >> Basic logging in and out with sessions >> SQL primer >> Server scripts with MySQL >> Logging in and out with a database >> Web applications >> User and group permissions >> Javascript >> AJAX >> Web APIs >> Push notifications: iOS/Android >> Basic record versioning with AJAX >> >> >> With hangouts / skype and all the other wonders of the interweb, delivery >> could be fun.. >> >> >> On 10/06/2014 04:00, Dar Scott wrote: >> >>> I would like to learn about server. >>> >>> But, as Frodo would way, I don?t know the way. >>> >>> Dar Scott >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 25 20:34:34 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 25 Jun 2014 19:34:34 -0500 Subject: Image control in a Background In-Reply-To: <1403733104077-4680640.post@n4.nabble.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> Message-ID: That's good to know. My app is desktop only and it must be different there. Thanks for the heads up. On June 25, 2014 4:51:44 PM CDT, Simon wrote: >Hi Jacque, >"But for image objects it isn't needed, and you can omit that >instruction." >Actually it was the only way to get the script to work on mobile when I >actually put it on my device. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From scott at elementarysoftware.com Wed Jun 25 21:16:20 2014 From: scott at elementarysoftware.com (Scott Morrow) Date: Wed, 25 Jun 2014 18:16:20 -0700 Subject: Learning about server In-Reply-To: <53AB3CC7.5060007@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> Message-ID: <0471FDC1-5ACD-4F7C-8E3B-C1E20A6718EF@elementarysoftware.com> FWIW? Although a ?good? url probably shouldn?t have an equal sign? I?ve got one which appears to work in most browsers but gets reported as not valid when using 8up.uk And count me as interested in any LC Server book. ? Scott Morrow On Jun 25, 2014, at 2:19 PM, John Craig wrote: > I've created a url shortening service with LC server that I want to write up as an example app. It seems like quite a good project to start with as it's fairly short / easy to complete, but not without having to solve a few problems first. There's exposure to quite a good mix of things to get it up and running - and I'll also add a captcha image to prevent robots... > > http://8up.uk > > > On 10/06/2014 10:56, John Craig wrote: >> Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; >> >> Basic .lc server scripts >> Sessions >> Basic logging in and out with sessions >> SQL primer >> Server scripts with MySQL >> Logging in and out with a database >> Web applications >> User and group permissions >> Javascript >> AJAX >> Web APIs >> Push notifications: iOS/Android >> Basic record versioning with AJAX >> >> >> With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. >> >> >> On 10/06/2014 04:00, Dar Scott wrote: >>> I would like to learn about server. >>> >>> But, as Frodo would way, I don?t know the way. >>> >>> Dar Scott >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john at splash21.com Thu Jun 26 02:26:20 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 07:26:20 +0100 Subject: Learning about server In-Reply-To: <0471FDC1-5ACD-4F7C-8E3B-C1E20A6718EF@elementarysoftware.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> <0471FDC1-5ACD-4F7C-8E3B-C1E20A6718EF@elementarysoftware.com> Message-ID: <53ABBD0C.3080502@splash21.com> The regex I'm using to validate URL's isn't good enough yet - it needs a few tweaks - like the '=' ! On 26/06/2014 02:16, Scott Morrow wrote: > FWIW? Although a ?good? url probably shouldn?t have an equal sign? I?ve got one which appears to work in most browsers but gets reported as not valid when using 8up.uk > > > > And count me as interested in any LC Server book. > ? > Scott Morrow > On Jun 25, 2014, at 2:19 PM, John Craig wrote: > >> I've created a url shortening service with LC server that I want to write up as an example app. It seems like quite a good project to start with as it's fairly short / easy to complete, but not without having to solve a few problems first. There's exposure to quite a good mix of things to get it up and running - and I'll also add a captcha image to prevent robots... >> >> http://8up.uk >> >> >> On 10/06/2014 10:56, John Craig wrote: >>> Any areas in particular that interest you? I was speaking to someone recently about writing a book on LC server - not sure how much interest there would be, but here is the current list of possible topics; >>> >>> Basic .lc server scripts >>> Sessions >>> Basic logging in and out with sessions >>> SQL primer >>> Server scripts with MySQL >>> Logging in and out with a database >>> Web applications >>> User and group permissions >>> Javascript >>> AJAX >>> Web APIs >>> Push notifications: iOS/Android >>> Basic record versioning with AJAX >>> >>> >>> With hangouts / skype and all the other wonders of the interweb, delivery could be fun.. >>> >>> >>> On 10/06/2014 04:00, Dar Scott wrote: >>>> I would like to learn about server. >>>> >>>> But, as Frodo would way, I don?t know the way. >>>> >>>> Dar Scott >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From john at splash21.com Thu Jun 26 02:56:05 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 07:56:05 +0100 Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> Message-ID: <53ABC405.1090700@splash21.com> It copies and pastes OK on my android tablet (4.0.3). If the text is hilited, then that's what should copy... Were you on a device or emulator? On 26/06/2014 00:07, Roger Eller wrote: > On Android, when I try to copy the shortened URL, this is what I get: > > "You can now copy the shortened URL... > Powered by LiveCode Community Server" > > It would hilite the URL, "http://8up.uk/M" but not copy it. > > ~Roger > > Sent from my Android tablet > On Jun 25, 2014 5:19 PM, "John Craig" wrote: > >> I've created a url shortening service with LC server that I want to write >> up as an example app. It seems like quite a good project to start with as >> it's fairly short / easy to complete, but not without having to solve a few >> problems first. There's exposure to quite a good mix of things to get it >> up and running - and I'll also add a captcha image to prevent robots... >> >> http://8up.uk >> >> >> On 10/06/2014 10:56, John Craig wrote: >> >>> Any areas in particular that interest you? I was speaking to someone >>> recently about writing a book on LC server - not sure how much interest >>> there would be, but here is the current list of possible topics; >>> >>> Basic .lc server scripts >>> Sessions >>> Basic logging in and out with sessions >>> SQL primer >>> Server scripts with MySQL >>> Logging in and out with a database >>> Web applications >>> User and group permissions >>> Javascript >>> AJAX >>> Web APIs >>> Push notifications: iOS/Android >>> Basic record versioning with AJAX >>> >>> >>> With hangouts / skype and all the other wonders of the interweb, delivery >>> could be fun.. >>> >>> >>> On 10/06/2014 04:00, Dar Scott wrote: >>> >>>> I would like to learn about server. >>>> >>>> But, as Frodo would way, I don?t know the way. >>>> >>>> Dar Scott >>>> >>>> >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john at splash21.com Thu Jun 26 04:43:29 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 09:43:29 +0100 Subject: Learning about server In-Reply-To: <0471FDC1-5ACD-4F7C-8E3B-C1E20A6718EF@elementarysoftware.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> <0471FDC1-5ACD-4F7C-8E3B-C1E20A6718EF@elementarysoftware.com> Message-ID: <53ABDD31.9090207@splash21.com> If it's valid ... it's valid :) I've replaced the url validation with a much looser regex On 26/06/2014 02:16, Scott Morrow wrote: > FWIW? Although a ?good? url probably shouldn?t have an equal sign? I?ve got one which appears to work in most browsers but gets reported as not valid when using 8up.uk > > > > And count me as interested in any LC Server book. > ? > Scott Morrow > On Jun 25, 2014, at 2:19 PM, John Craig wrote: > > From john at splash21.com Thu Jun 26 07:12:11 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 12:12:11 +0100 Subject: LiveCode Server: start session problem Message-ID: <53AC000B.8080707@splash21.com> I decided to add some session code to my server project, but the following command causes an error on 6.6.1 on Linux (community and commercial); start session LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those versions out. Anyone know how far back I have to go to get a stable release with working sessions? From john at splash21.com Thu Jun 26 07:18:37 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 12:18:37 +0100 Subject: LiveCode Server: start session problem In-Reply-To: <53AC000B.8080707@splash21.com> References: <53AC000B.8080707@splash21.com> Message-ID: <53AC018D.5030505@splash21.com> took a punt on 6.7.0 DP4 - same problem ..... On 26/06/2014 12:12, John Craig wrote: > I decided to add some session code to my server project, but the > following command causes an error on 6.6.1 on Linux (community and > commercial); > > start session > > LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. > I've now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those > versions out. > Anyone know how far back I have to go to get a stable release with > working sessions? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hello at simonsmith.co Thu Jun 26 07:20:56 2014 From: hello at simonsmith.co (Simon Smith) Date: Thu, 26 Jun 2014 13:20:56 +0200 Subject: LiveCode Server: start session problem In-Reply-To: <53AC000B.8080707@splash21.com> References: <53AC000B.8080707@splash21.com> Message-ID: Hi John I am running the latest version - linux and windows and sessions are working fine for me. whats happening when you use start session ? Simon On Thu, Jun 26, 2014 at 1:12 PM, John Craig wrote: > I decided to add some session code to my server project, but the following > command causes an error on 6.6.1 on Linux (community and commercial); > > start session > > LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've > now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those versions > out. > Anyone know how far back I have to go to get a stable release with working > sessions? > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From roger.e.eller at sealedair.com Thu Jun 26 07:22:13 2014 From: roger.e.eller at sealedair.com (Roger Eller) Date: Thu, 26 Jun 2014 07:22:13 -0400 Subject: Learning about server In-Reply-To: <53ABC405.1090700@splash21.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> <53ABC405.1090700@splash21.com> Message-ID: It's a real device... running 4.1.1, and I've tried a couple different browsers. Sent from my Android tablet On Jun 26, 2014 2:56 AM, "John Craig" wrote: > It copies and pastes OK on my android tablet (4.0.3). If the text is > hilited, then that's what should copy... > Were you on a device or emulator? > > > On 26/06/2014 00:07, Roger Eller wrote: > >> On Android, when I try to copy the shortened URL, this is what I get: >> >> "You can now copy the shortened URL... >> Powered by LiveCode Community Server" >> >> It would hilite the URL, "http://8up.uk/M" but not copy it. >> >> ~Roger >> >> Sent from my Android tablet >> On Jun 25, 2014 5:19 PM, "John Craig" wrote: >> >> I've created a url shortening service with LC server that I want to write >>> up as an example app. It seems like quite a good project to start with >>> as >>> it's fairly short / easy to complete, but not without having to solve a >>> few >>> problems first. There's exposure to quite a good mix of things to get it >>> up and running - and I'll also add a captcha image to prevent robots... >>> >>> http://8up.uk >>> >>> >>> On 10/06/2014 10:56, John Craig wrote: >>> >>> Any areas in particular that interest you? I was speaking to someone >>>> recently about writing a book on LC server - not sure how much interest >>>> there would be, but here is the current list of possible topics; >>>> >>>> Basic .lc server scripts >>>> Sessions >>>> Basic logging in and out with sessions >>>> SQL primer >>>> Server scripts with MySQL >>>> Logging in and out with a database >>>> Web applications >>>> User and group permissions >>>> Javascript >>>> AJAX >>>> Web APIs >>>> Push notifications: iOS/Android >>>> Basic record versioning with AJAX >>>> >>>> >>>> With hangouts / skype and all the other wonders of the interweb, >>>> delivery >>>> could be fun.. >>>> >>>> >>>> On 10/06/2014 04:00, Dar Scott wrote: >>>> >>>> I would like to learn about server. >>>>> >>>>> But, as Frodo would way, I don?t know the way. >>>>> >>>>> Dar Scott >>>>> >>>>> >>>>> _______________________________________________ >>>>> use-livecode mailing list >>>>> use-livecode at lists.runrev.com >>>>> Please visit this url to subscribe, unsubscribe and manage your >>>>> subscription preferences: >>>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>>> >>>>> >>>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >>>> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>>> >>>> >>>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From john at splash21.com Thu Jun 26 07:40:22 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 12:40:22 +0100 Subject: LiveCode Server: start session problem In-Reply-To: References: <53AC000B.8080707@splash21.com> Message-ID: <53AC06A6.8000905@splash21.com> Hi, Simon. It's encouraging that it's working on your system - hopefully there's just some misconfiguration on my machine. I get the following error when I add the start session line; file "/var/www/vhosts/8up.uk/httpdocs/index.lc" row 16, col 1: Row 16 is the line in question. Column 1 is the 's' of 'start' ! Everything else is working fine - database access, etc. Only that one command seems to throw an error. When you say the latest, do you mean the latest stable (6.6.2) or the latest DP (6.7.0)? Thanks On 26/06/2014 12:20, Simon Smith wrote: > Hi John > > I am running the latest version - linux and windows and sessions are > working fine for me. > > whats happening when you use start session ? > > Simon > > > On Thu, Jun 26, 2014 at 1:12 PM, John Craig wrote: > >> I decided to add some session code to my server project, but the following >> command causes an error on 6.6.1 on Linux (community and commercial); >> >> start session >> >> LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've >> now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those versions >> out. >> Anyone know how far back I have to go to get a stable release with working >> sessions? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at 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 at applicationinsight.com Thu Jun 26 07:41:01 2014 From: dave at applicationinsight.com (Dave Kilroy) Date: Thu, 26 Jun 2014 04:41:01 -0700 (PDT) Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> <53ABC405.1090700@splash21.com> Message-ID: <1403782861097-4680653.post@n4.nabble.com> I think the issue might be uppercase letters - I've just tried this on a mac and an iPad - it is happy with "runrev.com" but borks at "Runrev.com" ----- "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680653.html Sent from the Revolution - User mailing list archive at Nabble.com. From john at splash21.com Thu Jun 26 07:47:55 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 12:47:55 +0100 Subject: Learning about server In-Reply-To: <1403782861097-4680653.post@n4.nabble.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <53AB3CC7.5060007@splash21.com> <53ABC405.1090700@splash21.com> <1403782861097-4680653.post@n4.nabble.com> Message-ID: <53AC086B.3090105@splash21.com> My take#2 at the url validation caused the uppercase problem. I've just updated it to take#3 - uppercase letters are welcome! Problem is I don't use regular expressions that often, so I get rusty - may take another few tweaks yet, but fingers crossed :) On 26/06/2014 12:41, Dave Kilroy wrote: > I think the issue might be uppercase letters - I've just tried this on a mac > and an iPad - it is happy with "runrev.com" but borks at "Runrev.com" > > > > ----- > "Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680653.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 john at splash21.com Thu Jun 26 08:10:23 2014 From: john at splash21.com (John Craig) Date: Thu, 26 Jun 2014 13:10:23 +0100 Subject: LiveCode Server: start session problem In-Reply-To: References: <53AC000B.8080707@splash21.com> Message-ID: <53AC0DAF.2040805@splash21.com> Thanks, Simon. Knowing that it worked elsewhere was enough to start me poking around again. Issue was resolved by specifying an alternative sessionSavePath. The original path '/tmp' is writable, etc. (and PHP uses it), but changing it worked for LC. :D On 26/06/2014 12:20, Simon Smith wrote: > Hi John > > I am running the latest version - linux and windows and sessions are > working fine for me. > > whats happening when you use start session ? > > Simon > > > On Thu, Jun 26, 2014 at 1:12 PM, John Craig wrote: > >> I decided to add some session code to my server project, but the following >> command causes an error on 6.6.1 on Linux (community and commercial); >> >> start session >> >> LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've >> now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those versions >> out. >> Anyone know how far back I have to go to get a stable release with working >> sessions? >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From hello at simonsmith.co Thu Jun 26 08:10:25 2014 From: hello at simonsmith.co (Simon Smith) Date: Thu, 26 Jun 2014 14:10:25 +0200 Subject: LiveCode Server: start session problem In-Reply-To: <53AC06A6.8000905@splash21.com> References: <53AC000B.8080707@splash21.com> <53AC06A6.8000905@splash21.com> Message-ID: Hi John Might be easier for to email the script to me and I can take a look. What you can try though is: Ensure that start session is at the very top of your script (e.g. line 1 ) and that you also have end session at the very end of the script. If you output anything before calling start session - thats probably whats causing the problem. Kind Regards Simon On Thu, Jun 26, 2014 at 1:40 PM, John Craig wrote: > Hi, Simon. It's encouraging that it's working on your system - hopefully > there's just some misconfiguration on my machine. > I get the following error when I add the start session line; > > file "/var/www/vhosts/8up.uk/httpdocs/index.lc" > row 16, col 1: > > Row 16 is the line in question. Column 1 is the 's' of 'start' ! > Everything else is working fine - database access, etc. Only that one > command seems to throw an error. > > When you say the latest, do you mean the latest stable (6.6.2) or the > latest DP (6.7.0)? > > Thanks > > > > > On 26/06/2014 12:20, Simon Smith wrote: > >> Hi John >> >> I am running the latest version - linux and windows and sessions are >> working fine for me. >> >> whats happening when you use start session ? >> >> Simon >> >> >> On Thu, Jun 26, 2014 at 1:12 PM, John Craig wrote: >> >> I decided to add some session code to my server project, but the >>> following >>> command causes an error on 6.6.1 on Linux (community and commercial); >>> >>> start session >>> >>> LC 6.6.2 had another problem, which is why I rolled back to 6.6.1. I've >>> now also tried 6.6.0 and 6.5.2 - 'start session' also bombs those >>> versions >>> out. >>> Anyone know how far back I have to go to get a stable release with >>> working >>> sessions? >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From jbv at souslelogo.com Thu Jun 26 10:05:31 2014 From: jbv at souslelogo.com (jbv at souslelogo.com) Date: Thu, 26 Jun 2014 17:05:31 +0300 Subject: Problem on Win 7 with an app compiled with LC 6.6 on Mac Message-ID: Hi list, I am using LC 6.6 build 4003 on Mac OSX 10.5.5 to compile an app made years ago on LC 4.5.3 and constantly improved over the years, with each new version of the app compiled with a more recent version of LC... And suddenly today, some of the users of this app in various cities of the country seem to encounter problems on Win 7, like app freeze or display going totally crazy... My own tests on Win 7 don't show any problem, and these users are hundreds of kilometers away and rather computer illiterate, so they can't give me much details... Other users of the Mac version of the same app compiled with the same LC 6.6 don't seem to have any problem. I have just re-compiled the app with an old LC 6.5.2 and am waiting for feedback from my clients... So far I don't see what else I could do... Has anybody faced a similar problem ? Any wise tip about what to do ? Thanks jbv From lists at mangomultimedia.com Thu Jun 26 10:25:18 2014 From: lists at mangomultimedia.com (Trevor DeVore) Date: Thu, 26 Jun 2014 10:25:18 -0400 Subject: Problem on Win 7 with an app compiled with LC 6.6 on Mac In-Reply-To: References: Message-ID: On Thursday, June 26, 2014, wrote: > > > So far I don't see what else I could do... Has anybody faced a > similar problem ? Any wise tip about what to do ? > 6.6 added high-res support for desktop. I would check your zoom settings on your Windows 7 install and see if it is the same as your customers. When zoom is set to 150% or higher Windows enters a high-dpi mode and things behave a little differently. If you aren't familiar with zoom setting search Google for "make text larger 150%" and you should find instructions on changing the setting. -- Trevor DeVore From ambassador at fourthworld.com Thu Jun 26 11:22:27 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Jun 2014 08:22:27 -0700 Subject: Error handling (was Re: "nan" v. try-catch for arithmetic) In-Reply-To: <53A9EE83.5050109@hyperactivesw.com> References: <53A9EE83.5050109@hyperactivesw.com> Message-ID: <53AC3AB3.6020103@fourthworld.com> J. Landman Gay wrote: > On 6/24/2014, 1:02 PM, Graham Samuel wrote: >> I get a result, "nan", and the catch doesn't fire. Why not? Maybe >> someone can explain what the engine is doing here - or is it just an >> obscure bug? > > A "catch" only triggers when there is a script error. In this case > there is no error, "nan" is a legitimate value for a calculation > that can't be computed. This conversation raises a broader issue that's concerned me for some time, and I'm hoping I've just overlooked some rule at play that would make things more readily understandable: How can a scripter know in advance which commands require try-catch to handle errors and which require checking the result? For example: decompress and arrayDecode require try-catch, throwing an execution error if the data passed to them is not in the expected format. But decrypt throws no execution error at all when unencrypted data is passed, instead describing that there is a problem in the result. Is there a simple rule that would allow scripters to understand when try-catch is necessary and when the result should be checked instead? If not, should there be? Or perhaps better yet, could error handling be made uniform, maybe as part of the Open Language initiative? If so, what would it look like? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From ambassador at fourthworld.com Thu Jun 26 11:30:53 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 26 Jun 2014 08:30:53 -0700 Subject: Problem on Win 7 with an app compiled with LC 6.6 on Mac In-Reply-To: References: Message-ID: <53AC3CAD.7030908@fourthworld.com> jbv wrote: > I am using LC 6.6 build 4003... > And suddenly today, some of the users of this app in various > cities of the country seem to encounter problems on Win 7... The current Stable version is 6.6.2, and the Release Notes for that version include mention of a great many fixes related to display issues, hangs, and crashes on Windows. It's always useful to try to ship with the most recent shipping version. And during development it's very useful to work with the next pre-release build, since you'll be able to submit any reports that may be needed during the development cycle for that build so they can be addressed before release. Please keep us posted if 6.6.2 resolves the issue, and if not whether the current next test release (6.7 DP4) still exhibits the issue. If it does, please note the bug report number here in your reply so those of us keenly interested in Windows issues can follow the fix process for it. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter: http://twitter.com/FourthWorldSys From vclement at gmail.com Thu Jun 26 11:56:13 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 08:56:13 -0700 Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> Message-ID: Hi This morning I did some testing to address the image updating in the current card in the image control and did not come up with a solution that worked. I have the On OpenCard script that is working to add the image to the image control, and as before the on OpenCard script cannot update the image field in the open card because the script has already triggered. I tried to use a button on the card to refresh the image field to display the last edited image, but everything I tried had no effect? I tried to have the image assigned to the card id to reload using this in the button: *on mouseUp* *if* the number of this card >1 *then* *set* the defaultfolder to specialFolderPath ("documents") & "/photos/" *if* there is a file the short id of this card *then* *put* specialFolderPath ("documents") & "/photos/" & the short ID of this card into thePath *set* the filename of image "imageField1" of this card to thepath *end* *if* *end* *if* *end mouseUp* I am I totally off base trying to use this approach? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Wed, Jun 25, 2014 at 5:34 PM, J. Landman Gay wrote: > That's good to know. My app is desktop only and it must be different > there. Thanks for the heads up. > > On June 25, 2014 4:51:44 PM CDT, Simon wrote: > >Hi Jacque, > >"But for image objects it isn't needed, and you can omit that > >instruction." > >Actually it was the only way to get the script to work on mobile when I > >actually put it on my device. > -- > 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 lcsql.com Thu Jun 26 12:23:17 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 26 Jun 2014 09:23:17 -0700 Subject: Error handling (was Re: "nan" v. try-catch for arithmetic) In-Reply-To: <53AC3AB3.6020103@fourthworld.com> References: <53A9EE83.5050109@hyperactivesw.com> <53AC3AB3.6020103@fourthworld.com> Message-ID: On Thu, Jun 26, 2014 at 8:22 AM, Richard Gaskin wrote: > Is there a simple rule that would allow scripters to understand when > try-catch is necessary and when the result should be checked instead? > > If not, should there be? > > Or perhaps better yet, could error handling be made uniform, maybe as part > of the Open Language initiative? If so, what would it look like? > Personally, I think error handling should be made uniform. As you say, sometimes try/catch is required, other times the result must be checked and sometimes "it" must be checked. Then there's the different ways errors are reported by the database library commands. Maybe there should a new variable - the error for example - which can be used to report all error conditions. Another approach might be the ability to specify a error callback handler similar to the libURL commands. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From paul at researchware.com Thu Jun 26 13:05:25 2014 From: paul at researchware.com (Paul Dupuis) Date: Thu, 26 Jun 2014 13:05:25 -0400 Subject: Error handling (was Re: "nan" v. try-catch for arithmetic) In-Reply-To: References: <53A9EE83.5050109@hyperactivesw.com> <53AC3AB3.6020103@fourthworld.com> Message-ID: <53AC52D5.5010902@researchware.com> On 6/26/2014 12:23 PM, Peter Haworth wrote: > On Thu, Jun 26, 2014 at 8:22 AM, Richard Gaskin > wrote: > >> Is there a simple rule that would allow scripters to understand when >> try-catch is necessary and when the result should be checked instead? >> >> If not, should there be? >> >> Or perhaps better yet, could error handling be made uniform, maybe as part >> of the Open Language initiative? If so, what would it look like? >> > Personally, I think error handling should be made uniform. As you say, > sometimes try/catch is required, other times the result must be checked and > sometimes "it" must be checked. Then there's the different ways errors are > reported by the database library commands. > Try - Catch functionally is present many programming languages for a very different purpose than general error reporting. Language commands and functions that can detect, trap, and report an error, should return appropriate error information that the programmer can check for. LC generally does this via "the result", the returned value of a function itself (an empty return value from some functions can equal an error condition, or a function may return an error message), or "it" - and among these, improved consistency would be a nice improvement. However, no language can really prevent programming error or error based on unexpected inputs - i.e. add "fred" to tVar - that results in an execution error. Try/Catch serves as a tool in modern programming languages to allow a programmer to catch any UNEXPECTED execution error and handle it in some controlled way. Both mechanism can be used together. In the example below, if tInput contained text ("fred") rather than a number or if either "someFunction" or "someCommand return errors, the entire block of code has a graceful exit. try add tInput to tVar put someFuntion(tVar) into tVar2 if tVar2 is empty throw error someCommand tVar2 if the result begins with "error" then throw error catch tError -- controlled exit here end try From simon at asato-media.com Thu Jun 26 13:25:17 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 10:25:17 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> Message-ID: <1403803517991-4680665.post@n4.nabble.com> Hi Vaughn, Still not clear on what you are doing because it looks like you are just repeating the openCard script from your original posting, so... on mouseUp openCard end mouseUp You should not see anything happen because it just loads the same image in. Unless I read this too quickly. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680665.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 14:45:17 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 11:45:17 -0700 Subject: Image control in a Background In-Reply-To: <1403803517991-4680665.post@n4.nabble.com> References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> Message-ID: Hi Simon I was testing to see what might work to finish adding the image without having to leave the card and return to trigger the openCard script again? I thought a button script "Update Image" button might trigger the update? I used a portion of the open card script thinking it would work. Since the image was added to the photos subfolder "thePath" reloading it again might be a way to update the image in the control while not leaving the card? It did not have any effect, so I am not sure how to make it update the image without leaving the card. - I not only have to leave the card, but open another card and return to have it update the image now. - I thought to move to another card and then return, but I trapped myself by using a datagrid to select the card to be opened, and a simple goto card and return script messes up the datagrid row update. I have a button to close the card now and return to the datagrid. This allows me to select another card in the datagrid to view, and then I must return to the grid when finished. The process of going back to the datagrid and then returning to the same card will not update the image. But going to a different card, returning, and then opening the original card does update the image as you would expect when the open card script is triggered. On Thursday, June 26, 2014, Simon wrote: > Hi Vaughn, > Still not clear on what you are doing because it looks like you are just > repeating the openCard script from your original posting, so... > on mouseUp > openCard > end mouseUp > > You should not see anything happen because it just loads the same image in. > > Unless I read this too quickly. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680665.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 vclement at gmail.com Thu Jun 26 15:09:39 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 12:09:39 -0700 Subject: Image control in a Background In-Reply-To: References: <53A487CA.3010205@hyperactivesw.com> <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> Message-ID: Hi Simon I really don't understand the image control in a background group yet. I just added a new blank card with the background group and it opened with the last image that was edited on an existing card. I am just not grasping the group and control logic to make it do what I am trying to do? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 11:45 AM, Vaughn Clement wrote: > Hi Simon > > I was testing to see what might work to finish adding the image without > having to leave the card and return to trigger the openCard script again? I > thought a button script "Update Image" button might trigger the update? I > used a portion of the open card script thinking it would work. > > Since the image was added to the photos subfolder "thePath" reloading it > again might be a way to update the image in the control while not leaving > the card? It did not have any effect, so I am not sure how to make it > update the image without leaving the card. > - I not only have to leave the card, but open another card and return to > have it update the image now. > - I thought to move to another card and then return, but I trapped myself > by using a datagrid to select the card to be opened, and a simple goto card > and return script messes up the datagrid row update. I have a button to > close the card now and return to the datagrid. This allows me to select > another card in the datagrid to view, and then I must return to the grid > when finished. The process of going back to the datagrid and then returning > to the same card will not update the image. But going to a different card, > returning, and then opening the original card does update the image as you > would expect when the open card script is triggered. > > On Thursday, June 26, 2014, Simon wrote: > >> Hi Vaughn, >> Still not clear on what you are doing because it looks like you are just >> repeating the openCard script from your original posting, so... >> on mouseUp >> openCard >> end mouseUp >> >> You should not see anything happen because it just loads the same image >> in. >> >> Unless I read this too quickly. >> >> Simon >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680665.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 simon at asato-media.com Thu Jun 26 15:11:13 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 12:11:13 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> Message-ID: <1403809873197-4680668.post@n4.nabble.com> Hi Vaughn, You did see that I posted everything was working after a few small changes in your original script? I never received an answer that you tested it and it didn't work for you. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680668.html Sent from the Revolution - User mailing list archive at Nabble.com. From richmondmathewson at gmail.com Thu Jun 26 15:14:32 2014 From: richmondmathewson at gmail.com (Richmond) Date: Thu, 26 Jun 2014 22:14:32 +0300 Subject: non-Functional Mac PPC installers? Message-ID: <53AC7118.1060002@gmail.com> I wonder what the point of stating that the Mac installer of Livecode 6.6.2 will install on a Mac PPC when it won't? I have just tried (again) to install this version on my G5 iMac running Mac OS 10.5.8: http://forums.livecode.com/viewtopic.php?f=6&t=20611 Richmond. From vclement at gmail.com Thu Jun 26 15:15:23 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 12:15:23 -0700 Subject: Image control in a Background In-Reply-To: <1403809873197-4680668.post@n4.nabble.com> References: <53A9F06E.3060907@hyperactivesw.com> <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> Message-ID: Hi Simon Is this the email: Hi Vaughn, Aside from a spelling mistake just add parentheses around all the folder paths e.g. put (specialFolderPath("documents") & "/photos/" & the short ID of this card) into thePath and then delete the current filename on mouseUp --/ the image from mobilePickPhoto uses the template image construct --set it off screen so we don't see ift flash / set the loc of the templateImage to -10000,-10000 set the filename of image "imageField1" of this card to "" Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 12:11 PM, Simon wrote: > Hi Vaughn, > You did see that I posted everything was working after a few small changes > in your original script? I never received an answer that you tested it and > it didn't work for you. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680668.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 simon at asato-media.com Thu Jun 26 15:35:33 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 12:35:33 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> Message-ID: <1403811333804-4680671.post@n4.nabble.com> Yep on mouseUp --/ the image from mobilePickPhoto uses the template image construct --set it off screen so we don't see ift flash / --set the loc of the templateImage to -10000,-10000 set the vis of the templateImage to false --NEWLINE --delete file (specialFolderPath("documents") & "/photos/" & the short ID of this card) set the filename of image "imageField1" of this card to "" --NEWLINE --/choose a photo/ mobilePickPhoto "library" lock screen if the result <> "cancel" then --/ make the filepath to save the chosen image/ put (specialFolderPath("documents") & "/photos/" & the short ID of this card) into thePath --/ put the image into a file in the photos folder / put the text of the last image of this card into URL("binfile:" & thePath) --/set the loc of image 1 to the loc of group "picgroup' so it will align/ set the loc of image "imageField1" to the loc of group "picgroup" --/ show the image on the card / set the filename of image "imageField1" of this card to thePath --/ destroy the image imported from the library / delete the last image of this card end if unlock screen end mouseUp There is another change I made in there as well. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680671.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 15:42:20 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 12:42:20 -0700 Subject: Image control in a Background In-Reply-To: <1403811333804-4680671.post@n4.nabble.com> References: <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> Message-ID: Hi Simon Let me try this to test my stack for errors. On Thursday, June 26, 2014, Simon wrote: > Yep > > on mouseUp > --/ the image from mobilePickPhoto uses the template image construct > --set it off screen so we don't see ift flash / > --set the loc of the templateImage to -10000,-10000 > set the vis of the templateImage to false --NEWLINE > --delete file (specialFolderPath("documents") & "/photos/" & the short > ID > of this card) > set the filename of image "imageField1" of this card to "" --NEWLINE > --/choose a photo/ > mobilePickPhoto "library" > lock screen > if the result <> "cancel" then > --/ make the filepath to save the chosen image/ > put (specialFolderPath("documents") & "/photos/" & the short ID of > this card) into thePath > --/ put the image into a file in the photos folder / > put the text of the last image of this card into URL("binfile:" & > thePath) > --/set the loc of image 1 to the loc of group "picgroup' so it will > align/ > set the loc of image "imageField1" to the loc of group "picgroup" > --/ show the image on the card / > set the filename of image "imageField1" of this card to thePath > --/ destroy the image imported from the library / > delete the last image of this card > end if > unlock screen > end mouseUp > > There is another change I made in there as well. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680671.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 > -- Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From vclement at gmail.com Thu Jun 26 15:47:15 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 12:47:15 -0700 Subject: Image control in a Background In-Reply-To: References: <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> Message-ID: Hi Simon I aasume that the current stack script is replaced with your card script? On Thursday, June 26, 2014, Vaughn Clement wrote: > Hi Simon > > Let me try this to test my stack for errors. > > On Thursday, June 26, 2014, Simon > wrote: > >> Yep >> >> on mouseUp >> --/ the image from mobilePickPhoto uses the template image construct >> --set it off screen so we don't see ift flash / >> --set the loc of the templateImage to -10000,-10000 >> set the vis of the templateImage to false --NEWLINE >> --delete file (specialFolderPath("documents") & "/photos/" & the short >> ID >> of this card) >> set the filename of image "imageField1" of this card to "" --NEWLINE >> --/choose a photo/ >> mobilePickPhoto "library" >> lock screen >> if the result <> "cancel" then >> --/ make the filepath to save the chosen image/ >> put (specialFolderPath("documents") & "/photos/" & the short ID of >> this card) into thePath >> --/ put the image into a file in the photos folder / >> put the text of the last image of this card into URL("binfile:" & >> thePath) >> --/set the loc of image 1 to the loc of group "picgroup' so it will >> align/ >> set the loc of image "imageField1" to the loc of group "picgroup" >> --/ show the image on the card / >> set the filename of image "imageField1" of this card to thePath >> --/ destroy the image imported from the library / >> delete the last image of this card >> end if >> unlock screen >> end mouseUp >> >> There is another change I made in there as well. >> >> Simon >> >> >> >> -- >> View this message in context: >> http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680671.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 >> > > > -- > Thank you > > Vaughn Clement > > Apps by Vaughn Clement (Support) > *http://www.appsbyvaughnclement.com/tools/home-page/ > * > Skype: vaughn.clement > https://secure.join.me/appsbyvclement > FaceTime: vclement at gmail.com > > LogMeIn also avaialble > Call on "ooVoo" at address: vaughnclement or 9282549062 > Ph. 928-254-9062 > > > -- Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From simon at asato-media.com Thu Jun 26 16:04:23 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 13:04:23 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> Message-ID: <1403813063494-4680674.post@n4.nabble.com> Vaughn Clement wrote > Hi Simon > I aasume that the current stack script is replaced with your card script? errr... you are confusing me, I don't have a card script. I posted a button script. Your original card script was ok. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680674.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 16:43:16 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 13:43:16 -0700 Subject: Image control in a Background In-Reply-To: <1403813063494-4680674.post@n4.nabble.com> References: <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> <1403813063494-4680674.post@n4.nabble.com> Message-ID: Hi Simon The original email had a on OpenCard Stack script and a script in the image control to manage the card image.. The button on the buyer's order "Button" is my script test. The black buttons are the main buttons. If you send me an email address I will send you the stack. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 1:04 PM, Simon wrote: > Vaughn Clement wrote > > Hi Simon > > I aasume that the current stack script is replaced with your card script? > > errr... you are confusing me, I don't have a card script. I posted a button > script. > Your original card script was ok. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680674.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 viktorasdi at gmail.com Thu Jun 26 17:08:51 2014 From: viktorasdi at gmail.com (Viktoras D.) Date: Thu, 26 Jun 2014 22:08:51 +0100 Subject: compatibility between Android SDK and Livecode versions Message-ID: Hi, is there a Livecode vs. Android SDK versions compatibility matrix available? Which SDK would work with Livecode 6.5 (on Windows 8)? Best wishes! Viktoras From pete at lcsql.com Thu Jun 26 17:12:03 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 26 Jun 2014 14:12:03 -0700 Subject: Name shadows another variable Message-ID: The above error has been flagged intermittently and incorrectly when compiling a script with Strict Compilation Mode turned on for as long as I've been using Livecode. In the last couple of days, the error has been flagged every time I compile a script in one particular application. I restart Livecode and all is OK - same combination of stacks, no recompile necessary. As far as I know, that's the only way to get around the issue unless I switch off Strict Compilation Mode which I am not willing to do. I know the bug has been entered at the QCC several times and I also know that so far it has been impossible to provide a recipe to reproduce it. I will add the stack exhibiting the problem to one of the error reports but I've done that in the past and RunRev have been unable to reproduce it. I am practically at a standstill with development of this application until this problem is fixed. It seems to me that someone at RunRev needs to take responsibility for finding what causes this problem using old fashioned methods, like going through the code, or reproduce it themselves. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From simon at asato-media.com Thu Jun 26 17:29:12 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 14:29:12 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> <1403813063494-4680674.post@n4.nabble.com> Message-ID: <1403818152537-4680678.post@n4.nabble.com> Hi Vaughn, Nope I don't need to see the stack. Everything is running correctly here. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680678.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 17:40:56 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 14:40:56 -0700 Subject: Image control in a Background In-Reply-To: <1403818152537-4680678.post@n4.nabble.com> References: <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> <1403813063494-4680674.post@n4.nabble.com> <1403818152537-4680678.post@n4.nabble.com> Message-ID: Hi Simon OK, thanks for the assistance. I will try the script in a button on the card. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 2:29 PM, Simon wrote: > Hi Vaughn, > Nope I don't need to see the stack. > Everything is running correctly here. > > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680678.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 vclement at gmail.com Thu Jun 26 18:00:18 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 15:00:18 -0700 Subject: Image control in a Background In-Reply-To: <1403811333804-4680671.post@n4.nabble.com> References: <1403658237952-4680627.post@n4.nabble.com> <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> Message-ID: Hi Simon I used the script in a button a aligned and edited as shown: The image was added from the button to the image control. But all the cards in the stack now have the last added image. This is where I was a few days ago where the script did this same thing? Did I edit it wrong? *on* mouseUp *--/ the image from mobilePickPhoto uses the template image construct* *--set it off screen so we don't see ift flash /* *--set the loc of the templateImage to -10000,-10000* *set* the vis of the templateImage to false *--NEWLINE* *--delete file (specialFolderPath("documents") & "/photos/" & the short ID* *--of this card)* *set* the filename of image "imageField1" of this card to "" *--NEWLINE* *--/choose a photo/* mobilePickPhoto "library" *lock* screen *if* the result <> "cancel" *then* *--/ make the filepath to save the chosen image/* *put* (specialFolderPath ("documents") & "/photos/" & the short ID of this card) into thePath *--/ put the image into a file in the photos folder /* *put* the text of the last image of this card into URL("binfile:" & thePath) *--/set the loc of image 1 to the loc of group "picgroup' so it will align/* *--set the loc of image "imageField1" to the loc of group "picgroup"* *--/ show the image on the card /* *set* the filename of image "imageField1" of this card to thePath *--/ destroy the image imported from the library /* *delete* the last image of this card *end* *if* *unlock* screen *end* mouseUp Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 12:35 PM, Simon wrote: > Yep > > on mouseUp > --/ the image from mobilePickPhoto uses the template image construct > --set it off screen so we don't see ift flash / > --set the loc of the templateImage to -10000,-10000 > set the vis of the templateImage to false --NEWLINE > --delete file (specialFolderPath("documents") & "/photos/" & the short > ID > of this card) > set the filename of image "imageField1" of this card to "" --NEWLINE > --/choose a photo/ > mobilePickPhoto "library" > lock screen > if the result <> "cancel" then > --/ make the filepath to save the chosen image/ > put (specialFolderPath("documents") & "/photos/" & the short ID of > this card) into thePath > --/ put the image into a file in the photos folder / > put the text of the last image of this card into URL("binfile:" & > thePath) > --/set the loc of image 1 to the loc of group "picgroup' so it will > align/ > set the loc of image "imageField1" to the loc of group "picgroup" > --/ show the image on the card / > set the filename of image "imageField1" of this card to thePath > --/ destroy the image imported from the library / > delete the last image of this card > end if > unlock screen > end mouseUp > > There is another change I made in there as well. > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680671.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 simon at asato-media.com Thu Jun 26 18:28:31 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 15:28:31 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> Message-ID: <1403821711408-4680681.post@n4.nabble.com> Yes, if there is no file "thePath" And I think we've discussed enough why this happens. So to fix it so that it doesn't show an image at all if there is no file "thePath": if there is a file the short id of this card then put (specialFolderPath ("documents") & "/photos/" & the short ID of this card) into thePath set the filename of image "imageField1" of this card to thePath else ---here is a new line set the filename of image "imageField1" of this card to "" ---here is a new line end if Update your openCard script Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680681.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 18:53:50 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 15:53:50 -0700 Subject: Image control in a Background In-Reply-To: <1403821711408-4680681.post@n4.nabble.com> References: <53AB1B29.5010801@hyperactivesw.com> <1403733104077-4680640.post@n4.nabble.com> <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> <1403821711408-4680681.post@n4.nabble.com> Message-ID: Hi Simon This is a real pleasure to say it is working as designed now. Your a real wizard at scripting. Looking at this from start to finish I can say I have learned a lot about the image control, but more over I have a better perspective on how to work to find solutions in scripting. Thanks for your time and effort!!! Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 3:28 PM, Simon wrote: > Yes, if there is no file "thePath" > And I think we've discussed enough why this happens. > > So to fix it so that it doesn't show an image at all if there is no file > "thePath": > > if there is a file the short id of this card then > put (specialFolderPath ("documents") & "/photos/" & the short ID of this > card) into thePath > set the filename of image "imageField1" of this card to thePath > else ---here is a new line > set the filename of image "imageField1" of this card to "" ---here is a new > line > end if > > Update your openCard script > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680681.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Thu Jun 26 19:10:03 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 27 Jun 2014 01:10:03 +0200 Subject: On my way to the LiveCode meeting Message-ID: <53ACA84B.7090006@economy-x-talk.com> Hi guys, Just wanted to let you know I'm on my way to the LiveCode meeting in Switzerland. If you want to participate too, just send an e-mail to me to Bjoernke. More info is available at http://www3.economy-x-talk.com/blog/ . I hope to see you there. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ From dunbarx at aol.com Thu Jun 26 19:54:48 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 26 Jun 2014 19:54:48 -0400 (EDT) Subject: Name shadows another variable In-Reply-To: References: Message-ID: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Peter, Can you tell me more about what this error is and does? Craig -----Original Message----- From: Peter Haworth To: How to use LiveCode Sent: Thu, Jun 26, 2014 5:12 pm Subject: Name shadows another variable The above error has been flagged intermittently and incorrectly when compiling a script with Strict Compilation Mode turned on for as long as I've been using Livecode. In the last couple of days, the error has been flagged every time I compile a script in one particular application. I restart Livecode and all is OK - same combination of stacks, no recompile necessary. As far as I know, that's the only way to get around the issue unless I switch off Strict Compilation Mode which I am not willing to do. I know the bug has been entered at the QCC several times and I also know that so far it has been impossible to provide a recipe to reproduce it. I will add the stack exhibiting the problem to one of the error reports but I've done that in the past and RunRev have been unable to reproduce it. I am practically at a standstill with development of this application until this problem is fixed. It seems to me that someone at RunRev needs to take responsibility for finding what causes this problem using old fashioned methods, like going through the code, or reproduce it themselves. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From simon at asato-media.com Thu Jun 26 20:06:02 2014 From: simon at asato-media.com (Simon) Date: Thu, 26 Jun 2014 17:06:02 -0700 (PDT) Subject: Image control in a Background In-Reply-To: References: <1403803517991-4680665.post@n4.nabble.com> <1403809873197-4680668.post@n4.nabble.com> <1403811333804-4680671.post@n4.nabble.com> <1403821711408-4680681.post@n4.nabble.com> Message-ID: <1403827562225-4680685.post@n4.nabble.com> Hi Vaughn, I'm glad to hear you got it working. The following is opinion and you may ignore it. I think you could benefit by going to Jacque's site and reviewing the stacks: http://www.hyperactivesw.com/revscriptconf/scriptingconferences.html There are also the forums: http://forums.livecode.com/index.php Which are better suited for questions like this one, here they mostly go on about increasing the decimal point accuracy of liveCode to surpass the 16 digit limit and stuff like that. Scott and Jacque are a couple of the most sought-after/expensive liveCode minds. But of course, either place is fine for you to ask questions. Lots of great material here: http://lessons.runrev.com/ Regards, Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-control-in-a-Background-tp4680553p4680685.html Sent from the Revolution - User mailing list archive at Nabble.com. From bonnmike at gmail.com Thu Jun 26 21:08:25 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 26 Jun 2014 19:08:25 -0600 Subject: Name shadows another variable In-Reply-To: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Message-ID: Not sure i'd know WHERE to do it, guess it depends on the script, but.. could you use "delete variable..." to fix the problem without having to restart lc? Of course this would probably require you to understand the source of the problem. Another thing I wonder about is the variable preservation preference setting. Wonder if you could pop the tick out of that, compile, then pop it back in. Pain in the butt though. There is a property (the preservervariables) also, that defaults to false I believe, but the recommendation in the dictionary is to not mess with that one. On Thu, Jun 26, 2014 at 5:54 PM, wrote: > Peter, > > > Can you tell me more about what this error is and does? > > > Craig > > > > -----Original Message----- > From: Peter Haworth > To: How to use LiveCode > Sent: Thu, Jun 26, 2014 5:12 pm > Subject: Name shadows another variable > > > The above error has been flagged intermittently and incorrectly when > compiling a script with Strict Compilation Mode turned on for as long as > I've been using Livecode. > > In the last couple of days, the error has been flagged every time I compile > a script in one particular application. I restart Livecode and all is OK - > same combination of stacks, no recompile necessary. > > As far as I know, that's the only way to get around the issue unless I > switch off Strict Compilation Mode which I am not willing to do. > > I know the bug has been entered at the QCC several times and I also know > that so far it has been impossible to provide a recipe to reproduce it. I > will add the stack exhibiting the problem to one of the error reports but > I've done that in the past and RunRev have been unable to reproduce it. > > I am practically at a standstill with development of this application until > this problem is fixed. > > It seems to me that someone at RunRev needs to take responsibility for > finding what causes this problem using old fashioned methods, like going > through the code, or reproduce it themselves. > > Pete > lcSQL Software > Home of lcStackBrowser and > SQLiteAdmin > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Thu Jun 26 22:44:00 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Thu, 26 Jun 2014 19:44:00 -0700 (PDT) Subject: Calculating age Message-ID: <1403837040438-4680687.post@n4.nabble.com> Hi, does anyone know how to calculate someones age in years from two dates? Currently I am doing something kludgy like: convert dateone from date to seconds convert datetwo from date to seconds put datetwo - dateone into age -- calculate the age in seconds -- divide by the number of seconds per year put 60*60*24*365.25 into secs_per_year put the trunc of (age / secs_per_year) into age But I suspect it is only approximate. Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Thu Jun 26 22:48:49 2014 From: vclement at gmail.com (Vaughn Clement) Date: Thu, 26 Jun 2014 19:48:49 -0700 Subject: Calculating age In-Reply-To: <1403837040438-4680687.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> Message-ID: Hi In a database you use a date of birth and calculate "today" to get the number of days since birth div. by 365 Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 On Thu, Jun 26, 2014 at 7:44 PM, Mark Smith wrote: > Hi, does anyone know how to calculate someones age in years from two dates? > > Currently I am doing something kludgy like: > > convert dateone from date to seconds > convert datetwo from date to seconds > put datetwo - dateone into age -- calculate the age in seconds > -- divide by the number of seconds per year > put 60*60*24*365.25 into secs_per_year > put the trunc of (age / secs_per_year) into age > > But I suspect it is only approximate. > > Thanks > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.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 dunbarx at aol.com Fri Jun 27 00:12:07 2014 From: dunbarx at aol.com (dunbarx at aol.com) Date: Fri, 27 Jun 2014 00:12:07 -0400 (EDT) Subject: Calculating age In-Reply-To: <1403837040438-4680687.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> Message-ID: <8D15FD5182E8354-4FC-1B45F@webmail-vd014.sysops.aol.com> Hi. There would be a problem with certain date ranges. Think of thie variation of your script: on mouseUp convert "1/14/1951" from date to seconds put it into dateone convert "1/14/1956" from date to seconds put it into datetwo put datetwo - dateone into age -- calculate the age in seconds -- divide by the number of seconds per year put 60*60*24*365.25 into secs_per_year answer trunc(age / secs_per_year) end mouseUp Its the leap years. You claculate seconds, (and even do the 365.25 thing) but that value may not "close" a leap year if it falls in the wrong place. Craig Newman convert dateone from date to seconds convert datetwo from date to seconds put datetwo - dateone into age -- calculate the age in seconds -- divide by the number of seconds per year put 60*60*24*365.25 into secs_per_year put the trunc of (age / secs_per_year) into age -----Original Message----- From: Mark Smith To: use-revolution Sent: Thu, Jun 26, 2014 10:45 pm Subject: Calculating age Hi, does anyone know how to calculate someones age in years from two dates? Currently I am doing something kludgy like: convert dateone from date to seconds convert datetwo from date to seconds put datetwo - dateone into age -- calculate the age in seconds -- divide by the number of seconds per year put 60*60*24*365.25 into secs_per_year put the trunc of (age / secs_per_year) into age But I suspect it is only approximate. Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.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 charles at buchwald.ca Fri Jun 27 00:57:27 2014 From: charles at buchwald.ca (Charles E Buchwald) Date: Thu, 26 Jun 2014 23:57:27 -0500 Subject: Calculating age In-Reply-To: <1403837040438-4680687.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> Message-ID: <178646A4-329A-472E-8CE5-9F9CAAA94B36@buchwald.ca> Check out Sarah Reichelt's Date & Time Library. It makes this easy, as well as several other useful time and date calculations. Cheers, - Charles On 26 Jun 2014, at 9:44 PM, Mark Smith wrote: > Hi, does anyone know how to calculate someones age in years from two dates? > > Currently I am doing something kludgy like: > > convert dateone from date to seconds > convert datetwo from date to seconds > put datetwo - dateone into age -- calculate the age in seconds > -- divide by the number of seconds per year > put 60*60*24*365.25 into secs_per_year > put the trunc of (age / secs_per_year) into age > > But I suspect it is only approximate. > > Thanks > > > > -- > View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.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 -- Charles E. Buchwald CEO/Director General Museografica Digital http://digital.museografica.com LC Developer Tools: http://buchwald.ca/developer-tools/ Email Notice: http://wp.me/P3aT4d-33 From bonnmike at gmail.com Fri Jun 27 01:01:19 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 26 Jun 2014 23:01:19 -0600 Subject: Calculating age In-Reply-To: <178646A4-329A-472E-8CE5-9F9CAAA94B36@buchwald.ca> References: <1403837040438-4680687.post@n4.nabble.com> <178646A4-329A-472E-8CE5-9F9CAAA94B36@buchwald.ca> Message-ID: Since you only need straight years, subtract the birth year from the current date then a simple switch statement to adjust for whether the birthdate has been met for the year should work fine. Something like: switch case check to see if the month now < month of the birthdate if so, subtract 1 from tYears break case if the month now = the month of the birthdate tBdate) and the day now < the day of the birthdate if so, subtract 1 from tYears break end switch Also, curious now. Can you convert dates to seconds if they're before the epoch? Its not working for me in 6.6.2. Anything after 1970 works fine. On Thu, Jun 26, 2014 at 10:57 PM, Charles E Buchwald wrote: > Check out Sarah Reichelt's Date & Time Library. > It makes this easy, as well as several other useful time and date > calculations. > Cheers, > - Charles > > On 26 Jun 2014, at 9:44 PM, Mark Smith > wrote: > > > Hi, does anyone know how to calculate someones age in years from two > dates? > > > > Currently I am doing something kludgy like: > > > > convert dateone from date to seconds > > convert datetwo from date to seconds > > put datetwo - dateone into age -- calculate the age in seconds > > -- divide by the number of seconds per year > > put 60*60*24*365.25 into secs_per_year > > put the trunc of (age / secs_per_year) into age > > > > But I suspect it is only approximate. > > > > Thanks > > > > > > > > -- > > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687.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 > > -- > Charles E. Buchwald > CEO/Director General > Museografica Digital > http://digital.museografica.com > > LC Developer Tools: http://buchwald.ca/developer-tools/ > > Email Notice: http://wp.me/P3aT4d-33 > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 lcsql.com Fri Jun 27 01:43:22 2014 From: pete at lcsql.com (Peter Haworth) Date: Thu, 26 Jun 2014 22:43:22 -0700 Subject: Name shadows another variable In-Reply-To: References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Message-ID: Hi Mike, My workaround is to turn off strict compilation mode, compile and turn it back on again but that's fraught with dangerous consequences if I forget to switch it on again. Bottom line is, this shouldn't happen, there should be no need for any workaround. A recent thread talked about "paper cuts". For me this is an open, festering wound! Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jun 26, 2014 at 6:08 PM, Mike Bonner wrote: > Not sure i'd know WHERE to do it, guess it depends on the script, but.. > could you use "delete variable..." to fix the problem without having to > restart lc? Of course this would probably require you to understand the > source of the problem. Another thing I wonder about is the variable > preservation preference setting. Wonder if you could pop the tick out of > that, compile, then pop it back in. Pain in the butt though. There is a > property (the preservervariables) also, that defaults to false I believe, > but the recommendation in the dictionary is to not mess with that one. > > > On Thu, Jun 26, 2014 at 5:54 PM, wrote: > > > Peter, > > > > > > Can you tell me more about what this error is and does? > > > > > > Craig > > > > > > > > -----Original Message----- > > From: Peter Haworth > > To: How to use LiveCode > > Sent: Thu, Jun 26, 2014 5:12 pm > > Subject: Name shadows another variable > > > > > > The above error has been flagged intermittently and incorrectly when > > compiling a script with Strict Compilation Mode turned on for as long as > > I've been using Livecode. > > > > In the last couple of days, the error has been flagged every time I > compile > > a script in one particular application. I restart Livecode and all is > OK - > > same combination of stacks, no recompile necessary. > > > > As far as I know, that's the only way to get around the issue unless I > > switch off Strict Compilation Mode which I am not willing to do. > > > > I know the bug has been entered at the QCC several times and I also know > > that so far it has been impossible to provide a recipe to reproduce it. I > > will add the stack exhibiting the problem to one of the error reports but > > I've done that in the past and RunRev have been unable to reproduce it. > > > > I am practically at a standstill with development of this application > until > > this problem is fixed. > > > > It seems to me that someone at RunRev needs to take responsibility for > > finding what causes this problem using old fashioned methods, like going > > through the code, or reproduce it themselves. > > > > Pete > > lcSQL Software > > Home of lcStackBrowser and > > SQLiteAdmin > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription > > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bvg at mac.com Fri Jun 27 04:56:49 2014 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 27 Jun 2014 10:56:49 +0200 Subject: [ANN] Meet up in Zurich Tomorrow Message-ID: <9ABD8534-E423-4DD5-9468-FD7B979671FE@mac.com> Hi everyone This is your last chance to register for the meet up tomorrow, if you don't register now, it's first come first serve, and the room is almost full. What: An afternoon of talking, socialising, having fun When: 13:00 - 17:00 28. June 2014 (possibly dinner after that) Where: Karl der Grosse, Kirchgasse 14, 8001 Z?rich Map: https://goo.gl/maps/BqqKz Some hints about getting to the meet up: It's strongly suggested to use public transport. There is basically no parking, unless you use one of the costly parking garages. If you must, the "Urania" parking garage one is probably the easiest option. From there you cross the river and turn seawards (south), and follow the tram line for two stations until you reach the Church with two towers (Grossm?nster). For all sane people, Tram Nr. 4 goes directly from the main station (Hauptbahnhof, station "Bahnhofquai/HB") to the Grossm?nster (station "Helmhaus"). Once there, ascend the short stairs, and pass the church, leaving it on your left side. You should see the corner house with the large stone statue embedded into the second floor, as soon as you leave the stairs. It says "Zentrum Karl der Grosse" in large Golden Letters on the side. -- Anyone thinking about joining on the 28. June in Zurich? Please send me an email! -- Use an alternative Dictionary viewer: http://bjoernke.com/bvgdocu/ Chat with other RunRev developers: http://bjoernke.com/chatrev/ From alex at tweedly.net Fri Jun 27 07:39:41 2014 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 27 Jun 2014 12:39:41 +0100 Subject: Name shadows another variable In-Reply-To: References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Message-ID: <53AD57FD.3000303@tweedly.net> On 27/06/2014 06:43, Peter Haworth wrote: > Bottom line is, this shouldn't happen, there should be no need for any > workaround. > > A recent thread talked about "paper cuts". For me this is an open, > festering wound! > > I absolutely agree. And it's been festering for a long time. One annoying thing about it is that its long term survival confirms the suspicion that the RunRev development team don't routinely use explicitvariable checks (otherwise it would have bothered them enough to fix it by now). This failure to use a simple, easy safety mechanism makes me worry about how quality conscious their internal development processes are. It should at least be possible to produce a "debug" version of the IDE which would provide additional info in a log file or similar whenever a "variable shadowing" error happens, in the hope that this additional info would help to track it down. It's been occurring regularly, but without being reproducible, for so long it might need an indirect approach to get to the bottom of it. -- Alex. From pete at lcsql.com Fri Jun 27 12:31:20 2014 From: pete at lcsql.com (Peter Haworth) Date: Fri, 27 Jun 2014 09:31:20 -0700 Subject: Name shadows another variable In-Reply-To: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Message-ID: Hi Craig, The error message "name shadows another variable" is shown as when strict compile mode is on. It's supposed to indicate that the name of a declared variable has already been declared somewhere else in the script, perhaps with another local statement in the same script/handler or in a global declaration for the script. Problem is that it is sometimes displayed when there is no clash of names and the only way to get out of it (as far as I know) is to quite Livecode and run again. A full description is in my QCC report number 10511 Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jun 26, 2014 at 4:54 PM, wrote: > Peter, > > > Can you tell me more about what this error is and does? > > > Craig > > From pmbrig at gmail.com Fri Jun 27 12:47:04 2014 From: pmbrig at gmail.com (Peter M. Brigham) Date: Fri, 27 Jun 2014 12:47:04 -0400 Subject: Calculating age In-Reply-To: <1403837040438-4680687.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> Message-ID: <8C483AB2-93EC-4A21-B450-38973B2DC822@gmail.com> On Jun 26, 2014, at 10:44 PM, Mark Smith wrote: > Hi, does anyone know how to calculate someones age in years from two dates? > > Currently I am doing something kludgy like: > > convert dateone from date to seconds > convert datetwo from date to seconds > put datetwo - dateone into age -- calculate the age in seconds > -- divide by the number of seconds per year > put 60*60*24*365.25 into secs_per_year > put the trunc of (age / secs_per_year) into age > > But I suspect it is only approximate. > > Thanks Here's the handler that I use: function doAge birthDate,asOf -- return the age given birthdate = -- as of the date (if empty, assumes today) if asOf = empty then put the date into asOf end if convert birthDate to dateItems put item 1 of birthDate into birthYear convert asOf to dateitems put item 1 of asOf - birthYear - 1 into tAge if tAge < 0 then add 100 to tAge put item 1 of asOf into item 1 of birthDate convert birthDate to seconds convert asOf to seconds if birthDate <= asOf then add 1 to tAge return tAge end doAge -- Peter Peter M. Brigham pmbrig at gmail.com http://home.comcast.net/~pmbrig From vclement at gmail.com Fri Jun 27 17:20:42 2014 From: vclement at gmail.com (Vaughn Clement) Date: Fri, 27 Jun 2014 14:20:42 -0700 Subject: Code Signing Error Message-ID: Hi I recall a short time ago that one version of LC was getting code signing errors when building an IOS app. Does anyone know what version is working that does not produce code signing errors. I have 6.5.2 that I built the stack with. Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From mwieder at ahsoftware.net Fri Jun 27 22:08:42 2014 From: mwieder at ahsoftware.net (Mark Wieder) Date: Fri, 27 Jun 2014 19:08:42 -0700 Subject: Name shadows another variable In-Reply-To: References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> Message-ID: <85263631211.20140627190842@ahsoftware.net> Pete- Friday, June 27, 2014, 9:31:20 AM, you wrote: > A full description is in my QCC report number 10511 Having now read the bug report (*very* interesting reading) my thinking is that this may well be connected to variable preservation rather than explicitVars, even if you don't currently have variable preservation turned on. Here's my current theory: If you at some time in the past turned on variable preservation and had a script variable of the same name you are now using for a handler variable, then that variable scope is still stored with the stack. Until you can compile the script with no errors, that conflict will still remain. In other words, the stack has stored a reference to the named variable with a wider scope than you are now giving it, and that reference won't be wiped out until a successful script compilation. So... ensure that variable preservation is unchecked, change the name of the variable to something without a conflict, compile the script, and save the stack. I think that should clear up the problem for this stack. Since I never use variable preservation and always have strict compilation enabled I haven't run into this problem, and can't say for certain whether this will do the trick, but it makes sense to me that way. I also haven't looked to see where variables are being stored, and maybe someone else has a better sense of that. -- -Mark Wieder ahsoftware at gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. From jhj at jhj.com Fri Jun 27 22:38:01 2014 From: jhj at jhj.com (Jerry Jensen) Date: Fri, 27 Jun 2014 19:38:01 -0700 Subject: Name shadows another variable In-Reply-To: <85263631211.20140627190842@ahsoftware.net> References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> <85263631211.20140627190842@ahsoftware.net> Message-ID: <0AD5B397-CC3E-448A-9B63-E6AAF5C8E5CE@jhj.com> On Jun 27, 2014, at 7:08 PM, Mark Wieder wrote: > Pete- > > Friday, June 27, 2014, 9:31:20 AM, you wrote: > >> A full description is in my QCC report number 10511 > > Having now read the bug report (*very* interesting reading) my > thinking is that this may well be connected to variable preservation > rather than explicitVars, even if you don't currently have variable > preservation turned on. Here's my current theory: I have had trouble with this shadowing thing in the past, on more complicated projects than I'm working on now. I just checked, for the first time in a long time, and found variable preservation ON. I always use explicitVars. In the troubled times, I would often see the problem shortly after successful compiles, with the error seemingly unrelated to what I'm working on at the moment. Quit & Restart LC would make the trouble go away (and a successful compile) for a while. This one is SLIPPERY. I'll report if I see it again with variable preservation now off (for good). I'm now using 6.6.2, the troubles were with older 6.?.? versions. OSX 10.8.x in troubled times, OSX 10.9.3 now. .Jerry From gerry.orkin at gmail.com Fri Jun 27 22:57:13 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sat, 28 Jun 2014 12:57:13 +1000 Subject: Milliseconds -> minutes and seconds Message-ID: Hi all I'm playing an .mp3 file in iOS and saving the elapsed playing time (in milliseconds as reported by the native player) into an sqlite database as it plays. That's working fine. I'm now struggling to convert those milliseconds into a MM:SS format for real time display. Anyone done that? Cheers Gerry From Nakia.Brewer at westrac.com.au Fri Jun 27 23:38:43 2014 From: Nakia.Brewer at westrac.com.au (Nakia Brewer) Date: Sat, 28 Jun 2014 03:38:43 +0000 Subject: Code Signing Error In-Reply-To: References: Message-ID: <672E6FD1-F401-482E-85BA-42D98CB0AD16@westrac.com.au> On 6.6.2 I get no errors Sent from my iPhone > On 28 Jun 2014, at 7:21 am, "Vaughn Clement" wrote: > > Hi > > I recall a short time ago that one version of LC was getting code signing > errors when building an IOS app. > Does anyone know what version is working that does not produce code signing > errors. I have 6.5.2 that I built the stack with. > > Thank you > > Vaughn Clement > > Apps by Vaughn Clement (Support) > *http://www.appsbyvaughnclement.com/tools/home-page/ > * > Skype: vaughn.clement > https://secure.join.me/appsbyvclement > FaceTime: vclement at gmail.com > LogMeIn also avaialble > Call on "ooVoo" at address: vaughnclement or 9282549062 > Ph. 928-254-9062 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications. From peterwawood at gmail.com Sat Jun 28 00:45:00 2014 From: peterwawood at gmail.com (Peter W A Wood) Date: Sat, 28 Jun 2014 12:45:00 +0800 Subject: Milliseconds -> minutes and seconds References: Message-ID: Hi Gerry Is this any help? put 124869 into tData put tData div 60000 into tMinutes put tData mod 60000 into tRem put tRem div 1000 into tSeconds put tMinutes & ":" & tSeconds Regards Peter On 28 Jun 2014, at 10:57, Gerry Orkin wrote: > Hi all > > I'm playing an .mp3 file in iOS and saving the elapsed playing time (in milliseconds as reported by the native player) into an sqlite database as it plays. That's working fine. > > I'm now struggling to convert those milliseconds into a MM:SS format for real time display. Anyone done that? > > Cheers > > Gerry > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gerry.orkin at gmail.com Sat Jun 28 05:20:39 2014 From: gerry.orkin at gmail.com (Gerry Orkin) Date: Sat, 28 Jun 2014 19:20:39 +1000 Subject: Milliseconds -> minutes and seconds In-Reply-To: References: Message-ID: Perfect :) Many thanks. A real d'oh moment happening here :) g On 28 Jun 2014, at 2:45 pm, Peter W A Wood wrote: > Is this any help? From admin at FlexibleLearning.com Sat Jun 28 07:30:35 2014 From: admin at FlexibleLearning.com (FlexibleLearning.com) Date: Sat, 28 Jun 2014 12:30:35 +0100 Subject: Milliseconds -> minutes and seconds Message-ID: <001001cf92c4$6152b7d0$23f82770$@FlexibleLearning.com> Have a look at FieldFormatter. It does just this sort of thing... www.flexibleLearning.com/fieldformatter Hugh Senior FLCo Gerry Orkin wrote Hi all I'm playing an .mp3 file in iOS and saving the elapsed playing time (in milliseconds as reported by the native player) into an sqlite database as it plays. That's working fine. I'm now struggling to convert those milliseconds into a MM:SS format for real time display. Anyone done that? Cheers Gerry From capellan2000 at gmail.com Sat Jun 28 13:39:25 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 28 Jun 2014 10:39:25 -0700 (PDT) Subject: [OT] Dropbox modifies uploaded file Message-ID: <1403977165060-4680706.post@n4.nabble.com> Hi All, Many Developers in this platform uses Dropbox in their LiveCode's apps. So... I upload a PDF file of 1,147,732 kb (1.09 mb) then downloaded the same file to verify it Downloaded PDF file is 1,165,331 kb (1.11 mb) Both files are visually identical. How many of you have seen this before while using Dropbox? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Dropbox-modifies-uploaded-file-tp4680706.html Sent from the Revolution - User mailing list archive at Nabble.com. From MikeKerner at roadrunner.com Sat Jun 28 15:12:47 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sat, 28 Jun 2014 15:12:47 -0400 Subject: [OT] Dropbox modifies uploaded file In-Reply-To: <1403977165060-4680706.post@n4.nabble.com> References: <1403977165060-4680706.post@n4.nabble.com> Message-ID: I'm just taking a flyer, here, but they may actually be the same, and if you compare them byte-by-byte (say, use LC to open and read the files and them compare them), you may find they are the same. The difference may well be due to differences in block sizes and positions with the hard drive. Especially as you get into bigger drives, block sizes tend to grow. On Sat, Jun 28, 2014 at 1:39 PM, Alejandro Tejada wrote: > Hi All, > > Many Developers in this platform uses Dropbox in > their LiveCode's apps. So... > > I upload a PDF file of 1,147,732 kb (1.09 mb) > then downloaded the same file to verify it > Downloaded PDF file is 1,165,331 kb (1.11 mb) > > Both files are visually identical. > How many of you have seen this before > while using Dropbox? > > Thanks in advance! > > Al > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/OT-Dropbox-modifies-uploaded-file-tp4680706.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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From pete at lcsql.com Sat Jun 28 15:41:32 2014 From: pete at lcsql.com (Peter Haworth) Date: Sat, 28 Jun 2014 12:41:32 -0700 Subject: Name shadows another variable In-Reply-To: <85263631211.20140627190842@ahsoftware.net> References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> <85263631211.20140627190842@ahsoftware.net> Message-ID: On Fri, Jun 27, 2014 at 7:08 PM, Mark Wieder wrote: > So... ensure that variable preservation is unchecked, change the name > of the variable to something without a conflict, compile the script, > and save the stack. I think that should clear up the problem for this > stack. Since I never use variable preservation and always have strict > compilation enabled I haven't run into this problem, and can't say for > certain whether this will do the trick, but it makes sense to me that > way. I also haven't looked to see where variables are being stored, > and maybe someone else has a better sense of that. > Hi Mark, Thanks for the idea. I'm not sure I fully understand your explanation but I do have Variable Preservation turned on. It's unlikely there's a clash of variable names in a different scope since, like most of us, I use a naming convention for global, script local, and handler local variables. Having said that, the stack in question is one I've just started working on again after a long break and I may not have been as "educated" about variable naming conventions when I last worked on it :-) I tried what you suggested. After changing the name of the variable in question, the error went away for that instance of the variable but the same message came up for the same variable name in a different handler. At least it's consistent! Following that, I just continued changing variable names until the error stopped occurring - there were a couple of other variable names that were used in multiple handlers - and now all seems to be OK again. Not all variable names that were declared in different handlers were flagged by the way. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From capellan2000 at gmail.com Sat Jun 28 16:59:32 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Sat, 28 Jun 2014 13:59:32 -0700 (PDT) Subject: [OT] Dropbox modifies uploaded file In-Reply-To: References: <1403977165060-4680706.post@n4.nabble.com> Message-ID: <1403989172688-4680709.post@n4.nabble.com> Actually, both files have different checksums. I will check both files, byte by byte, to learn the differences between both. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Dropbox-modifies-uploaded-file-tp4680706p4680709.html Sent from the Revolution - User mailing list archive at Nabble.com. From dochawk at gmail.com Sat Jun 28 18:02:27 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Sat, 28 Jun 2014 15:02:27 -0700 Subject: [OT] Dropbox modifies uploaded file In-Reply-To: <1403989172688-4680709.post@n4.nabble.com> References: <1403977165060-4680706.post@n4.nabble.com> <1403989172688-4680709.post@n4.nabble.com> Message-ID: On Sat, Jun 28, 2014 at 1:59 PM, Alejandro Tejada wrote: > Actually, both files have different checksums. > I will check both files, byte by byte, > to learn the differences between both. > I have found that to share executables with Wuala, I have to bzip them first, otherwise when the other person downloads, the file isn't valid. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From Mark_Smith at cpe.umanitoba.ca Sat Jun 28 22:04:58 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sat, 28 Jun 2014 19:04:58 -0700 (PDT) Subject: Calculating age In-Reply-To: <1403901693318-4680697.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> <8C483AB2-93EC-4A21-B450-38973B2DC822@gmail.com> <1403901693318-4680697.post@n4.nabble.com> Message-ID: <1404007498338-4680711.post@n4.nabble.com> Many thanks to Mike and Hlowe, I suspect the algorithms you suggested are doing very similar things and are an improvement over my approximation. Mike, I don't think you can calculate the seconds of a date prior to 1/1/1970 since the seconds are calculated as 'from that point'. An astute observation I never noticed. Since I was only calculating the ages of actively pregnant women, it was extremely unlikely any would be born prior to 1970. But in any event, your improved algorithm neatly side steps that issue. Thanks, Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687p4680711.html Sent from the Revolution - User mailing list archive at Nabble.com. From ambassador at fourthworld.com Sun Jun 29 10:30:42 2014 From: ambassador at fourthworld.com (Richard Gaskin) Date: Sun, 29 Jun 2014 07:30:42 -0700 Subject: SoCal LUG meeting: Thursday, July 3 Message-ID: <53B02312.2040904@fourthworld.com> The next meeting of the SoCal LiveCode User Group is coming up this week in Pasadena on Thursday, July 3, at 7PM. Details in the forum: -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web ____________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From Mark_Smith at cpe.umanitoba.ca Sun Jun 29 10:37:44 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 29 Jun 2014 07:37:44 -0700 (PDT) Subject: Calculating age In-Reply-To: <1404007498338-4680711.post@n4.nabble.com> References: <1403837040438-4680687.post@n4.nabble.com> <8C483AB2-93EC-4A21-B450-38973B2DC822@gmail.com> <1403901693318-4680697.post@n4.nabble.com> <1404007498338-4680711.post@n4.nabble.com> Message-ID: <1404052664235-4680713.post@n4.nabble.com> Sorry that was rude of me? I meant to thank everyone but particularly Mike and Hlowe for the algorithms they suggested, but I appreciated all of your comments. Cheers, Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Calculating-age-tp4680687p4680713.html Sent from the Revolution - User mailing list archive at Nabble.com. From Mark_Smith at cpe.umanitoba.ca Sun Jun 29 11:56:06 2014 From: Mark_Smith at cpe.umanitoba.ca (Mark Smith) Date: Sun, 29 Jun 2014 08:56:06 -0700 (PDT) Subject: Code Signing Error In-Reply-To: <672E6FD1-F401-482E-85BA-42D98CB0AD16@westrac.com.au> References: <672E6FD1-F401-482E-85BA-42D98CB0AD16@westrac.com.au> Message-ID: <1404057366828-4680714.post@n4.nabble.com> Nakia Brewer wrote > On 6.6.2 I get no errors Nakia, I am about to upgrade. What is your setup (OS, iOS, SDK, Xcode, am I forgetting anything?) Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Code-Signing-Error-tp4680698p4680714.html Sent from the Revolution - User mailing list archive at Nabble.com. From vclement at gmail.com Sun Jun 29 12:07:49 2014 From: vclement at gmail.com (Vaughn Clement) Date: Sun, 29 Jun 2014 09:07:49 -0700 Subject: Code Signing Error In-Reply-To: <1404057366828-4680714.post@n4.nabble.com> References: <672E6FD1-F401-482E-85BA-42D98CB0AD16@westrac.com.au> <1404057366828-4680714.post@n4.nabble.com> Message-ID: Hi As it turns out LC is not the problem its Xcode. Or should I I say it is a configeration issue. I have prior provisional profiles that are conflicting. So I am going to need Apple support to rexolve the conflicts. On Sunday, June 29, 2014, Mark Smith wrote: > Nakia Brewer wrote > > On 6.6.2 I get no errors > > > Nakia, I am about to upgrade. What is your setup (OS, iOS, SDK, Xcode, am I > forgetting anything?) > > Thanks > > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Code-Signing-Error-tp4680698p4680714.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 > -- Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From simon at asato-media.com Sun Jun 29 15:10:15 2014 From: simon at asato-media.com (Simon) Date: Sun, 29 Jun 2014 12:10:15 -0700 (PDT) Subject: Learning about server In-Reply-To: References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <539728EF.901@fourthworld.com> Message-ID: <1404069015881-4680716.post@n4.nabble.com> Hi Simon Smith, On the http://activethought.net/livecode-server/ home page there is this: *put "http://activethought.net" into myVar // the above example loads the html of a web page into a variable* Is that correct for liveCode server? Desktop it would be: put url("http://activethought.net") into myVar Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680716.html Sent from the Revolution - User mailing list archive at Nabble.com. From pete at lcsql.com Sun Jun 29 15:27:21 2014 From: pete at lcsql.com (Peter Haworth) Date: Sun, 29 Jun 2014 12:27:21 -0700 Subject: Name shadows another variable In-Reply-To: <85263631211.20140627190842@ahsoftware.net> References: <8D15FB125EC6DC8-1FF0-19C4F@webmail-vd017.sysops.aol.com> <85263631211.20140627190842@ahsoftware.net> Message-ID: On Fri, Jun 27, 2014 at 7:08 PM, Mark Wieder wrote: > If you at some time in the past turned on variable preservation and > had a script variable of the same name you are now using for a handler > variable, then that variable scope is still stored with the stack. > Until you can compile the script with no errors, that conflict will > still remain. In other words, the stack has stored a reference to the > named variable with a wider scope than you are now giving it, and that > reference won't be wiped out until a successful script compilation. > Hi Mark, Having read your theory more closely, I had high hopes that we might finally have a recipe to reproduce this problem so here's my experiment. Strict Compile Mode = on Preserve variables = on Created a test stack In the stack script, defined a scrip level variable foo In a handler in the script, defined a handler level variable named foo. Compiled - got name shadows variable error as expected. Changed the name of the handler variable to foo2, compiled with no error. Saved the stack, closed and removed from memory. Opened the stack again. Turned Preserve variables off Deleted the script level variable foo Changed the name of the handler level variable foo2 back to foo Compiled - no errors I had hoped the error would come up again in that last step but it didn't. It's entirely possible I haven't understood your theory correctly so if there's some other experiment I should be trying, let me know. I;d really like to track down this thing! Thanks, Pete Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From hello at simonsmith.co Sun Jun 29 16:01:42 2014 From: hello at simonsmith.co (Simon Smith) Date: Sun, 29 Jun 2014 22:01:42 +0200 Subject: Learning about server In-Reply-To: <1404069015881-4680716.post@n4.nabble.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <539728EF.901@fourthworld.com> <1404069015881-4680716.post@n4.nabble.com> Message-ID: Hi Simon You are correct .... have fixed the error. Thanks for letting me know :) Kind Regards Simon On Sun, Jun 29, 2014 at 9:10 PM, Simon wrote: > Hi Simon Smith, > On the http://activethought.net/livecode-server/ home page there is this: > > *put "http://activethought.net" into myVar > // the above example loads the html of a web page into a variable* > > Is that correct for liveCode server? > Desktop it would be: > > put url("http://activethought.net") into myVar > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680716.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 > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From hello at simonsmith.co Sun Jun 29 16:01:42 2014 From: hello at simonsmith.co (Simon Smith) Date: Sun, 29 Jun 2014 22:01:42 +0200 Subject: Learning about server In-Reply-To: <1404069015881-4680716.post@n4.nabble.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> <5396D639.1000307@splash21.com> <539728EF.901@fourthworld.com> <1404069015881-4680716.post@n4.nabble.com> Message-ID: Hi Simon You are correct .... have fixed the error. Thanks for letting me know :) Kind Regards Simon On Sun, Jun 29, 2014 at 9:10 PM, Simon wrote: > Hi Simon Smith, > On the http://activethought.net/livecode-server/ home page there is this: > > *put "http://activethought.net" into myVar > // the above example loads the html of a web page into a variable* > > Is that correct for liveCode server? > Desktop it would be: > > put url("http://activethought.net") into myVar > > Simon > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680393p4680716.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 > -- *Simon Smith* *seo, online marketing, web development* w. http://www.simonsmith.co m. +27 83 306 7862 From m.schonewille at economy-x-talk.com Sun Jun 29 18:30:31 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jun 2014 00:30:31 +0200 Subject: [ANN] Installer Maker 1.8.6 Message-ID: <3E36F1AB-BC1E-4ED8-9AD2-1E229D8908AE@economy-x-talk.com> Hi, Naturally, when doing a presentation, something must go horribly wrong. So, Installer Maker complained with an error yesterday, while I showed it to the audience at the LiveCode meeting here in Z?rich. Fortunately, it was a really small problem and although I'm not back in the office yet, I was able to fix this little bug already. The new version of Installer Maker is 1.8.6 and it includes a fix for the error message as well as some small multi-lingual improvements. You can download the new version at http://qery.us/8je Installer Maker 1.8.6 is a free update for everyone who bought a license during the past 3 months. If you bought a license less than a year ago, then you can purchase an upgrade license at a 50% discount. This update applies to both the standalone version and the plug-in version of Installer Maker. Send me an e-mail if you're still experiencing any difficulties after downloading and installing the new version. Kind regards, Mark -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com We have time for new software development projects. Contact me for a quote. From bvlahos at mac.com Sun Jun 29 20:08:04 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Sun, 29 Jun 2014 17:08:04 -0700 Subject: Shell command syntax in Windows In-Reply-To: References: <0003F96C-A84D-4801-AE9A-FA37C2E8ADD5@mac.com> <124853676987.20140624155940@ahsoftware.net> Message-ID: <701EAA5B-4508-4FC0-B036-EAB773BB5A87@mac.com> I?m beginning to think that what I want to do is impossible. I?ve tried all the suggestions and they all fail. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. lcTaskList: (http://www.infowallet.com/lctasklist/index.htm) RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61) On Jun 25, 2014, at 9:03 AM, Mike Bonner wrote: > DOH, ignore the ; method. For some reason I was stuck in mac/linux > thinking. The absolute method still works fine. (could embed a return in > your command string rather than a semicolon.) Sorry bout that, was sleepy. > > > On Tue, Jun 24, 2014 at 6:19 PM, Mike Bonner wrote: > >> Easiest way to do it with shell is with the absolute path. Or you could cd >> to the location, and use a semicolon to string two commands like so: >> put shell(merge("cd [[path]] ; dir")) into field one -- changes directory, >> then gets the dir. >> Or this with an absolute path. >> >> put the shortfilepath of "c:\whatever path\you need\" into tPath -- >> shortfilepath so you don't have to worry about escaping spaces. Turns it >> into an 8.3 path. >> put shell(merge("dir [[tPath]]")) into field one -- single shell command >> rather than 2 strung together with semicolon >> >> The shellcommand isn't used to set the path, it should point to the shell >> you wish to use for the command execution. (not on my windows machine, so >> can't tell you where cmd is) Shouldn't be needed in this case though. >> >> >> On Tue, Jun 24, 2014 at 4:59 PM, Mark Wieder >> wrote: >> >>> Bill- >>> >>> Monday, June 23, 2014, 7:45:52 PM, you wrote: >>> >>>> I m trying to run a shell command on Windows and the following >>>> code gives an error on the put the wheel of dir into field one . >>> >>>> The goal of the script below is to get a directory listing in the >>> Programs folder. >>> >>>> Setup: A field one and a button where this script is in. >>> >>>> on mouseUp >>>> set the shellCommand to C:\ProgramData\Microsoft\Start Menu\Programs >>>> put shell ( dir ) into field one >>>> end mouseUp >>> >>> Been a while since I've had to deal with Windows, but I believe the >>> shellCommand has to point to either command.com or cmd.exe, depending >>> on the Windows version. >>> >>> If you want to get a directory listing of the Programs folder, why not >>> set the defaultFolder and get the files? >>> >>> -- >>> -Mark Wieder >>> ahsoftware at gmail.com >>> >>> This communication may be unlawfully collected and stored by the National >>> Security Agency (NSA) in secret. The parties to this email do not >>> consent to the retrieving or storing of this communication and any >>> related metadata, as well as printing, copying, re-transmitting, >>> disseminating, or otherwise using it. If you believe you have received >>> this communication in error, please delete it immediately. >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Sun Jun 29 21:32:34 2014 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Sun, 29 Jun 2014 21:32:34 -0400 Subject: [OT] Dropbox modifies uploaded file In-Reply-To: References: <1403977165060-4680706.post@n4.nabble.com> <1403989172688-4680709.post@n4.nabble.com> Message-ID: Oh crap, that remindes me, Alejandro, are you base64encoding them, first? If you don't, you can wind up with some oopsies. On Sat, Jun 28, 2014 at 6:02 PM, Dr. Hawkins wrote: > On Sat, Jun 28, 2014 at 1:59 PM, Alejandro Tejada > wrote: > > > Actually, both files have different checksums. > > I will check both files, byte by byte, > > to learn the differences between both. > > > > I have found that to share executables with Wuala, I have to bzip them > first, otherwise when the other person downloads, the file isn't valid. > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From feed at smpcsupport.com Sun Jun 29 23:04:04 2014 From: feed at smpcsupport.com (RunRevPlanet) Date: Mon, 30 Jun 2014 13:04:04 +1000 Subject: Learning about server Message-ID: <1404097444.53b0d3a465bed@www.server101.com> Hi, I too love what can be done in LiveCode server. I have been busy working on a Web App development tool based around LiveCode Community Server for the past months. I hope to have the Beta up and running soon. It is called "The LiveCode Lab" and I will be sure to post an announcement about it when ready. If you want to have a peek at what it looks like, there is an image here: http://downloadbranch.com/the-livecode-lab-app-manager-beta.png Cheers, -- Scott McDonald "Components, Controls, Tools and Resources for LiveCode" www.runrevplanet.com From stephenREVOLUTION2 at barncard.com Mon Jun 30 00:19:50 2014 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Sun, 29 Jun 2014 21:19:50 -0700 Subject: Learning about server In-Reply-To: <1404097444.53b0d3a465bed@www.server101.com> References: <1404097444.53b0d3a465bed@www.server101.com> Message-ID: On Sun, Jun 29, 2014 at 8:04 PM, RunRevPlanet wrote: > Hi, > > I too love what can be done in LiveCode server. > > I have been busy working on a Web App development tool based around > LiveCode > Community Server for the past months. > Thanks for doing this! We need more server activity. IMHO its the coolest thing ... and currently one of my favorite uses of Livecode in building media media presentation systems. It's strictly bare bones admin (text settings files and self-building scripts using folder content info) and have built an audio/video player, a directory 'player', a photo gallery player (since we have more access to graphic controls in new versions), and a 'download player'. All are short redirect files in folders that "includes" a master .rev file in a library to do the work, but acts and addresses as though is operating in the local folder . Kinda like behaviors. I've been integrating Bootstrap UIs, as often front end stuff can be a major time suck of building a web app, when really most of us would rather build from pre-tested components like we do with the desktop version, then make it prettier or more useful. It's comforting knowing that the BS parts are all designed to work with all modern browsers, INCLUDING IE, the biggest pain. Someday some bright Livecoder will build a drag and drop interface for writing Bootstrap web pages, I'm sure. It's mostly boilerplate. And it looks great. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* From john at splash21.com Mon Jun 30 04:05:53 2014 From: john at splash21.com (John Craig) Date: Mon, 30 Jun 2014 09:05:53 +0100 Subject: Learning about server In-Reply-To: <1404097444.53b0d3a465bed@www.server101.com> References: <1404097444.53b0d3a465bed@www.server101.com> Message-ID: <53B11A61.7010609@splash21.com> That looks like a pretty cool project ;) On 30/06/2014 04:04, RunRevPlanet wrote: > Hi, > > I too love what can be done in LiveCode server. > > I have been busy working on a Web App development tool based around LiveCode > Community Server for the past months. > > I hope to have the Beta up and running soon. It is called "The LiveCode Lab" and > I will be sure to post an announcement about it when ready. > > If you want to have a peek at what it looks like, there is an image here: > > http://downloadbranch.com/the-livecode-lab-app-manager-beta.png > > Cheers, > -- > Scott McDonald > "Components, Controls, Tools and Resources for LiveCode" > www.runrevplanet.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From smudge.andy at googlemail.com Mon Jun 30 05:14:28 2014 From: smudge.andy at googlemail.com (AndyP) Date: Mon, 30 Jun 2014 02:14:28 -0700 (PDT) Subject: Learning about server In-Reply-To: <1404097444.53b0d3a465bed@www.server101.com> References: <1404097444.53b0d3a465bed@www.server101.com> Message-ID: <1404119668081-4680725.post@n4.nabble.com> I've just completed a simple web booking demo using the server and javascript. http://2108.co.uk/bookmarkme/ Please note the site is a WIP but the bookmark system is fully working All files are available as a Zip. ----- Andy Piddock My software never has bugs. It just develops random features. Copy the new cloud space, get your free 15GB space now: Get Copy Your LiveCode Work Desks - New Blog http://livecodemydesk.blogspot.de/ PointandSee is a FREE simple but full featured under cursor colour picker / finder. http://www.pointandsee.co.uk - made with LiveCode -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-about-server-tp4680722p4680725.html Sent from the Revolution - User mailing list archive at Nabble.com. From benr_mc at cogapp.com Mon Jun 30 10:38:35 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 30 Jun 2014 15:38:35 +0100 Subject: Elegant way to express constant UTF8 string in script? Message-ID: <53B1766B.6040308@cogapp.com> I think this problem should be solved in LC 7 (possibly using normaliseText); but I need a solution that I can ship now (and it's been threatened that LC 7 will 'fix' a 'bug' which isn't, so I'm not sure if I'll ever able to use it). My app processes some data from - and then, re-organised, to - UTF8 text files. Occasionally it needs to insert a constant string; and for various reasons (all of them excellent) I want to specify these constant strings in the script. So far, so good. Now however one of these constant strings needs to contain a character which is not in ASCII. Actually two of them. So I need to express a UTF8 string in my script. And I'm searching for an elegant way to do this. My constant string used to look something like this: constant kMyConstantString = "This is my ice cream" but now it needs to read something like constant kMyConstantString = "This ice cream is (c) Ben and Jerry's Inc" (only with a smart apostrophe and a proper copyright symbol). I thought I could just about manage with this put uniDecode(uniEncode("This ice cream is ? Ben and Jerry?s Inc, "ANSI"), "UTF8") into kMyConstantString (that is, encode from ANSI to Unicode, then from Unicode into UTF8). I tested it on Mac and it seemed to work. The UTF8 file was generated and this text came out just right. However, it turned out that when the code was compiled and run on Windows, the copyright symbol came out OK, but the apostrophe came out as o-tilde. This is because uniEncode(..., "ANSI") is a lie; "ANSI" is meaningless; instead it interprets the source encoding as whatever is typical for the operating system. I wrote the script on Mac; in MacRoman, ? is 0xA9 and smart apostrophe is 0xD5; in ISO-8859-1 (and UTF8), 0xA9 is ?, but 0xD5 is o-tilde. So... what's the most elegant way to this (is there one)? Is there any alternative to just looking up the UTF8 encodings and writing: put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") into kMyConstantString ? TIA, Ben From m.schonewille at economy-x-talk.com Mon Jun 30 11:09:15 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jun 2014 17:09:15 +0200 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B1766B.6040308@cogapp.com> References: <53B1766B.6040308@cogapp.com> Message-ID: <9CDA8ADB-6D0D-496C-882B-FF0253D8C381@economy-x-talk.com> Hi Ben, The apostrophe doesn't work because you convert to ASCII text that looks different on different platforms. If you don't use unidecode and just set the unicodeText of a field to your Unicode string, it should work. If that's not practical, you could use macToIso() to convert your string to Latin-1. -- 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 30 jun. 2014 om 16:38 heeft Ben Rubinstein het volgende geschreven: > I think this problem should be solved in LC 7 (possibly using normaliseText); but I need a solution that I can ship now (and it's been threatened that LC 7 will 'fix' a 'bug' which isn't, so I'm not sure if I'll ever able to use it). > > My app processes some data from - and then, re-organised, to - UTF8 text files. Occasionally it needs to insert a constant string; and for various reasons (all of them excellent) I want to specify these constant strings in the script. So far, so good. Now however one of these constant strings needs to contain a character which is not in ASCII. Actually two of them. So I need to express a UTF8 string in my script. And I'm searching for an elegant way to do this. > > My constant string used to look something like this: > > constant kMyConstantString = "This is my ice cream" > > but now it needs to read something like > constant kMyConstantString = "This ice cream is (c) Ben and Jerry's Inc" > > (only with a smart apostrophe and a proper copyright symbol). > > I thought I could just about manage with this > > put uniDecode(uniEncode("This ice cream is ? Ben and Jerry?s Inc, "ANSI"), "UTF8") into kMyConstantString > > (that is, encode from ANSI to Unicode, then from Unicode into UTF8). > > I tested it on Mac and it seemed to work. The UTF8 file was generated and this text came out just right. > > > However, it turned out that when the code was compiled and run on Windows, the copyright symbol came out OK, but the apostrophe came out as o-tilde. > > This is because uniEncode(..., "ANSI") is a lie; "ANSI" is meaningless; instead it interprets the source encoding as whatever is typical for the operating system. I wrote the script on Mac; in MacRoman, ? is 0xA9 and smart apostrophe is 0xD5; in ISO-8859-1 (and UTF8), 0xA9 is ?, but 0xD5 is o-tilde. > > So... what's the most elegant way to this (is there one)? Is there any alternative to just looking up the UTF8 encodings and writing: > > put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") into kMyConstantString > > ? > > 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 pete at lcsql.com Mon Jun 30 11:17:24 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 30 Jun 2014 08:17:24 -0700 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B1766B.6040308@cogapp.com> References: <53B1766B.6040308@cogapp.com> Message-ID: On Mon, Jun 30, 2014 at 7:38 AM, Ben Rubinstein wrote: > So... what's the most elegant way to this (is there one)? Is there any > alternative to just looking up the UTF8 encodings and writing: > > put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") > into kMyConstantString > Another approach is to use the htmlText property in conjunction with html entities. Full lists of them are available on the web but apostrophe is ' and the copyright symbol is © Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From jacque at hyperactivesw.com Mon Jun 30 11:18:15 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jun 2014 10:18:15 -0500 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B1766B.6040308@cogapp.com> References: <53B1766B.6040308@cogapp.com> Message-ID: <6bcb98eb-970b-49a5-8b11-851032887c9c@email.android.com> This is exactly what I've been dealing with for a week. You need two steps : first check the platform and if it's Windows then run macToISO on the string. After that your existing conversion to UTF8 should work. On June 30, 2014 9:38:35 AM CDT, Ben Rubinstein wrote: >I think this problem should be solved in LC 7 (possibly using >normaliseText); >but I need a solution that I can ship now (and it's been threatened >that LC 7 >will 'fix' a 'bug' which isn't, so I'm not sure if I'll ever able to >use it). > >My app processes some data from - and then, re-organised, to - UTF8 >text >files. Occasionally it needs to insert a constant string; and for >various >reasons (all of them excellent) I want to specify these constant >strings in >the script. So far, so good. Now however one of these constant >strings needs >to contain a character which is not in ASCII. Actually two of them. >So I >need to express a UTF8 string in my script. And I'm searching for an >elegant >way to do this. > >My constant string used to look something like this: > > constant kMyConstantString = "This is my ice cream" > >but now it needs to read something like >constant kMyConstantString = "This ice cream is (c) Ben and Jerry's >Inc" > >(only with a smart apostrophe and a proper copyright symbol). > >I thought I could just about manage with this > >put uniDecode(uniEncode("This ice cream is ? Ben and Jerry?s Inc, >"ANSI"), >"UTF8") into kMyConstantString > >(that is, encode from ANSI to Unicode, then from Unicode into UTF8). > >I tested it on Mac and it seemed to work. The UTF8 file was generated >and >this text came out just right. > > >However, it turned out that when the code was compiled and run on >Windows, the >copyright symbol came out OK, but the apostrophe came out as o-tilde. > >This is because uniEncode(..., "ANSI") is a lie; "ANSI" is meaningless; > >instead it interprets the source encoding as whatever is typical for >the >operating system. I wrote the script on Mac; in MacRoman, ? is 0xA9 >and smart >apostrophe is 0xD5; in ISO-8859-1 (and UTF8), 0xA9 is ?, but 0xD5 is >o-tilde. > >So... what's the most elegant way to this (is there one)? Is there any > >alternative to just looking up the UTF8 encodings and writing: > >put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") > >into kMyConstantString > >? > >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 -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From dochawk at gmail.com Mon Jun 30 11:48:37 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 30 Jun 2014 08:48:37 -0700 Subject: popUp a button with itself on modified mouseDown? Message-ID: I'm trying to get a button to normally be a boring old popup, but allow other things to be chosen by it. The "natural" way would seem to to change it on mousenter if the specified modifier key is down, or if the second button is clicked. I get the change to happen trivially, but if I'm doing it from a mouseDown, I can't get it to display itself. I'm trying things like, on mouseDown bt if bt=3 then popup button the short name of the target end if pass mouseDown end mouseDown But I'm not finding a magic combnation -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From paul at researchware.com Mon Jun 30 11:51:30 2014 From: paul at researchware.com (Paul Dupuis) Date: Mon, 30 Jun 2014 11:51:30 -0400 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: References: <53B1766B.6040308@cogapp.com> Message-ID: <53B18782.7010502@researchware.com> On 6/30/2014 11:17 AM, Peter Haworth wrote: > Another approach is to use the htmlText property in conjunction with html > entities. Full lists of them are available on the web but apostrophe is > ' and the copyright symbol is © Just a caution that LC (depending on engine version) does not support all HTML entity names. For example, the entity • for a ? is not supported under LC 4.6.4, but is under LC 6.6.2 (and exactly what version of LC started supporting it I haven't had the time to figure out) From benr_mc at cogapp.com Mon Jun 30 13:24:24 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 30 Jun 2014 18:24:24 +0100 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <9CDA8ADB-6D0D-496C-882B-FF0253D8C381@economy-x-talk.com> References: <53B1766B.6040308@cogapp.com> <9CDA8ADB-6D0D-496C-882B-FF0253D8C381@economy-x-talk.com> Message-ID: <53B19D48.2000103@cogapp.com> Hi Mark, Thanks for the reply. The problem is a) I want to do this purely in script b) A character directly entered into the script on a Mac comes out different on Windows (i.e. the scripts don't know what character set they're in; they're simply stored with no indication of character set, and on every platform they're interpreted as the supposedly 'native' platform for that character set). Presumably in 7.0 I won't even need to use normaliseText, because the scripts will themselves be stored in Unicode or UTF8, and therefore I can use any Unicode character in a real script constant. But not in 6.x. Ben On 30/06/2014 16:09, Mark Schonewille wrote: > Hi Ben, > > The apostrophe doesn't work because you convert to ASCII text that looks different on different platforms. If you don't use unidecode and just set the unicodeText of a field to your Unicode string, it should work. If that's not practical, you could use macToIso() to convert your string to Latin-1. > > -- > 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 30 jun. 2014 om 16:38 heeft Ben Rubinstein het volgende geschreven: > >> I think this problem should be solved in LC 7 (possibly using normaliseText); but I need a solution that I can ship now (and it's been threatened that LC 7 will 'fix' a 'bug' which isn't, so I'm not sure if I'll ever able to use it). >> >> My app processes some data from - and then, re-organised, to - UTF8 text files. Occasionally it needs to insert a constant string; and for various reasons (all of them excellent) I want to specify these constant strings in the script. So far, so good. Now however one of these constant strings needs to contain a character which is not in ASCII. Actually two of them. So I need to express a UTF8 string in my script. And I'm searching for an elegant way to do this. >> >> My constant string used to look something like this: >> >> constant kMyConstantString = "This is my ice cream" >> >> but now it needs to read something like >> constant kMyConstantString = "This ice cream is (c) Ben and Jerry's Inc" >> >> (only with a smart apostrophe and a proper copyright symbol). >> >> I thought I could just about manage with this >> >> put uniDecode(uniEncode("This ice cream is ? Ben and Jerry?s Inc, "ANSI"), "UTF8") into kMyConstantString >> >> (that is, encode from ANSI to Unicode, then from Unicode into UTF8). >> >> I tested it on Mac and it seemed to work. The UTF8 file was generated and this text came out just right. >> >> >> However, it turned out that when the code was compiled and run on Windows, the copyright symbol came out OK, but the apostrophe came out as o-tilde. >> >> This is because uniEncode(..., "ANSI") is a lie; "ANSI" is meaningless; instead it interprets the source encoding as whatever is typical for the operating system. I wrote the script on Mac; in MacRoman, ? is 0xA9 and smart apostrophe is 0xD5; in ISO-8859-1 (and UTF8), 0xA9 is ?, but 0xD5 is o-tilde. >> >> So... what's the most elegant way to this (is there one)? Is there any alternative to just looking up the UTF8 encodings and writing: >> >> put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") into kMyConstantString >> >> ? >> >> 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 > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Mon Jun 30 13:24:40 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 30 Jun 2014 18:24:40 +0100 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B18782.7010502@researchware.com> References: <53B1766B.6040308@cogapp.com> <53B18782.7010502@researchware.com> Message-ID: <53B19D58.3080902@cogapp.com> On 30/06/2014 16:51, Paul Dupuis wrote: > On 6/30/2014 11:17 AM, Peter Haworth wrote: >> Another approach is to use the htmlText property in conjunction with html >> entities. Full lists of them are available on the web but apostrophe is >> ' and the copyright symbol is © > > Just a caution that LC (depending on engine version) does not support > all HTML entity names. For example, the entity • for a ? is not > supported under LC 4.6.4, but is under LC 6.6.2 (and exactly what > version of LC started supporting it I haven't had the time to figure out) Thanks Peter, thanks Paul. Yes, ideally my feature request here http://quality.runrev.com/show_bug.cgi?id=1372 >Bug 1372 - should be an isoToHTML or similar (or 'entities' option in uniEncode/uniDecode) (now in its 10th great year of being ignored!) would solve this problem. Without it, although we know that RunRev has tables mapping HTML entities to character codes, we can't access them directly in script - only indirectly through fields, which I can't access in this context. Ben From david at viral.academy Mon Jun 30 13:34:40 2014 From: david at viral.academy (David Bovill) Date: Mon, 30 Jun 2014 18:34:40 +0100 Subject: WebRTC support and Chromium Embedded Framework in LiveCode Message-ID: Anyone tried / no if WebRTC works with the version of Chromium Embedded Framework (CEF) shipping with the newer LiveCode releases? In fact anyone no what version of CEF is included? It seems the browser native real time video streaming (WebRTC ) is now supported on Android at least since Google Chrome 28 (enabled by default since 29). Anyone looked into this? - http://en.wikipedia.org/wiki/WebRTC#Support - http://en.wikipedia.org/wiki/Chromium_Embedded_Framework From benr_mc at cogapp.com Mon Jun 30 13:31:59 2014 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Mon, 30 Jun 2014 18:31:59 +0100 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <6bcb98eb-970b-49a5-8b11-851032887c9c@email.android.com> References: <53B1766B.6040308@cogapp.com> <6bcb98eb-970b-49a5-8b11-851032887c9c@email.android.com> Message-ID: <53B19F0F.6080507@cogapp.com> On 30/06/2014 16:18, J. Landman Gay wrote: > This is exactly what I've been dealing with for a week. You need two steps : first check the platform and if it's Windows then run macToISO on the string. After that your existing conversion to UTF8 should work. > Aha, good tip, thank you. On reflection though I think I'm going to adopt a modified version of Peter's suggestion; use HTML entities in the 'constant' string to be unambiguous but readable, passing it through a function called "HTMLtoUTF8" so that bit of the script looks clean - and then do a nasty dirty implementation of that function, that just handles the two entities I currently care about and throws an error if invoked on anything else. I'm all about the elegance, me. thanks to all who responded, Ben From m.schonewille at economy-x-talk.com Mon Jun 30 14:10:45 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jun 2014 20:10:45 +0200 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B19D48.2000103@cogapp.com> References: <53B1766B.6040308@cogapp.com> <9CDA8ADB-6D0D-496C-882B-FF0253D8C381@economy-x-talk.com> <53B19D48.2000103@cogapp.com> Message-ID: Hi Ben, My solution will work in pre-7 and is 100% vanilla LiveCode (no idea why you explicitly mention again that it should be script-only). You'll have to change your script when you move to 7. Obviously, you could write a script for both versions using the do command for the 7-specific part of your script. -- 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 30 jun. 2014 om 19:24 heeft Ben Rubinstein het volgende geschreven: > Hi Mark, > > Thanks for the reply. The problem is > > a) I want to do this purely in script > > b) A character directly entered into the script on a Mac comes out different on Windows (i.e. the scripts don't know what character set they're in; they're simply stored with no indication of character set, and on every platform they're interpreted as the supposedly 'native' platform for that character set). > > Presumably in 7.0 I won't even need to use normaliseText, because the scripts will themselves be stored in Unicode or UTF8, and therefore I can use any Unicode character in a real script constant. But not in 6.x. > > Ben > > On 30/06/2014 16:09, Mark Schonewille wrote: >> Hi Ben, >> >> The apostrophe doesn't work because you convert to ASCII text that looks different on different platforms. If you don't use unidecode and just set the unicodeText of a field to your Unicode string, it should work. If that's not practical, you could use macToIso() to convert your string to Latin-1. >> >> -- >> 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 30 jun. 2014 om 16:38 heeft Ben Rubinstein het volgende geschreven: >> >>> I think this problem should be solved in LC 7 (possibly using normaliseText); but I need a solution that I can ship now (and it's been threatened that LC 7 will 'fix' a 'bug' which isn't, so I'm not sure if I'll ever able to use it). >>> >>> My app processes some data from - and then, re-organised, to - UTF8 text files. Occasionally it needs to insert a constant string; and for various reasons (all of them excellent) I want to specify these constant strings in the script. So far, so good. Now however one of these constant strings needs to contain a character which is not in ASCII. Actually two of them. So I need to express a UTF8 string in my script. And I'm searching for an elegant way to do this. >>> >>> My constant string used to look something like this: >>> >>> constant kMyConstantString = "This is my ice cream" >>> >>> but now it needs to read something like >>> constant kMyConstantString = "This ice cream is (c) Ben and Jerry's Inc" >>> >>> (only with a smart apostrophe and a proper copyright symbol). >>> >>> I thought I could just about manage with this >>> >>> put uniDecode(uniEncode("This ice cream is ? Ben and Jerry?s Inc, "ANSI"), "UTF8") into kMyConstantString >>> >>> (that is, encode from ANSI to Unicode, then from Unicode into UTF8). >>> >>> I tested it on Mac and it seemed to work. The UTF8 file was generated and this text came out just right. >>> >>> >>> However, it turned out that when the code was compiled and run on Windows, the copyright symbol came out OK, but the apostrophe came out as o-tilde. >>> >>> This is because uniEncode(..., "ANSI") is a lie; "ANSI" is meaningless; instead it interprets the source encoding as whatever is typical for the operating system. I wrote the script on Mac; in MacRoman, ? is 0xA9 and smart apostrophe is 0xD5; in ISO-8859-1 (and UTF8), 0xA9 is ?, but 0xD5 is o-tilde. >>> >>> So... what's the most elegant way to this (is there one)? Is there any alternative to just looking up the UTF8 encodings and writing: >>> >>> put format("This ice cream is \xC2\xA9 Ben and Jerry\xE2\x80\x99s Inc") into kMyConstantString >>> >>> ? >>> >>> 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 >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 30 14:14:04 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Mon, 30 Jun 2014 20:14:04 +0200 Subject: Elegant way to express constant UTF8 string in script? In-Reply-To: <53B19F0F.6080507@cogapp.com> References: <53B1766B.6040308@cogapp.com> <6bcb98eb-970b-49a5-8b11-851032887c9c@email.android.com> <53B19F0F.6080507@cogapp.com> Message-ID: Keep in mind that HTML encoded text may not work for some higher-ASCII characters. That's exactly the reason why we have Unicode. -- 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 30 jun. 2014 om 19:31 heeft Ben Rubinstein het volgende geschreven: > On 30/06/2014 16:18, J. Landman Gay wrote: >> This is exactly what I've been dealing with for a week. You need two steps : first check the platform and if it's Windows then run macToISO on the string. After that your existing conversion to UTF8 should work. > > Aha, good tip, thank you. > > On reflection though I think I'm going to adopt a modified version of Peter's suggestion; use HTML entities in the 'constant' string to be unambiguous but readable, passing it through a function called "HTMLtoUTF8" so that bit of the script looks clean - and then do a nasty dirty implementation of that function, that just handles the two entities I currently care about and throws an error if invoked on anything else. > > I'm all about the elegance, me. > > thanks to all who responded, > > 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 paulhibbert at mac.com Mon Jun 30 14:49:46 2014 From: paulhibbert at mac.com (Paul Hibbert) Date: Mon, 30 Jun 2014 11:49:46 -0700 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: Message-ID: If your script is in a PopUp Menu button then it's probably just getting confused trying to pop up itself! Maybe try something like this in a PopUp Menu ensuring that the "menuMouseButton" prop is set to "1"? local sModKey on mouseDown --ShiftKey check if the shiftKey is down then put "Shift Key and" into sModKey else put "Just" into sModKey end if end mouseDown on mouseUp pBtn if pBtn = 3 then answer sModKey && the short name of me end mouseUp on menuPick pItemName answer sModKey && pItemName end menuPick HTH Paul On 2014-06-30, at 8:48 AM, Dr. Hawkins wrote: > I'm trying to get a button to normally be a boring old popup, but allow > other things to be chosen by it. > > The "natural" way would seem to to change it on mousenter if the specified > modifier key is down, or if the second button is clicked. > > I get the change to happen trivially, but if I'm doing it from a mouseDown, > I can't get it to display itself. I'm trying things like, > > on mouseDown bt > if bt=3 then > popup button the short name of the target > end if > pass mouseDown > end mouseDown > > But I'm not finding a magic combnation > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at 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 Jun 30 15:02:57 2014 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 30 Jun 2014 14:02:57 -0500 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: Message-ID: <53B1B461.3090104@hyperactivesw.com> On 6/30/2014, 10:48 AM, Dr. Hawkins wrote: > I'm trying to get a button to normally be a boring old popup, but allow > other things to be chosen by it. I'm confused about what you want to do. But if my guess is right, you want to change the button's menu content on a mouseDown. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From skip at magicgate.com Mon Jun 30 15:07:40 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 30 Jun 2014 15:07:40 -0400 Subject: Launch URL to run Windows program using command line switches Message-ID: Hello LC'ers, I need to launch a function within my LC application. How would I properly format a launch URL statement that launches a file with command line options? For instance, what I need to launch is: C:\Program Files (x86)\MyProgram\file.exe /P "myfile.txt" Every way I try to format the statement it does not work and get a "can't open file." Here is what I am currently trying but failing miserably with: launch url "file:c:\Program Files (x86)\MyProgram\file.exe /P ""E&"myfile.txt""E Your help is always appreciated! SKIP From brahma at hindu.org Mon Jun 30 16:06:25 2014 From: brahma at hindu.org (Brahmanathswami) Date: Mon, 30 Jun 2014 10:06:25 -1000 Subject: Learning about server In-Reply-To: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> References: <55A3FEB6-0042-4D3E-A51F-F4719A71E1FA@swcp.com> Message-ID: <53B1C341.4020902@hindu.org> Aum Yes, we are very familiar with Invading the Sacred. Western Academia is full of "idiots" who actually pose and are accepted as authorities. Then their Master/PhD students follow up with even more nonsense. Rajiv is doing good work on this front. Our approach is from a different, complementary angle: we keep pushing more and more content out into the mass consciousness to offset the body of misconceptions. As you can see from her blog, Satguru Sivaya Subramuniyaswami's book "How to Become a Hindu" has had a big impact. (continues to do so) ... so does "Loving Ganesha" More recently... just released two days ago: http://www.himalayanacademy.com/view/the-history-of-hindu-india_part-1 Tackling main stream American Academia is challenge... behind the scenes, a lot of work is going on to get dedicated Hindus into key positions in Indian/Hindu studies. Blacks run "African American" studies in colleges; Jewish leaders run the academic institutional studies for Judaism. Christian run Christian studies. But India/Hindu studies are run by outsiders whose brains reside in bodily parts other than their heads... (to put it tactfully). and from that below-the-belly-button window on life they write about Hinduism. Then the Deans of their universities and the American Theological Association give them awards! Sad situation. Swasti Astu, Be Well! Brahmanathaswami Kauai's Hindu Monastery www.HimalayanAcademy.com Dar Scott wrote: > I would like to learn about server. > > But, as Frodo would way, I don?t know the way. > > Dar Scott > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From skip at magicgate.com Mon Jun 30 16:21:50 2014 From: skip at magicgate.com (Magicgate Software - Skip Kimpel) Date: Mon, 30 Jun 2014 16:21:50 -0400 Subject: Launch URL to run Windows program using command line switches In-Reply-To: References: Message-ID: Got it working. Ended up with this to get it working: launch "c:/Program Files (x86)/MyProgram/file.exe /P ""E&"myfile.txt""E On Mon, Jun 30, 2014 at 3:07 PM, Magicgate Software - Skip Kimpel < skip at magicgate.com> wrote: > Hello LC'ers, > > I need to launch a function within my LC application. How would I > properly format a launch URL statement that launches a file with command > line options? For instance, what I need to launch is: > > C:\Program Files (x86)\MyProgram\file.exe /P "myfile.txt" > > Every way I try to format the statement it does not work and get a "can't > open file." > > Here is what I am currently trying but failing miserably with: > launch url "file:c:\Program Files (x86)\MyProgram\file.exe /P > ""E&"myfile.txt""E > > Your help is always appreciated! > > SKIP > > > From capellan2000 at gmail.com Mon Jun 30 17:36:53 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 30 Jun 2014 14:36:53 -0700 (PDT) Subject: [OT] Dropbox modifies uploaded file In-Reply-To: References: <1403977165060-4680706.post@n4.nabble.com> <1403989172688-4680709.post@n4.nabble.com> Message-ID: <1404164213414-4680743.post@n4.nabble.com> I found the origin of the problem. Only happens using Google Chrome. When you click a dropbox link to download a pdf file, Google Chrome opens the pdf file in a new window. When you save this pdf (opened in a Google Chrome window) you are not saving the original file, but a new version created by Google Chrome... That is the problem. Only happens with pdf saved from a Google Chrome window. Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/OT-Dropbox-modifies-uploaded-file-tp4680706p4680743.html Sent from the Revolution - User mailing list archive at Nabble.com. From david at viral.academy Mon Jun 30 18:01:00 2014 From: david at viral.academy (David Bovill) Date: Mon, 30 Jun 2014 23:01:00 +0100 Subject: Embedded LiveCode - site hacked? Message-ID: Any info on this option http://livecode.com/blog/2012/09/13/embedded-livecode/ From m.schonewille at economy-x-talk.com Mon Jun 30 18:07:54 2014 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Tue, 01 Jul 2014 00:07:54 +0200 Subject: Embedded LiveCode - site hacked? In-Reply-To: References: Message-ID: <53B1DFBA.1060503@economy-x-talk.com> Yes, the site was hacked. Perhaps you need to write to support? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 7/1/2014 00:01, David Bovill wrote: > Any info on this option > http://livecode.com/blog/2012/09/13/embedded-livecode/ From dochawk at gmail.com Mon Jun 30 18:25:33 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 30 Jun 2014 15:25:33 -0700 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: <53B1B461.3090104@hyperactivesw.com> References: <53B1B461.3090104@hyperactivesw.com> Message-ID: On Mon, Jun 30, 2014 at 12:02 PM, J. Landman Gay wrote: > I'm confused about what you want to do. But if my guess is right, you want > to change the button's menu content on a mouseDown. > I want the button to normally be a plain old boring standard button. I want to make related functions available by right-click. So if the user just clicks the button, it does the "normal" script, but if it's a right-click, I want the list of choices to pop up (and the various course of code selected) to be chosen. I suppose I could do this with a group with a push-button and a hidden popup button, but the single button seems "cleaner". (Although the group could mean I could have a behavior for the button, and still have a script for the group . . . -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From capellan2000 at gmail.com Mon Jun 30 19:13:43 2014 From: capellan2000 at gmail.com (Alejandro Tejada) Date: Mon, 30 Jun 2014 16:13:43 -0700 (PDT) Subject: WebRTC support and Chromium Embedded Framework in LiveCode In-Reply-To: References: Message-ID: <1404170023634-4680747.post@n4.nabble.com> According to http://html5test.com/ this new Chromium Embedded Framework is identified as Chrome 31 and scores 450 from 555 points. http://forums.livecode.com/viewtopic.php?f=89&t=20501 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/WebRTC-support-and-Chromium-Embedded-Framework-in-LiveCode-tp4680734p4680747.html Sent from the Revolution - User mailing list archive at Nabble.com. From mikedoub at gmail.com Mon Jun 30 19:17:54 2014 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 30 Jun 2014 19:17:54 -0400 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: <53B1B461.3090104@hyperactivesw.com> Message-ID: Take a look at the button style, menumode and general appearance properties. I would think that you could dynamicly change the style and menu mode and general appearance. Just a thought?. -= Mike On Jun 30, 2014, at 6:25 PM, Dr. Hawkins wrote: > On Mon, Jun 30, 2014 at 12:02 PM, J. Landman Gay > wrote: > >> I'm confused about what you want to do. But if my guess is right, you want >> to change the button's menu content on a mouseDown. >> > > I want the button to normally be a plain old boring standard button. I > want to make related functions available by right-click. So if the user > just clicks the button, it does the "normal" script, but if it's a > right-click, I want the list of choices to pop up (and the various course > of code selected) to be chosen. > > I suppose I could do this with a group with a push-button and a hidden > popup button, but the single button seems "cleaner". (Although the group > could mean I could have a behavior for the button, and still have a script > for the group . . . > > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Mon Jun 30 19:19:11 2014 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 30 Jun 2014 16:19:11 -0700 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: <53B1B461.3090104@hyperactivesw.com> Message-ID: On Mon, Jun 30, 2014 at 4:17 PM, Michael Doub wrote: > Take a look at the button style, menumode and general appearance > properties. I would think that you could dynamicly change the style and > menu mode and general appearance. Just a thought?. Within limits, it does that so far. The code I have successfully changes the button type; my problem is getting the now-popup to pop. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From bonnmike at gmail.com Mon Jun 30 19:30:12 2014 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 30 Jun 2014 17:30:12 -0600 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: <53B1B461.3090104@hyperactivesw.com> Message-ID: >From your example above, you're having the button try to pop itself up. Thats the only case where you probably don't want to manually "popup button.." The key is to check the conditions, have other popup buttons with your context menus set up, and if the conditions are met, then popup button "whatever" to make the alternate appear. If no conditions are met, just pass mousedown instead and the menu of the current button will popup. The main problem with this method (at least as tested on my windows machine) is that if you popup a secondary button menu, the hilite of the main button can go funky, so you'd have to handle the hilited of the button in your code. To test, I set up two buttons, as someone else posted I was just checking for button 3 (rt click) and if it was right clicked, pop up the alternate menu, else just pass mousedown and the main buttons menu shows up. Another option would be to have a loop checking conditions.. (like checking what keys are down) and modify the menu list of the main popup button on the fly. This eats processor cycles of course, but works pretty well for the most part. On Mon, Jun 30, 2014 at 5:19 PM, Dr. Hawkins wrote: > On Mon, Jun 30, 2014 at 4:17 PM, Michael Doub wrote: > > > Take a look at the button style, menumode and general appearance > > properties. I would think that you could dynamicly change the style and > > menu mode and general appearance. Just a thought?. > > > Within limits, it does that so far. > > The code I have successfully changes the button type; my problem is getting > the now-popup to pop. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From mikedoub at gmail.com Mon Jun 30 19:36:28 2014 From: mikedoub at gmail.com (Michael Doub) Date: Mon, 30 Jun 2014 19:36:28 -0400 Subject: popUp a button with itself on modified mouseDown? In-Reply-To: References: <53B1B461.3090104@hyperactivesw.com> Message-ID: <8F57B303-86CC-4A35-AEF2-F15D3BE3CD66@gmail.com> create a popup button move it to -100,-100 create your standard visible button with the following script: on mousedown thebutton popup button "x" else beep end if end mousedown Does this do what you want? -= Mike On Jun 30, 2014, at 7:19 PM, Dr. Hawkins wrote: > On Mon, Jun 30, 2014 at 4:17 PM, Michael Doub wrote: > >> Take a look at the button style, menumode and general appearance >> properties. I would think that you could dynamicly change the style and >> menu mode and general appearance. Just a thought?. > > > Within limits, it does that so far. > > The code I have successfully changes the button type; my problem is getting > the now-popup to pop. > > -- > Dr. Richard E. Hawkins, Esq. > (702) 508-8462 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From vclement at gmail.com Mon Jun 30 19:47:32 2014 From: vclement at gmail.com (Vaughn Clement) Date: Mon, 30 Jun 2014 16:47:32 -0700 Subject: First LC Submission to iTunes Message-ID: Hi This is my first submission to iTunes using LiveCode after 1 year of work. I have a few questions: Because so many things have changed with LiveCode in the last several months, would it be better to use iTunes Connect to setup the files for submission to iTunes? Do I need to add anything to my openStack script to for my 1024 x 768 iPad screen to auto size between normal and retina screen resolutions? Is there a LiveCode description as to the settings of the splash screen, and the other screen captures for the LiveCode / iTunes connect submissions? This would include the different icon sizes and resolutions? What I am trying to find out is if there is a difference between the two approaches? Thank you Vaughn Clement Apps by Vaughn Clement (Support) *http://www.appsbyvaughnclement.com/tools/home-page/ * Skype: vaughn.clement https://secure.join.me/appsbyvclement FaceTime: vclement at gmail.com LogMeIn also avaialble Call on "ooVoo" at address: vaughnclement or 9282549062 Ph. 928-254-9062 From pete at lcsql.com Mon Jun 30 20:15:25 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 30 Jun 2014 17:15:25 -0700 Subject: imageData Message-ID: Wondering if there's a good reason why the imageData property of an image is not included in its properties? Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin From alex at tweedly.net Mon Jun 30 20:23:44 2014 From: alex at tweedly.net (Alex Tweedly) Date: Tue, 01 Jul 2014 01:23:44 +0100 Subject: OT : Advice on SQL database design Message-ID: <53B1FF90.1070609@tweedly.net> I guess there's a meta-question about "what's a good book/source on SQL database design ?" I am trying to design a database. There is one table which contains, let's say, Armed Forces Personnel - each row is a different person - columns include the obvious .... name, date of birth, ... that are common to all - there is a column saying which armed force the person is in - and then there are additional, DIFFERENT fields depending on which one it is Plan A. Just add all the additional columns. But then they're (mostly) empty! Doesn't seem right. Plan B. Separate tables for each set of additional data; the 'person' table has a column specifying which set of data exists, and then a foreign key which is matched to the primary key of the additional table. e.g. Person 1 : John Smith : navy : 1 2 : Jim Brown : army : 1 Navy 1 : Can swim 50 yards Army 1 : Can walk 100 miles carrying a full pack (???) Plan C. Separate tables for each additional data set - but the additional tables share the primary key with the person table. e.g. Person 1 : John Smith : navy 2 : Jim Brown : army Navy 1 : Can swim 50 yards Army 2 : Can walk 100 miles carrying a full pack (???) I hope that explanation was at least half-way understandable :-) So - any comments about the choice between A, B or C ? - or is there answer "D of course ...." Thanks for any help -- Alex. From pete at lcsql.com Mon Jun 30 21:08:01 2014 From: pete at lcsql.com (Peter Haworth) Date: Mon, 30 Jun 2014 18:08:01 -0700 Subject: OT : Advice on SQL database design In-Reply-To: <53B1FF90.1070609@tweedly.net> References: <53B1FF90.1070609@tweedly.net> Message-ID: Hi Alex, Your situation seems to involve a 1-1 relationship between tables which always feels a little strange for the reasons you mentioned. I'd probably eliminate option A for starters. Following classic database design rules, you should probably have a separate table for each armed forces branch containing its relevant columns plus a foreign key linking it to the primary key of your persons table. That's option C in your example, except that your person table would not need a column with the name of the forces branch in it. That structure would allow you to handle the situation where one person may have been in 2 different branches of the forces, if that's possible in your app. It does make retrieval of the data related to one person more complex since you'd need to have one JOIN statement from the person table to however many branch tables there are. But you could set that up as a view so you wouldn't constantly be issuing the complex SELECT command to get all the data. Another possibility might be to turn things upside down. Have a table for each branch of the forces and have your persons table have a separate foreign key column for each forces table that links to its primary key. That would enable you to, for example, quickly get a list of all the people in the navy. No doubt other ways to do it also. Some of the design decisions will depend on your application requirements. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Mon, Jun 30, 2014 at 5:23 PM, Alex Tweedly wrote: > > I guess there's a meta-question about "what's a good book/source on SQL > database design ?" > > I am trying to design a database. There is one table which contains, let's > say, Armed Forces Personnel > - each row is a different person > - columns include the obvious .... name, date of birth, ... that are > common to all > - there is a column saying which armed force the person is in > - and then there are additional, DIFFERENT fields depending on which > one it is > > > Plan A. > Just add all the additional columns. > > But then they're (mostly) empty! Doesn't seem right. > > Plan B. > Separate tables for each set of additional data; the 'person' table has a > column specifying which set of data exists, and then a foreign key which is > matched to the primary key of the additional table. > > e.g. > Person > 1 : John Smith : navy : 1 > 2 : Jim Brown : army : 1 > > Navy > 1 : Can swim 50 yards > > Army > 1 : Can walk 100 miles carrying a full pack (???) > > Plan C. > Separate tables for each additional data set - but the additional tables > share the primary key with the person table. > > e.g. > Person > 1 : John Smith : navy > 2 : Jim Brown : army > > Navy > 1 : Can swim 50 yards > > Army > 2 : Can walk 100 miles carrying a full pack (???) > > I hope that explanation was at least half-way understandable :-) > > So - any comments about the choice between A, B or C ? > - or is there answer "D of course ...." > > Thanks for any help > -- 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 simon at asato-media.com Mon Jun 30 21:09:21 2014 From: simon at asato-media.com (Simon) Date: Mon, 30 Jun 2014 18:09:21 -0700 (PDT) Subject: Embedded LiveCode - site hacked? In-Reply-To: References: Message-ID: <1404176961227-4680756.post@n4.nabble.com> Dave Williams is on the case now. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Embedded-LiveCode-site-hacked-tp4680744p4680756.html Sent from the Revolution - User mailing list archive at Nabble.com. From igor at semperuna.com Mon Jun 30 21:09:50 2014 From: igor at semperuna.com (Igor de Oliveira Couto) Date: Tue, 1 Jul 2014 11:09:50 +1000 Subject: OT : Advice on SQL database design In-Reply-To: <53B1FF90.1070609@tweedly.net> References: <53B1FF90.1070609@tweedly.net> Message-ID: I'll try to provide some initial info: On 1 Jul 2014, at 10:23 am, Alex Tweedly wrote: > I guess there's a meta-question about "what's a good book/source on SQL database design ?" > > I am trying to design a database. There is one table which contains, let's say, Armed Forces Personnel > - each row is a different person > - columns include the obvious .... name, date of birth, ... that are common to all > - there is a column saying which armed force the person is in > - and then there are additional, DIFFERENT fields depending on which one it is [...] This is a very common design pattern. If you have ever done any Object-Oriented Programming, you would have come across this problem when trying to translate your objects' inheritance hierarchy into database storage tables. I'll give you a very common example: online catalogues. Let's say you have an online catalogue, where you sell different kinds of items: books, clothes, and computer accessories. Each one of these is an "item", and as an 'item', they have several properties in common: an 'item number' in your catalogue, 'pricing', 'stock level', and so on. Unfortunately, 'books' also need to display certain information - 'title', 'author', etc. - which is not appropriate for 'clothes', where we really need to have information like 'colour', 'size', and so on. It is easy to visualise the relationship between these different types of 'items' in an OOP class diagram: "Item" would be a super class, with the properties (fields) common to all items: 'number', 'price', 'stock level', etc. "Books", "Clothes" and "Computer Accessories" are sub-classes of "Item", and as well as inheriting all the properties from the parent "Item", they define their own properties, which should only be available to items of that class. So, the "Books" class will define an "author" and "title" properties, and the "Clothes" class will define a "size" and "colour" properties, and so on. But how do we store this information in the database? In our database, we are going to have a table of "orders". Each "order" will have one-to-many "items" connected to it. But these "items" may be 'books', 'clothes' or 'computer accessories'. How do we store this? The type of relationship between 'orders' and its 'items' is traditionally called a one-to-many POLYMORPHIC RELATIONSHIP: the 'order' is connected to an 'item', but the 'item' can be more than one 'type of thing'. Usually, the way this is done is: * you create a separate table each for 'books', 'clothes' and 'computer accessories', and in this book you store the information relevant to that type of object. * you create an 'items' table, and in that table you have all the information that is common to all items ('pricing', 'item number', 'stock level'). * each 'item' is going to reference a record in the 'books', 'clothes' or 'computer accessories' table. In order for that to happen, each item must have an "item_id" field, and an "item_type" field. The "item_id" is the id of the item in the 'books'/'clothes'/'accessories' table, and the "item_type" is simply the name of the table itself. Now you can relate 'orders' to 'items', and based on the "item_type" and "item_id" then retrieve the appropriate record from the correct table. This introduces an extra layer of complexity to your database queries - extra queries will have to be made with every CRUD operation of 'items' - but if you are using OOP, this table layout will closely match your classes, and makes updating your architecture easier in the future. Now, let's throw a spanner in the works... You may have heard of "NoSQL" databases. These are database systems that were created to try and overcome some of the problems inherent to SQL (and table-based) databases. There are many different types of NoSQL databases, which store information in a variety of flexible ways. Traditionally, NoSQL databases were designed to be able to store *massive* amounts of data - think Google-size - and be easy to be expanded. NoSQL databases usually don't store their data in 'rows' and 'tables' - they use 'records' and 'collections', but the main difference is, that there is no set 'fields': each record in a collection can have an arbitrary number of fields, and these can be totally different from the next record in the same collection. Now, *this* is flexible, and frees the developer from even having to know what kind information will be stored. This flexibility and expandability usually came at a high cost: there were lots of features that we were used to in SQL databases, that were missing in NoSQL - important ones, such as relational integrity (most have no easy relational capability) and ACID transactions (no rollback and commit). However, NoSQL databases have evolved *greatly* in the last couple of years, some open source projects have received a very healthy injection of cash. We are now starting to see some NoSQL databases that offer ALL of the flexibility of NoSQL, as well as having ALL of the SQL features. Possibly, the most notable one is "ArangoDB": http://www.arangodb.org This is an incredibly powerful database, which is free, extremely easy to instal, and well-documented. Using a NoSQL database like Arango, we could simply have an "items" collection, and if different items have different fields, it doesn't matter. We can then later search for all items that from a certain 'author', or of a certain 'colour', and with one single query get the right book or item of clothing. We can also *embed* a full list of items in every 'order'. That way we can change our items at will, without fearing that it will alter the content of past orders. To do the same in an SQL database would require the addition of extra 'item template' tables, adding even more complexity to the architecture. As you can see, there are some amazing advantages in NoSQL databases, and it may pay to invest some time and get acquainted with a solid product like ArangoDB. It may offer a different type of solution that may be a good inclusion in your arsenal of options. I hope this helps. Kind regards to all, -- Igor Couto Sydney, Australia From bvlahos at mac.com Mon Jun 30 22:03:25 2014 From: bvlahos at mac.com (Bill Vlahos) Date: Mon, 30 Jun 2014 19:03:25 -0700 Subject: Launch URL to run Windows program using command line switches In-Reply-To: References: Message-ID: Skip, This is great. I?ve been struggling with this for a couple of weeks now without success. This works for me when I point to a .exe file but not if I point to a link file (.lnk) such as in the Start Menu folder. The reason I want to use the .lnk file in Start Menu is that the actual application may be installed in a number of locations (Program Files, Program Files (x86), file server, etc.) but there is always a .lnk file in the Start Menu when the application is installed. The cmd window in Windows7 supports command line options for .lnk files so I wonder if this is a LiveCode limitation of the launch command. Thanks for the timely posting. Bill Vlahos On Jun 30, 2014, at 1:21 PM, Magicgate Software - Skip Kimpel wrote: > Got it working. Ended up with this to get it working: > > launch "c:/Program Files (x86)/MyProgram/file.exe /P > ""E&"myfile.txt""E > > > On Mon, Jun 30, 2014 at 3:07 PM, Magicgate Software - Skip Kimpel < > skip at magicgate.com> wrote: > >> Hello LC'ers, >> >> I need to launch a function within my LC application. How would I >> properly format a launch URL statement that launches a file with command >> line options? For instance, what I need to launch is: >> >> C:\Program Files (x86)\MyProgram\file.exe /P "myfile.txt" >> >> Every way I try to format the statement it does not work and get a "can't >> open file." >> >> Here is what I am currently trying but failing miserably with: >> launch url "file:c:\Program Files (x86)\MyProgram\file.exe /P >> ""E&"myfile.txt""E >> >> Your help is always appreciated! >> >> SKIP >> >> >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode