Re: Learning by... avoiding mistakes
"Experience is that marvelous thing that enables you to recognize a mistake when you make it again." -- F. P. Jones -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 18, 2013, at 1:18 PM, Phil Davis wrote: > I love Mark Twain's observation (aka story of my life): > > Good judgment comes from experience; > Experience comes from bad judgment. > > :-) > Phil Davis > > > On 3/18/13 12:17 PM, Mark Wieder wrote: >> Alejandro Tejada writes: >> >>> I was checking in Amazon the impressive collection >>> of books about learning by avoiding mistakes: >> I would counter that making mistakes is the best way to learn. >> > > -- > 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 ___ use-livecode mailing list use-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: Xcode 4.6.1
Hi Chip, Yes, I just did the same thing. Same problem. You have to repoint LiveCode to the SDK. Of course when you try to use "Find" to locate it, all one finds are old versions, because Apple has now hidden things inside Xcode itself. I had to search old LC emails for the clues. Go to your LiveCode Preferences Under Mobile Support add an entry /Applications/Xcode.app/Contents/Developer (Selecting Xcode may be enough as the LC seems smart enough to know what to do next.) Close Preferences (You might have to restart LC for this to work I don't recall) Then under the Development Menu select Test Target and choose the simulator you want. I hope that does it for you. Good luck! Rick On Mar 18, 2013, at 9:31 PM, Chip Thomas wrote: > So I updated my device to 6.1 and so then I had to update Xcode. But now I > can't get LiveCode to work with this new version. Keep getting an error > that Armv 7 builds require the iOS 6.0 SDK to be installed. > > How can I fix this? > > Thanks in advance! > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning by... avoiding mistakes
Hi All, Certainly, making mistakes is an essential part of learning in real life ... always that we survive them. If I understand correctly what I read, then every mistake ever made is stored in memory, ready to be recalled when a similar situation arises... This situation is not useful for everyone and, from my point of view, it is itself a mistake... :( Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Learning-by-avoiding-mistakes-tp4662291p4662317.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
Xcode 4.6.1
So I updated my device to 6.1 and so then I had to update Xcode. But now I can't get LiveCode to work with this new version. Keep getting an error that Armv 7 builds require the iOS 6.0 SDK to be installed. How can I fix this? Thanks in advance! ___ use-livecode mailing list use-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] Preload hoses my system
Richmond- Monday, March 18, 2013, 10:54:49 AM, you wrote: > shrank my 'Home' partition by some 37 GB, and then copied my 9.5 GB > 'boot' partition over into > the freed space and flagged that space as 'boot': took all night, but > did it by itself while I slept: cheers, cheers! Yay! -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Intermittent availability of Android emulator for Test Target
On 18/03/2013 21:34, Pierre Sahores wrote: Ben, I had it frequently and to avoid such inconsistencies witch occurred against real devices too, i test all my android builds against real devices in using the free android "AirDroid" (web server) app to install them in seconds over WIFI. Problem solved ;-) Le 18 mars 2013 à 21:54, Ben Rubinstein a écrit : I'm having trouble running tests on the Android emulator from LiveCode on Mac. Sometimes I see it in the "Test Target" menu, sometimes I don't. This is on various versions of LiveCode from 5.3 onwards. I restart AVD, restart the emulator, restart LiveCode, reselect Android in Standalone Application Settings... I can't find the magic sequence that makes it come back. But sometimes it has come back. Does anyone else have this problem? Has anyone got a routine which works? Or is there something stupid which I'm doing that would account for the problems I'm having? Hi Pierre, Yes, when I can't make the emulator work I've been testing on hardware instead (I just build into a folder served from my laptop, so I pull from the device instead of pushing to it, though I have AirDroid and will give it a go to see if it's any faster) - apart from being a little extra step, the main problem is that I don't use an Android phone, so if I'm away from my desk just working on my laptop, if I can't speak to the emulator then I don't have any way to test. Thanks for responding - it's good to know I'm not the only one having this problem - has anyone cracked it? Ben ___ use-livecode mailing list use-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: Where did all the color go?
Just to close off this problem. First, thanks Mark and Jacqueline for your quick response. I took your advice and just to be on the safe side and not have this problem go on forever. I removed all copies of LiveCode from my system then reinstalled LC 5.5.4.. Hey presto! Everything was all right. So It must have been the preferences stack. The only niggling thing is that vague worry about stability. Wouldn't you think that after reaching version 5.5.4 of a product it would have more stability. Don't get me wrong. I love the product and I realize that it has a small customer base and is trying to be all things to all coders. But you know there always seem to be something that not quite stable enough to make it into the "big time". And as a final thought aren't we, at last, a mature profession? ___ use-livecode mailing list use-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: Trouble with Android
On 15/03/2013 20:41, Michael Hatch wrote: > I have found that in android setting the acceleratedrendering of a stack in > preopenstack will sometimes cause black screens and other unwanted effects, > so I now set it via opencard of the first card. Setting the compositor to > software or disabling acceleratedrendering might be a good starting point > to check while debugging. On 16/03/2013 05:13, J. Landman Gay wrote: As mentioned, using acceleratedRendering on an Android device running OS 2.2 or earlier will launch to a black screen if you use the defaults. If you set the compositorType to "software" it works, but I got some unwanted artifacts when I did that. As far as I know it hasn't been fixed yet, so I had to require Android 2.3 or higher. Another thing is incompatibility with 4.1 Jelly Bean. I had to rebuild with 5.5.4 to fix that. Earlier versions of LiveCode apps opened to a black screen on Jelly Bean. Thanks both, but it doesn't seem to be either of those. I've never used acceleratedRendering, I haven't got that far yet! (and after a careful search have confirmed that no trace of it has crept into my stack). One of my test devices is Android 2.3.4, the other is 4.0.3, but same result on both, including when building from LC 5.5.4. I did have some success when, in despair, I opened took the "Orientation Example" stack and was able to build that succesfully so that it opened on Android. Then I copied all the elements of my stack into it - and it still worked. So now I have two apparently identical stacks - both one card, the same controls on each, the same scripts in the card and the stack - but one has developed Android-black-screen disease. I've not yet found the critical difference between them. So I'm thinking that I've stumbled across another way to cause Android-black-screen, which isn't either of the ones you've mentioned (and which happens with the latest test version of LC as well as earlier ones). If anyone knows of any other causes, which I can test to see if that's what's going on here, please let me know. Otherwise (when I've got some time on my hands) I'll try to keep cutting down the problem stack to form a minimal version I can report to RunRev. Many thanks, Ben ___ use-livecode mailing list use-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: Pulling Unicode Data from a DataGrid
For handling Japanese text, these functions (below) by Kenji Kojima have served perfectly for years. (Many thanks again, Kenji!) -- Nicolas Cueto on mouseUp answer file "Open unicode file:" if it is empty then exit mouseUp put url ("binfile:" & it) into tURL set the useUnicode to true if baseConvert(charToNum(char 1 to 2 of tURL), 10, 16) = "FEFF" then delete char 1 to 2 of tURL end if replace (uniencode(CRLF)) with (uniencode(CR)) in tURL set the unicodeText of fld "theUnicodeText" to tURL put the number of lines in tURL into tLineCount repeat with tLineNum = 1 to tLineCount put unicodeGetChars(theUnicodeText,tLineNum,1,-1) into tTemp put unidecode(tTemp,japanese) into tSJIS set the itemDel to tab get item 2 of tSJIS put it & cr after tRez end repeat delete the last char of tRez set the unicodeText of fld "questionList" to uniencode(tRez,Japanese) end mouseUp -- START OF KENJI KOJIMA'S FUNCTIONS function countUnicodeLines @tdata put number of characters of tdata into tlength set useunicode to true put 1 into tlinecount repeat with i = 1 to tlength step 2 if chartonum(char i to i+1 of tdata) is 10 then add 1 to tlinecount end repeat return tlinecount end countUnicodeLines function UnicodeLineOffset @tdata,pWhichline put number of characters of tdata into tlength set useunicode to true put 1 into tlinecount put 1 into tlineoffset repeat with i = 1 to tlength step 2 if tlinecount is pWhichline then exit repeat if chartonum(char i to i+1 of tdata) is 10 then add 1 to tlinecount put i+2 into tlineoffset end if end repeat if pWhichline > tlinecount then put tlength + 1 into tlineoffset return tlineoffset end UnicodeLineOffset function unicodeGetChars pFldname, pLineNum, pStartChar, pEndChar put the unicodetext of fld pFldname into tdata put UnicodeLineOffset(tdata,pLineNum) into startchar put UnicodeLineOffset(tdata,pLineNum+1) - 1 into endchar put (char startchar to endchar of tdata) into tLineData if pEndChar<0 then put (the num of chars of tLineData \ + (pEndChar*2))/2 into pEndChar set the useunicode to true if pLineNum = countUnicodeLines(tdata) then repeat with i = (pStartChar*2-1) to (pEndChar)*2 step 2 put char i to i+1 of tLineData after tString end repeat else repeat with i = (pStartChar*2-1) to (pEndChar-1)*2 step 2 put char i to i+1 of tLineData after tString end repeat end if return tString end unicodeGetChars // E N D / ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Intermittent availability of Android emulator for Test Target
Ben, I had it frequently and to avoid such inconsistencies witch occurred against real devices too, i test all my android builds against real devices in using the free android "AirDroid" (web server) app to install them in seconds over WIFI. Problem solved ;-) Le 18 mars 2013 à 21:54, Ben Rubinstein a écrit : > I'm having trouble running tests on the Android emulator from LiveCode on > Mac. Sometimes I see it in the "Test Target" menu, sometimes I don't. This > is on various versions of LiveCode from 5.3 onwards. I restart AVD, restart > the emulator, restart LiveCode, reselect Android in Standalone Application > Settings... I can't find the magic sequence that makes it come back. But > sometimes it has come back. > > Does anyone else have this problem? Has anyone got a routine which works? > Or is there something stupid which I'm doing that would account for the > problems I'm having? > > TIA, > > Ben > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Pulling Unicode Data from a DataGrid
Hey all, We're translating our app SmoothieRx into Japanese and have been struggling to get UTF-16 text from a DataGrid. We've tried all sorts of combinations of uniEncode, uniDecode on the data and it all comes out garbled. We first overrode the DataGrid, so we can see that the Japanese in the datagrid is correct. But, when we pull it out using GetDataOfLine or dgDataOfLine and then try to decode it, it is garbled. Current thinking is that we need to create another handler like GetUnicodeDataOfLine. Any ideas? -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
Intermittent availability of Android emulator for Test Target
I'm having trouble running tests on the Android emulator from LiveCode on Mac. Sometimes I see it in the "Test Target" menu, sometimes I don't. This is on various versions of LiveCode from 5.3 onwards. I restart AVD, restart the emulator, restart LiveCode, reselect Android in Standalone Application Settings... I can't find the magic sequence that makes it come back. But sometimes it has come back. Does anyone else have this problem? Has anyone got a routine which works? Or is there something stupid which I'm doing that would account for the problems I'm having? TIA, Ben ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning by... avoiding mistakes
I love Mark Twain's observation (aka story of my life): Good judgment comes from experience; Experience comes from bad judgment. :-) Phil Davis On 3/18/13 12:17 PM, Mark Wieder wrote: Alejandro Tejada writes: I was checking in Amazon the impressive collection of books about learning by avoiding mistakes: I would counter that making mistakes is the best way to learn. -- 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
Re: Learning by... avoiding mistakes
J. Landman Gay writes: > I won't tell you the dumbest thing I ever did. But I'll tell you what I > did 3 days ago and maybe you'll think that's the dumbest thing I ever did. Anyone who has never made a mistake has never tried anything new. -- Albert Einstein. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Learning by... avoiding mistakes
Alejandro Tejada writes: > I was checking in Amazon the impressive collection > of books about learning by avoiding mistakes: I would counter that making mistakes is the best way to learn. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [OT] Preload hoses my system
What can I say except "Thank God for gparted": shrank my 'Home' partition by some 37 GB, and then copied my 9.5 GB 'boot' partition over into the freed space and flagged that space as 'boot': took all night, but did it by itself while I slept: cheers, cheers! AND: "Don't make a boot partition that the Linux people say is 'OK': triple it, at least. 'Learning from avoiding mistakes' . . . Ha, Ha, Ha: learning from putting my foot in it for 51 years more likely. Thanks to all on the list for all the helpful advice. 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
Google App Engine
hi- Don't yet know how this might apply to LC, but this showed up in my inbox this morningl, so I thought I'd pass it on. Google is offering startups $1,000 of credit to start building applications on Google App Engine. App Engine is a development platform that makes applications easy to write, simple to scale, and trivial to manage. Apply for App Engine for Startups at cloud.google.com/startups and use verification code: ASVM-02. (affiliation through Silicon Valley Android Meetup) Application deadline is March 31, 2013. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode