Re: Anyone using Livecode Server for sending PushNotifications?
Hi, Matthias. Here's an old message on the subject.. http://article.gmane.org/gmane.comp.ide.revolution.user/175914/ the files mentioned in the post have been renamed to .lcx as LiveCode Server is now running on that machine. On 25/09/2014 08:21, Matthias Rebbe | M-R-D wrote: Hi, i am new to PushNotifications. I´ve looked into it many months ago, but gave up because of the php stuff. Is someone doing PushNotifications with LC server instead of PHP and would like to share how this can be done? Regards, Matthias ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Usng an image to disable a group
Hi, Pete. Try setting the group's traversalOn property to false when you cover it with the image. Does that solve the problem? On 20/09/2014 17:20, Peter Haworth wrote: I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Does LC Have A touchLoc() Function?
The last time I checked, a touchMove was always fired after a touchStart (so you can reliably pick up the initial position). TouchMove events can then track each individual touch id. I think mouseLoc always reported the position of the first touch. On 21/09/2014 21:09, Scott Rossi wrote: Does anyone know if LiveCode has touch-based function equivalent of mouseLoc? I'm thinking along the lines of touchLoc(id). I'm not seeing anything in dictionaries or release notes, but it's possible I'm missing it. Currently, there doesn't seem to be any way to poll the current active touches, which is something that has always been possible on desktop with the mouseLoc function. Using touchMove is not an option, because this only fires when there's movement of some kind. I'd like to open a feature request for a touchLoc(id) function that would return the loc of a touch id, and a touchLocs() function which would return all currently active touch ids and their locations. Unless this already exists, or there's some other way of getting this information and I'm just not seeing it. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: revDataFromQuery and DELETE FROM
Peter's correct - use revExecuteSQL since no records are returned On 17/08/2014 19:20, Peter Haworth wrote: Hi Dan, What is the text after revdberr? Strange that the row is being deleted but here's a couple of things that come to mind. You've probably already checked that tTableName and entryID contain valid information but one other thing to check is if the tablename includes any special characters or if entryID contains non-numeric data. In the first case, the table name would have to be enclosed in double quotes and in the second case, entryID would have to be enclosed in single quotes. I'm not sure it really matters but I always use revExecuteSQL when executing anything other than a SELECT statement. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sun, Aug 17, 2014 at 9:41 AM, Dan Friedman d...@clearvisiontech.com wrote: Hello, Can anyone tell me why this results in revdberr? put DELETE FROM tTableName WHERE entryID= entryID into tSQL put revDataFromQuery(tab, cr, gConnectionID, tSQL) into tData What's interesting is that the record is being removed from the database. So it's all working server side, just that LiveCode is reporting revdberr. Anyone have any ideas? Thanks in advance, Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Standard Library
Agree - matchText and matchChunk would both benefit from the ability to specify an array to fill with matches - we don't always know exactly how many will appear .. http://quality.runrev.com/show_bug.cgi?id=11391 On 12/08/2014 02:12, Peter Haworth wrote: I've always kinda thought the return variable parm to matchText was a little strange as it relies on you knowing how many matches will be found in advance. It would be great if the returned variable could be an array keyed by the numeric match number, alike the variables you can supply to the some of the database functions. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: delete specified text?
Try; replace Specific word with empty in line X of fld Y I t would be rather jolly if delete Specific word from line X of fld Y could be implemented. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Pending messages
Using Mark's example, another possible option is make the custom property a condition for the repeat; repeat until KK = 25 or the cClicked of btn Cancel is true set the vis of btn B to false wait 20 ticks with messages set the vis of btn B to true wait 20 ticks with messages put KK into fld KNT add 1 to KK end repeat On 14/07/2014 10:01, Mark Schonewille wrote: repeat until KK = 25 if the cClicked of btn Cancel is true then exit repeat set the vis of btn B to false wait 20 ticks with messages if the cClicked of btn Cancel is true then exit repeat set the vis of btn B to true wait 20 ticks with messages if the cClicked of btn Cancel is true then exit repeat put KK into fld KNT add 1 to KK end repeat ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Pending messages
Just an option. Looking at Richmond's example, it may be desirable to always finish with the button visible and the KNT field updated - ony Richmond knows for sure! :D On 14/07/2014 10:43, Mark Schonewille wrote: Yes, I thought of that, John, but if you do that, the script may run for another 20 ticks after the Cancel button has been clicked on. -- 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/14/2014 11:34, John Craig wrote: Using Mark's example, another possible option is make the custom property a condition for the repeat; repeat until KK = 25 or the cClicked of btn Cancel is true set the vis of btn B to false wait 20 ticks with messages set the vis of btn B to true wait 20 ticks with messages put KK into fld KNT add 1 to KK end repeat ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Problem with filter and regex
Which item delimiter are you using? For example, if it's a TAB, maybe you can specify a pattern ending with a tab, but disallowing any further tabs.. On 10/07/2014 14:42, Magicgate Software - Skip Kimpel wrote: I think I have found the cause of the issue, now I need to figure out how to solve it. The regex pattern I am looking for appears in other lines because there is a description field that lists related parts. The one consistency I have is that the pattern I am comparing to should be looking only at column 1 of tdg2Text I know this is not accurate but is there a way to say something like this: filter lines of ITEM1 of tdg2Text with regex pattern tRegexp into tTemp Trying to limit the filter based on the first item in that line VS the entire line. Ideas? Thank you, SKIP On Wed, Jul 9, 2014 at 2:02 PM, Bernard Devlin bdrun...@gmail.com wrote: I haven't use the filter by regex pattern, but perhaps try putting the End of Line marker ($) at the end of your regex. You may need the Start of Line marker too. ^.*cat.*mat$ ^ is the Start of Line marker. Bernard On Wed, Jul 9, 2014 at 4:28 PM, Magicgate Software - Skip Kimpel s...@magicgate.com wrote: Hello LC'ers I am comparing two lists using the following: filter lines of tdg2Text with regex pattern tRegexp into tTemp The problem I have is that this is pulling up multiple lines in tdg2Text when if fact I need to filter out a specific line. tRegExp should MATCH (exactly) item 1 of tdg2Text. Make sense? SKIP ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [on-rev] libURL and https
Hi, Scott. I couldn't post to an https URL with on-rev the last time I tried, but the workaround was to use wget via shell. The example below is for android push notifications and shows how to send headers as well as the post data. put wget \ --header= quote Content-Type: application/json quote \ --header= quote Authorization: key= tAPIKey quote \ --post-data= quote tNotification quote \ -q -O - https://android.googleapis.com/gcm/send; \ into tCommand get shell(tCommand) put it into tResponse :D On 09/07/2014 03:58, Scott Morrow wrote: Does LibURL work with the on-rev server? I’m attempting: “post tMyJsonData to url https://mandrillapp.com/api/1.0/messages/send.json” I think I need to first use libUrlSetSSLVerification “false” but it produces a can't find handler” error I’m trying to use mandrillapp.com to send mail from a web form. I can post to mandrill with http:// but not with https:// I’ve used “get” and “put” for this in the past but that hasn’t worked for me either this time. sigh Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.com office 1-800-615-0867 -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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 http://elementarysoftware.com/beta/this=that/this=that-beta.html And count me as interested in any LC Server book. — Scott Morrow On Jun 25, 2014, at 2:19 PM, John Craig j...@splash21.com 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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 j...@splash21.com 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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 http://elementarysoftware.com/beta/this=that/this=that-beta.html And count me as interested in any LC Server book. — Scott Morrow On Jun 25, 2014, at 2:19 PM, John Craig j...@splash21.com wrote: ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
LiveCode Server: start session problem
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode Server: start session problem
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode Server: start session problem
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 j...@splash21.com 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: LiveCode Server: start session problem
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 j...@splash21.com 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Nested Repeat loops
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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SQL Join question
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SQL Join question
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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Handlers for reading/writing image density info in PNG/JPEG?
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, ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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 ambassa...@fourthworld.com 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): http://lists.runrev.com/pipermail/use-livecode/2014-May/201516.html 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 rich...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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 he...@simonsmith.co 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
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): http://lists.runrev.com/pipermail/use-livecode/2014-May/201516.html 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 rich...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning about server
Maybe we should all have a hangout some time and chew over a few ideas? On 10/06/2014 17:28, dunb...@aol.com wrote: I would pre- order two copies. Craig Newman -Original Message- From: Marc Van Cauwenberghe marc.vancauwenber...@pandora.be To: How to use LiveCode use-livecode@lists.runrev.com 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 j...@splash21.com 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.26
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.26
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] MobGUI V1.26
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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] Full justification for fields
I've just uploaded 2 new versions. The first has a slight performance tweak (which fixes a bit of sloppy programming!) and may save a few cycles when processing larger amounts of text. The second upload uses the offset function instead of the charIndex property, so will will work with the LC7 DP releases. http://forums.runrev.com/viewtopic.php?f=4t=20513 On 23/05/2014 19:00, Mike Kerner wrote: So any hope of posting a FIX:? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] Full justification for fields
Thanks to Dave Kilroy for sharing the work around and the generosity of Mark Stephens of Simulytics for donating the code back to the LiveCode community, a new function is available to fully justify LiveCode text fields. LiveCode version = 6.5 is required as it uses the measureText function which was introduced in 6.5. It doesn't work with the LC7 DP releases as the charIndex property seems to be missing - I assume it's down to the unicode changes that are underway. I've been testing on Mac / Linux and Windows - everything looks good so far !... The code is in the public domain and completely free to use for any purpose :D http://forums.runrev.com/viewtopic.php?f=4t=20513 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Making the content of LC Server Scripts Safe
A server .lc file is parsed by the server and only it's output is ever sent to the browser (not the source code), so the code is safe :) On 22/05/2014 05:31, Nakia Brewer wrote: Afternoon all, As I venture down the road of learning what the wonders of LC Server scripts can do I find myself wondering how safe are the content of these scripts. Being completely new to Web and Server development it's probably a silly question but for example: I have a LC Server script that is called from a mobile testing app that records the devices location into a MySQL Database using $_GET params. In the LC Server Script file resides all my connection details for my database etc. So, what stops someone from accidentally stumbling across that URL and getting the content of that file? Or am I completely not understanding? Sorry in advance :) 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Making the content of LC Server Scripts Safe
Ageed - always include your credentials from another file - plenty of wise replies! :) On 22/05/2014 17:04, Matthias Rebbe | M-R-D wrote: Yes and no. If for what ever reason the lc server engine is not running or misconfigured than it could happen that the content of that .lc script will be outputted. So the best thing would be, to place the script outside the public_html folder as AndyP suggested. You could then create a script within the public_html folder which uses the include command to include that outside script. In case of the lc engine is not running or is misconfigured, then you will only see the include… command and not the content of the complete confidential script. Regards, Matthias Am 22.05.2014 um 10:01 schrieb John Craig j...@splash21.com: A server .lc file is parsed by the server and only it's output is ever sent to the browser (not the source code), so the code is safe :) On 22/05/2014 05:31, Nakia Brewer wrote: Afternoon all, As I venture down the road of learning what the wonders of LC Server scripts can do I find myself wondering how safe are the content of these scripts. Being completely new to Web and Server development it's probably a silly question but for example: I have a LC Server script that is called from a mobile testing app that records the devices location into a MySQL Database using $_GET params. In the LC Server Script file resides all my connection details for my database etc. So, what stops someone from accidentally stumbling across that URL and getting the content of that file? Or am I completely not understanding? Sorry in advance :) 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: New chunks
Will point 4 - 'part' synonym break anything that already uses 'part' as a synonym of 'control'? I've only got one project that uses this keyword - not a big deal for me to change it, but others may have more substantial work to change. On 13/03/2014 16:54, Benjamin Beaumont wrote: Dear list member, Thank you for your input on this important matter. Having taken all the posts into account and discussed it internally we are inclined to implement the following in LiveCode 7.0: 1) Add a 'trueWord' chunk type to provide access to the Unicode Standard's notion of word-breaking. 2) Add a 'sentence' chunk type to provide access to the Unicode Standard's notion of sentence-breaking. 3) Add a 'paragraph' chunk type to provide access to the Unicode Standard's notion of paragraph-breaking. 4) Add a synonym 'part' for the current 'word' chunk type. This will allow LiveCoders to update their scripts to use the newer syntax in anticipation of a future change to make the behaviour of the 'word' chunk match the new 'trueWord' behaviour. We would anticipate changing the meaning of 'word' with our 'Open Language' project. It requires us to create a highly accurate script translation system to allow old scripts to be rewritten in new revised and cleaner syntax. It is at this point we can seriously think about changing the meaning of existing tokens including word. Existing scripts will continue to run using the existing parser, and they can be converted (by the user) over time to use the 'newer' / 'more refined' syntax we are planning. Warm regards and thank you again for your participation in this discussion. Ben _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com LiveCode - Programming made simple ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: 3D Raycasting in LiveCode?
Brilliant demo, Scott - runs very nicely on a 2010 MBP :D On 17/02/2014 13:27, LiveCode Feeds wrote: Hi, I have been experimenting with raycasting algorithms in LiveCode. (To see if it can be done at a reasonable frame rate, and to learn about raycasting at the same time.) There is now a demo that works, sort of. It's called Spider Hunt and you can find it here. http://livecodegamedeveloper.com/blog/2014-02-17/livecode-experiment-3d-raycasting.lc Hopefully someone can have a little fun with it, or finds it interesting. Scott. -- Scott McDonald Components, Controls, Tools and Resources for LiveCode http://www.runrevplanet.com http://livecodegamedeveloper.com/ http://livecodegamedev.net/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.22 and SVG icon files
After testing on a few different devices, the carousel has been updated to be more responsive. V1.24 seems much more useable - tested on iPhone4, iPad3 and low res android tablet so far. If anyone else has feedback, feel free to mail, etc. TIA! On 13/02/2014 21:26, John Craig wrote: I've updated MobGUI to V1.22 - it now has a palette to set up the carousel control. There's a short video demonstration at http://youtu.be/R1LOomoJSbU I've also added another download to www.mobgui.com - the SVG icon files used to create the mobguicons fonts. For more info : http://forums.runrev.com/viewtopic.php?f=54t=19125p=96468#p96468 :D ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.22 and SVG icon files
Hi, Ender - sorry for the confusion. Yes, V1.22 is available to download with the carousel control. The old plugin had an unlimited free trial to let you evaluate it - so you never had to buy a license unless it met your needs. Since the new plugin isn't password protected, it never had a free trial - until recently! The trial version is a chopped down version to try and give a feel of how the plugin works. I tagged the version number onto the trial just to reference which version it was created from - I'll add some text to the downloads to explain things better. If you want to test the carousel, it's already available from here; http://forums.runrev.com/viewtopic.php?f=9t=14747 It's the same carousel, so hopefully the demo stack will allow you to judge if it will work for your needs! --- You wrote --- But that carousel control is game changer :) It looks awesome. Thanks - it's great to see something received warmly - hopefully it will live up to expectations!! John. On 13/02/2014 22:17, Ender Nafi Elekcioglu wrote: John hi, Is v1.22 available for download / buy? I downloaded the demo version but it’s v1.21 and it doesn’t have carousel control even as disabled. Btw, I bought MobGüi 2 years ago; I didn’t it need at all thus not updated my license. But that carousel control is game changer :) It looks awesome. So, is there any chance that you can provide it in the demo version maybe as a time-trial? And the first question of course, when will it be available? Best, ~ Ender ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.22 and SVG icon files
Just noticed two stray puts in the carousel behavior script: lines 255 309. I'll make sure those are removed for the next update. On 13/02/2014 21:26, John Craig wrote: I've updated MobGUI to V1.22 - it now has a palette to set up the carousel control. There's a short video demonstration at http://youtu.be/R1LOomoJSbU I've also added another download to www.mobgui.com - the SVG icon files used to create the mobguicons fonts. For more info : http://forums.runrev.com/viewtopic.php?f=54t=19125p=96468#p96468 :D ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.22 and SVG icon files
Hi, Ender - it's GPL - you're free to do anything to it ;) You can sell your version with sounds if you like!! (I'm just happy that it's getting a 'thumbs up') I'd like to get some more animated controls added - the pie isn't far away... http://youtu.be/4HBlpOch3lE On 14/02/2014 13:25, Ender Nafi Elekcioglu wrote: I want to barge in here and say that I’ve added click sounds to it as seen in picker wheel of iOS. http://forums.runrev.com/viewtopic.php?f=9t=14747#p96514 Hope I didn’t cross any lines, here. John, I didn’t get your permission beforehand; so if you wish, I can remove that post immediately. By the way, I've marked my additions with my name in order to prevent any confusion. If any problem occurs, first remove or comment out my additions. I haven't done any change or removal to the original code. Best, ~ Ender From: Nakia Brewer Nakia Brewer mailto:nakia.bre...@westrac.com.au Reply: Nakia Brewer nakia.bre...@westrac.com.au mailto:nakia.bre...@westrac.com.au Date: February 14, 2014 at 13:12:42 To: How to use LiveCode use-livecode@lists.runrev.com mailto:use-livecode@lists.runrev.com Subject: Re: [ANN] MobGUI V1.22 and SVG icon files Awesome work John, I have been contemplating attempting to add a 'click' sound to the carousel similar to the mobile picker.. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] MobGUI V1.22 and SVG icon files
I had a look and it's pretty cool with the clicking ;) I wonder if it was modified so that the images were rotated as they move around the carousel if a roulette wheel could be created. On 14/02/2014 13:25, Ender Nafi Elekcioglu wrote: I want to barge in here and say that I’ve added click sounds to it as seen in picker wheel of iOS. http://forums.runrev.com/viewtopic.php?f=9t=14747#p96514 Hope I didn’t cross any lines, here. John, I didn’t get your permission beforehand; so if you wish, I can remove that post immediately. By the way, I've marked my additions with my name in order to prevent any confusion. If any problem occurs, first remove or comment out my additions. I haven't done any change or removal to the original code. Best, ~ Ender From: Nakia Brewer Nakia Brewer mailto:nakia.bre...@westrac.com.au Reply: Nakia Brewer nakia.bre...@westrac.com.au mailto:nakia.bre...@westrac.com.au Date: February 14, 2014 at 13:12:42 To: How to use LiveCode use-livecode@lists.runrev.com mailto:use-livecode@lists.runrev.com Subject: Re: [ANN] MobGUI V1.22 and SVG icon files Awesome work John, I have been contemplating attempting to add a 'click' sound to the carousel similar to the mobile picker.. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Sound effects causing iOS apps to stutter
iOS sounds are an interesting case... I've noticed in the past (experimenting with game apps) that playing sound effects causes a very noticable stutter if you are animating objects. There must be some kind of initialization being done when you transition from having no sounds playing to a sound effect playing on a channel - it seems to happen every time you play a sound. The animation loop suffers and the nasty stutter becomes obvious. Happily, there is a solution - which is to have a background track playing. This seems to negate the need for whatever initialization was required before : as long as the background track is playing on a channel, any sound effects you play on other channels don't cause the stutter. You can even play an empty background track - or something set at volume 0. As long as the track isn't too short, things should be OK - now and again there will be a short grey period where the background track has to loop. On 14/02/2014 14:25, Ender Nafi Elekcioglu wrote: Why not? It’ll be a nice add-on and definitely give a different depth feel. Maybe you can update MobGüi with these features. Giving an option for sound click and another option for Rotating the images or Keeping them faced towards user -as it is now-. Won’t be easy, though; keeping the overall effect smooth will be hardest part, I guess. Even adding sounds slowed the carousel down and made it jumpy on the iPod 4 {my weakest test device}. Best, ~ Ender From: John Craig John Craig mailto:j...@splash21.com Reply: John Craig j...@splash21.com mailto:j...@splash21.com Date: February 14, 2014 at 16:17:42 To: How to use LiveCode use-livecode@lists.runrev.com mailto:use-livecode@lists.runrev.com Subject: Re: [ANN] MobGUI V1.22 and SVG icon files I had a look and it's pretty cool with the clicking ;) I wonder if it was modified so that the images were rotated as they move around the carousel if a roulette wheel could be created. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] MobGUI V1.22 and SVG icon files
I've updated MobGUI to V1.22 - it now has a palette to set up the carousel control. There's a short video demonstration at http://youtu.be/R1LOomoJSbU I've also added another download to www.mobgui.com - the SVG icon files used to create the mobguicons fonts. For more info : http://forums.runrev.com/viewtopic.php?f=54t=19125p=96468#p96468 :D ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Defining Pet Features and Essentials
Have you tried 'load URL' on mobile? For non blocking downloads? Sent from my iPhone On 12 Feb 2014, at 03:17, Ender Nafi Elekcioglu endern...@keehuna.com wrote: Gerry hi, Apparently I couldn’t express myself clearly, please excuse my lack of linguistic proficiency. By *updating UI*, I didn’t mean giving visual feedback to the user, which I’m already using; I meant responding to user’s interactions like tap, scroll, pinch, etc. and act accordingly as opening a menu, scrolling the group, navigating to another card… Here is a quick example: https://vimeo.com/86476730 It’s password protected to keep non-Livecoders off. Password is “runrev”; without quotes, 6 chars, all lowercase. Even it was a poor example and responding to user was in fact possible in this particular case; the main reason why I opened this thread remains. We, as a community, should decide which features are essential for us to help RunRev deciding their long term roadmap. Definitions are important. Right questions should be asked to get the right answers. Best, ~ Ender On February 12, 2014 at 3:46:33, Gerry Orkin (gerry.or...@gmail.com) wrote: And here it is with 2 files downloading concurrently: http://quick.as/yn6aiq18 Gerry On 12 Feb 2014, at 12:38 pm, Gerry Orkin gerry.or...@gmail.com wrote: Ender wrote: One cannot update the UI while pulling the content from the server. Er, yes you can. I'm doing it. Here's a screencast of it in action: http://quick.as/qyvjtr47 g ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] MobGUI V1.2 and demo version
The MobGUI plugin has been updated to V1.2 and there's now a demo version available for download. The plugin also comes bundled with mobguicons - royalty free icon fonts to use in your projects. See www.mobgui.com and the MobGUI forum (http://forums.runrev.com/viewforum.php?f=54) for more details. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RegEx for Removing Non-Ascii Chars Except Certain Whitespaces
When you say 'non-ascii' do you mean non alphanumeric? if tData contains your string then.. put replaceText(tData, [^[:alnum:]- ], ) will replace anything that isn't alphanumeric, dash or space with blnk. :) On 29/01/2014 15:00, Ender Nafi Elekcioglu wrote: Hi all, I’m a little embarrassed to ask this question for two reasons: 1. I should have known sufficient regex, every coder should. 2. I should have found the answer online, every coder should. But apparently I couldn’t and I’m struggling for quite a time; please, excuse my ignorance. I need a RegEx for the below substitution; Input: (everybody-should-know-this and this”/‘ Output: everybody-should-know-this and this The statement should clear all whitespaces and non-ascii chars except dash and space. Here is my current code: _replace space with “nqpSPACEqpn” in tParams _replace “-“ with “nqpDASHqpn” in tParams _put replaceText(tParams, “\W”, “”) into tParams _replace “nqpSPACEqpn” with space in tParams _replace “ nqpDASHqpn” with “- in tParams I’m sure it can be done with a single line of code something like _put replaceText(tParams, “*** regEx excluding space and dash here ***”, “”) into tParams Thanks for any help… Best, ~ Ender ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: RegEx for Removing Non-Ascii Chars Except Certain Whitespaces
( Just remember that \w will include certain punctuation ;) ) On 29/01/2014 16:25, Ender Nafi Elekcioglu wrote: Thierry, John; Thank you very much, both work just fine. Inspecting your solutions, I’ve found my stupid mistake, btw. This was what I was trying: “[^\W- ]” which should be obviously “[^\w- ]” Silly me :) Thanks again… Best, ~ Ender ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to Reset ID's of Controls
Hi, Ender. The ID's will still increase as the app runs - same as in the development environment, but when the app is restarted, the original stack will be loaded and the ID's will start again from their original values. On 27/01/2014 13:18, Ender Nafi Elekcioglu wrote: Alan hi, About second part of your reply: no, I don’t use any stack as a datafile. For that purpose, I’m using a couple of simple text files and a big SQLite database. The app has a library substack which is static and don’t alter during runtime; the mainstack has 23 cards which have several hundreds of controls and the majority of those controls are created on the fly since the content is dynamic. It’s kind of a news app. About the first part of your reply: I’ve thought this, too, after sending that last post. This is a standalone and there is no way to alter a digitally signed app, right? We can’t even set or create a new custom property during runtime on iOS. So, maybe this *ID’s constantly increasing* issue is related merely to the development environment. I should test this as soon as possible. Regards, ~ Ender From: Alan Stenhouse Alan Stenhouse Reply: Alan Stenhouse Date: January 27, 2014 at 13:21:43 To: use-livecode@lists.runrev.com use-livecode@lists.runrev.com Subject: Re: use-livecode Digest, Vol 124, Issue 44 Hi Ender I can't imagine that once you build your standalone that there will be any change at all to the IDs inside it - that shouldn't be possible - unless you're opening a separate stack/data file and modifying that? If it is a datafile that you're including/modifying and you're creating so much from scratch each time, is it really necessary that it's a separate stack file? Can you somehow just save the last status in a text/data file and rebuild on startup? What is your actual setup for this app? cheers Alan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] boasting
Well done - looks like you've put a hell of a lot of work into it! I imagine you're now like Neo from the film The Matrix : you don't see real people or objects any more, but everything just appears as continually updating, green, animated Sanskrit text! On 15/01/2014 18:09, Richmond wrote: Uploaded first DEMO; well proud ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Using sockets
Hi, Pete. If client A connects to server:10100 from 192.168.0.10:12345, then the server can send a response back to client A through 192.168.0.10:12345. Each client that connects to the server can be identified and communicated with in the same way : via the ip:port that they used to send the data. read from socket with messages doesn't block John. On 14/01/2014 17:22, Peter Haworth wrote: Diving into yet another new are of Livecode for me - sockets. My server issues an accept statement for port 10100. My client opens socket 10100. WHen the client connects to the server, the port number I get is not 10100, but some other number which changes on each connection. When sending messages between the client and server, which of these numbers should I use? My server uses read from socket with a callback message specified. I have a socketTimeout message handler which fires every time the socketTimeoutInterval expires. I thought the read from socket with message command was blocking and everything would stop until a message is received. If that's the case, it seems odd that these timeouts should occur? Pete lcSQL Software http://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: SQL (this AND that), OR (that AND theOther)
For clarity, can you post the entire query? On 08/10/2013 21:52, Roger Eller wrote: Having some SQL query troubles... I need to get results from a long list in a single query, BUT there are pairs of fields that must match. Every pair is a unique pair, aka no duplicates. If my list contains 50 pair that are unique, I may only get 30 returned rows, but I need all 50. This is what I've tried, but SQL strips away my outer parens, making my AND less binding for the pair. WHERE ((user = 'Joe') AND (car = 'Ford')) OR ((user = 'John') AND (car = 'Chevy')) OR ((user = 'Jim') AND (car = 'Kia')) OR ((user = 'Jim') AND (car = 'Smart')) ~Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [on-rev] no more SSH login?
Have you switched to a new server? I was switched to pancake a while ago and had to delete the old host details from my .ssh/known_hosts file. The SSH service is still running fine on pancake. On 31/08/2013 06:36, Phil Davis wrote: Hi folks, The last few times I have tried to SSH into an on-rev account, I get a message saying the connection is refused: ssh_exchange_identification: Connection closed by remote host Is anyone else having this experience? I also can't get in via SFTP. Similar symptom. Thanks - ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sprite Kit, Box2D, Performance and LiveCode's Approach to Game Coding
I'm also interested in creating games with LiveCode and looking forward to box2d integration. I've been checking out Corona and (more recently) - Unity (3D), to familiarize myself with physics stuff. It makes a massive difference having a physics engine taking care of collisions, gravity, etc. I assume that box2d performance with LiveCode will be on a par with other platforms using the same engine, so it will really open up a lot of possibilities :D The following Unity demo only required a couple of hundred lines of code, since all the physics was taken care of, so I'm really looking forward to seeing what LiveCode is capable of in the coming months. http://youtu.be/XuA5xbsdx_M Since Unity has a web player, you can have a play around with the demo here; http://splash21.com/Buggy/ On 21/08/2013 03:13, Ender Nafi Elekçioğlu wrote: Yes, I'm aware of Box2D integration and I'm very excited about it. I can't wait to see the possibilities. But, I'm not sure how much performance boost it will give us. I've stumbled on an article tonight about algorithm optimizations. It's kind of a case study. *Spots* finds the wifi hotspots nearby showing on a map and should react user's pinchzoom act with a 60fps speed. { http://www.savoysoftware.com/blog/my-iphone-is-not-a-mac-pro/ } Nikolai managed to achieve a whopping 200x performance increase by optimization. I tried the unoptimized code in LiveCode. After seeing the results, I didn't bother to code the binary-search. Here it is: - Cocoa C++ --- LiveCode iPod Touch--- 194ms --- ~2600ms Mac Pro 4ms - ~ 210ms These are both unoptimized algorithms but even if I'd use the binary-search in LiveCode, I wonder that I could achieve 0.883ms on my iPod Touch or 0.016ms on my brand-new desktop. So, an app like *Spots* can never be realized in LiveCode. Achieving a speed like 60fps seems impossible. Isn't this kinda frustrating? I can hear some of you saying: Well, get over it pal, LiveCode is a RAD tool. this is the price you have to pay in exchange of ease-of-use. Are these features really contradicting? Can't a coding platform be blazing-fast yet having an excellent IDE, built on an event-driven foundation and supporting multiple platforms? I'm not ungrateful, here. Just questioning… After all, LiveCode's paying my rent for nearly 2 years now. Best, ~ Ender Nafi ~… together, we're smarter …~ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sprite Kit, Box2D, Performance and LiveCode's Approach to Game Coding
(Use the arrow keys (or A,W,S,D) to control the buggy and the return key to switch camera angle) On 21/08/2013 12:26, John Craig wrote: I'm also interested in creating games with LiveCode and looking forward to box2d integration. I've been checking out Corona and (more recently) - Unity (3D), to familiarize myself with physics stuff. It makes a massive difference having a physics engine taking care of collisions, gravity, etc. I assume that box2d performance with LiveCode will be on a par with other platforms using the same engine, so it will really open up a lot of possibilities :D The following Unity demo only required a couple of hundred lines of code, since all the physics was taken care of, so I'm really looking forward to seeing what LiveCode is capable of in the coming months. http://youtu.be/XuA5xbsdx_M Since Unity has a web player, you can have a play around with the demo here; http://splash21.com/Buggy/ On 21/08/2013 03:13, Ender Nafi Elekçioğlu wrote: Yes, I'm aware of Box2D integration and I'm very excited about it. I can't wait to see the possibilities. But, I'm not sure how much performance boost it will give us. I've stumbled on an article tonight about algorithm optimizations. It's kind of a case study. *Spots* finds the wifi hotspots nearby showing on a map and should react user's pinchzoom act with a 60fps speed. { http://www.savoysoftware.com/blog/my-iphone-is-not-a-mac-pro/ } Nikolai managed to achieve a whopping 200x performance increase by optimization. I tried the unoptimized code in LiveCode. After seeing the results, I didn't bother to code the binary-search. Here it is: - Cocoa C++ --- LiveCode iPod Touch--- 194ms --- ~2600ms Mac Pro 4ms - ~ 210ms These are both unoptimized algorithms but even if I'd use the binary-search in LiveCode, I wonder that I could achieve 0.883ms on my iPod Touch or 0.016ms on my brand-new desktop. So, an app like *Spots* can never be realized in LiveCode. Achieving a speed like 60fps seems impossible. Isn't this kinda frustrating? I can hear some of you saying: Well, get over it pal, LiveCode is a RAD tool. this is the price you have to pay in exchange of ease-of-use. Are these features really contradicting? Can't a coding platform be blazing-fast yet having an excellent IDE, built on an event-driven foundation and supporting multiple platforms? I'm not ungrateful, here. Just questioning… After all, LiveCode's paying my rent for nearly 2 years now. Best, ~ Ender Nafi ~… together, we're smarter …~ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Pilots required
Thanks, Mark. LiveCode is continuing to impress me with with each addition the team makes. This game is running from a server - we are both connected remotely and I had to turn the speed down a few notches after the latest tweak - it was just too fast to play sensibly! I'm really looking forward to the new sprite layer mode and physics engine - so many possibilites :D Dog fight on the latest version of the demo with speed cranked down; http://youtu.be/65EcxAWrRvk Example running too quickly (it's great that LiveCode is capable of this and that we had to crank things down); http://youtu.be/nFEwaEO3zbc We also tried at x3 speed - which was just ridiculous... On 02/07/2013 16:34, Mark Talluto wrote: This is a pretty cool example of what can be done in LC for gaming. Nice work John. Best regards, Mark Talluto canelasoftware.com On Jun 29, 2013, at 9:52 AM, John Craig j...@splash21.com wrote: I've been doing some multi player game testing with LiveCode - if anyone is interested in a test game sometime to report on how well the client stack runs and the server app runs with more players connected, then drop me a line off list. Here's a video of a dog fight between myself and Dixie; http://youtu.be/qacVlr3lpj0 Thanks, J ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Pilots required
All the clients can do is request a change of heading, target speed, fire, refuel, shield, etc. The server validates the requests, detects collisions, updates co-ordinates, etc. then sends the data to each client. The communication is all via UDP sockets. It's only been tested with a few people playing, so I'm not sure what it's limitations are yet - maybe I need to set up a bot that can connect and play then start several bot instances.. The current client stack is available at https://drive.google.com/folderview?id=0B_yStO6pph2XWjZDUEtmZmMzTEkusp=sharing Feel free to have a poke at the code :D On 03/07/2013 17:03, Mark Talluto wrote: Most impressive. Would you reveal more about the architecture of the game? I am curious about your server/client implementation. Are the clients reporting their positions to the server and the server redistributes the data to the other clients? Or are the positions coming from the server and the clients are displaying those positions? This is all very interesting. Best regards, Mark Talluto canelasoftware.com On Jul 3, 2013, at 3:53 AM, John Craig j...@splash21.com wrote: Thanks, Mark. LiveCode is continuing to impress me with with each addition the team makes. This game is running from a server - we are both connected remotely and I had to turn the speed down a few notches after the latest tweak - it was just too fast to play sensibly! I'm really looking forward to the new sprite layer mode and physics engine - so many possibilites :D Dog fight on the latest version of the demo with speed cranked down; http://youtu.be/65EcxAWrRvk Example running too quickly (it's great that LiveCode is capable of this and that we had to crank things down); http://youtu.be/nFEwaEO3zbc We also tried at x3 speed - which was just ridiculous... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Pilots required
I have just updated it with the latest version :) On 03/07/2013 21:53, Mark Talluto wrote: On Jul 3, 2013, at 10:38 AM, John Craig j...@splash21.com wrote: The current client stack is available at https://drive.google.com/folderview?id=0B_yStO6pph2XWjZDUEtmZmMzTEkusp=sharing Shows as an empty folder. I like the server/client design. Clearly it is super fast. Best regards, Mark Talluto canelasoftware.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: revHookBuildScriptEditorContextMenu
I just double checked with community 6.0.2 and it works fine. Set up 2 frontscripts with something like the foloowing code. Stick a slightly different message in each one for identification of which is which. When right clicking in the editor, you'll see both customizations are there and they both work as expected. HTH John. on revHookBuildScriptEditorContextMenu pObject, pSelectedText, @pText, pModifiedText put Script Editor Customization LF - LF before pText pass revHookBuildScriptEditorContextMenu end revHookBuildScriptEditorContextMenu on revHookScriptEditorContextMenuPick pItem if pItem = Script Editor Customization then answer Run your custom code! exit to top end if pass revHookScriptEditorContextMenuPick end revHookScriptEditorContextMenuPick On 28/06/2013 22:48, Peter Haworth wrote: Hi John, I was hoping that would work too, but it doesn't seem to in my testing. I set up two front scripts, each with a handler with a revHookBuildScriptEditorContextMenu in it and a pass statement at the end but only one of them was executed. I think it's because it's not a built-in LC message, just something that is dispatched from the script editor mouseDown handler ,so the first handler to see it is executed then control goes right back to the statement after the dispatch. Same problem occurs with the revHookScriptEditorContextMenuPick handling. Hope I'm wrong but don't think so :-) Pete lcSQL Software http://www.lcsql.com On Fri, Jun 28, 2013 at 1:24 PM, John Craig j...@splash21.com wrote: Hi, Pete. As long as you pass the message, the other frontscripts will also receive the message, so you're not limited. John. On 28/06/2013 19:54, Peter Haworth wrote: I would like to use the above to add some items to the script editor contextual menu but I see from a recent discussion that only one plugin's front script will receive the message. Does anyone have any thoughts on a cooperative architecture that can be implemented now to allow multiple plugins to have access to this hook? Perhaps a custom property of the IDE Home stack (in the uRIP property set?) that defines the plugin stack name/handler to be invoked by the hook? Would still need a generic front script to trap the hook message and call the defined plugin handlers. Pete lcSQL Software http://www.lcsql.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: revHookBuildScriptEditorContextMenu
Hi, Pete. As long as you pass the message, the other frontscripts will also receive the message, so you're not limited. John. On 28/06/2013 19:54, Peter Haworth wrote: I would like to use the above to add some items to the script editor contextual menu but I see from a recent discussion that only one plugin's front script will receive the message. Does anyone have any thoughts on a cooperative architecture that can be implemented now to allow multiple plugins to have access to this hook? Perhaps a custom property of the IDE Home stack (in the uRIP property set?) that defines the plugin stack name/handler to be invoked by the hook? Would still need a generic front script to trap the hook message and call the defined plugin handlers. Pete lcSQL Software http://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] More GPL MobGUI
I've added some more controls to the new open source (rewritten for LC6) MobGUI, including the native iOS browser. If all goes well, the rest of the native controls should slot in pretty easily. Feel free to give it a poke with your sharpest LC stick and let me know if it behaves itself. https://dl.dropboxusercontent.com/u/7960211/MGLIB-GPL-2013-04-25.zip John. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] More GPL MobGUI
Thanks, Colin - if all is well with this version, the android controls should drop in nicely. The gap on the NavBar is on the list to be fixed - it fixes itself when you drag any handle. You can also double click it in edit mode to snap to the top of the card. On 25/04/2013 20:07, Colin Holgate wrote: How are things with the Android native controls? The nav bar had a small gap above it when I double clicked, but that was with a stack that wasn't a valid iOS size. Once the stack was iPhone size the bar filled in correctly. On Apr 25, 2013, at 2:55 PM, John Craig j...@splash21.com wrote: I've added some more controls to the new open source (rewritten for LC6) MobGUI, including the native iOS browser. If all goes well, the rest of the native controls should slot in pretty easily. Feel free to give it a poke with your sharpest LC stick and let me know if it behaves itself. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] More GPL MobGUI
NavBar glitch fixed, iOS native scroller added. You can delete the rectangle and label from inside the scroller when you drag it on to your stack - they are there so that the group can be resized and moved around without being locked and not auto resize down to 0! When you are happy with the placement, you can lock the group, delete the dummy contents and add the real contents for the scroller. https://dl.dropboxusercontent.com/u/7960211/MGLIB-iOS-GPL-2013-04-25.zip ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: GCM Push
Hi, Tom. The parameter sent to pushNotificationRegistered is the same as mobileGetDeviceToken(). John. On 22/04/2013 17:56, Thomas McGrath III wrote: Simple question: Is the mobileGetDeviceToken() returned the same as the tSignature that is returned when using on pushNotificationRegistered tSignature. I don't have a device to test with and can't tell if they are the same. The Lesson doesn't clarify either way. Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: on-rev: THOR server problem
Yes - looks like Thor hit his thumb with his hammer today and decided to take the rest of the day off! :( On 19/04/2013 16:32, Ralph DiMola wrote: Anyone else having problems? (Again) I did not see a maintenance notification. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Saving into invisible folders ?
I've not seen this before; specialFolderPath(.myMuck) Does it work if; specialFolderPath(Home) /.myMuck ? Sent from my iPhone On 16 Apr 2013, at 06:48, Richmond richmondmathew...@gmail.com wrote: specialFolderPath(.myMuck) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] Open source MobGUI iOS controls - first draft
A while ago I started rewriting some controls to use the new before and after behavior handlers. The results are custom controls with no library code in their scripts - I think it's a lot cleaner. The link below is to the first draft. The library is a one button palette. Just use the button to attach a copy of the library to your stack. After that you can close the original palette as it's not needed any more. The palette now attached to the stack is the one that you use to drag custom controls from. Any time you open your stack in the future, you still just use the attached palette. I've added a few iOS controls to this palette - if feedback is good and everything works as expected, the other controls can be added. My tests showed the controls to scale for normal/retina with no problems. Thanks to Dixie who also gave it a test on 5.5.3 and community. There is a slight glitch on the NavBar - after initially dragged on to your stack, you can double click to snap it to the top of the stack, but it's height is slightly too small - dragging a resize handle solves the problem for now. Each control has an 'mg' custom property set. https://dl.dropboxusercontent.com/u/7960211/MGLIB-iOS.zip ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The last group
Worth a try; set the name of the owner of the last group to grpA Sent from my iPhone On 13 Apr 2013, at 21:15, Peter Haworth p...@lcsql.com wrote: I think I ran into this a couple of years back but don't remember what the workaround is. In some cases,, the last group does not return a reference to the last group created. I'm not sure of all the circumstances that cause this but here's my situation. My script creates several groups, let's call them grp1, grp2,grp3, and after creating them, uses a group command to group all those groups into one outer group. After the group command, I set the name of the last group to grpA. The group that gets renamed is not the outer group but grp3. The group command, unlike just about any other command that creates an object does not return an ID in it so I have to use the last group construct, as recommended in the dictionary actually. I guess I will have to search through the groups and find the one with the highest ID to identify the outer group but before I do that, any ideas about how else to do this? Thanks, Pete lcSQL Software http://www.lcsql.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: on-rev: THOR server problem
Thor has been on and off for a while - tonight is especially laggy :( On 14/04/2013 00:06, Nicolas Cueto wrote: Anyone else on on-rev's THOR server experiencing very long delays? cPanel can connect somewhat after the delay, but web-pages are only returning error messages. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: What's the best way to store data that one iOS app sends to another?
I don't rely on SSL - to avoid any potential hassles with Apple's app store - Does your application use encryption?. The scheme I did use will work happily with SSL, if the data is sensitive, and without, for routine app data, game data, etc. As an example, my requests to the server contain; 1/ a uuid 2/ current time 3/ md5 hash of user credentials + uuid + time 4/ any other data The client first synchronizes it's time with the server. Each request is only valid for 30 seconds (the server checks the time built into the request). The server also temporarily stores the uuid, so it can only be used once (auto deleted after 60 seconds - by which time the request is no longer valid). The important user credentials are never sent as plain text and each request is only valid once - anyone snooping can't send the same request as the uuid will be rejected. The reason for sending the uuid and time (which are also built into the md5 hash) is so that the server can rebuild the same hash from the user credentials in the database and verify a 'login'. HTH John. On 06/04/2013 23:05, Geoff Canyon wrote: With on-rev, how do you handle authentication/a secure connection? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: What's the best way to store data that one iOS app sends to another?
I've been using the push notification device token to store device specific data - works pretty well. On 07/04/2013 16:35, tbodine wrote: Hi John. Speaking of Apple App Store restrictions, I see May 1 changes will restrict UDID use. Any plans yet to deal with that? see apple-to-deny-apps-using-udid-data-lacking-iphone-5-display-support-starting-may-1 http://appleinsider.com/articles/13/03/21/apple-to-deny-apps-using-udid-data-lacking-iphone-5-display-support-starting-may-1 -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-s-the-best-way-to-store-data-that-one-iOS-app-sends-to-another-tp4662941p4662977.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: What's the best way to store data that one iOS app sends to another?
In my case, the user credentials are an app id and a password. They are set up manually, beforehand, to allow any number of app instances running on users' devices to connect and share data. If you want to create actual user accounts through your app and don't want to send plain text then you're going to have to use encryption. John On 07/04/2013 21:52, Alex Tweedly wrote: I'm probably missing something very obvious If you don't use encryption or SSL, how do the user's credentials initially get onto the server so that they can subsequently be checked ? -- Alex. On 07/04/2013 14:10, John Craig wrote: I don't rely on SSL - to avoid any potential hassles with Apple's app store - Does your application use encryption?. The scheme I did use will work happily with SSL, if the data is sensitive, and without, for routine app data, game data, etc. As an example, my requests to the server contain; 1/ a uuid 2/ current time 3/ md5 hash of user credentials + uuid + time 4/ any other data The client first synchronizes it's time with the server. Each request is only valid for 30 seconds (the server checks the time built into the request). The server also temporarily stores the uuid, so it can only be used once (auto deleted after 60 seconds - by which time the request is no longer valid). The important user credentials are never sent as plain text and each request is only valid once - anyone snooping can't send the same request as the uuid will be rejected. The reason for sending the uuid and time (which are also built into the md5 hash) is so that the server can rebuild the same hash from the user credentials in the database and verify a 'login'. HTH John. On 06/04/2013 23:05, Geoff Canyon wrote: With on-rev, how do you handle authentication/a secure connection? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: What's the best way to store data that one iOS app sends to another?
I've been using LC on an on-rev server and a MySQL database for such tasks - I like the fact that the client and server bits can all be coded with LC :) You'll find MySQL on just about every hosting package, so it's usually a safe bet for choice of database. On 06/04/2013 18:10, Geoff Canyon wrote: Each instance of my iOS app needs to maintain a list of other users of the app and be able to send them information, and retrieve information they have sent. Think email, but without the image, attachment, etc. overhead -- more like sending tweets as emails. What sort of host/infrastructure would work for this? It might be a hosted database, in which case is there one that is easier to use with LC? Or it might just be a hosted file system, in which case how might I handle security? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android push notifications
Now that I've tested with the pushNotificationReceived message, this update delivers the payload data; # data element of notification put New updates available into tDataA[title] put There are 3 new updates... into tDataA[body] put tDataA[body] into tDataA[alert] put 3 into tDataA[badge] put default into tDataA[sound] put Payload data into tDataA[payload] # build notification put tDataA into tNotificationA[data] put tTokenA into tNotificationA[registration_ids] put SplashCloud into tNotificationA[collapse_key] jsonEncode tNotificationA, tNotification # headers put Content-Type: application/json LF into tHeaders put Authorization: key=Your Key LF after tHeaders set the HTTPHeaders to tHeaders # had a couple of errors that were resolved by setting/resetting this flag :/ #libUrlSetSSLVerification true # send the notification post tNotification to url https://android.googleapis.com/gcm/send; put it into tResponse put the result into tResult ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android push notifications
I've not managed to get a badge or sound for android push notifications. Looking through the GCM developer docs, I haven't even found any reference to them yet, so I'm wondering if they are even possible using the GCM API alone. On 31/03/2013 15:47, Pierre Sahores wrote: Hi John, Does the badge and sound works in using this way ? Thanks and Best Regards, Pierre Le 31 mars 2013 à 15:44, John Craig a écrit : ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android push notifications
Thanks, Bernard. Using play_sound=true, I get a sound with the notification on android. The elusive badge doesn't seem to appear anywhere on my device. John. On 31/03/2013 23:58, Bernard Devlin wrote: There is some information in RQCC for bug #10154 I have not seen more detailed information than that anywhere else. Bernard On Sun, Mar 31, 2013 at 9:29 PM, John Craig j...@splash21.com wrote: I've not managed to get a badge or sound for android push notifications. Looking through the GCM developer docs, I haven't even found any reference to them yet, so I'm wondering if they are even possible using the GCM API alone. On 31/03/2013 15:47, Pierre Sahores wrote: Hi John, Does the badge and sound works in using this way ? Thanks and Best Regards, Pierre Le 31 mars 2013 à 15:44, John Craig a écrit : __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Android push notifications
I've added iOS and Android push notifications to a stack I've been working on. When sending notifications to my android device, the message displayed when the notification arrives is 'Notification received'. Does anyone know how to change (if possible) this message to something more meaningful - I've not found this so far in google's docs. TIA John. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android push notifications
Thanks, Pierre. The 'title' and 'body' keys in the 'data' payload section did the trick. I'm not getting any badge or sound (yet) - still looking into it. Here's a LiveCode version for anyone interested (and a little json encoder) on mouseUp # devices to send to (up to 1000) put your device token into tTokenA[1] # data element of payload put New updates available into tDataA[title] put There are 3 new updates... into tDataA[body] put 3 into tDataA[badge] put default into tDataA[sound] put 100 into tDataA[score] put 35 into tDataA[time] # build payload put tDataA into tPayloadA[data] put tTokenA into tPayloadA[registration_ids] put 3 into tPayloadA[badge_value] put SplashCloud into tPayloadA[collapse_key] jsonEncode tPayloadA, tPayload # headers put Content-Type: application/json LF into tHeaders put Authorization: key=your key LF after tHeaders set the HTTPHeaders to tHeaders # had a couple of errors that were resolved by setting/resetting this flag :/ #libUrlSetSSLVerification true # send the notification post tPayload to url https://android.googleapis.com/gcm/send; put it into tResponse put the result into tResult put the seconds LF tResponse LF LF tResult end mouseUp # encode array in JSON format command jsonEncode @pArray, @pJson, pDeep if pDeep = empty then put empty into pJson put the keys of pArray into tKeys repeat for each key tKey in pArray if tKey is not an integer then put true into tTextKeys exit repeat end if end repeat if tTextKeys then put { into tOpen put } into tClose else put [ into tOpen put ] into tClose end if put tOpen after pJson put 0 into tIndex repeat for each line tKey in tKeys add 1 to tIndex if tIndex 1 then put comma after pJson if tTextKeys then put quote tKey quote colon after pJson put pArray[tKey] into tVal if tVal is an array then jsonEncode tVal, pJson, true else if tVal is a number or tVal is a boolean then put tVal after pJson else if tVal = empty then put null after pJson else replace quote with \ in tVal replace \ with \\ in tVal replace / with \/ in tVal replace numToChar(8) with \b in tVal replace numToChar(9) with \t in tVal replace numToChar(10) with \n in tVal replace numToChar(12) with \f in tVal replace numToChar(13) with \r in tVal repeat for each item tCode in 0,1,2,3,4,5,6,7,11,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 replace numToChar(tCode) with \u format(%04X, tCode) in tVal end repeat put quote tVal quote after pJson end if end repeat put tClose after pJson end jsonEncode On 30/03/2013 19:45, Pierre Sahores wrote: This script works ok in about displaying what's needed instead of Notification received ($abstract) : ?php $registrationIDs= Array(###devices###); $title = ###title###; $abstract = ###abstract###; $payload= ###payload###; $badge = ###badge###; $apiKey = ###authent###; $url= https://android.googleapis.com/gcm/send;; $fields = array( 'registration_ids' = $registrationIDs, 'collapse_key' = 'abcdef', 'data' = array('title' = $title, 'alert' = $abstract, 'body' = $abstract, 'payload' = $payload, 'badge' = intval($badge), 'sound' = 'default' ) ); $headers = array('Authorization: key=' . $apiKey, 'Content-Type: application/json'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields)); $result = curl_exec($ch); curl_close($ch); echo $result; ? but, on the other side, i can't get any sound to play when the message arrives on the device. Any toughs welcome :-) Best, Le 30 mars 2013 à 19:11, John Craig a écrit : I've added iOS and Android push notifications to a stack I've been working on. When sending notifications to my android device, the message displayed when the notification arrives is 'Notification received'. Does anyone know how to change (if possible) this message to something more meaningful - I've not found this so far in google's docs. TIA John. ___ use-livecode mailing
[ANN] GPL sQuiRt
(Also posted on the forums) sQuiRt is a LiveCode library for creating QR codes (2d bar codes). I've posted an open source, GPL version to complement the imminent release of open source LC. Hopefully you'll find the source interesting - there's code for PNG image creation, crc32 checksums and deflate compression as well as the QR code itself. I'm no mathematician and don't have previous QR experience, so there will no doubt be numerous ways to tweak the code, etc - have fun!! There's a download link at; http://splash21.com/sQuiRt.php ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Fwd: Stackoverflow : new LiveCode questions
The on-rev server job seems to be working OK as Roger's post was waiting in my inbox. I'll ask Heather what she thinks. Original Message Subject:Stackoverflow : new LiveCode questions Date: Sun, 10 Mar 2013 21:50:02 -0500 From: ro...@splash21.on-rev.com To: j...@splash21.com What is a good way to indicate that data has changed, but not updated? Asked by Roger Eller URL: http://stackoverflow.com/q/15330414 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Fwd: Stackoverflow : new LiveCode questions
I've got a cron job running on on-rev that checks for new LiveCode questions on stack overflow. If there are new questions it hasn't seen before, it emails me the details as a digest (see output below). I can set up an email list if anyone is interested - or even post to this list. The cron job can be modified to run every minute, every hour, etc. , but only sends a report when new data is available. Original Message Subject:Stackoverflow : new LiveCode questions Date: Sun, 10 Mar 2013 17:38:21 -0500 From: ro...@splash21.on-rev.com To: j...@splash21.com Can I use iphoneSetDoNotBackupFile on a folder of files rather than individual files? Asked by Monte Goulding URL: http://stackoverflow.com/q/15316457 Are LiveCode gradient to,from,via properties relative to the object or card coordinates? Asked by Monte Goulding URL: http://stackoverflow.com/q/15307005 How do I add annotations at coordinates from a database to a mergMK map in a LiveCode app? Asked by Monte Goulding URL: http://stackoverflow.com/q/15303948 LiveCode negative quot;firstIndentquot; - or other way to achieve the effect? Asked by Ben Rubinstein URL: http://stackoverflow.com/q/15299002 LiveCode field level input validation Asked by Roger Eller URL: http://stackoverflow.com/q/15297875 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Editing polygon points
Is it possible to visually edit the points of a polygon and can I add and delete individual points? http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Editing polygon points
Well - that will do your reputation no harm ;) On 07/03/2013 19:44, Monte Goulding wrote: On 08/03/2013, at 12:28 AM, John Craig j...@splash21.com wrote: Is it possible to visually edit the points of a polygon and can I add and delete individual points? http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode It appears everyone is too used to replying here... I did the deed ;-) -- Monte Goulding M E R Goulding - software development services mergExt - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Editing polygon points
Thanks, Jim- that's half way there ! :) On 07/03/2013 15:38, Jim Hurley wrote: Hi John, There is a much overlooked feature in RR that allows you to manually reshape points. Under the Object menu select Reshape graphic. And you can delete points using the Inspector. Just delete the offending line among the Points. Adding points is tricky. But you can just add a new line to the Points and then reposition the points. And then, as you know, there are Bezier curves. Jim Hurley Message: 27 Date: Thu, 07 Mar 2013 13:28:18 + From: John Craig j...@splash21.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Editing polygon points Message-ID: 513895f2.50...@splash21.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Is it possible to visually edit the points of a polygon and can I add and delete individual points? http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Editing polygon points
Wow - looks like an interesting stack! I'm after something much simpler, though :) On 07/03/2013 14:19, in...@kenjikojima.com wrote: John, I have made a wireframe drawing stack. You have to open stack animationEngine before this. go stack url http://www.kenjikojima.com/runrev/draw3D.livecode; Create a New Point: Click on Grid Move a Point: MacOS: Option Key + Drag a Point Windows: Alt Key + Drag a Point Add a New Point: Shift Key + Click on a Line Delete a Point: Control Key + Click on a Point -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ On Mar 7, 2013, at 8:28 AM, John Craig wrote: Is it possible to visually edit the points of a polygon and can I add and delete individual points? http://stackoverflow.com/questions/15272215/editing-polygon-points-with-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Proportionally Scale A Field?
Check out http://mobgui.com/morph.php In particular, the coments in the morph.rescale handler of the MorphLib stack. I was surprised to find that ignoring the margins for field objects worked for the tests I was doing. I'm not sure if it will work for your particular set up, but worth a go. :) On 24/02/2013 08:32, Scott Rossi wrote: Hi All: Has anyone been able to figure out how to proportionally scale a basic field in LiveCode? I'm not talking about the text size (obvious), but rather the margin offsets. Specifically, the top margin is the problem. Contrary to what you would expect, doubling or tripling the top margin when doubling or tripling the size of the field doesn't result in proportional results: the top margin value increases correctly, but the actual number of pixels the text is offset is incorrect. I've spent days trying to figure out some rhyme or reason behind the numbers, and even broke down and tried to chart the results with the hope of finding a pattern/formula, but I can't figure out anything. Things get even more convoluted when changing the field's textSize or textHeight. I've bug reported this and asked RunRev for assistance but they have not been able to help. How do folks scale fields for different resolutions on mobile? What's the formula? Thanks Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] Dog Tales for iPad
Dog Tales for iPad has just been approved. This could be a good time to submit apps - this is only day 6 after it was submitted. https://itunes.apple.com/us/app/dog-tales/id582763528?mt=8 (Taken a bit by surprise - the web site is not 100% finished) http://dogtales.splash21.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN] MobGUI update
With recent additions and improvements to LC, custom controls to support all resolutions is looking promising. I've also been looking at content scaling and dynamic image resolution. Anyone who's purchased MobGUI can download the morph library in it's current state at http://mobgui.com/morph.php The library stack script is commented as is the test stack's card script. I've used the library to successfully run the game demo at http://youtu.be/a_716ei8WOo on an iPhone and an android table (800x480) - it was designed for iPad 1024x768. The biggest issue at the moment is the time taken to resize assets - I'm looking at ways to speed it up. Regards, John. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Put URL and garbage in result from PHP
Have you tried just outputting the data with no headers? JC On 08/10/2012 15:58, Mark Schonewille wrote: Hi, I'm downloading a list of words of 9 characters from a MySQL database using a PHP script and a put URL command in a LiveCode script. Altogether, there are approximately 1 lines in my list, with one word on each line. Both the PHP script and the LiveCode script run on Mac OS X. I use a put URL command in my LiveCode script, such as put url http://localhost/~user/list.php; The relevant part of the PHP script is: $q=SELECT xword FROM ydatabase; $r=mysql_query($q); if (!$r) { echo 'An error occurred: '.mysql_error(); } else { while ($row = mysql_fetch_array($r)) { echo $row[0]\n; } } Exactly every 8001 bytes (or 889 words, which are all different), I get some garbage: 1f41 A B [889 times] C 1f41 P Q [889 times] R etc etc etc X 1e7d The garbage is often the same but not always and it appears before the first line and after the last line. I have tried several combinations of the content-type and content-transfer-encoding headers in PHP. I have also tried changing the encoding of the PHP script itself. If I call the same URL from CURL and pipe the output to a text file or if I open the URL in a browser, I don't see any garbage: A B [889 times] C P Q [889 times] R etc etc etc X Does anyone have an idea what causes LiveCode to add garbage to my list? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Finally found one.
Hi, Craig. There's no message build up : every time you send a 'showRandoms tSecs', you schedule another 'showRandoms tSecs' if your time check is true, so there's one pending. Pressing the stop button just makes another call to the handler, it doesn't cancel the scheduled message - it's still there and will still fire. When you send 'showRandoms 0', the existing scheduled message is still 'showRandoms x' - it still has it's random number as the tSecs parameter. On 03/10/2012 02:15, dunb...@aol.com wrote: John. Just read your post. I came to the same conclusion. See the last entry in the thread in the forums. But it seems like each time a pending message is queued, a message is sent, so I do not see why these should build up. But I posted an example, similar to your thinking, and it obviously is the reason behind it all. But as Bernd notes, why the exit to top doesn't kill everything is still a mystery... Craig Newman -Original Message- From: John Craig j...@splash21.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tue, Oct 2, 2012 4:43 pm Subject: Re: Finally found one. Hi, Craig. Looks like the trouble is that you've always got a pending message, so after you press stop, there's another message fired immediately to start things rolling again. try this handler in the card; command cancelMessages pMessages -- cancel any pending messages in the pMessages list if pMessages = empty then exit cancelMessages put the pendingMessages into tPending repeat for each line tMsg in tPending put item 1 of tMsg into tID put item 3 of tMsg into tName if tName is among the items of pMessages then cancel tID end repeat end cancelMessages and change your showRandoms command to; on showRandoms tSecs put random(99) if tSecs = 0 then cancelMessages showRandoms exit to top end if if tSecs the seconds then send showRandoms tSecs to me in 10 millisecs end showRandoms HTH :) On 02/10/2012 03:25, dunb...@aol.com wrote: Finally found reproducible scripts that work as advertised when stepping through in the deBugger, but do not when simply run. This gremlin has been sighted, like the Yeti, by nominally sane people, but never caught. Make two buttons. Name one start. Name the other stop. in btn start: on mouseUp put the seconds + 8 into tSecs showrandoms tSecs end mouseUp In btn stop: on mouseup send showRandoms 0 to this card end mouseup In the card script: on showRandoms tSecs put random(99) if tSecs = 0 then exit to top end if if tSecs the seconds then send showRandoms tSecs to me in 0 millisecs end showRandoms Try it. If you press the start button, you get random numbers in msg for eight seconds. If you press the stop not while this is going on, nothing happens. If you place a breakpoint at the exit to top line in the card script. the handler is caught there, and if you then step through, you exit. The stop button resets the variable tSecs to a value that will force showRandoms to end. And it does, but only if you step through, not if you run it. The variable watcher shows a 0 as the value of tSecs, as it should, and the conditional tosses you out of the handler. As it should. But not in a normal run, only in the debugger. I have been chasing this since 1987. I am not crazy. I have pictures. I will start a support group. Craig Newman ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Skinning buttons
Hi, John. You have to resize the image object as well. Quality = 'good' or 'best' works for me - 'normal' is usually too rough. On 03/10/2012 15:42, John Allijn wrote: I've created a large number of buttons designed to look good on an iPad3. I created these buttons by scripts that combining images and icon fonts and saving these as snapshots. After that my script uses these snapshots to skin buttons. So far so good. The problem that I now run into is that when I try to scale these buttons down for use on an iPhone, the images are cropped (clipped) and not resized. Is there a setting somewhere that can change this behaviour? In other words, if I select a button and drag the corner to resize it, I want the images of its skin to resize with it. Thanks! John. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Finally found one.
Hi, Craig. Looks like the trouble is that you've always got a pending message, so after you press stop, there's another message fired immediately to start things rolling again. try this handler in the card; command cancelMessages pMessages -- cancel any pending messages in the pMessages list if pMessages = empty then exit cancelMessages put the pendingMessages into tPending repeat for each line tMsg in tPending put item 1 of tMsg into tID put item 3 of tMsg into tName if tName is among the items of pMessages then cancel tID end repeat end cancelMessages and change your showRandoms command to; on showRandoms tSecs put random(99) if tSecs = 0 then cancelMessages showRandoms exit to top end if if tSecs the seconds then send showRandoms tSecs to me in 10 millisecs end showRandoms HTH :) On 02/10/2012 03:25, dunb...@aol.com wrote: Finally found reproducible scripts that work as advertised when stepping through in the deBugger, but do not when simply run. This gremlin has been sighted, like the Yeti, by nominally sane people, but never caught. Make two buttons. Name one start. Name the other stop. in btn start: on mouseUp put the seconds + 8 into tSecs showrandoms tSecs end mouseUp In btn stop: on mouseup send showRandoms 0 to this card end mouseup In the card script: on showRandoms tSecs put random(99) if tSecs = 0 then exit to top end if if tSecs the seconds then send showRandoms tSecs to me in 0 millisecs end showRandoms Try it. If you press the start button, you get random numbers in msg for eight seconds. If you press the stop not while this is going on, nothing happens. If you place a breakpoint at the exit to top line in the card script. the handler is caught there, and if you then step through, you exit. The stop button resets the variable tSecs to a value that will force showRandoms to end. And it does, but only if you step through, not if you run it. The variable watcher shows a 0 as the value of tSecs, as it should, and the conditional tosses you out of the handler. As it should. But not in a normal run, only in the debugger. I have been chasing this since 1987. I am not crazy. I have pictures. I will start a support group. Craig Newman ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Push Messages
Hi, Dan. I've only got one app using push notifications and it launches OK from the alerts - which version of LC are you using? I can rebuild using the same version and let you know if it still works. :) On 16/09/2012 19:07, Dan Friedman wrote: Ok... I've got everything working on my iOS app in regards to Push Notifications. Pretty cool! When the app launches it's saving the device token to a sql database on my server, and I am able to send a push notice to each device. When the app is running, the message is displayed via the pushNotificationReceived message. If the app is not running, the correct display is happening on the phone (banner or alert). Perfect! One problem, if you tap on the banner or alert, the app launches but then crashes! Rats! I can lunch the app no problem if it's not from the banner or alert. And, if the app is running, I can even bring down the notification sheet and tap the message and it appears correctly. Is there an issue with launching a iOS app when invoked by a Push Notification? Or, am I doing something wrong? ANY assistance would be appreciated! -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS Push Messages
I rebuilt with LC5.5.2 and the app crashes when launched from a push notification. Rebuilding with LC5.5.1 and the app launches fine from a push notification. Reported : Bug #10391 On 16/09/2012 19:07, Dan Friedman wrote: Ok... I've got everything working on my iOS app in regards to Push Notifications. Pretty cool! When the app launches it's saving the device token to a sql database on my server, and I am able to send a push notice to each device. When the app is running, the message is displayed via the pushNotificationReceived message. If the app is not running, the correct display is happening on the phone (banner or alert). Perfect! One problem, if you tap on the banner or alert, the app launches but then crashes! Rats! I can lunch the app no problem if it's not from the banner or alert. And, if the app is running, I can even bring down the notification sheet and tap the message and it appears correctly. Is there an issue with launching a iOS app when invoked by a Push Notification? Or, am I doing something wrong? ANY assistance would be appreciated! -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Logging Device Tokens
Hi, Dan. The following info will hopefully help, or at least give you some ideas. I wrote a 'draw something' style app at the beginning of the year and although it's never been released, it's delivered thousands of push notifications on the test service. The scripts run on an on-rev server. The links below are on another server that doesn't parse .lc scripts, so they should show up fine in your browser. Script that runs on LiveCode server and is successfully delivering push notifications in a test app; http://splash21.com/info/notify.lc I'm also using Mark Smith's libJson 1.0.1b (you'll see it referenced in the above); http://splash21.com/info/json.lc I've used this script since LC server's been around for MySQL - basic, but it does what I need it to do ;) http://splash21.com/info/mysql.lc Here's the MySQL structure of the table I use to record device info; http://splash21.com/info/devices.sql On 06/08/2012 22:29, Dan Friedman wrote: Mike, THANK YOU for the information. I am wondering what you use to log the Tokens? Do you have the app fire a PHP script on your server that writes it down? What are you using to store the data? Flat files, like XML? Or a database? Thanks for the advise! -Dan Nope, you aren't crazy. There is a reason you have to do this - because you have to know who wants to receive push and who does not - and since different users may have different settings, you need to be able to customize those messages. Think about a weather app that uses push - the users are from all over. You need to be able to push custom alerts/forecasts/etc. It is a lot easier than you might think, and thousands/millions of records are just numbers. Yes, you need to have a server somewhere that you can talk to from your app to send the custom settings. You also need to check with APNS to make sure that user x is still on the push list, since they can manually disable push in the Notifications preferences, which you are then expected to respect (read the notes from Apple on this). It works great, and I just want to thank RR for implementing push/local notifications, and for John Craig for putting up the example that made coding it easier when I was still trying to make it work. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: what should be done with MobGUI?
MobGUI is being updated, but I've not much time at the moment due to a contract I'm working on, so progress is unfortunately slower than I'd like and I don't have time to read the use list. I'll post an update when more information is available. Best regards, John. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
In app purchase error fix (was Re: Need advice before submitting iPhone app)
Googling this problem brings up a lot of possible solutions. For me, the following steps solved the problem; Remove the app from the device, Remove any ad-hoc or team provisioning profiles, Re-install the app :) On 13/04/2012 00:44, Richard Miller wrote: Have you completed the three forms in iTunesConnect, under Contracts, Tax and Banking? Mine wouldn't work until I worked through an issue in the tax form. On 4/12/2012 7:17 PM, John Craig wrote: Thanks, Richard - I gave it a try, but I'm still getting the same message :( On 12/04/2012 19:18, Richard Miller wrote: Hi John, I am using 5.0.2. Did you do these two things (from an earlier email I posted): I made sure the iphone on which I am doing the testing has been logged out (in Settings--Store) I logged out of iTunesConnect. Richard On 4/12/2012 10:49 AM, John Craig wrote: Hi, Richard. From stackoverflow; - You could submit a version of your application that has all features unlocked by default. Submitted apps have a publish date that you can set when you submit (and I believe you can change this on the fly as well) you could simply prevent the app from being published in the App store but still be able to give promotional codes for it. - Would that be workable for your app? What version of LC are you using? I've not managed to get in-app purchasing working yet - I've tried with 5.5, but always get an error Cannot connect to iTunes Store John. On 12/04/2012 14:54, Richard Miller wrote: I'm on the verge of submitting an iPhone/iPad app. All features are working, including in-app purchasing. This app has 3 versions: free, standard version, and a premium version. I want to take advantage of promoting the app by offering free promo codes to reviewers. But I believe those codes can only be used to obtain a given app (whatever version it might be), but cannot be used to unlock features through in-app processes. Seems to me the only way around this is to submit to Apple 3 separate versions of my app: - Free version, containing in-app purchase options to upgrade - Standard version, containing an in-app purchase option to upgrade to the Premium version - Premium version With this approach, I can give reviewers promo codes for the Premium version. Is this the best way to go? Thanks. Richard Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Need advice before submitting iPhone app
Hi, Richard. From stackoverflow; - You could submit a version of your application that has all features unlocked by default. Submitted apps have a publish date that you can set when you submit (and I believe you can change this on the fly as well) you could simply prevent the app from being published in the App store but still be able to give promotional codes for it. - Would that be workable for your app? What version of LC are you using? I've not managed to get in-app purchasing working yet - I've tried with 5.5, but always get an error Cannot connect to iTunes Store John. On 12/04/2012 14:54, Richard Miller wrote: I'm on the verge of submitting an iPhone/iPad app. All features are working, including in-app purchasing. This app has 3 versions: free, standard version, and a premium version. I want to take advantage of promoting the app by offering free promo codes to reviewers. But I believe those codes can only be used to obtain a given app (whatever version it might be), but cannot be used to unlock features through in-app processes. Seems to me the only way around this is to submit to Apple 3 separate versions of my app: - Free version, containing in-app purchase options to upgrade - Standard version, containing an in-app purchase option to upgrade to the Premium version - Premium version With this approach, I can give reviewers promo codes for the Premium version. Is this the best way to go? Thanks. Richard Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Need advice before submitting iPhone app
Thanks, Richard - I gave it a try, but I'm still getting the same message :( On 12/04/2012 19:18, Richard Miller wrote: Hi John, I am using 5.0.2. Did you do these two things (from an earlier email I posted): I made sure the iphone on which I am doing the testing has been logged out (in Settings--Store) I logged out of iTunesConnect. Richard On 4/12/2012 10:49 AM, John Craig wrote: Hi, Richard. From stackoverflow; - You could submit a version of your application that has all features unlocked by default. Submitted apps have a publish date that you can set when you submit (and I believe you can change this on the fly as well) you could simply prevent the app from being published in the App store but still be able to give promotional codes for it. - Would that be workable for your app? What version of LC are you using? I've not managed to get in-app purchasing working yet - I've tried with 5.5, but always get an error Cannot connect to iTunes Store John. On 12/04/2012 14:54, Richard Miller wrote: I'm on the verge of submitting an iPhone/iPad app. All features are working, including in-app purchasing. This app has 3 versions: free, standard version, and a premium version. I want to take advantage of promoting the app by offering free promo codes to reviewers. But I believe those codes can only be used to obtain a given app (whatever version it might be), but cannot be used to unlock features through in-app processes. Seems to me the only way around this is to submit to Apple 3 separate versions of my app: - Free version, containing in-app purchase options to upgrade - Standard version, containing an in-app purchase option to upgrade to the Premium version - Premium version With this approach, I can give reviewers promo codes for the Premium version. Is this the best way to go? Thanks. Richard Miller ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode