Re: Business Application Framework
On 13 Aug 2015, at 9:09 pm, Mark Waddingham m...@livecode.com wrote: That's very true. Indeed, perhaps one could argue that GitHub needs service-hooks which allow customization of merging and diff display. That general feature there would solve the VCS problem in a natural way for a number of types of data which are needed in modern software projects. I suspect it will come in time as, to be fair, the integration abilities have increased a fair bit since we started using it in 2013; and we've used them quite extensively in our Vulcan (CI / Build System) integration so that information about PRs appear directly on the relevant PRs (and shout at you when you've made a mistake!). Hi Mark On this topic I was just poking around on bitbucket today and found bitbucket’s new connect platform. We could use this perhaps combined with LC html or just our own prettified views of a stackdir to do what we need for online code/UI review although I think it would require a server that maintained a clone of any repo that used the addon. https://developer.atlassian.com/static/bitbucket/guides/introduction.html https://developer.atlassian.com/static/bitbucket/guides/introduction.html Hopefully GitHub and other hosts will also roll out a similar feature. I’d be surprised if they didn’t because it looks pretty handy for integrating with all sorts of things. I still think it’s probably easier to handle code review locally but it might be worth considering if the goal is trying to make LiveCode integrate with standard developer tools rather than just getting it to work with DVCS. Cheers Monte ___ 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: Open Source Kickstarter Report Card
Thank you for the update on progress and reasons for the delay. When you outline all the reasons, the delay is understandable. The problem, as I see it, is that until a better IDE is released the new user just sees a poorly executed environment without basic features. The new user does not know about the cool technology being worked on behind the scenes. The current approach sounds so ambitious I worry. It unfortunately reminds me of a Joel Spolsky post Things You Should Never Do, Part I I read many years ago. http://www.joelonsoftware.com/articles/fog69.html But not knowing how much more work the LiveCode team needs to do, I will wait patiently and hope my 2017 prediction is just pessimistic nonsense. I doubt we will be writing a whole new script editor from scratch in one go. More likely we will replace individual elements with widgets (as has been done with the variables pane) to make sure all the components work as expected. ___ 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: JSON, URL-encode, and UTF-8
That script works here with HTTPS, I am guessing there is something else specific about the configuration. On 21 Aug 2015, at 1:23 pm, Peter W A Wood peterwaw...@gmail.com wrote: Jacque This works fine in LiveCode 7.0.3. I’ll download 7.1RC1 and see if it works there too. Apart from the difference in LiveCode versions, there is one other difference that may be significant. I am using HTTP on my machine not HTTPS. There have been some bugs in LiveCode 7 HTTPS support. Is it possible for you to run your test using HTTP to access your client’s server? Regards Peter ___ 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: JSON, URL-encode, and UTF-8
Now I don't know what to try next. :( But I appreciate your help. This is a weird one. Is your PHP script like the one Peter posted? On 8/20/2015 10:30 PM, Charles Warwick wrote: That script works here with HTTPS, I am guessing there is something else specific about the configuration. On 21 Aug 2015, at 1:23 pm, Peter W A Wood peterwaw...@gmail.com wrote: Jacque This works fine in LiveCode 7.0.3. I’ll download 7.1RC1 and see if it works there too. Apart from the difference in LiveCode versions, there is one other difference that may be significant. I am using HTTP on my machine not HTTPS. There have been some bugs in LiveCode 7 HTTPS support. Is it possible for you to run your test using HTTP to access your client’s server? Regards Peter ___ 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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: arrow keys in datagrid
7.0.6 on windows 10 here. On Thu, Aug 20, 2015 at 9:25 PM, Charles Warwick char...@techstrategies.com.au wrote: That is odd… I have tried this on both Windows and Mac, using LC 6.7.6 and it works without any code. What version are you using? On 21 Aug 2015, at 12:48 pm, Mike Bonner bonnm...@gmail.com wrote: Strange. For me, the arrow keys don't work unless I have the empty handler in there. (I was going to write a quicky to do the job, but when I add the empty, poof. It works) On Thu, Aug 20, 2015 at 7:30 PM, William Humphrey shoreag...@gmail.com wrote: No that simple test did not work for me. Tomorrow I will try with a different version of livecode. Brevity and errors in this email probably the result of being sent by a mobile device. On Aug 20, 2015, at 9:13 PM, Charles Warwick char...@techstrategies.com.au wrote: I use data grids in a lot of applications and the arrow keys always work… I just opened up LC 6.7.5, dragged in a data grid, went to its property inspector and added some data in the “contents” tab… Going to “run” mode, I can select a row and move up and down with the arrow keys…. Does a simple test like that work for you? On 21 Aug 2015, at 11:06 am, william humphrey b...@bluewatermaritime.com wrote: I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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 ___ 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: JSON, URL-encode, and UTF-8
On 8/20/2015 10:23 PM, Peter W A Wood wrote: Jacque This works fine in LiveCode 7.0.3. I’ll download 7.1RC1 and see if it works there too. Apart from the difference in LiveCode versions, there is one other difference that may be significant. I am using HTTP on my machine not HTTPS. There have been some bugs in LiveCode 7 HTTPS support. Is it possible for you to run your test using HTTP to access your client’s server? I'd thought of that too. I'll ask the PHP guy to set up an http URL. The other difference is the UTF8 encoding, but it's my understanding that servers always expect to receive that. Thanks very much to you and Charles for your tests. I agree with Charles that it may indicate there is something wrong with the PHP script. If I give him the simple echo script that you posted here, is that a good test? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
Jacque On 21 Aug 2015, at 11:32, J. Landman Gay jac...@hyperactivesw.com wrote: I'd thought of that too. I'll ask the PHP guy to set up an http URL. I don’t think it is a problem with HTTPS. With Google and Stack overflow’s help, I found this website - http://httpbin.org - you can send a POST request to https://httpbin.org/post and it will return the POST data to you (in JSON). I ran your test against both the http:// and https:// URLs and both worked. The other difference is the UTF8 encoding, but it's my understanding that servers always expect to receive that. I don’t think that all servers expect to receive UTF-8. The character encoding can be specified in configuration files. Thanks very much to you and Charles for your tests. I agree with Charles that it may indicate there is something wrong with the PHP script. If I give him the simple echo script that you posted here, is that a good test? It is possible but this may be more useful: PHP: ?php var_dump($_POST); ? It will return the POST data received by PHP. For example: LiveCode Message Box: put textEncode({ quote é quote : 1}, UTF-8) into tJSON put json= before tJSON post tJSON to URL http://localhost/jacque.php; put textDecode(it, UTF-8) This is what it returns: array(1) { [json]= string(10) { é: 1} } Hope this helps. Peter PS I’m no PHP programmer. ___ 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: JSON, URL-encode, and UTF-8
Jacque This works fine in LiveCode 7.0.3. I’ll download 7.1RC1 and see if it works there too. Apart from the difference in LiveCode versions, there is one other difference that may be significant. I am using HTTP on my machine not HTTPS. There have been some bugs in LiveCode 7 HTTPS support. Is it possible for you to run your test using HTTP to access your client’s server? Regards Peter ___ 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: JSON, URL-encode, and UTF-8
On 21 Aug 2015, at 10:58 am, Peter W A Wood peterwaw...@gmail.com wrote: put textEncode({ quote é quote : 1}, UTF-8) into tJSON put json= before tJSON post URLEncode(tJSON) to URL http://Localhost/jacque.php http://localhost/jacque.php put textDecode(it, UTF-8”) You would want to urlEncode tJSON before you put json= before it so the = isn’t encoded. ___ 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: Open Source Kickstarter Report Card
Ali Lloyd wrote: I doubt we will be writing a whole new script editor from scratch in one go. More likely we will replace individual elements with widgets (as has been done with the variables pane) to make sure all the components work as expected. Assuming one of the elements to be replaced with widgets is the field control used to display code in the script editor, will it result in the following long-standing scrolling issue (opened since March 2008) being resolved? http://quality.runrev.com/show_bug.cgi?id=6286 Scrolling a fixed number of pixels at a time (rather than pixel-by-pixel + delta parameter based on scrolling speed) might seem to some to be a seemingly insignificant issue that could result in it being assigned a low priority. Unfortunately, it causes a very noticeable effect that makes the LiveCode IDE and standalone apps look less polished and native-like than modern apps. Fixing the scrolling issue would greatly improve the scrolling experience within the script editor, the IDE, and standalone apps. More people impressed by the LiveCode environment and its apps = more $$$ for LiveCode Ltd. :) It's even possible that the code required to fix this already exists elsewhere within the engine (see comment 5 on that page). Lyn ___ 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: Open Source Kickstarter Report Card
Assuming one of the elements to be replaced with widgets is the field control used to display code in the script editor, will it result in the following long-standing scrolling issue (opened since March 2008) being resolved? http://quality.runrev.com/show_bug.cgi?id=6286 Scrolling a fixed number of pixels at a time (rather than pixel-by-pixel + delta parameter based on scrolling speed) might seem to some to be a seemingly insignificant issue that could result in it being assigned a low priority. Unfortunately, it causes a very noticeable effect that makes the LiveCode IDE and standalone apps look less polished and native-like than modern apps. Fixing the scrolling issue would greatly improve the scrolling experience within the script editor, the IDE, and standalone apps. More people impressed by the LiveCode environment and its apps = more $$$ for LiveCode Ltd. :) It's even possible that the code required to fix this already exists elsewhere within the engine (see comment 5 on that page). Lyn Hopefully. The slightly longer answer is that there will almost certainly be something like a scrolling view widget, which will be used for all scrollable elements of the IDE. (The tree view widget is using an early version of this code, check out the variable viewer or custom properties in 8.0 dp 2 for its scrolling behavior). ___ 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 is this - is anyone making money?
Wow, and here I was thinking you just do lorem ipsum: http://digitalpomegranate.com/about/ ;-) On 20 August 2015 at 16:40, Todd Fabacher tfabac...@gmail.com wrote: As many of us I have paid for the licenses, put money out for free development expecting some wanted features, continued for Indie advancement payments (hope to live beyond the licenses expire), I have to ask my colleague developers, are you making any money with the apps you develop (with LC)? Or is it just fun? This is the question that is on the lips of so many developers I meet in the LiveCode community in the last year since I have started to use LC as a development tool. The real critical problem is many expect LC to be a genie in a bottle and grant you three profitable apps. Mostly, it is lack of experience that has created this illusion. The lack of profitability is more related to a void in understanding how to develop profitable business apps vs. LiveCode. I have been working with dozens of developers from the class to help them on their journey. But that is a small amount of the 500+ who are taking the class. Many do indeed purchase LiveCode like they do language software and thing the will learn to speak French simply by osmosis. At DP have been like elfs, quietly toiling away for a year, but are about to launch 5 very profitable Apps in addition to the 16 Apps [we still have 4 to go] that we helped LiveCode with for the Create It With LiveCode class. Granted I have more resources than most, but here is what we have done in a year: *UBook24-7*: A management App + online scheduling website which allows people to book appointments online, and the owner uses the App to manage the business. The main focus is barber, hair salon, sports instructors and personal trainers. Price $229 / year including a website and hosting. *Express Event*: A management App + online eCommerce website for Events and conferences. It provides a complete solution including event ticket sales, speaker management , class registration, multi-locations for event Tours and lots more. We also have an option for the event to have their own App. Price $299 / year including a website and hosting. Plus another one time fee of $299 if you want an event App. *Build a Tour App*: A management App + online website + Custom App Tour App designed by them for self guided Tours. We are in Full beta with cities, universities, a wine area in NZ and a cruise line. A desktop app allows them to manage and design their tour app [text, images, audio, video and languages]. We take their data and match it agains a pre-build LC App template, charge them $499 for the App and $29/ month for a website that promotes the App and acts as a central server to update the app data and advertising on an ongoing basis. *MenuMania*: A management App + online website + Custom Menu App designed by them with the desktop management app. For many hotels, restaurants, airports or other places where language and speed are an issue, we have developed a simple menu maker. So instead of giving them a menu, a tablet is provided or is attached to the table. You see this in many airports now, but will begin to move to all food services. You can order and pay on the device and the food comes right out. Several New York restaurants are interested more in using this as a wine list as it can make suggestions based on the menu, and will provide a more information on the winery which people are always interested in. We have just started connecting with the Culinary Institute of America to try and make this not just about fast food. $499 for the App and $29/ month for a web server. Also we are looking into a kitchen management system to go with it, but that is 2016. *PlayLand Armenia*: The team in Armenia what to do this, so I said OK. No it is not profitable and in actuality I am loosing money on it, but it was a great team builder and help teach some critical skills. It is an app where Armenian kids 5-10 around the world can play online games together, become friends and learn Armenian. This was the teams contribution for the memory of the 100 year Genocide. So rather focus on the negative, they provide a way for the Armenian kids around the world to still feel connected. *3 large Contact Apps*: We are doing 3 apps on a contact basis. These have helped us learn new technology and provided the revenue to teach new people LiveCode. So my point is, I could do these in any language, but LiveCode allows me several critical advantages. Multi-platform, ease of use so I can hire and train people who have never even coded before and get them up to speed in 4-6 months, seamless connection between the app and LC web server using revIgniter and a great interface with WordPress which we use as the website for many of the web portion of the apps. I hope this answers your question. --Todd ___
Re: What is this - is anyone making money?
As many of us I have paid for the licenses, put money out for free development expecting some wanted features, continued for Indie advancement payments (hope to live beyond the licenses expire), I have to ask my colleague developers, are you making any money with the apps you develop (with LC)? Or is it just fun? This is the question that is on the lips of so many developers I meet in the LiveCode community in the last year since I have started to use LC as a development tool. The real critical problem is many expect LC to be a genie in a bottle and grant you three profitable apps. Mostly, it is lack of experience that has created this illusion. The lack of profitability is more related to a void in understanding how to develop profitable business apps vs. LiveCode. I have been working with dozens of developers from the class to help them on their journey. But that is a small amount of the 500+ who are taking the class. Many do indeed purchase LiveCode like they do language software and thing the will learn to speak French simply by osmosis. At DP have been like elfs, quietly toiling away for a year, but are about to launch 5 very profitable Apps in addition to the 16 Apps [we still have 4 to go] that we helped LiveCode with for the Create It With LiveCode class. Granted I have more resources than most, but here is what we have done in a year: *UBook24-7*: A management App + online scheduling website which allows people to book appointments online, and the owner uses the App to manage the business. The main focus is barber, hair salon, sports instructors and personal trainers. Price $229 / year including a website and hosting. *Express Event*: A management App + online eCommerce website for Events and conferences. It provides a complete solution including event ticket sales, speaker management , class registration, multi-locations for event Tours and lots more. We also have an option for the event to have their own App. Price $299 / year including a website and hosting. Plus another one time fee of $299 if you want an event App. *Build a Tour App*: A management App + online website + Custom App Tour App designed by them for self guided Tours. We are in Full beta with cities, universities, a wine area in NZ and a cruise line. A desktop app allows them to manage and design their tour app [text, images, audio, video and languages]. We take their data and match it agains a pre-build LC App template, charge them $499 for the App and $29/ month for a website that promotes the App and acts as a central server to update the app data and advertising on an ongoing basis. *MenuMania*: A management App + online website + Custom Menu App designed by them with the desktop management app. For many hotels, restaurants, airports or other places where language and speed are an issue, we have developed a simple menu maker. So instead of giving them a menu, a tablet is provided or is attached to the table. You see this in many airports now, but will begin to move to all food services. You can order and pay on the device and the food comes right out. Several New York restaurants are interested more in using this as a wine list as it can make suggestions based on the menu, and will provide a more information on the winery which people are always interested in. We have just started connecting with the Culinary Institute of America to try and make this not just about fast food. $499 for the App and $29/ month for a web server. Also we are looking into a kitchen management system to go with it, but that is 2016. *PlayLand Armenia*: The team in Armenia what to do this, so I said OK. No it is not profitable and in actuality I am loosing money on it, but it was a great team builder and help teach some critical skills. It is an app where Armenian kids 5-10 around the world can play online games together, become friends and learn Armenian. This was the teams contribution for the memory of the 100 year Genocide. So rather focus on the negative, they provide a way for the Armenian kids around the world to still feel connected. *3 large Contact Apps*: We are doing 3 apps on a contact basis. These have helped us learn new technology and provided the revenue to teach new people LiveCode. So my point is, I could do these in any language, but LiveCode allows me several critical advantages. Multi-platform, ease of use so I can hire and train people who have never even coded before and get them up to speed in 4-6 months, seamless connection between the app and LC web server using revIgniter and a great interface with WordPress which we use as the website for many of the web portion of the apps. I hope this answers your question. --Todd ___ 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: JSON, URL-encode, and UTF-8
Just before posting can you dump your tData variable into a binfile and send it to me. It's got to be something simple... Sent from my iPhone On 21 Aug 2015, at 8:33 am, J. Landman Gay jac...@hyperactivesw.com wrote: Thanks, but still no go. I get the same errors. Is anyone posting from LC 7? I also just tried 7.1rc1 but it doesn't work either. On 8/20/2015 5:04 PM, Monte Goulding wrote: Is your convertToJSON function returning UTF8? I’m not sure what LC 7 does when it concatenates “json=“ to a UTF8 string. If for example that json= is UTF16 and the rest of the data is UTF8 it’s not surprising the server is freaking out. Try: put textEncode(“json=“,”UTF8”) before tData On 21 Aug 2015, at 7:53 am, J. Landman Gay jac...@hyperactivesw.com wrote: I'm still struggling with this. I have a valid JSON string, verified by a web-checking site and by the PHP developer. He wants me to POST it this way: json=JSON string It doesn't work. He says the server receives it but it is not passed to the PHP script because the main parameter is empty. Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL The result is empty. The developer has set up the PHP to return the values back to me for testing, but it is also always empty. He says this means there is no main parameter, but he also said adding json= to the front would provide that, he will just grab the params from what follows. The URL is https if that matters. I have also tried URLEncoding the JSON but it didn't help. I also tried removing the custom header. He pointed me to this web site: https://www.hurl.it/ When I set it to send JSON and enter the same params there, it POSTs successfully to the server. How would you POST a JSON string to a PHP script on a secure server? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: JSON, URL-encode, and UTF-8
On 21 Aug 2015, at 9:25 am, Peter W A Wood peterwaw...@gmail.com wrote: You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? That’s a good question. I can’t see anything wrong with the JSON itself after reviewing the file. Validates and formats fine in TextMate. Are you sure they want post and not get or put? ___ 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
arrow keys in datagrid
If I have a new stack with a list field and a datagrid both with rows of data in them the arrow keys behave differently. In the list field you can select a row and then, using the arrow keys, move to a row above or below. In the datagrid you can select a row but the arrow keys will not move that selection to a row above or below. How do you get the arrow keys to have the same behaviour in a datagrid as they do in a list field? thnks ___ 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: arrow keys in datagrid
No that simple test did not work for me. Tomorrow I will try with a different version of livecode. Brevity and errors in this email probably the result of being sent by a mobile device. On Aug 20, 2015, at 9:13 PM, Charles Warwick char...@techstrategies.com.au wrote: I use data grids in a lot of applications and the arrow keys always work… I just opened up LC 6.7.5, dragged in a data grid, went to its property inspector and added some data in the “contents” tab… Going to “run” mode, I can select a row and move up and down with the arrow keys…. Does a simple test like that work for you? On 21 Aug 2015, at 11:06 am, william humphrey b...@bluewatermaritime.com wrote: I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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 ___ 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: JSON, URL-encode, and UTF-8
On 8/20/2015 6:25 PM, Peter W A Wood wrote: You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? Thanks Peter. No change, it still fails. I think the PHP guy is stripping off the json= anyway and just grabbing the parameters. But it does work without the header in LC 6. I may as well remove the header I suppose. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
On 21 Aug 2015, at 9:29 am, Monte Goulding mo...@sweattechnologies.com wrote: That’s a good question. I can’t see anything wrong with the JSON itself after reviewing the file. Validates and formats fine in TextMate. Are you sure they want post and not get or put? Hmm… I just remembered you said it works in 6 and not 7. Perhaps it’s not something simple after all but try not setting the header first... ___ 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: arrow keys in datagrid
This will sound freaky, but.. In the script of the datagrid group (select the datagrid, edit its script) add an empty arrowkey handler on arrowkey end arrowkey Then try it. On Thu, Aug 20, 2015 at 6:32 PM, william humphrey b...@bluewatermaritime.com wrote: If I have a new stack with a list field and a datagrid both with rows of data in them the arrow keys behave differently. In the list field you can select a row and then, using the arrow keys, move to a row above or below. In the datagrid you can select a row but the arrow keys will not move that selection to a row above or below. How do you get the arrow keys to have the same behaviour in a datagrid as they do in a list field? thnks ___ 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: arrow keys in datagrid
I use data grids in a lot of applications and the arrow keys always work… I just opened up LC 6.7.5, dragged in a data grid, went to its property inspector and added some data in the “contents” tab… Going to “run” mode, I can select a row and move up and down with the arrow keys…. Does a simple test like that work for you? On 21 Aug 2015, at 11:06 am, william humphrey b...@bluewatermaritime.com wrote: I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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: JSON, URL-encode, and UTF-8
It will still be useful… what I want to look at is what headers are generated and whether or not the JSON is still correctly formatted. With a copy of the script, I should be able to tell you what is causing it to break between the versions. I have been posting JSON data to PHP in other applications with no problems, so it must be something specific to what you are trying to do. On 21 Aug 2015, at 11:35 am, J. Landman Gay jac...@hyperactivesw.com wrote: On 8/20/2015 7:24 PM, Charles Warwick wrote: If you are still having issues with this, I am happy to run a packet capture against it if you give me a copy of the script… That way I can tell you what the exact difference is between what LC7 and LC6 actually post to the server… Actually, now that I think of it, this probably will show a good deal of difference because the LC 7 version will be UTF8 and the LC 6 version won't. Which might be the problem, but I don't know. Do you think this would still be useful? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: JSON, URL-encode, and UTF-8
What happens if you comment out line 247 of revLibURL stack script? textEncode native here seems to be a rather dangerous thing to do… On 21 Aug 2015, at 9:45 am, Dave Cragg dcr...@lacscentre.co.uk wrote: On 21 Aug 2015, at 00:33, J. Landman Gay jac...@hyperactivesw.com wrote: On 8/20/2015 6:25 PM, Peter W A Wood wrote: You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? Thanks Peter. No change, it still fails. I think the PHP guy is stripping off the json= anyway and just grabbing the parameters. But it does work without the header in LC 6. What happens if you remove the httpHeader setting and also UrlEncode tData? Dave ___ 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: arrow keys in datagrid
I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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
Re: JSON, URL-encode, and UTF-8
Encoding the = would break the POST data, as it would no longer be assigned the json data itself as a POST variable…. you only want to url encode the contents of the json variable On 21 Aug 2015, at 11:17 am, Monte Goulding mo...@sweattechnologies.com wrote: On 21 Aug 2015, at 10:58 am, Peter W A Wood peterwaw...@gmail.com wrote: put textEncode({ quote é quote : 1}, UTF-8) into tJSON put json= before tJSON post URLEncode(tJSON) to URL http://Localhost/jacque.php http://localhost/jacque.php put textDecode(it, UTF-8”) You would want to urlEncode tJSON before you put json= before it so the = isn’t encoded. ___ 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] Copyrighting games?
I was reading an article on how to copyright software http://www.wikihow.com/Copyright-Software It talks about how to submit your software code and what to do if it contains trade secrets. And then it says this, • Your copyright extends only to the actual expression or execution of the software application. It does not protect the software concept, program logic or algorithms, or the layout of the user interface. It sounds like your trade secrets are not protected. John Balgenorth On Aug 20, 2015, at 6:01 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: I didn't say do nothing. I said: don't spend your money on something that's essentially free. -- 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 8/20/2015 17:28, Lynn Fredricks wrote: Since nobody needs to pay money to copyright a work, or in fact nobody NEEDS to copyright a work, because it already is copyrighted, I'd say this website is merely a way to lose some money. You can always do nothing. Registration provides additional benefits though. You can find the equivalent on a lot of sites but this article is short and clear about the benefits of registration: http://www.ohiostartuplaw.com/top-5-benefits-of-copyright-registration/ The NOLO legal guides are pretty good for lightweight legal stuff. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ 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: JSON, URL-encode, and UTF-8
On 8/20/2015 8:46 PM, Charles Warwick wrote: It will still be useful… what I want to look at is what headers are generated and whether or not the JSON is still correctly formatted. With a copy of the script, I should be able to tell you what is causing it to break between the versions. I have been posting JSON data to PHP in other applications with no problems, so it must be something specific to what you are trying to do. Okay, thanks very much. I just sent a test script to the list that fails reproducibly. You'll need to put in a valid URL though, I can't really give out my client's. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
Jacque On 21 Aug 2015, at 10:13, J. Landman Gay jac...@hyperactivesw.com wrote: Here's a test. This posts just fine in LC 6.x but fails in 7.0.6 and 7.1rc1. Make a field with this in it: [{Meals:Yes,Purpose:Business}] Now put this into a button or card script: constant kServerURL = https://www.domain.com/results.php https://www.domain.com/results.php --### use a valid URL here command sendToServer if the version 7 then put fld 1 into tData put json= before tData else put textEncode(fld 1,UTF8) into tData put textEncode(json=,UTF8) before tData end if post tData to kServerURL put it into tResponse put the result into tErr breakpoint -- so you can see it end sendToServer If someone can test this against a simple echo PHP maybe it will tell us something. The real server returns empty in LC 7 and OK in LC 6. This works fine in LiveCode 7.0.3. I’ll download 7.1RC1 and see if it works there too. Peter ___ 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: JSON, URL-encode, and UTF-8
If you are still having issues with this, I am happy to run a packet capture against it if you give me a copy of the script… That way I can tell you what the exact difference is between what LC7 and LC6 actually post to the server… On 21 Aug 2015, at 9:50 am, Monte Goulding mo...@sweattechnologies.com wrote: What happens if you comment out line 247 of revLibURL stack script? textEncode native here seems to be a rather dangerous thing to do… On 21 Aug 2015, at 9:45 am, Dave Cragg dcr...@lacscentre.co.uk wrote: On 21 Aug 2015, at 00:33, J. Landman Gay jac...@hyperactivesw.com wrote: On 8/20/2015 6:25 PM, Peter W A Wood wrote: You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? Thanks Peter. No change, it still fails. I think the PHP guy is stripping off the json= anyway and just grabbing the parameters. But it does work without the header in LC 6. What happens if you remove the httpHeader setting and also UrlEncode tData? Dave ___ 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: JSON, URL-encode, and UTF-8
On 8/20/2015 6:45 PM, Dave Cragg wrote: What happens if you remove the httpHeader setting and also UrlEncode tData? Still errors I'm afraid. Monte wrote: What happens if you comment out line 247 of revLibURL stack script? textEncode native here seems to be a rather dangerous thing to do… Still errors. Charles wrote: If you are still having issues with this, I am happy to run a packet capture against it if you give me a copy of the script… That way I can tell you what the exact difference is between what LC7 and LC6 actually post to the server… That sounds useful. I probably won't understand it but someone else here might. I'll write you privately if you don't mind. Thanks. Peter wrote: I’m not sure if you are URLEncoding the data … that certainly seems to cause a problem I'm not URLEncoding the data, though I did try it and it failed. I'm not good enough with PHP to even begin to reproduce your setup. I'm a one-trick LC pony. I'm also running a low-grade fever and feel awful, so it's probably affecting my thought processes. But I thought I could just post and be done with it. The next hurdle will be getting this to run on iOS which is the target platform. I haven't even gone there yet. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
On 8/20/2015 7:24 PM, Charles Warwick wrote: If you are still having issues with this, I am happy to run a packet capture against it if you give me a copy of the script… That way I can tell you what the exact difference is between what LC7 and LC6 actually post to the server… Actually, now that I think of it, this probably will show a good deal of difference because the LC 7 version will be UTF8 and the LC 6 version won't. Which might be the problem, but I don't know. Do you think this would still be useful? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
If I send that to a PHP script on one of my servers, I receive the JSON data correctly from LC7 in the PHP script. I will just run it against LC6 and make sure it is identical. If you want, you can post to my PHP script and then we can see how it compares between the two versions. If it works there, it may be an issue with server you are posting to or the way that the PHP script is trying to read the data. Probably best if you send me a direct e-mail if you want to do that. On 21 Aug 2015, at 12:13 pm, J. Landman Gay jac...@hyperactivesw.com wrote: Here's a test. This posts just fine in LC 6.x but fails in 7.0.6 and 7.1rc1. Make a field with this in it: [{Meals:Yes,Purpose:Business}] Now put this into a button or card script: constant kServerURL = https://www.domain.com/results.php; --### use a valid URL here command sendToServer if the version 7 then put fld 1 into tData put json= before tData else put textEncode(fld 1,UTF8) into tData put textEncode(json=,UTF8) before tData end if post tData to kServerURL put it into tResponse put the result into tErr breakpoint -- so you can see it end sendToServer If someone can test this against a simple echo PHP maybe it will tell us something. The real server returns empty in LC 7 and OK in LC 6. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: JSON, URL-encode, and UTF-8
Jacque On 21 Aug 2015, at 05:53, J. Landman Gay jac...@hyperactivesw.com wrote: Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? Regards Peter ___ 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: JSON, URL-encode, and UTF-8
On 21 Aug 2015, at 00:33, J. Landman Gay jac...@hyperactivesw.com wrote: On 8/20/2015 6:25 PM, Peter W A Wood wrote: You’re content is no longer valid JSON once you have inserted the “json=“ (at the PHP developer’s request). There may be a conflict between the header and the actual content. What happens if you remove the line setting the httpHeaders? Thanks Peter. No change, it still fails. I think the PHP guy is stripping off the json= anyway and just grabbing the parameters. But it does work without the header in LC 6. What happens if you remove the httpHeader setting and also UrlEncode tData? Dave ___ 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: JSON, URL-encode, and UTF-8
Jacque On 21 Aug 2015, at 07:35, J. Landman Gay jac...@hyperactivesw.com wrote: Right. Works without header in 6, fails in 7. Thanks for looking at my file. I wonder what would happen if I use the LC 6 libURL script in LC 7. Will my unicode go all wonky? The file I sent you is in English but most of the time it won't be. I ran a very simple test using the message box and a very simple PHP script. I was able to post json={JSON} to PHP and get it back. In the message box (using LC 7..0.3) post textEncode(json={ quote é quote : 1}, UTF-8) to URL http://Localhost/jacque.php; put textDecode(it, UTF-8”) The PHP script: ?php echo($_POST[json]); ? The result in the message box: {é: 1} This would indicate your issue is not caused by a bug. I’m not sure if you are URLEncoding the data … that certainly seems to cause a problem Revised LiveCode put textEncode({ quote é quote : 1}, UTF-8) into tJSON put json= before tJSON post URLEncode(tJSON) to URL http://Localhost/jacque.php; put textDecode(it, UTF-8”) Result PHP sends back an empty response. Hope this is of some help. Peter ___ 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: JSON, URL-encode, and UTF-8
On 8/20/2015 6:32 PM, Monte Goulding wrote: On 21 Aug 2015, at 9:29 am, Monte Goulding mo...@sweattechnologies.com wrote: That’s a good question. I can’t see anything wrong with the JSON itself after reviewing the file. Validates and formats fine in TextMate. Are you sure they want post and not get or put? Hmm… I just remembered you said it works in 6 and not 7. Perhaps it’s not something simple after all but try not setting the header first... Right. Works without header in 6, fails in 7. Thanks for looking at my file. I wonder what would happen if I use the LC 6 libURL script in LC 7. Will my unicode go all wonky? The file I sent you is in English but most of the time it won't be. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: [OT] Copyrighting games?
I didn't say do nothing. I said: don't spend your money on something that's essentially free. -- 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 8/20/2015 17:28, Lynn Fredricks wrote: Since nobody needs to pay money to copyright a work, or in fact nobody NEEDS to copyright a work, because it already is copyrighted, I'd say this website is merely a way to lose some money. You can always do nothing. Registration provides additional benefits though. You can find the equivalent on a lot of sites but this article is short and clear about the benefits of registration: http://www.ohiostartuplaw.com/top-5-benefits-of-copyright-registration/ The NOLO legal guides are pretty good for lightweight legal stuff. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ 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: JSON, URL-encode, and UTF-8
Here's a test. This posts just fine in LC 6.x but fails in 7.0.6 and 7.1rc1. Make a field with this in it: [{Meals:Yes,Purpose:Business}] Now put this into a button or card script: constant kServerURL = https://www.domain.com/results.php; --### use a valid URL here command sendToServer if the version 7 then put fld 1 into tData put json= before tData else put textEncode(fld 1,UTF8) into tData put textEncode(json=,UTF8) before tData end if post tData to kServerURL put it into tResponse put the result into tErr breakpoint -- so you can see it end sendToServer If someone can test this against a simple echo PHP maybe it will tell us something. The real server returns empty in LC 7 and OK in LC 6. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: arrow keys in datagrid
Strange. For me, the arrow keys don't work unless I have the empty handler in there. (I was going to write a quicky to do the job, but when I add the empty, poof. It works) On Thu, Aug 20, 2015 at 7:30 PM, William Humphrey shoreag...@gmail.com wrote: No that simple test did not work for me. Tomorrow I will try with a different version of livecode. Brevity and errors in this email probably the result of being sent by a mobile device. On Aug 20, 2015, at 9:13 PM, Charles Warwick char...@techstrategies.com.au wrote: I use data grids in a lot of applications and the arrow keys always work… I just opened up LC 6.7.5, dragged in a data grid, went to its property inspector and added some data in the “contents” tab… Going to “run” mode, I can select a row and move up and down with the arrow keys…. Does a simple test like that work for you? On 21 Aug 2015, at 11:06 am, william humphrey b...@bluewatermaritime.com wrote: I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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 ___ 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: Open Source Kickstarter Report Card
I imagine you meant that it’s faster to program in, as opposed to faster performance. On Aug 20, 2015, at 1:29 PM, Kevin Miller ke...@livecode.com wrote: Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. ___ 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: Open Source Kickstarter Report Card
One thing that would really help with developing in LCB would be to have some examples of C++ code and the same code showing how you write it using LCB. John Balgenorth On Aug 20, 2015, at 10:39 AM, Roger Eller roger.e.el...@sealedair.com wrote: On Thu, Aug 20, 2015 at 1:29 PM, Kevin Miller ke...@livecode.com wrote: I think this is a really important principal. Always use the highest level language you can for any given project. Offering that very high level language option is a big part of LiveCode's reason for being. Or primary (if not sole) reason for being, right? If not for the ease of HyperCard, I would not be here today, using LC. Previously our primary choices were between LiveCode Script and a lower level language such as C. Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. It is going to excel at certain tasks. However we should always choose to use it only when it offers clear advantages above LiveCode Script for the project that outweigh the extra level of effort needed to use it. I know its very tempting having added a whole new language to build everything in that, but we must carefully resist that temptation and use it judiciously, only for what it is best at. Will there be a list, or guide to help a LC script user to know when to use LCB? That pragmatic point out of the way, I haven¹t dug into the ins and outs of the Script Editor since LCB originated to know what the arguments are on either side. So I¹m not saying I know the right answer here. I know the tech team have done some more work looking on that but I haven¹t seen any definite conclusions from that effort as yet as we have other priorities in getting the first version of 8.0 out the door just now. Kind regards, Kevin Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps Thanks. ~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: Open Source Kickstarter Report Card
I think this is a really important principal. Always use the highest level language you can for any given project. Offering that very high level language option is a big part of LiveCode's reason for being. Previously our primary choices were between LiveCode Script and a lower level language such as C. Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. It is going to excel at certain tasks. However we should always choose to use it only when it offers clear advantages above LiveCode Script for the project that outweigh the extra level of effort needed to use it. I know its very tempting having added a whole new language to build everything in that, but we must carefully resist that temptation and use it judiciously, only for what it is best at. That pragmatic point out of the way, I haven¹t dug into the ins and outs of the Script Editor since LCB originated to know what the arguments are on either side. So I¹m not saying I know the right answer here. I know the tech team have done some more work looking on that but I haven¹t seen any definite conclusions from that effort as yet as we have other priorities in getting the first version of 8.0 out the door just now. Kind regards, Kevin Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 20/08/2015 16:49, Richard Gaskin ambassa...@fourthworld.com wrote: Ali Lloyd wrote: I doubt we will be writing a whole new script editor from scratch in one go. Wise, for all the reasons Joel talks about here (good link, Scott): http://www.joelonsoftware.com/articles/fog69.html More likely we will replace individual elements with widgets (as has been done with the variables pane) to make sure all the components work as expected. LiveCode 8's Builder language will be an exciting addition to the platform, at long last allowing the dev team to enjoy the same benefit the rest of us choose LiveCode for: not having to work in C++, able to use a high-level scripting language for much greater productivity. With the IDE things are even better: it's already written in a high-level scripting language. Why not use LiveCode Script? If we can't build a good text editor in LiveCode, what are any of us doing here? Fortunately we can. Indeed LiveCode is an excellent tool to build such things with, as it is right now. LiveCode Builder is a great alternative to C++, but there's no true need to replace LiveCode Script elements with new LiveCode Builder implementations. Doing so merely overloads the already-laden v8 dev cycle, and worse it prevents backporting solutions to the product that is currently the company's sole source of revenue, v7. Conversely, everything written for v7 goes along for the ride seamlessly to v8, the clearly winning option for things already in script. The ROI of writing things in LC Builder that might otherwise have required C++ is unquestionable. And similarly unquestionable is the benefit of using the current scripting language for things already written in the current scripting language. Somewhere down the road there might be a reason to rewrite those, but right now the downsides seem so clearly outweighing the upsides on every level, from technical to revenue to marketing (do we really intend to convey the message that LiveCode can't be used to build a text editor?), it would seem optimal to just dive in an optimize what we have. This thread began with a sober realization of the difficulty of estimation vs. actual delivery times. I'm a programmer too, so I appreciate the seductive attraction of greenfield projects; no one like working in other people's code. But most programming is exactly that, and as Joel points out it's extremely rare that a working system can benefit from a complete rewrite, when all that's needed are some optimizations and a very small number of new and rather discrete features. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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: Open Source Kickstarter Report Card
Yes. I was talking about developer productivity. On 20 Aug 2015, at 18:32, Colin Holgate colinholg...@gmail.com wrote: I imagine you meant that it’s faster to program in, as opposed to faster performance. On Aug 20, 2015, at 1:29 PM, Kevin Miller ke...@livecode.com wrote: Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. ___ 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: Open Source Kickstarter Report Card
There is documentation up in the DP of 8 that is out there. We will be having a Global Jam shortly so everyone can get together to learn how to create Widgets. Stay tuned for more details. Kind regards, Kevin Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps On 20/08/2015 18:51, JB sund...@pacifier.com wrote: One thing that would really help with developing in LCB would be to have some examples of C++ code and the same code showing how you write it using LCB. John Balgenorth On Aug 20, 2015, at 10:39 AM, Roger Eller roger.e.el...@sealedair.com wrote: On Thu, Aug 20, 2015 at 1:29 PM, Kevin Miller ke...@livecode.com wrote: I think this is a really important principal. Always use the highest level language you can for any given project. Offering that very high level language option is a big part of LiveCode's reason for being. Or primary (if not sole) reason for being, right? If not for the ease of HyperCard, I would not be here today, using LC. Previously our primary choices were between LiveCode Script and a lower level language such as C. Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. It is going to excel at certain tasks. However we should always choose to use it only when it offers clear advantages above LiveCode Script for the project that outweigh the extra level of effort needed to use it. I know its very tempting having added a whole new language to build everything in that, but we must carefully resist that temptation and use it judiciously, only for what it is best at. Will there be a list, or guide to help a LC script user to know when to use LCB? That pragmatic point out of the way, I haven¹t dug into the ins and outs of the Script Editor since LCB originated to know what the arguments are on either side. So I¹m not saying I know the right answer here. I know the tech team have done some more work looking on that but I haven¹t seen any definite conclusions from that effort as yet as we have other priorities in getting the first version of 8.0 out the door just now. Kind regards, Kevin Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps Thanks. ~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 ___ 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: Open Source Kickstarter Report Card
When I asked, Will there be a list, or guide to help a LC script user to know when to use LCB?, I did not understand that you were talking about dev time -vs- cpu time per type of function. So, nevermind that question. Roger EllerGraphics Systems Analyst 803 North Maple StreetP: 864.967.1625Simpsonville, SC 29681C: 864.908.0337 SealedAir.com http://www.sealedair.com/roger.e.el...@sealedair.com roger.e.el...@sealedair.com On Thu, Aug 20, 2015 at 1:35 PM, Kevin Miller ke...@runrev.com wrote: Yes. I was talking about developer productivity. On 20 Aug 2015, at 18:32, Colin Holgate colinholg...@gmail.com wrote: I imagine you meant that it’s faster to program in, as opposed to faster performance. On Aug 20, 2015, at 1:29 PM, Kevin Miller ke...@livecode.com wrote: Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. ___ 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: Open Source Kickstarter Report Card
On Thu, Aug 20, 2015 at 1:29 PM, Kevin Miller ke...@livecode.com wrote: I think this is a really important principal. Always use the highest level language you can for any given project. Offering that very high level language option is a big part of LiveCode's reason for being. Or primary (if not sole) reason for being, right? If not for the ease of HyperCard, I would not be here today, using LC. Previously our primary choices were between LiveCode Script and a lower level language such as C. Now we have a third choice, an intermediate LiveCode Builder. Its much faster than C but slower than Script. It is going to excel at certain tasks. However we should always choose to use it only when it offers clear advantages above LiveCode Script for the project that outweigh the extra level of effort needed to use it. I know its very tempting having added a whole new language to build everything in that, but we must carefully resist that temptation and use it judiciously, only for what it is best at. Will there be a list, or guide to help a LC script user to know when to use LCB? That pragmatic point out of the way, I haven¹t dug into the ins and outs of the Script Editor since LCB originated to know what the arguments are on either side. So I¹m not saying I know the right answer here. I know the tech team have done some more work looking on that but I haven¹t seen any definite conclusions from that effort as yet as we have other priorities in getting the first version of 8.0 out the door just now. Kind regards, Kevin Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps Thanks. ~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
Re: What is this - is anyone making money?
On Aug 19, 2015, at 12:46 PM, Pyyhtiä Christer chris...@mindcrea.com wrote: Another question is where is the beef for the different apps. Games, plays - but does anything serious drive apps in iOS world. What about Android, is there a different worlds of users? Finally, is everything just games and plays, is there any interest for value applications, which is not 'just here and now'? What's there for serious app development, is everything just what is the click for just now, just today? LiveCode used to have a list of apps on their website. I can not find it right now. Maybe they have been taken down while the site is getting another facelift. My take is that you can make money with any software development tool out there. You just need to know what needs to be made and how to get the word out. LiveCode brings the element of speed to the table. Coding in LiveCode is very fast and easy. Deploying to all the key platforms is also simple. Business sense is something that does not come out of the box. It is something that you cultivate like a garden. You have to know when a project you want to work on is not going to generate income. Developers must do their homework before even writing a single line of code. If you are new to development, or your business is not jumping like you expected it to, this is a good place to bring it up. If shyness is a factor, then talk with people you trust that have made it in the business. A little guidance goes a long way. My company, Canela Software, has been using LiveCode since the beginning. We started with MetaCard before that. We have designed software for the education field which generated income around $40k year. We transitioned to vision testing software that generate millions of dollars a year. Our current project, electronic medical records, is expected to generate 10+ times even more in income. It pivots off our vision testing system. Hint: pivoting off a strong platform is a good business decision since you can utilize existing sales channels, customer contacts, and capitalize on your core knowledge of a given field. And, similar to how Amazon released its backend tech to the world, we plan to make ours available to the LiveCode community. This may not be the strongest business decision we have made, but if it helps others to achieve their goals, that will make me happy too. I am friends with other developers in this community that have not spoken up about their success in using LiveCode. Many of them are making a very good living by making good business decisions and choosing LiveCode as their tool of choice. Hopefully this information is helpful to those considering using LiveCode. Best regards, Mark Talluto canelasoftware.com http://canelasoftware.com/ CassiaDB: The easy to use, free local storage database made for LiveCode Developers: livecloud.io http://www.livecloud.io/ ___ 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 is this - is anyone making money?
I am not a programmer in the vein of Todd, Richard, Simon or many others on this list… I’m a “scripter.” I like LiveCode because I can easily create the simple things I do and develop them quickly. My target audience is elementary schools and children (so, ages 5-12). I’m a prof in a small liberal arts school (in the US, Rock Island, Illinois) where I work with elementary education majors. Our majors use the apps in their field experiences with elementary students and make suggestions for apps that I create or the make suggestions to modify the existing apps I’ve already written.. It’s cool when they can make a suggestion and I can get a version out to them within a week or two for them try with “real” students. That way our majors are developing a true sense of what makes a “good” app and begin getting a sense of how apps are made. I’ve been making “apps” since HyperCard and moved to HyperStudio for manny years because of its scripting and cross-platform capabilities. Now I only develop in LiveCode and have 33 apps on the iOS app store. All are “utilitarian” in nature… none will win a design award… much of the art is made within LiveCode. The coolest art I have is my logo (thanks to the talents of Scott Rossi). Given the focus of my app development I don’t have to worry about making money… I do need some income to defray expenses since we are not receiving any form of grant money for this project. I’ve had over 1.5 million app downloads… only 3% are paid apps… schools, as you can image, like “free.” I have no doubt that if my apps were all paid (99¢) that I would have far fewer downloads… maybe a total of 100,000. One thing I really like about the list (and the forums) is listening to the folks who talk so far over my head that I can get a sense of what is possible even when I don’t understand how to get there. be well, randy Randy Hengst www.classroomFocusedSoftware.com On Aug 20, 2015, at 6:10 AM, Todd Fabacher tfabac...@gmail.com wrote: As many of us I have paid for the licenses, put money out for free development expecting some wanted features, continued for Indie advancement payments (hope to live beyond the licenses expire), I have to ask my colleague developers, are you making any money with the apps you develop (with LC)? Or is it just fun? This is the question that is on the lips of so many developers I meet in the LiveCode community in the last year since I have started to use LC as a development tool. The real critical problem is many expect LC to be a genie in a bottle and grant you three profitable apps. Mostly, it is lack of experience that has created this illusion. The lack of profitability is more related to a void in understanding how to develop profitable business apps vs. LiveCode. I have been working with dozens of developers from the class to help them on their journey. But that is a small amount of the 500+ who are taking the class. Many do indeed purchase LiveCode like they do language software and thing the will learn to speak French simply by osmosis. At DP have been like elfs, quietly toiling away for a year, but are about to launch 5 very profitable Apps in addition to the 16 Apps [we still have 4 to go] that we helped LiveCode with for the Create It With LiveCode class. Granted I have more resources than most, but here is what we have done in a year: *UBook24-7*: A management App + online scheduling website which allows people to book appointments online, and the owner uses the App to manage the business. The main focus is barber, hair salon, sports instructors and personal trainers. Price $229 / year including a website and hosting. *Express Event*: A management App + online eCommerce website for Events and conferences. It provides a complete solution including event ticket sales, speaker management , class registration, multi-locations for event Tours and lots more. We also have an option for the event to have their own App. Price $299 / year including a website and hosting. Plus another one time fee of $299 if you want an event App. *Build a Tour App*: A management App + online website + Custom App Tour App designed by them for self guided Tours. We are in Full beta with cities, universities, a wine area in NZ and a cruise line. A desktop app allows them to manage and design their tour app [text, images, audio, video and languages]. We take their data and match it agains a pre-build LC App template, charge them $499 for the App and $29/ month for a website that promotes the App and acts as a central server to update the app data and advertising on an ongoing basis. *MenuMania*: A management App + online website + Custom Menu App designed by them with the desktop management app. For many hotels, restaurants, airports or other places where language and speed are an issue, we have developed a simple menu maker. So instead of giving them a menu, a tablet is provided or is attached
Re: arrow keys in datagrid
That is odd… I have tried this on both Windows and Mac, using LC 6.7.6 and it works without any code. What version are you using? On 21 Aug 2015, at 12:48 pm, Mike Bonner bonnm...@gmail.com wrote: Strange. For me, the arrow keys don't work unless I have the empty handler in there. (I was going to write a quicky to do the job, but when I add the empty, poof. It works) On Thu, Aug 20, 2015 at 7:30 PM, William Humphrey shoreag...@gmail.com wrote: No that simple test did not work for me. Tomorrow I will try with a different version of livecode. Brevity and errors in this email probably the result of being sent by a mobile device. On Aug 20, 2015, at 9:13 PM, Charles Warwick char...@techstrategies.com.au wrote: I use data grids in a lot of applications and the arrow keys always work… I just opened up LC 6.7.5, dragged in a data grid, went to its property inspector and added some data in the “contents” tab… Going to “run” mode, I can select a row and move up and down with the arrow keys…. Does a simple test like that work for you? On 21 Aug 2015, at 11:06 am, william humphrey b...@bluewatermaritime.com wrote: I tried that. It didn't solve the problem. What's even weirder is I seem to remember that the datagrid used to work with arrow keys. I made a test stack to be sure it was nothing else in my work that could be causing the problem. Your suggestion didn't work there either. This is Livecode 6.7.4 On Thu, Aug 20, 2015 at 8:53 PM, Mike Bonner bonnm...@gmail.com wrote: on arrowkey end arrowkey -- http://www.bluewatermaritime.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 ___ 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: Autosave
On 19/08/15 23:03, Richard Gaskin wrote: Richmond wrote: Why does this script NOT work in a small stack? on mouseUp palette stack AUTOSAVE put the short name of the topStack into TSTAK put TSTAK /the time / the date into TSTAKN put TSTAKN into fld TSTAKN save the topstack as TSTAKN end mouseUp Does it work on a large stack? By small stack' I meant that that script is contained in a button on a palettised stack, and is meant to save another stack. It does put the data into the fld TSTAKN but does NOT save the top stack. The idea is to convert this code into the cardStack of a palette with a time interval so it serves as a version saver. But any sort of script to save a stack under a different name seems problematic: save stack HEX rotate as Granny goes gay doesn't work either. It might be problematic with a stack of any size since the date returns a value that contains /, which is used as a path delimiter on OS X and Linux. What does the result give you after the save command? can't open stack file If instead of changing the path of the current stack what you're looking to do is make a copy of it to a new location, I'd make a copy of the file itself and leave the in-memory stack alone. -- Richard Gaskin 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
Re: Autosave
store the current filename of the stack. set the filename of the stack to whatever backup name you want save the stack. set the filename of the stack back to how it started Also, from your example, using / as part of the filename would probably be a bad idea since / is a directory separator. If you already have directories set up, then it would be fine, but since you're using the live time and date to do this, its unlikely thats what you were going for. Change it to _ maybe. Just a quick and dirty example, but.. on mouseUp set the defaultfolder to specialfolderpath(desktop) --just so I can mess around palette this stack wait 0 with messages -- to make sure the palette is complete before moving on put the short name of the topStack into TSTAK put TSTAK _ the time _ the date into TSTAKN replace / with empty in TSTAKN -- remove slashes replace space with empty in TSTAKN-- the time has a space in it (for AM PM) put TSTAKN into fld TSTAKN -- make sure its been saved before and if so.. if the filename of the topstack is not empty then put the filename of the topstack into tOldFilename -- store the main filename set the filename of the topstack to TSTAKN -- set the temporary filename save stack (the short name of the topstack) -- save the stack put the result -- Just so I could see any errors set the filename of the topstack to tOldFilename -- revert to the main filename else -- if it wasn't saved already.. -- set the filename set the filename of the topstack to (the short name of the topstack .livecode) -- warn the user that the file will be saved answer information Performing first stack save -- save the file save the topstack-- as (the short name of the topstack .livecode) end if end mouseUp Obviously, you'll end up with a cleaner script that catches potential problems, but it seems to work fine. If you really want the slashes and spaces in there, I _THINK_ you might be able to pass in a full quoted string.. The spaces are relatively common and could be worked around, but I'd be avoiding the slashes. On Thu, Aug 20, 2015 at 1:40 PM, Richmond richmondmathew...@gmail.com wrote: On 19/08/15 23:03, Richard Gaskin wrote: Richmond wrote: Why does this script NOT work in a small stack? on mouseUp palette stack AUTOSAVE put the short name of the topStack into TSTAK put TSTAK /the time / the date into TSTAKN put TSTAKN into fld TSTAKN save the topstack as TSTAKN end mouseUp Does it work on a large stack? By small stack' I meant that that script is contained in a button on a palettised stack, and is meant to save another stack. It does put the data into the fld TSTAKN but does NOT save the top stack. The idea is to convert this code into the cardStack of a palette with a time interval so it serves as a version saver. But any sort of script to save a stack under a different name seems problematic: save stack HEX rotate as Granny goes gay doesn't work either. It might be problematic with a stack of any size since the date returns a value that contains /, which is used as a path delimiter on OS X and Linux. What does the result give you after the save command? can't open stack file If instead of changing the path of the current stack what you're looking to do is make a copy of it to a new location, I'd make a copy of the file itself and leave the in-memory stack alone. -- Richard Gaskin 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: What is this - is anyone making money?
On 20/08/15 14:10, Todd Fabacher wrote: As many of us I have paid for the licenses, put money out for free development expecting some wanted features, continued for Indie advancement payments (hope to live beyond the licenses expire), I have to ask my colleague developers, are you making any money with the apps you develop (with LC)? Or is it just fun? A bad workman blames his tools. LiveCode provides a fantastic toolbox: what you do with it is your problem. LiveCode are not going to build cupboards, put up shelves, or cook your dinner anymore than you would expect a drill, a saw, a screwdriver and a cooking pot. 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
RE: [OT] Copyrighting games?
Since nobody needs to pay money to copyright a work, or in fact nobody NEEDS to copyright a work, because it already is copyrighted, I'd say this website is merely a way to lose some money. You can always do nothing. Registration provides additional benefits though. You can find the equivalent on a lot of sites but this article is short and clear about the benefits of registration: http://www.ohiostartuplaw.com/top-5-benefits-of-copyright-registration/ The NOLO legal guides are pretty good for lightweight legal stuff. Best regards, Lynn Fredricks Paradigma Software http://www.paradigmasoft.com Valentina SQL Server: The Ultra-fast, Royalty Free Database Server ___ 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: Open Source Kickstarter Report Card
Ali Lloyd wrote: I doubt we will be writing a whole new script editor from scratch in one go. Wise, for all the reasons Joel talks about here (good link, Scott): http://www.joelonsoftware.com/articles/fog69.html More likely we will replace individual elements with widgets (as has been done with the variables pane) to make sure all the components work as expected. LiveCode 8's Builder language will be an exciting addition to the platform, at long last allowing the dev team to enjoy the same benefit the rest of us choose LiveCode for: not having to work in C++, able to use a high-level scripting language for much greater productivity. With the IDE things are even better: it's already written in a high-level scripting language. Why not use LiveCode Script? If we can't build a good text editor in LiveCode, what are any of us doing here? Fortunately we can. Indeed LiveCode is an excellent tool to build such things with, as it is right now. LiveCode Builder is a great alternative to C++, but there's no true need to replace LiveCode Script elements with new LiveCode Builder implementations. Doing so merely overloads the already-laden v8 dev cycle, and worse it prevents backporting solutions to the product that is currently the company's sole source of revenue, v7. Conversely, everything written for v7 goes along for the ride seamlessly to v8, the clearly winning option for things already in script. The ROI of writing things in LC Builder that might otherwise have required C++ is unquestionable. And similarly unquestionable is the benefit of using the current scripting language for things already written in the current scripting language. Somewhere down the road there might be a reason to rewrite those, but right now the downsides seem so clearly outweighing the upsides on every level, from technical to revenue to marketing (do we really intend to convey the message that LiveCode can't be used to build a text editor?), it would seem optimal to just dive in an optimize what we have. This thread began with a sober realization of the difficulty of estimation vs. actual delivery times. I'm a programmer too, so I appreciate the seductive attraction of greenfield projects; no one like working in other people's code. But most programming is exactly that, and as Joel points out it's extremely rare that a working system can benefit from a complete rewrite, when all that's needed are some optimizations and a very small number of new and rather discrete features. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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
Re: mouse pointer hot spot is way off
On Wed, Aug 19, 2015 at 8:37 AM, Dr. Hawkins doch...@gmail.com wrote: On Mon, Aug 17, 2015 at 2:53 PM, Peter Haworth p...@lcsql.com wrote: There's pretty persuasive evidence now that the shadowed variable bug is caused by stopping a debug run early. I'll watch for that, then. But it absolutely has to go; it costs me at least several minutes, and sometimes a full hour, out of coding days. :( I just had it bite before I had even run a debugger. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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: Autosave
You'll need to replace the : too. This is why apps that do this sort of thing build up the filename in reverse order, no separators. stacknameyearmonthdayhourminutesseconds Then, no need to mess with all the extraneous chars. (You'll still have to sanitize the name of the stack though) Perhaps just build things up and urlencode TSTAKN /shrug (or a quoted string, or 'escape' problematic chars) On Thu, Aug 20, 2015 at 2:21 PM, Mike Bonner bonnm...@gmail.com wrote: store the current filename of the stack. set the filename of the stack to whatever backup name you want save the stack. set the filename of the stack back to how it started Also, from your example, using / as part of the filename would probably be a bad idea since / is a directory separator. If you already have directories set up, then it would be fine, but since you're using the live time and date to do this, its unlikely thats what you were going for. Change it to _ maybe. Just a quick and dirty example, but.. on mouseUp set the defaultfolder to specialfolderpath(desktop) --just so I can mess around palette this stack wait 0 with messages -- to make sure the palette is complete before moving on put the short name of the topStack into TSTAK put TSTAK _ the time _ the date into TSTAKN replace / with empty in TSTAKN -- remove slashes replace space with empty in TSTAKN-- the time has a space in it (for AM PM) put TSTAKN into fld TSTAKN -- make sure its been saved before and if so.. if the filename of the topstack is not empty then put the filename of the topstack into tOldFilename -- store the main filename set the filename of the topstack to TSTAKN -- set the temporary filename save stack (the short name of the topstack) -- save the stack put the result -- Just so I could see any errors set the filename of the topstack to tOldFilename -- revert to the main filename else -- if it wasn't saved already.. -- set the filename set the filename of the topstack to (the short name of the topstack .livecode) -- warn the user that the file will be saved answer information Performing first stack save -- save the file save the topstack-- as (the short name of the topstack .livecode) end if end mouseUp Obviously, you'll end up with a cleaner script that catches potential problems, but it seems to work fine. If you really want the slashes and spaces in there, I _THINK_ you might be able to pass in a full quoted string.. The spaces are relatively common and could be worked around, but I'd be avoiding the slashes. On Thu, Aug 20, 2015 at 1:40 PM, Richmond richmondmathew...@gmail.com wrote: On 19/08/15 23:03, Richard Gaskin wrote: Richmond wrote: Why does this script NOT work in a small stack? on mouseUp palette stack AUTOSAVE put the short name of the topStack into TSTAK put TSTAK /the time / the date into TSTAKN put TSTAKN into fld TSTAKN save the topstack as TSTAKN end mouseUp Does it work on a large stack? By small stack' I meant that that script is contained in a button on a palettised stack, and is meant to save another stack. It does put the data into the fld TSTAKN but does NOT save the top stack. The idea is to convert this code into the cardStack of a palette with a time interval so it serves as a version saver. But any sort of script to save a stack under a different name seems problematic: save stack HEX rotate as Granny goes gay doesn't work either. It might be problematic with a stack of any size since the date returns a value that contains /, which is used as a path delimiter on OS X and Linux. What does the result give you after the save command? can't open stack file If instead of changing the path of the current stack what you're looking to do is make a copy of it to a new location, I'd make a copy of the file itself and leave the in-memory stack alone. -- Richard Gaskin 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: Autosave
On Aug 20, 2015, at 12:40 PM, Richmond richmondmathew...@gmail.com wrote: save stack HEX rotate as Granny goes gay doesn't work either. -- Richard Gaskin 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 When I was a teenager living in California Granny Goose Potato Chips had and ad that asked, “are you man enough to eat Granny Goose?” John Balgenorth ___ 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: JSON, URL-encode, and UTF-8
I'm still struggling with this. I have a valid JSON string, verified by a web-checking site and by the PHP developer. He wants me to POST it this way: json=JSON string It doesn't work. He says the server receives it but it is not passed to the PHP script because the main parameter is empty. Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL The result is empty. The developer has set up the PHP to return the values back to me for testing, but it is also always empty. He says this means there is no main parameter, but he also said adding json= to the front would provide that, he will just grab the params from what follows. The URL is https if that matters. I have also tried URLEncoding the JSON but it didn't help. I also tried removing the custom header. He pointed me to this web site: https://www.hurl.it/ When I set it to send JSON and enter the same params there, it POSTs successfully to the server. How would you POST a JSON string to a PHP script on a secure server? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
Is your convertToJSON function returning UTF8? I’m not sure what LC 7 does when it concatenates “json=“ to a UTF8 string. If for example that json= is UTF16 and the rest of the data is UTF8 it’s not surprising the server is freaking out. Try: put textEncode(“json=“,”UTF8”) before tData On 21 Aug 2015, at 7:53 am, J. Landman Gay jac...@hyperactivesw.com wrote: I'm still struggling with this. I have a valid JSON string, verified by a web-checking site and by the PHP developer. He wants me to POST it this way: json=JSON string It doesn't work. He says the server receives it but it is not passed to the PHP script because the main parameter is empty. Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL The result is empty. The developer has set up the PHP to return the values back to me for testing, but it is also always empty. He says this means there is no main parameter, but he also said adding json= to the front would provide that, he will just grab the params from what follows. The URL is https if that matters. I have also tried URLEncoding the JSON but it didn't help. I also tried removing the custom header. He pointed me to this web site: https://www.hurl.it/ When I set it to send JSON and enter the same params there, it POSTs successfully to the server. How would you POST a JSON string to a PHP script on a secure server? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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: JSON, URL-encode, and UTF-8
Okay, addendum: It works fine in LC 6.7.6. It fails entirely in 7.0.6. I wish I'd tried that sooner. We need 7.x because of the unicode support. On 8/20/2015 4:53 PM, J. Landman Gay wrote: I'm still struggling with this. I have a valid JSON string, verified by a web-checking site and by the PHP developer. He wants me to POST it this way: json=JSON string It doesn't work. He says the server receives it but it is not passed to the PHP script because the main parameter is empty. Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL The result is empty. The developer has set up the PHP to return the values back to me for testing, but it is also always empty. He says this means there is no main parameter, but he also said adding json= to the front would provide that, he will just grab the params from what follows. The URL is https if that matters. I have also tried URLEncoding the JSON but it didn't help. I also tried removing the custom header. He pointed me to this web site: https://www.hurl.it/ When I set it to send JSON and enter the same params there, it POSTs successfully to the server. How would you POST a JSON string to a PHP script on a secure server? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: JSON, URL-encode, and UTF-8
Thanks, but still no go. I get the same errors. Is anyone posting from LC 7? I also just tried 7.1rc1 but it doesn't work either. On 8/20/2015 5:04 PM, Monte Goulding wrote: Is your convertToJSON function returning UTF8? I’m not sure what LC 7 does when it concatenates “json=“ to a UTF8 string. If for example that json= is UTF16 and the rest of the data is UTF8 it’s not surprising the server is freaking out. Try: put textEncode(“json=“,”UTF8”) before tData On 21 Aug 2015, at 7:53 am, J. Landman Gay jac...@hyperactivesw.com wrote: I'm still struggling with this. I have a valid JSON string, verified by a web-checking site and by the PHP developer. He wants me to POST it this way: json=JSON string It doesn't work. He says the server receives it but it is not passed to the PHP script because the main parameter is empty. Here's what I do: set the httpHeaders to content-type: application/json put convertToJSON() into tData -- produces valid JSON put json= before tData post tData to kServerURL The result is empty. The developer has set up the PHP to return the values back to me for testing, but it is also always empty. He says this means there is no main parameter, but he also said adding json= to the front would provide that, he will just grab the params from what follows. The URL is https if that matters. I have also tried URLEncoding the JSON but it didn't help. I also tried removing the custom header. He pointed me to this web site: https://www.hurl.it/ When I set it to send JSON and enter the same params there, it POSTs successfully to the server. How would you POST a JSON string to a PHP script on a secure server? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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