Re: mergJSON, externals and Livecode Server
Thanks Thierry - jq looks fantastic. Needs to be a new LCB library for sure. But for now I need to get JSON in and out of Livecode arrays on the server. Monte's external is available for all platforms - so it should work on the server I think the the mergJSON.so is the version I believe that is used on Linux. Puttin it in the cgi bin along side the built in externals does not seem to be sufficient. How does basic extension configuration work on a server? On 4 August 2015 at 10:50, Thierry Douez th.do...@gmail.com wrote: and here a previous post from Mark Wieder: A coworker hipped me to the fact that OSX has a built-in json parser. As does linux. Takes input from stdin and sends to stdout, so json_pp filename will parse and pretty-print a json file for you. I was feeling uneasy about posting json data to online parsers, and this does the trick quite nicely. Best, Thierry 2015-08-04 11:43 GMT+02:00 Thierry Douez th.do...@gmail.com: 2015-08-04 10:57 GMT+02:00 David Bovill david@viral.academy: Hi David, You might find this tool (binary available) interesting: http://stedolan.github.io/jq/ Otherwise, for linux, externals have to be built speciffically for the platform Hi - I'm looking to switch from parsing JSON Thierry Douez - http://sunny-tdz.com Maker of sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage ___ use-livecode mailing list use-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
mergJSON, externals and Livecode Server
Hi - I'm looking to switch from parsing JSON with scripts to Monte's external (which i've been using on mobile / desktop for a while and works great) - but I can't get it working (Im on Ubuntu 14.04 with DigitalOcean) and Livecode server version 7.06 rc3). It's either because the external does not work on the distro I have (from memory it's a 64 bit server install), or more likely I'm doing something stupid like not registering the external properly. Any pointers as to how to register externals for a server / how to check they are installed - I'm getting an empty response from: - the externalpackages of stack home which is probably the wrong thing to do on a server anyway :) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to resize the columns of a datagrid?
You may want to try this: 1. Save the original width of datagrid in a custom property cOldWidth. 2. In the datagrid script, handle resizeControl: on resizeControl local tFraction put (the width of me / the cOldWidth of me) into tFraction repeat for each line tLine in the dgProp[columns] of me set the dgColumnWidth[tLine] of me to the round of (tFraction * the dgColumnWidth[tLine] of me) end repeat Make sure that the minimum column width and column resizablity properties are properly set. I haven't tried this out. Hope it works. The idea is to handle the change under resizeControl Regards, Sri -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-to-resize-the-columns-of-a-datagrid-tp4694576p4694577.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: How to resize the columns of a datagrid?
There's a dgprop for it. Check documentation. Sent on the new Sprint Network from my Samsung Galaxy S®4. Original message From: Tiemo Hollmann TB Date:08/04/2015 6:14 AM (GMT-08:00) To: LiveCode User Liste senden Subject: How to resize the columns of a datagrid? Hello, I want to resuze a datagrid table by script depending oft he window size. When just resizing the datagrid (expanding it) an additional column is added to the datagrid. Is there an easy way to resize all columns proportional to the new width of the datagrid? Thanks Tiemo ___ use-livecode mailing list use-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: mergJSON, externals and Livecode Server
David Bovill wrote: Monte's external is available for all platforms - so it should work on the server I think the the mergJSON.so is the version I believe that is used on Linux. Puttin it in the cgi bin along side the built in externals does not seem to be sufficient. How does basic extension configuration work on a server? If you're running the 64-bit version of Ubuntu 14.04, mergJSON doesn't work off the shelf, since there's currently only a 32-bit version available officially. There's a forum thread concerning the issue, including a tip from Monte on how you can temporarily recompile your own: http://forums.livecode.com/viewtopic.php?t=24328p=125968 Alternatively (and as a possibly less desirable option, depending on your needs), you could install the 32-bit libs for Ubuntu, then run the 32-bit version of LiveCode Server 7. Note that the 64-bit version of LiveCode Server 7 does run into at least one other known issue, which is that the included dbsqlite.so driver isn't functioning (if you need that): http://quality.runrev.com/show_bug.cgi?id=15573 There may be other issues that I'm unaware of. Otherwise, it runs well for the most part. 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: Active Directory...
Thanks Matthias! I would have liked not to have to use Poewrshell (and modules I need to install for it) @Trevor: This looks really good! I will have to try that as soon as I have set up my own Windows server. (Will try before at the customers place though) All the best and thanks a lot! Malte ___ use-livecode mailing list use-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: mergJSON, externals and Livecode Server
Ah - thanks Lyn. I've stumble on with Livecode script version- and wait for Monte to update mergJSON On 4 August 2015 at 15:20, Lyn Teyla lyn.te...@gmail.com wrote: David Bovill wrote: Monte's external is available for all platforms - so it should work on the server I think the the mergJSON.so is the version I believe that is used on Linux. Puttin it in the cgi bin along side the built in externals does not seem to be sufficient. How does basic extension configuration work on a server? If you're running the 64-bit version of Ubuntu 14.04, mergJSON doesn't work off the shelf, since there's currently only a 32-bit version available officially. There's a forum thread concerning the issue, including a tip from Monte on how you can temporarily recompile your own: http://forums.livecode.com/viewtopic.php?t=24328p=125968 Alternatively (and as a possibly less desirable option, depending on your needs), you could install the 32-bit libs for Ubuntu, then run the 32-bit version of LiveCode Server 7. Note that the 64-bit version of LiveCode Server 7 does run into at least one other known issue, which is that the included dbsqlite.so driver isn't functioning (if you need that): http://quality.runrev.com/show_bug.cgi?id=15573 There may be other issues that I'm unaware of. Otherwise, it runs well for the most part. 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 ___ use-livecode mailing list use-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: mergJSON, externals and Livecode Server
2015-08-04 10:57 GMT+02:00 David Bovill david@viral.academy: Hi David, You might find this tool (binary available) interesting: http://stedolan.github.io/jq/ Otherwise, for linux, externals have to be built speciffically for the platform HTH, Thierry Hi - I'm looking to switch from parsing JSON with scripts to Monte's external (which i've been using on mobile / desktop for a while and works great) - but I can't get it working (Im on Ubuntu 14.04 with DigitalOcean) and Livecode server version 7.06 rc3). It's either because the external does not work on the distro I have (from memory it's a 64 bit server install), or more likely I'm doing something stupid like not registering the external properly. Any pointers as to how to register externals for a server / how to check they are installed - I'm getting an empty response from: - the externalpackages of stack home which is probably the wrong thing to do on a server anyway :) ___ use-livecode mailing list use-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: mergJSON, externals and Livecode Server
and here a previous post from Mark Wieder: A coworker hipped me to the fact that OSX has a built-in json parser. As does linux. Takes input from stdin and sends to stdout, so json_pp filename will parse and pretty-print a json file for you. I was feeling uneasy about posting json data to online parsers, and this does the trick quite nicely. Best, Thierry 2015-08-04 11:43 GMT+02:00 Thierry Douez th.do...@gmail.com: 2015-08-04 10:57 GMT+02:00 David Bovill david@viral.academy: Hi David, You might find this tool (binary available) interesting: http://stedolan.github.io/jq/ Otherwise, for linux, externals have to be built speciffically for the platform Hi - I'm looking to switch from parsing JSON Thierry Douez - http://sunny-tdz.com Maker of sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How to resize the columns of a datagrid?
Hello, I want to resuze a datagrid table by script depending oft he window size. When just resizing the datagrid (expanding it) an additional column is added to the datagrid. Is there an easy way to resize all columns proportional to the new width of the datagrid? Thanks Tiemo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Sample Android Scroller?
Anyone have an example of a scrolling list or group that scrolls well on Android? I've been trying to move an iOS stack that contains a scrolling list over to Android, and testing on a Galaxy S4 results in the scroller being near unusable. AcceleratedRendering is enabled on the stack, and it works fine on iOS. Are there any properties/settings that can be adjusted to improve scrolling performance? Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
How to Make App Building Into Art
Hi LiveCode Community, Another week - another blog post! This one is by one of our LiveCode users, Sean Miller, who created apps that are art! See how here: http://livecode.com/how-to-make-app-building-into-art/ We'd love to hear your LiveCode Story and share it on our blog! If you're interested in contributing, please write me directly and I can help you compose your story! Lastly - Did you know we're on social media? We are! And we'd love to see the enthusiasm you share in the forums shared on our social pages as well! You can like our Facebook page and write on our wall here: https://www.facebook.com/pages/LiveCode/121318328010780 You can follow our Twitter handle here (and tweet to us @LiveCode): https://twitter.com/livecode We'd love to see what you're doing in your app building journey. If you don't have time to share your full LiveCode story, take a photo of your work and share it on social media. Or send the photo to me and I'll share it for you on our social pages! Thanks and please let me know if you have any questions! Jana Doughty ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
AW: How to resize the columns of a datagrid?
Hi Bob, are you thinking of dgColumnIsResizable? It allows the user to resize manually the column width. Or do you have another property in mind? Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Bob Sneidar Gesendet: Dienstag, 4. August 2015 16:08 An: How to use LiveCode use-livecode@lists.runrev.com Betreff: RE: How to resize the columns of a datagrid? There's a dgprop for it. Check documentation. Sent on the new Sprint Network from my Samsung Galaxy S®4. Original message From: Tiemo Hollmann TB Date:08/04/2015 6:14 AM (GMT-08:00) To: LiveCode User Liste senden Subject: How to resize the columns of a datagrid? Hello, I want to resuze a datagrid table by script depending oft he window size. When just resizing the datagrid (expanding it) an additional column is added to the datagrid. Is there an easy way to resize all columns proportional to the new width of the datagrid? Thanks Tiemo ___ use-livecode mailing list use-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: How to resize the columns of a datagrid?
Hi Tiemo, Am 04.08.2015 um 17:10 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hi Bob, are you thinking of dgColumnIsResizable? It allows the user to resize manually the column width. Or do you have another property in mind? I’m obviously not Bob, but I think he was more thinking of something like: … ## Set width of single column: set the dgColumnWidth[„Name of column] of group DataGrid to 150 .. ## Set width of all columns, supply a COMMA delimited list of desired widths: set the dgProps[column widths] of group DataGrid to „200,200,150,300 … :-) Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Bob Sneidar Gesendet: Dienstag, 4. August 2015 16:08 An: How to use LiveCode use-livecode@lists.runrev.com Betreff: RE: How to resize the columns of a datagrid? There's a dgprop for it. Check documentation. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-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: Control structure with not
You could: set tSwitchApple to (tSender is not Apple) set tSwitchPeach to (tSender is not Peach) set tSwitchGrape to (tSender is not Grape) Slightly different than your code because the switches would be set to false if the condition isn't met whereas you code doesn't do that. On Tue, Aug 4, 2015 at 2:25 PM Peter Bogdanoff bogdan...@me.com wrote: Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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: mobile loader app
Roger: Thanks! That’s it. Bill On Aug 4, 2015, at 12:32 PM, Roger Eller roger.e.el...@sealedair.com wrote: On Tue, Aug 4, 2015 at 2:52 PM, William Prothero proth...@earthednet.org wrote: Darn: I marked this email, went on a road trip for 2 weeks, and then lost the link. Someone, a couple of weeks ago, posted a link to an app that directly loads an app to iOS without going through xCode. Could someone re-post that link? I’d much appreciate it. Regards, Bill William A. Prothero http://es.earthednet.org/ Is this what you were looking for? -- Forwarded message -- From: Monte Goulding mo...@sweattechnologies.com Date: Tue, Jun 30, 2015 at 12:50 AM Subject: [ANN] Super quick and easy deployment to plugged in iOS devices To: How to use LiveCode use-livecode@lists.runrev.com Hi LiveCoders One thing I’ve wanted for a long time is for the Test button to deploy to iOS devices in the same way that it does on Android. mergTestApp was part of the way there but I’ve gone the rest of the way with a new plugin called mergDeploy. Just install the stack and associated external in your plugins folder and LiveCode will recognise when you plugin an iOS device and list it in the Test Targets submenu. You can then click the Test button and it will install onto your device. Great for rapidly testing on a device where it counts. This new plugin is available from mergExt.com http://mergext.com/ for $9 or bundled in mergExt Complete which is now $940 worth of products for $299. See http://mergext.com/plugins/mergdeploy/ http://mergext.com/plugins/mergdeploy/ for more info. Cheers Monte -- M E R Goulding http://goulding.ws/ Software development services Bespoke application development for vertical markets mergExt http://mergext.com/ - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Odd behavior in Win8-I'm stuck fixing it, Help??
Paul: Thanks, I’m trying it out. Of course, I won’t be able to tell if it solves the problem until the next student has a problem, but it’s a good idea anyway. Unfortunately, due to the way I’ve set up the data plotting, it’s going to be a fairly big job. I rely heavily on screen capture, but it’s most likely worth the modifications. Regards, Bill On Aug 3, 2015, at 7:42 PM, Paul Hibbert p...@livecode.org wrote: Bill, I’ve done a few tests and it appears to me that from rect” still relies on the screen output from the computer, whereas “from object” allows LC to render an image of an object independent of the screen hardware. Try this: Move your stack so the map image is half off the screen, then make the snapshot, the image doesn’t render completely, this suggests to me that the app is accessing a screen representation of the image rather than using LC’s internal rendering, so 'I think' changing the snap routine to make a snap from say a group of the map and it’s associated data may cure the problem. eg. export snapshot from group “mapAndData” to image “mapSnap” — then try the test above again. Paul On Aug 3, 2015, at 16:22, William Prothero proth...@earthednet.org wrote: Paul: Thanks for the hint. I do use the newer “from” syntax. export snapshot from rect snapRect to image mapSnap Thanks, Bill On Jul 31, 2015, at 3:35 PM, Paul Hibbert p...@livecode.org wrote: Bill, I’ve just read the following explanation from RG relating to another snapshot problem and wondered if it also relates to your student’s problems… The from option renders the object into a new buffer set up just for the snapshot, while the older of syntax grabs the object's rect from the composite screen buffer. LiveCode renders only the content region of a window but the window itself is rendered by the OS, so it has no choice but to obtain that image from the screen buffer. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com When I first read your post I wondered if the problem could be due to low grade or incompatible video cards in the affected machines, if that’s the case then the above explanation would make sense, to me at least. So, the question is, does your export snapshot script use the “from” or “of” option? If it’s the “of” option then switching to the “from” option may fix the problem your students are seeing. Just a thought. Paul On Jul 16, 2015, at 14:07, William Prothero proth...@earthednet.org wrote: Folks: I have an application that is being used by a class of Earth Science students and get failure reports from two who use Windows 8. One lives in Australia and one lives in Japan. The app works fine on Macintosh. I’ve also tested it on my own installation of both Windows 8.1 and 7, 32 bit and 64 bit versions. I can’t get the reported pixellation of the map and screen. I’m wondering if it is something related to foreign installations. The symptom is extreme pixellation of images captured with the export snapshot” command. I live in the US. So, I wonder if somebody with Windows 8 would be willing to download the app and try it, and perhaps give me an idea of what might be going on. If it’s a bug in “snapshot”, it would be important to be reported and fixed. Otherwise, I’m pretty stuck on figuring out what is going on. Here are links: Windows zip file of the app: https://www.dropbox.com/s/lsn087vrhstxvg4/PT_Explorer-Windows.zip?dl=0 Pixellated Image sent by a student https://www.dropbox.com/s/m2frv9i0dg7mxtp/Explorer%20in%20Windows%208.1.pdf?dl=0 Thanks for any help or feedback you can give me. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Regards, Paul Hibbert p...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Regards, Paul Hibbert p...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,
Re: Control structure with not
One option, if I understand what you're asking: on doThisThing tSender repeat for each item theVar in Apple,Peach,Grape do put (tSender theVar) into (tSwitch theVar) end repeat end doThisThing Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 8/4/15, 2:24 PM, Peter Bogdanoff bogdan...@me.com wrote: Is it possible to convert this to a switch control structure, or otherwise refined somehow? The ³not² is what I need, and the setting has to be always ³true²: on doThisThing tSender if tSender is not ³Apple² then set tSwitchApple to true end if if Sender is not ³Peach² then set tSwitchPeach to true end if if Sender is not ³Grape² then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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: mergJSON, externals and Livecode Server
On 5 Aug 2015, at 12:20 am, Lyn Teyla lyn.te...@gmail.com wrote: If you're running the 64-bit version of Ubuntu 14.04, mergJSON doesn't work off the shelf, since there's currently only a 32-bit version available officially. Thanks Lyn, it will work perfectly fine on 64 bit but I forgot to include it in the latest release of the binaries. I’ll include it in the next build. Cheers -- Monte Goulding M E R Goulding http://goulding.ws/ - software development services mergExt http://mergext.com/ - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Control structure with not
Maybe I'm misunderstanding what you want but I think my code does that. For example, let's say tSender is Apple: set tSwitchApple to (tSender is not Apple) -- false set tSwitchPeach to (tSender is not Peach) -- true set tSwitchGrape to (tSender is not Grape) -- true Looking at your code again, it's unclear as to whether your tSwitchxxx things are variables or custom properties. Using set makes me think they are custom properties but then you would need of objectreference or the script won't compile. If they are variables, then use put to put values into them. If they are variables, I'd make the switches into an array and then: repeat for each item rFruit in Apple,Peach,Grape put (tSender is not rFruit) into tSwitches[rFruit] end repeat And I really like Phil's split solution! On Tue, Aug 4, 2015 at 2:49 PM Peter Bogdanoff bogdan...@me.com wrote: This won’t work for me because ALL the switches always have to be set to true, except for the one related sender. On Aug 4, 2015, at 2:40 PM, Peter Haworth p...@lcsql.com wrote: You could: set tSwitchApple to (tSender is not Apple) set tSwitchPeach to (tSender is not Peach) set tSwitchGrape to (tSender is not Grape) Slightly different than your code because the switches would be set to false if the condition isn't met whereas you code doesn't do that. On Tue, Aug 4, 2015 at 2:25 PM Peter Bogdanoff bogdan...@me.com wrote: Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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
Control structure with not
Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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: Control structure with not
Hi. Your if-then would be better served as: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true else if Sender is not “Peach” then set tSwitchPeach to true else if Sender is not “Grape” then set tSwitchGrape to true end doThisThing The switch is as follows, but note that you cannot set a variable, only a property. So though the overall syntax that follows is correct, the handler will not compile. on doThisThing tSender switch case tSender is not “Apple” set tSwitchApple to true break case tSender is not “Peach” set tSwitchApple to true break case tSender is not “Grape” set tSwitchApple to true break end switch end doThisThing In other words, the snippet set tSwitchApple to true has to be something like: set the tSwitchApple of this stack to true or if indeed a variable put true into tSwitchApple Craig Newman on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing -Original Message- From: Peter Bogdanoff bogdan...@me.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tue, Aug 4, 2015 5:26 pm Subject: Control structure with not Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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: Sample Android Scroller?
Are you using a native mobile scroller or just a regular LiveCode field? A native scroller should work okay. On August 4, 2015 7:51:38 AM CDT, Scott Rossi sc...@tactilemedia.com wrote: Anyone have an example of a scrolling list or group that scrolls well on Android? I've been trying to move an iOS stack that contains a scrolling list over to Android, and testing on a Galaxy S4 results in the scroller being near unusable. AcceleratedRendering is enabled on the stack, and it works fine on iOS. Are there any properties/settings that can be adjusted to improve scrolling performance? Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- 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: Sample Android Scroller?
Yes, the list uses a native scroller. As a test, I tried downloading a recent scroller sample posted in the forums (which was most likely done for iOS) and ran into the same poor performance. I'm hoping I'm just missing something, but than other than setting the layerMode of group to scrolling and enabling acceleratedRendering, I'm not sure what else I can try. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On Aug 4, 2015, at 9:35 AM, J. Landman Gay jac...@hyperactivesw.com wrote: Are you using a native mobile scroller or just a regular LiveCode field? A native scroller should work okay. On August 4, 2015 7:51:38 AM CDT, Scott Rossi sc...@tactilemedia.com wrote: Anyone have an example of a scrolling list or group that scrolls well on Android? I've been trying to move an iOS stack that contains a scrolling list over to Android, and testing on a Galaxy S4 results in the scroller being near unusable. AcceleratedRendering is enabled on the stack, and it works fine on iOS. Are there any properties/settings that can be adjusted to improve scrolling performance? Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- 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: Sample Android Scroller?
On Aug 4, 2015, at 10:52 AM, Scott Rossi sc...@tactilemedia.com wrote: Yes, the list uses a native scroller. As a test, I tried downloading a recent scroller sample posted in the forums (which was most likely done for iOS) and ran into the same poor performance. I'm hoping I'm just missing something, but than other than setting the layerMode of group to scrolling and enabling acceleratedRendering, I'm not sure what else I can try. Hi Scott, My experience with scrolling on Android has been the same as yours. We tested on a Nexus 7. Nice device that runs 3D games with ease. 2D games are amazing as well. I chalked it up to LC needing some optimization for this platform. For anyone wanting to see our code, you can download the whole mobile app here: http://livecloud.io/live-events-source/ http://livecloud.io/live-events-source/ If we can get the performance up to what is available on iOS, that would be fantastic. 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: mobile loader app
On Tue, Aug 4, 2015 at 2:52 PM, William Prothero proth...@earthednet.org wrote: Darn: I marked this email, went on a road trip for 2 weeks, and then lost the link. Someone, a couple of weeks ago, posted a link to an app that directly loads an app to iOS without going through xCode. Could someone re-post that link? I’d much appreciate it. Regards, Bill William A. Prothero http://es.earthednet.org/ Is this what you were looking for? -- Forwarded message -- From: Monte Goulding mo...@sweattechnologies.com Date: Tue, Jun 30, 2015 at 12:50 AM Subject: [ANN] Super quick and easy deployment to plugged in iOS devices To: How to use LiveCode use-livecode@lists.runrev.com Hi LiveCoders One thing I’ve wanted for a long time is for the Test button to deploy to iOS devices in the same way that it does on Android. mergTestApp was part of the way there but I’ve gone the rest of the way with a new plugin called mergDeploy. Just install the stack and associated external in your plugins folder and LiveCode will recognise when you plugin an iOS device and list it in the Test Targets submenu. You can then click the Test button and it will install onto your device. Great for rapidly testing on a device where it counts. This new plugin is available from mergExt.com http://mergext.com/ for $9 or bundled in mergExt Complete which is now $940 worth of products for $299. See http://mergext.com/plugins/mergdeploy/ http://mergext.com/plugins/mergdeploy/ for more info. Cheers Monte -- M E R Goulding http://goulding.ws/ Software development services Bespoke application development for vertical markets mergExt http://mergext.com/ - There's an external for that! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to resize the columns of a datagrid?
If you want proportional, all the same size relative to each other, something like this in the card script should work. on resizestack set the rect of group 1 to the rect of this card -- set your dg group to whatever new size you want resizecol end resizestack on resizecol put the width of group 1 into tWidth put the dgProp[ columns ] of group 1 into tCol put trunc((the effective width of group 1) / (the number of lines in tCol)) into tWidth repeat for each line tLine in tCol set the dgColumnWidth[tLine] of group 1 to tWidth end repeat end resizecol It does a pretty good job, but it leaves the horizontal scroll bar up. I'm sure you could nudge things around so that there was no scroll bar (or just turn that one off) If you want different sizes, all changing proportionally, you'll need to do as sri said and adjust based on a factor. (it should be easy enough to store the size of each column as a percentage of total width and use that to generate your widths) On Tue, Aug 4, 2015 at 9:26 AM, Klaus major-k kl...@major-k.de wrote: Hi Tiemo, Am 04.08.2015 um 17:10 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hi Bob, are you thinking of dgColumnIsResizable? It allows the user to resize manually the column width. Or do you have another property in mind? I’m obviously not Bob, but I think he was more thinking of something like: … ## Set width of single column: set the dgColumnWidth[„Name of column] of group DataGrid to 150 .. ## Set width of all columns, supply a COMMA delimited list of desired widths: set the dgProps[column widths] of group DataGrid to „200,200,150,300 … :-) Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Bob Sneidar Gesendet: Dienstag, 4. August 2015 16:08 An: How to use LiveCode use-livecode@lists.runrev.com Betreff: RE: How to resize the columns of a datagrid? There's a dgprop for it. Check documentation. Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-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
mobile loader app
Darn: I marked this email, went on a road trip for 2 weeks, and then lost the link. Someone, a couple of weeks ago, posted a link to an app that directly loads an app to iOS without going through xCode. Could someone re-post that link? I’d much appreciate it. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: How to Make App Building Into Art
Jana Doughty wrote: Lastly - Did you know we're on social media? We are! And we'd love to see the enthusiasm you share in the forums shared on our social pages as well! You can like our Facebook page and write on our wall here: https://www.facebook.com/pages/LiveCode/121318328010780 You can follow our Twitter handle here (and tweet to us @LiveCode): https://twitter.com/livecode We'd love to see what you're doing in your app building journey. If you don't have time to share your full LiveCode story, take a photo of your work and share it on social media. Or send the photo to me and I'll share it for you on our social pages! Two tips for the readers here on using social for LC 1. Twitter, Facebook, and G+ all allow hash tags, so if you tag your LiveCode-related posts with #livecode they're not only easier for other LiveCoders to find, but help extend the reach of those posts and that tag across the network. 2. LinkedIn's Endorsement feature is extensible, so that as long as you use at least one of the suggested tags you can also add a custom one - such as, say, LiveCode. Eventually I'd like to see LiveCode become a suggested tag there, and it may be possible if we do two things: - Include LiveCode among your skills in your Linked profile - Add LiveCode to endorsements you make for those you know have good LiveCode skills. -- Richard Gaskin LiveCode Community Manager rich...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
[ANN]SoCal LiveCode Meeting, Thursday in Pasadena
The next meeting of the SoCal LiveCode User Group is coming up Thursday at 7PM in Pasadena, CA - details in the forum: http://forums.livecode.com/viewtopic.php?f=50t=24923 -- Richard Gaskin LiveCode Community Manager rich...@livecode.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
URL works in IDE, browser but not on Livecode Server
The following url works in the browser, in script and in the message box: - https://commons.wikimedia.org/w/api.php?action=querytitles=Image:Andalusian_horse_moscow.jpgprop=imageinfoformat=jsoniiprop=extmetadata|url It does not however work when called from a script in Livecode server. It does work when called by curl on the same server. This script if run on your Livecode server should demonstrate the difference: ?rev put https://commons.wikimedia.org/w/api.php?action=querytitles=File%3AAndalusian_horse_moscow.jpgprop=imageinfoformat=jsoniiprop=extmetadata|url into someUrl put shell (curl quote someURL quote) into someResult delete line 1 to 4 of someResult put url someURl CR someURL CR someResult ? Anyone have an idea why the server may not been doing the same thing as the IDE or curl with this url? ___ use-livecode mailing list use-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: Control structure with not
This won’t work for me because ALL the switches always have to be set to true, except for the one related sender. On Aug 4, 2015, at 2:40 PM, Peter Haworth p...@lcsql.com wrote: You could: set tSwitchApple to (tSender is not Apple) set tSwitchPeach to (tSender is not Peach) set tSwitchGrape to (tSender is not Grape) Slightly different than your code because the switches would be set to false if the condition isn't met whereas you code doesn't do that. On Tue, Aug 4, 2015 at 2:25 PM Peter Bogdanoff bogdan...@me.com wrote: Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-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: Control structure with not
You can always use 'switch' without specifying an expression to evaluate as part of the 'switch' line, like so: switch case (tSender is not Apple) put true into tSwitchApple --break case (tSender is not Peach) put true into tSwitchPeach --break case (tSender is not Grape) put true into tSwitchGrape --break end switch Or there's this. It doesn't generate errors but it also doesn't work - the variables are not filled by it: switch tSender case (not Apple) put true into tSwitchApple --break case (not Peach) put true into tSwitchPeach --break case (not Grape) put true into tSwitchGrape --break end switch (break is commented to allow same logic flow as your example) Here's another way (that does work) to skin that cat: on doThisThing pSender constant kFruits = Apple,Peach,Grape put kFruits into tFruitsA split tFruitsA with comma as set put false into tFruitsA[pSender] end doThisThing I love arrays. And there are probably many other ways to do it. Phil Davis On 8/4/15 2:24 PM, Peter Bogdanoff wrote: Is it possible to convert this to a switch control structure, or otherwise refined somehow? The “not” is what I need, and the setting has to be always “true”: on doThisThing tSender if tSender is not “Apple” then set tSwitchApple to true end if if Sender is not “Peach” then set tSwitchPeach to true end if if Sender is not “Grape” then set tSwitchGrape to true end if end doThisThing Peter Bogdanoff UCLA ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode