Access data from images in the roll

2012-01-15 Thread Paolo Mazza
How to access data (date time and position) from images in the iphone image roll? Any idea? Thanks a lot Paolo Mazza ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Determine 180 degree turn using compass

2012-01-15 Thread Ken Ray
On Jan 15, 2012, at 10:59 PM, Ken Ray wrote: >> And if the starting point is say 10 and I turn left 170 degrees and now I am >> at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 >> and again this may be incorrect based on when the sample interval was fired. > > Actuall

Re: Determine 180 degree turn using compass

2012-01-15 Thread Ken Ray
> And if the starting point is say 10 and I turn left 170 degrees and now I am > at 200 and 10 - 200 is -190 but I have not really turned -190 but only 170 > and again this may be incorrect based on when the sample interval was fired. Actually -190 *is* 170, if you approach it as "if the number

Re: BinaryEncode

2012-01-15 Thread Rick Harrison
Hi Michael, Ok, I'll try to put in that missing step. Thank you for taking a look at the code, and making your suggestion for the correction. Rick On Jan 15, 2012, at 10:39 PM, Michael Kann wrote: > Rick, > > A little more explanation. The numToChar function takes an integer. In your > case

[on-rev] LC cron jobs?

2012-01-15 Thread Phil Davis
Hi folks, Have you succeeded in using a .lc script as the thing to be run in a cron job on the on-rev server? I tried it but am apparently not holding my mouth right. I get a syntax error on line 1: the "file extension with equal non-success. I even reverted to trying to run a .cgi script wit

Re: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread Andre Garzia
On Mon, Jan 16, 2012 at 12:50 AM, stephen barncard wrote: > Thanks Michael - that did the trick.  This saved me a lot of searching... > I guess making any statement would wipe out params set at a higher level. > Hierarchal - like css. > this works all around - everybody's happy > > Options +ExecCG

Re: BinaryEncode

2012-01-15 Thread Michael Kann
Rick, A little more explanation. The numToChar function takes an integer. In your case if you feed the function the integer 119 then it spits out "w" -- which is what you want. At the end of your script you ended up with "01110111", which is the way we "spell" the binary number 119 -- using one

Re: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread stephen barncard
going into my script scrapbook - thanks On 15 January 2012 18:50, Michael Kann wrote: > Stephen, > > It looks like you just stack up AddHandler statements for each language: > > AddHandler livecode-script .lc .irev > AddHandler php-cgi .php > > -- good webpage > http://www.askapache.com/htaccess

Re: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread stephen barncard
Thanks Michael - that did the trick. This saved me a lot of searching... I guess making any statement would wipe out params set at a higher level. Hierarchal - like css. this works all around - everybody's happy Options +ExecCGI FollowSymLinks AddHandler livecode-script .lc .irev AddHandler php5-

Re: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread Michael Kann
Stephen, It looks like you just stack up AddHandler statements for each language: AddHandler livecode-script .lc .irev AddHandler php-cgi .php -- good webpage http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html Mike --- On Sun, 1/15/12, stephen barncard wrote: From: stephen

Re: PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread Michael Kann
-- You might have to let php in on the fun in the following line: AddHandler livecode-script .lc .irev http://www.webmasterworld.com/php/3127670.htm --- On Sun, 1/15/12, stephen barncard wrote: From: stephen barncard Subject: PHP and Livecode Server living together on Dreamhost. To: "How to us

Re: BinaryEncode

2012-01-15 Thread Michael Kann
Rick, You obviously know much more about binary numbers than I do, but I'll give it a try. I think that the essence of the problem is demonstrated in the following snippet: on mouseUp put numToChar("01110111") into x put numToChar(119) into y put x && y into fld 1 end mouseUp fld 1 will then c

Re: Zen of Computer Programming

2012-01-15 Thread Alejandro Tejada
Hi René René Micout-2 wrote > > This was in France in 1993 ! > And it is not the really story... > During his holidays in his granMother's house in French mountain > "Pyrénées" > he write 60 pages of math and algorithms. After his holidays he write the > program in C++ on his computer... > Sorry

BinaryEncode

2012-01-15 Thread Rick Harrison
I was trying some tests with binary numbers. If I put in "w" and convert it to binary I get "01110111" which is correct. If I then write it out to a file, and read it back in again and then convert it back I get "01110111" correctly, but when converted to a character I get a "_" which is complete

[Datagrid] Don't scroll to edit the cell

2012-01-15 Thread JosepM
Hi, I detected one weird issue with the datagrid. I have a datagrid with many cols, all editable. Some of these col left outside the visible area, so the user must scroll to the column and double-click to edit the content. If I edit the last columns the datagrid don't move the show the entire cell

PHP and Livecode Server living together on Dreamhost.

2012-01-15 Thread stephen barncard
Hi Gang, I host many livecode-driven sites on *Dreamhost* using the * .htaccess*method, thanks to refinements developed by Andre Garzia a few months back. This way I don't have to touch Apache, and can't because it's a shared server. We couldn't get it to work on the VPS server there, as DH virtua

Re: Compass Lesson not working

2012-01-15 Thread Alejandro Tejada
Hi Thomas, Thomas McGrath III-3 wrote > > There is a lesson at run rev for the Compass features on iOS, > but I can't get the heading part to work. > [snip] > Could you post a comment at the end of the lesson, about your findings? In this way, others developers would know about this problem.

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
Yep the revonrockets and http stack by Andre works great and already has a sample of returning the time. It works great. The time example uses a .rev stack as a cgi. (look in the stacks folder) The stack script has examples of how to use the cgi stack. Currently it has a method for getting the in

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
Had one more though in the same vein. I think Andre has a stack that is a basic http server. It would probably be easy to modify it so that the server itself could return your time/date info as well as any other system info you wanted to be able to get at remotely. And since it does its thing li

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Gregory Lypny
Thanks Mike and Stephen, I’ll give your suggestions a try. Gregory On Sun, Jan 15, 2012, at 1:00 PM, Mike Bonner wrote: > The easiest way I can think of would be to have the web server running and > a page that returns the date and time. Alternatively you might be able to > turn on the ntp se

Re: Reading a standalone's info.plist file

2012-01-15 Thread Pete
Thanks Mark, I will take a look at the uRIP docs. However, I still prefer to get the version and copyright info I want from the info.plist. I just have this aversion to storing the same information in multiple places, especially if any of them have to be maintained manually. I know myself well e

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread J. Landman Gay
On 1/15/12 4:00 AM, William de Smet wrote: Hi there, I found TestFlightapp.com on the web to let beta testers test your app. Has anyone any experience with this and successfully used it with an app made with Livecode? While uploading my app I get an error with which seems to be related with mis

Re: Copy to Group problems

2012-01-15 Thread dunbarx
The keyword "last"is not stable with groups. I think this is the only object where this breaks down. See the dictionary.The workaround uses the "templateGroup": The "last" keyword is not stable when referring to groups. So if one creates several groups, referencing the "last" group may not re

Determine 180 degree turn using compass

2012-01-15 Thread Thomas McGrath III
OK, this is for the math experts here. Using a working Compass app I would like to determine when the phone is turned around from an initial starting point. So I am working out the best ways to do this. 1. Start by capturing the start heading 2. Store that in a global 3. Store that the start hea

Re: Reliability of setProp/getProp

2012-01-15 Thread Mark Wieder
Mike- Sunday, January 15, 2012, 8:56:29 AM, you wrote: > TextWrangler found Gremlins! Once removed, all seems to be back to normal. Yay! -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please vi

Re: Reliability of setProp/getProp

2012-01-15 Thread Mark Wieder
Mark- Sunday, January 15, 2012, 6:35:32 AM, you wrote: > Surely, stacks can get corrupted, but I have seen this happen > only once during the past few years. The reason was that the stack > was moved from Windows to Mac and opened, while text fields and > scripts were somehow not re-encoded. I h

Re: Session strategies for liveCode server

2012-01-15 Thread Mark Wieder
Martin- Sunday, January 15, 2012, 5:45:19 AM, you wrote: > It would be helpful if RunRev staff would post updates there about things > such as version changes to the On-rev Server or updates to the on-rev editor > etc. I have tried to post a few things and respond to posts when I can but > not

Re: Sorting Advice

2012-01-15 Thread dunbarx
There is a more compact way. Read the notes in the dictionary about "sort". You may concatenate the sortKeys. This will at least reduce the command to a single line. Not sure if it is faster, though. Craig Newman -Original Message- From: Pete To: How to use LiveCode Sent: Tue, Jan

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread stephen barncard
not too hard if you write a small app to live on the remote mac. Check out "sockets" in the dictionary and download Chatrev to see how they're used. http://bjoernke.com/index.irev?target=chatrev On 15 January 2012 09:20, Gregory Lypny wrote: > Hello everyone, > > Is there a LiveCode handler tha

Re: Getting the Date and Time From a Remote Computer

2012-01-15 Thread Mike Bonner
The easiest way I can think of would be to have the web server running and a page that returns the date and time. Alternatively you might be able to turn on the ntp server for your mac and then talk to that. I'm sure there are other ways too, but these are off the top of my head real quick. On S

Getting the Date and Time From a Remote Computer

2012-01-15 Thread Gregory Lypny
Hello everyone, Is there a LiveCode handler that can be used to get the date and time from a remote Mac that has a static IP address? Regards, Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, uns

Re: Compass Lesson not working

2012-01-15 Thread Thomas McGrath III
John, There must be something different about the lessons stack. On the forums a few people have also had problems running it. I added all of my code to your stack and used your methods and all works great. I created a new stack and copied all of your elements and code and mine and it works gr

Re: Reliability of setProp/getProp

2012-01-15 Thread Michael Doub
Thanks Bernard, I know that I am not locking messages as I have not learned when and when not to do such a thing. Another on my list of things to learn about. I have started using the hard breakpoints. Regards, Mike On 2012-01-15, at 9:44 AM, Bernard Devlin wrote: > Are you locking th

Re: Reliability of setProp/getProp

