images gone in standalone
My project has about 12 images, most of which are used as the icons for buttons with normal, hover, and disabled states, and two as images displayed on a card. When I build a standalone on Mac (haven't tried Windows yet), the images are gone, replaced by grey boxes; the buttons function normally otherwise. I used Import as Control to put them onto a card that's just storage for graphics. They're still showing normally on that card in development, but when I go to that card in the standalone, there is nothing but the grey boxes. When I check the application browser they are all still listed for the graphics card. When I check the Images library for 'this stack' they usually are there, though I could swear a few times choosing 'this library' has given blank rows.. I've tried reimporting through Import File... in the Image Library with no better result. Don't know if it's relevant, but I have renamed the file in the Finder in between sessions. Could that lead to some link being lost? Curt c...@sonasoftware.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
Licensing Issues for LC developers [was: Re: Reading PDF - a cry for help]
Bernard Devlin wrote (see his whole message at the end of this email): You're either extremely knowledgeable about the GPL, or I think you have misunderstood the GPL. The first is certainly not true, so the second is more than likely. I got my (hopefully wrong!) information from the site of Artifex, who maintain and sell the commercial version of Ghostscript and its derivatives. They say: If your application (including its source code) is not licensed to the public under the GNU GPL, you are not authorized to ship GPL Ghostscript or GPL MuPDF with your application under the terms of the GNU GPL if any one of the following is true: your application contains a copy of some or all of GPL Ghostscript or MuPDF; your application is derived from, is based on, or constitutes a revision of some or all of GPL Ghostscript or MuPDF; your application includes one or more functions that use some or all of GPL Ghostscript or MuPDF. These criteria apply to your application as a whole. Even if only one section of your application satisfies one of these criteria, you are not authorized to ship GPL Ghostscript or GPL MuPDF with your application unless your application, including all of its source code, is licensed to the public under the GNU GPL. If your application (including its source code) is NOT licensed to the public under the GNU GPL and you intend to distribute Ghostscript or MuPDF to a third party for use with and usable by your application, you MUST first obtain a commercial license from Artifex. I perhaps naively believed all this without further research. I have now read the GPL - it is quite tough to follow, but I tried to test it on what I actually want to do, which is to distribute Ghostscript or an existing derivative of it unaltered along with my own application (written in LiveCode, a proprietary software system) and for sale as a product under 'normal' commercial terms. In the Preamble, the GPL states: For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. The applicable part of the GPL referring to compiled and complete versions of programs (such as GhostScript in binary form, which is what I intend to use) is Section 6. It does allow use of the compiled code, provided that the user is offered access to the source code (this is 6b). So Bernard, I think you are right and that Artifex is wrong - which means the use of 'free' software (using the term as GNU uses it) is OK. Thanks Bernard for that very interesting insight. Graham PS I will return to the technical argument (which seems to be getting rather tetchy) about the use of IM, GhostScript etc. soon. I thought it better to keep the licensing discussion separate. On Sat, 1 Oct 2011 15:40:57 +0100, Bernard Devlin bdrun...@gmail.com wrote: You're either extremely knowledgeable about the GPL, or I think you have misunderstood the GPL. The GPL v2 does not mean you cannot charge for re-distribution of GPL code (there are companies who charge for the re-distribution of linux on dvds). If your code is bound to GPL libraries and you distribute that combined artifact then you might have issues. If your code calls out to compiled programs (using shell() then there is no issue). A very strict interpretation is that if your code is bound to libraries, then you are bound to provide your souce should someone demand it, or cease using the libraries in that case. There are those who dispute that even binding to libraries does not fall within the GPL v2. GPL v3 was brought in to stop so many companies exploiting GPL on the server-side (i.e. where there is no re-distribution of code). Unless the code you want to use to provide such a web service is licensed under GPL v3, I cannot see what the issue would be. I know of very few projects using GPL v3. And not all open source licenses have the same copyleft implications as the GPL. If you are distributing RunRev's ssl library with your apps, you are re-distributing open source code (only this time it is the Apache license + SSL license). It is always possible that companies negotiate a separate non-GPL license for GPL code they wish to incorporate and re-distribute. Anyway, I hope the first suggestion works for you so that you do not even need to consider these issues. Bernard On Sat, Oct 1, 2011 at 1:22 PM, Graham Samuel livf...@mac.com wrote: since mine is a commercial product, there would presumably be licensing issues for a non-GNU developer. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
Re: Datagrid Error
On Fri, Sep 30, 2011 at 1:08 PM, Marty Knapp martykn...@comcast.net wrote: It did occur every time, though I only tested on one Mac. I ended up rebuilding the stack which eliminated this problem, but a couple of times I've gotten another error when opening the datagrid stack (the error was not consistent): Line No: Hint: 238' 354,6192,0,_StoreColWidth On closeStack I do save the column widths to a custom property (of a writeable stack) and then on preOpenStack I set the column widths with these values. Could this be interfering with something? Looking at line 6192 in the data grid library we find this line: ThrowError kErrInvalidInteger, invalid column width value ' pValue ' It looks like you are passing in a bad value for one of the column widths. -- Trevor DeVore Blue Mango Learning Systems www.bluemangolearning.com-www.screensteps.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: Licensing Issues for LC developers [was: Re: Reading PDF - a cry for help]
FYI: The work around that I have seen used is to keep your code and the GPL code completely separate. In fact, when someone downloads and installs your code, the very first thing your code would do is ask people to approve the install of the GPL code. Then if they say yes, download the binary and install it on their computer. If they say no, let them know your software cannot function without the GPL code and then offer them the option of getting a refund or having your code download the GPL binary.. Thus, you ship just your code. They purchase just your code. Your code installs the free GPL code if the user asks for it to be installed. In your manual or help screens you provide links to the source of the GPL code. That process seems to be used by others. Of course, I am not a lawyer and I don't even play one on TV so you should assume everything I have just written is incorrect. Kee Nethery On Oct 3, 2011, at 4:03 AM, Graham Samuel wrote: The applicable part of the GPL referring to compiled and complete versions of programs (such as GhostScript in binary form, which is what I intend to use) is Section 6. It does allow use of the compiled code, provided that the user is offered access to the source code (this is 6b). So Bernard, I think you are right and that Artifex is wrong - which means the use of 'free' software (using the term as GNU uses it) is OK. ___ use-livecode mailing list use-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: Datagrid Error
Thanks Trevor - I'll take a look at that. The curious thing is that it works fine 98% of the time. Marty On Fri, Sep 30, 2011 at 1:08 PM, Marty Knappmartykn...@comcast.net wrote: It did occur every time, though I only tested on one Mac. I ended up rebuilding the stack which eliminated this problem, but a couple of times I've gotten another error when opening the datagrid stack (the error was not consistent): Line No: Hint: 238' 354,6192,0,_StoreColWidth On closeStack I do save the column widths to a custom property (of a writeable stack) and then on preOpenStack I set the column widths with these values. Could this be interfering with something? Looking at line 6192 in the data grid library we find this line: ThrowError kErrInvalidInteger, invalid column width value ' pValue ' It looks like you are passing in a bad value for one of the column widths. ___ use-livecode mailing list use-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: images gone in standalone
Hi Curt, On Oct 3, 2011, at 5:00 AM, Curt Ford wrote: My project has about 12 images, most of which are used as the icons for buttons with normal, hover, and disabled states, and two as images displayed on a card. When I build a standalone on Mac (haven't tried Windows yet), the images are gone, replaced by grey boxes; the buttons function normally otherwise. I used Import as Control to put them onto a card that's just storage for graphics. They're still showing normally on that card in development, but when I go to that card in the standalone, there is nothing but the grey boxes. When I check the application browser they are all still listed for the graphics card. When I check the Images library for 'this stack' they usually are there, though I could swear a few times choosing 'this library' has given blank rows.. I've tried reimporting through Import File... in the Image Library with no better result. Don't know if it's relevant, but I have renamed the file in the Finder in between sessions. Could that lead to some link being lost? It's hard to say without seeing the stack, but it sounds like what happens when you use some of the included standard images included in the LiveCode IDE. If so, you have to make sure the image is imported, not referenced. But since you said you imported them, I'm not sure why they would disappear in the standalone. Also make sure that the ID numbers of your imported images do not conflict with ID's of the standard images. That can cause odd anomalies when viewing your stack images in the Image Library. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
On-Rev: irev to mysql to html charset (apostrophes, etc.) confusion?
Hi All! I have a LC project that pushes data to a on-rev mysql database. The data saves to the mysql fine, however, apostrophes and other some other punctuation get saved as non-english characters. If I request the data from the database via my LC project, everything gets pulled back correctly, apostrophes are apostrophes, question marks are question marks. However, when I pull the data from the database using an .irev script and display as html in web browser, apostrophes are not correct (questions marks in black box, or if I change the charset in the header of the irev script, a completely different non-english character appears.) How do I get my irev script to save content to database correctly, and get data displayed correctly when displaying in html in web browser? I have messed with changing the charset in header, i.e : headmeta http-equiv=Content-Type content=text/html; charset=UTF-8 / /head ...in my irev script, but changing the charset only results in different characters. It's almost as if I have not found the correct charset? But yet, if my LC project pulls the content from the DB everything appears as it should??? Thanks for any tips! John Patten SUSD ___ use-livecode mailing list use-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: images gone in standalone
I think an ID conflict would just give him the wrong image, not a blank one. Just guessing tho'. Bob On Oct 3, 2011, at 8:52 AM, Devin Asay wrote: Also make sure that the ID numbers of your imported images do not conflict with ID's of the standard images. That can cause odd anomalies when viewing your stack images in the Image Library. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: On-Rev: irev to mysql to html charset (apostrophes, etc.) confusion?
How are you escaping your sql? Are you using the same method in your web app? If you are not, then I think this is probably the issue. I use sqlYoga and if I am not mistaken, it has it's own built in escaping. You may want to have a chat with Trevor Devore about this sort of thing. You may want to check the charset of your sql database itself. If you don't ever expect to use a foreign language or exotic characters, then UTF8 should work fine. Bob On Oct 3, 2011, at 9:29 AM, John Patten wrote: Hi All! I have a LC project that pushes data to a on-rev mysql database. The data saves to the mysql fine, however, apostrophes and other some other punctuation get saved as non-english characters. If I request the data from the database via my LC project, everything gets pulled back correctly, apostrophes are apostrophes, question marks are question marks. However, when I pull the data from the database using an .irev script and display as html in web browser, apostrophes are not correct (questions marks in black box, or if I change the charset in the header of the irev script, a completely different non-english character appears.) How do I get my irev script to save content to database correctly, and get data displayed correctly when displaying in html in web browser? I have messed with changing the charset in header, i.e : headmeta http-equiv=Content-Type content=text/html; charset=UTF-8 / /head ...in my irev script, but changing the charset only results in different characters. It's almost as if I have not found the correct charset? But yet, if my LC project pulls the content from the DB everything appears as it should??? Thanks for any tips! John Patten SUSD ___ use-livecode mailing list use-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: images gone in standalone
Right, but he had also reported oddities when trying to view his images in the stack's image library. ID conflicts can cause that. Devin On Oct 3, 2011, at 10:33 AM, Bob Sneidar wrote: I think an ID conflict would just give him the wrong image, not a blank one. Just guessing tho'. Bob On Oct 3, 2011, at 8:52 AM, Devin Asay wrote: Also make sure that the ID numbers of your imported images do not conflict with ID's of the standard images. That can cause odd anomalies when viewing your stack images in the Image Library. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-livecode mailing list use-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: images gone in standalone
Couple things to look at: 1) Are the images stored in the stack or on the hard disk? Easy way to check for this is select an image (not a button) and enter in the msg box: put the filename of the selObj If they're stored on the hard disk then you'll need to import them into the stack. Use the Import as Control from the File menu in the Rev IDE. 2) If the images are indeed not linked to filenames, check to see if they are in the same stack. If they are not in the same stack, then put them in the same stack and re-link them and then set their visibility to false. I typically put a last card in the stack and store all my images there, so I don't have to make them invisible. Of course you don't want folks navigating to this card! 3) It might help speed things up if you do something like (card script of main stack): on preOpenStack go last cd go first cd end preOpenStack This effectively caches all images on the last card and speeds up execution. -- Chipp Walters CEO, Shafer Walters Group, Inc. ___ use-livecode mailing list use-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: Setting visible of control within group to false
Message: 16 Date: Sun, 02 Oct 2011 19:25:25 -0500 From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Setting visible of control within group to false Message-ID: 4e8900f5.3010...@hyperactivesw.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed That's the default behavior, where a group resizes to accomodate its objects. You can set the group's boundingrect property to prevent the resizing. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com And Key Ray wrote: I think you can also set the lockLocation of the group to true to prevent it's resizing as well. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ Jacque and Ken, Thanks for your suggestions. As usual, much of RR's finer points are lost on me. I should have consulted Richard's 4wProps to see the options available. Love that utility. Actually I can't lock the bounding rectangle. I am experimenting with a new type of programable graphics--at least new to me. And that is programing the dynamics objects moving within a group, a group that is also moving. As metaphor, consider a man rowing a boat across a lake. The man and boat are a group and the group is moving relative to the lake. But the man in the boat is also rowing within the group, moving his arms and back relative to the boat. So far controlling this motion-within-motion is working out better than I expected, thanks to RunRev's implementation of the group. (Working well within the limitations of graphics programing in RunRev. I have never found a way to truly move an object smoothly across the screen. There is always some herky-jerky element in the motion. And then there is the long-standing screen refresh problem on the Mac.) But my problem with repositioning a group when a component within the group has been set to invisible was easily fixed once I understood what was go on, namely, as you pointed out, the group resizes to accommodate only the VISIBLE elements. So when repositioning, be sure the group contains the same elements. ___ use-livecode mailing list use-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: Licensing Issues for LC developers [was: Re: Reading PDF - a cry for help]
My pleasure. I'm sure that there are plenty of discussions on the internet that will help you further understand what is possible and where the limitations are. It seems a shame to throw away a possible solution to a problem on a misunderstanding of the possibilities. My thoughts on the matter were based on my recollection of discussions with Richard years ago. I don't actually distribute any GPL software with my applications, so the possibilities and limitations are mostly of academic interest to me. Like Kee, I'm not a lawyer. I hope the suggestions on the other thread provide you with technical feasibilities. Let us know if your research uncovers issues that we laymen have missed. When I've tried to discuss the GPL with lawyer friends, they are very reluctant to give me a firm opinion of what is involved (it makes me wonder if they are really worth the social liability entailed in having them as friends). Bernard On Mon, Oct 3, 2011 at 12:03 PM, Graham Samuel livf...@mac.com wrote: Thanks Bernard for that very interesting insight. ___ use-livecode mailing list use-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: Datagrid Error
On Mon, Oct 3, 2011 at 11:46 AM, Marty Knapp martykn...@comcast.net wrote: Thanks Trevor - I'll take a look at that. The curious thing is that it works fine 98% of the time. The check that occurs is whether or not the value passed to the handler is an integer. You might want to check that line 6192 is the same in your version of the data grid library though. I checked the version in LiveCode 4.6.4. edit script of btn Data Grid of stack revDataGridLibrary -- Trevor DeVore Blue Mango Learning Systems LiveCode Resources for Developers: http://livecode.bluemangolearning.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: On-Rev: irev to mysql to html charset (apostrophes, etc.) confusion?
In SQLite, the way to escape an apostrophe is to precede it with another apostrophe, not a backslash. mySQL allows either method, not sure about other SQL implementations. Pete Molly's Revenge http://www.mollysrevenge.com On Mon, Oct 3, 2011 at 10:40 AM, Pierre Sahores s...@sahores-conseil.comwrote: Le 3 oct. 2011 à 18:42, Bob Sneidar a écrit : How are you escaping your sql? If not, it needed where it's needed becomes it\'s needed to be stored in your SQL backend. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: On-Rev: irev to mysql to html charset (apostrophes, etc.) confusion?
In Sybase and in Python, if you enclose your text statements in double quotes, you must escape double quotes inside the text string and don't have to escape single quotes. Similarly, if you enclose using single quotes, you must escape the single quotes inside the text string and don't have to escape double quotes. select He's a big deal -- will work fine select 'He''s a big deal' -- will work fine select He's a big deal -- will not work because the double quotes in the text are not escaped select 'He's a big deal' -- will not work because the single quote in the text is not escaped I always use single quotes to enclose text and have a routine that escapes them for me function escapeQuote theText if ' is in theText then repeat with x = the number of chars in theText down to 1 if char x of theText = ' then put ' before char x of theText end if end repeat end if return theText end escapeQuote Kee Nethery On Oct 3, 2011, at 5:02 PM, Pete wrote: In SQLite, the way to escape an apostrophe is to precede it with another apostrophe, not a backslash. mySQL allows either method, not sure about other SQL implementations. Pete Molly's Revenge http://www.mollysrevenge.com On Mon, Oct 3, 2011 at 10:40 AM, Pierre Sahores s...@sahores-conseil.comwrote: Le 3 oct. 2011 à 18:42, Bob Sneidar a écrit : How are you escaping your sql? If not, it needed where it's needed becomes it\'s needed to be stored in your SQL backend. ___ use-livecode mailing list use-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