re: LC and ImageMagick from OSX

2012-06-11 Thread Bryan McCormick
Mark, It turns out to work perfectly well under 5.5. However this is on Lion. And Lion was apparently very unhappy. For convert for example, I had to specify the path to convert (using Andre Garcia's trick of 'which convert' to get the path) AND the explicit path to the output file. In this c

LC and ImageMagick from OSX

2012-06-10 Thread Bryan McCormick
I am curious about using ImageMagick on OSX with LC. I want to be able to envoke IM and do simple stuff like a text dump of RGB values. On windows this seems to work with Shell. But I am having a difficult time on OSX. Also, presuming I get it to work b4 someone gets back to me, how do I get

problem for the ancients - headless cgi mode and images

2012-04-28 Thread Bryan McCormick
Folks, This is aimed at people who know the vagaries of the headless cgi mode of old. I am trying to set an image in a headless stack and then get its imagedata. In other words, setting it to "http://blurf.com/myremote.jpg"; It does not appear to be working. Is this because the stack had no

Crasher bug in Lion?

2012-03-01 Thread Bryan McCormick
Anyone using Lion and a 5.x version of livecode? I am on a pretty plain vanilla system with nothing in particular added. Livecode crashes on any attempt to print a script. If you are going to test this out (please contact support if it works) make sure you save your stack and scripts first. H

Detecting frame changes efficiently

2012-01-22 Thread Bryan McCormick
I have to cobble something together which is not normally my thing, a video app that doesn't do a bunch. What it does need to do though is detect when there has been a significant change in frame. I would need to be able to threshold this for significance, so I would need to know that xyz perc

Scripting a text to binary digits converter

2012-01-03 Thread Bryan McCormick
Phil, Your final version of the script ended up winning the speed race. See my note to Ken. Thanks to everyone for pitching in. That was fun. Forced me to learn a bit about baseConvert and binaryEncode/Decode ___ use-livecode mailing list use-live

Scripting a text to binary digits converter

2012-01-03 Thread Bryan McCormick
Hey Ken, Oddly your terse script ran a bit longer than the "final" one the group cobbled together by community heavy lifting. Not by much though. 1000 repeats on both showed yours was about 13 to 20 ticks slower. Not at all what I would have expected either. _

Scripting a text to binary digits converter

2012-01-02 Thread Bryan McCormick
JB, Jim, Guglielmo Okay, this is the final version of the script which does seem considerably faster than where I started. Thanks to all. Hope this was a useful walk-through. Any other suggestions on ways to improve? - function convertTextToBinary

Scripting a text to binary digits converter

2012-01-02 Thread Bryan McCormick
Jim, Thanks so much. I wonder how much faster that is? And Guglielmo, I appreciate you taking a crack at this. I don't get how to do the encode using your approach at all since I am not familiar with the params for the BinaryEncode function. ___ u

Scripting a text to binary digits converter

2012-01-02 Thread Bryan McCormick
JB, Well it gives some peculiar results because I clearly don't know much about the encoding process in terms of passing the right params. I rewrote this to be more general. Give it a try if you like and let me know. It will handle carriage returns and such properly. Seems speedy enough for

Scripting a text to binary digits converter

2012-01-02 Thread Bryan McCormick
JB, Guglielmo This appears to work for my purposes and is pretty speedy. See anything that might break? --- function convertTextToBinary varText repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into theNum

Scripting a text to binary digits converter

2012-01-02 Thread Bryan McCormick
I have seen a number of sites that use a text to binary digits converter for simple encryption. Such that "this is my text" would be written as "01110100011011101001011100110010011010010111001100100110110100010010011101000110010101110100" What is the simplest way of

Finding local minima and maxima of a graph

2010-12-21 Thread Bryan McCormick
Thanks to everyone who tossed in their thoughts and code samples. Francois, yes, it is a variation I suppose of wavelets, or a filtered wave. It makes perfect sense. The degree of variation is something that needs to be added as a function param so that significance can be selectable on a perce

Issue with Twitter search

2010-12-21 Thread Bryan McCormick
This is probably a bit less about livecode than it is about the Twitter API, but perhaps someone has done this already. I want to do some fairly deep searches into the Twitter archive. To do that requires being able to dance around the "search since" restriction on the number of entries return

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
x27;ll do it that way. It would seem to me there just has to be an easier way to do it. On 12/5/2010 12:33 AM, Bryan McCormick wrote: Jonathan, Sure, that approach can work. But it isn't terribly efficient. It would however be less computationally intensive if I detrend first. That'

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jonathan, Sure, that approach can work. But it isn't terribly efficient. It would however be less computationally intensive if I detrend first. That's the first step. So if you have a notion on a least squares linear fit line, that would be most welcome. _

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jerry, Yes, that would be far too many hits and there has to be some scaling applied as a filter for that reason. The criteria more precisely is "significant" peak and trough values. With significant being the trick. For example, is the peak or trough 3 percent or more away. There is a seaso

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Peter, Jonathan I had thought to use a sin function on the time series to find peak and trough values. I would filter the sin function results for those close to 1 or -1, though I am not sure what the filter interval will be just yet. Then, I would be able to grab the value from the actual ti

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Jonathan, No, these are data files in .csv format. Column data with high and low values from the series. Unfortunately I have thousands of these to wade through, with this being an ongoing project. First task is to deal with the history. ___ use-li

Re: Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
Peter, Yes, I have thousands of .csv files to process. I have data that is ordered by column containing high and low values. On 12/4/2010 12:56 PM, Bryan McCormick wrote: I have a very large number of graphs to crunch through to find local minima and maxima. The data is regularly spaced

Finding local minima and maxima of a graph

2010-12-04 Thread Bryan McCormick
I have a very large number of graphs to crunch through to find local minima and maxima. The data is regularly spaced, which eliminated one problem. I know too that the window value used has to be an adjustable variable as peak and trough significance may need to be found for a wide range of tim