2012-01-15 Thread Michael Doub
TextWrangler found Gremlins! Once removed, all seems to be back to normal. Mark, many thanks! Regards, Mike On 2012-01-15, at 11:45 AM, Michael Doub wrote: >> I don't understand "but I can add put statements... NOT in the >> getProp/setProp handlers". What do you mean? > > > When I

Re: Reliability of setProp/getProp

2012-01-15 Thread Michael Doub
> I don't understand "but I can add put statements... NOT in the > getProp/setProp handlers". What do you mean? When I was not able to set a breakpoint. I started to selectively include "Put xxx" so I could track the progress of app. I included put statement in both the handlers and in the

Re: Compass Lesson not working

2012-01-15 Thread Thomas McGrath III
Thanks John, Your stacks works perfectly on my iphone4. Side by side the stack from the runrev lesson does not work and yours does work. I even copied my get current location script to your stack and it works there. You use the headingChanged and locationChanged and the lesson stack does not, b

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread William de Smet
@Mark and Colin: I just bought BetaBuilder and that is very easy to use and works perfectly. Thanks! greetings, William 2012/1/15 Colin Holgate > I use this program: > > http://itunes.apple.com/us/app/betabuilder-for-ios-apps/id415348946?mt=12 > > Some days I have it open all day. It uses t

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread Colin Holgate
I use this program: http://itunes.apple.com/us/app/betabuilder-for-ios-apps/id415348946?mt=12 Some days I have it open all day. It uses the same basic trick as testflightapp, only you deploy the files it makes to your own server. That works well with Flash apps, I can publish a new version and

Re: Unicode Question

2012-01-15 Thread Mark Schonewille
Hi Jonathan, This works for me: on mouseUp set the textFont of btn 2 to "Lucida Grande,Unicode" set the text of btn 2 to the unicodetext of fld 1 --replacetext(the unicodetext of fld 1,uniencode(cr),cr) end mouseUp I'm not sure whether menus get confused if the line delimiter is actua

Unicode Question

2012-01-15 Thread Jonathan Scott
Hello, I usual lurk here. I do have a question though. I don't seem to be able to find an answer anywhere. I'll appreciate whatever help I can get. I'm trying to make an option button that has Japanese characters in it. It will be a self-updating directory button for a stack where

Re: Reliability of setProp/getProp

2012-01-15 Thread Bernard Devlin
Are you locking the message path in some other handler (e.g. maybe one that is done with 'send in time'). That might explain intermittent behaviour. Also, there is a 'breakpoint' command that you can literally type as a line in your handler. I've often (like almost always) seen red dot breakpoin

Re: Reliability of setProp/getProp

2012-01-15 Thread Mark Schonewille
Hi Mike, The debugger is not reliable to begin with, but there might be a valid reason why you can't set a breakpoint, e.g. because that line is commented out. I don't understand "but I can add put statements... NOT in the getProp/setProp handlers". What do you mean? It is possible that you ha

Re: Reliability of setProp/getProp

2012-01-15 Thread Michael Doub
I have a group "Pointer" that is made of 2 graphic objects. Within the script of group "Pointer", I have: setprop thecolor newcolor getProp thecolor setprop finger newloc I am not using them to set any persistent state but to control the color and location of the object itself. When this beh

Re: Session strategies for liveCode server

2012-01-15 Thread Martin Koob
I use splash21 for sessions and it works well. I share your frustration Björnke with the lack of documentation. There is a forum for on-rev but it is not active at all. http://forums.on-rev.com/ It would be helpful if RunRev staff would post updates there about things such as version changes

Re: Reliability of setProp/getProp

2012-01-15 Thread Mark Schonewille
Hi Mike, Custom properties are very useful and reliable but will cause problems if: 1) you use them to save text to be displayed on multiple platforms 2) you want to save them as part of your standalone Solve (1) by storing text as unicode but keep in mind that this may still not work on PowerMa

Reliability of setProp/getProp

2012-01-15 Thread Michael Doub
Are there conditions where getProp/setProp should not be used? have seen multiple instances where the setProp message does not seem to be recieved. What is even more strange is the fact that sometimes it works then for no reason it stops. These constructs are much easer to use than sending

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread Mark Schonewille
Hi William, I add all my betatesters to my iOS team provisioning profile and build with that profile for ad hoc distribution. Might be wrong, but it works. Maybe you forgot to add your testers to that profile? If it doesn't work, just make a new ad hoc provisioning profile and add your tester's

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread William de Smet
Hi Mark, I searched their forum and found the error: http://support.testflightapp.com/kb/common-questions/mismatched-ubiquitykvstore-identifier-value It even says on their site: Ensure you are using a Ad Hoc Distribution profile when building and that Xcode is using the correct profile. Building

Re: Anyone successfully used Testflightapp.com?

2012-01-15 Thread Mark Schonewille
Hi William, What's the error exactly? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter

Anyone successfully used Testflightapp.com?

2012-01-15 Thread William de Smet
Hi there, I found TestFlightapp.com on the web to let beta testers test your app. Has anyone any experience with this and successfully used it with an app made with Livecode? While uploading my app I get an error with which seems to be related with missing code from Xcode in the plist file. Any