Re: use-livecode Digest, Vol 101, Issue 43

2012-02-19 Thread Cal Horner
Thanks for that mark. Yes, I had know the site. And you know there's gonna be a "Yes, But". If you happen to look at the last modified date you will see that was 6/26/2007. So it would seem to me that nothing has been done to this handy little tool in over 4 years. I fired off an e-mail to the

Re: [OT] HyperCard and the Interactive Web

2012-02-19 Thread Kay C Lan
On Mon, Feb 20, 2012 at 1:12 AM, Richmond wrote: > I wouldn't worry about that. In our flat one cannot see the living-room > walls (in some places 3 books deep). > > You've seen the TV series Hoarders I presume ___ use-livecode mailing list use-livec

Re: How to use an array to solve the following...

2012-02-19 Thread gcanyon+rev
On Feb 19, 2012, at 8:47 PM, Kay C Lan wrote: > I'm sure others will now improve on that. I doubt it. You're using repeat for each in a sensible way, and there's rarely something faster than that. If you really wanted to tighten up the repeat, you could do something like this, but I doubt tha

Re: How to use an array to solve the following...

2012-02-19 Thread Kay C Lan
On Mon, Feb 20, 2012 at 10:47 AM, Glen Bojsza wrote: > > The biggest picture would be having 10 lists with each list having the xs > column but a different ?t column (wt, gt, st, mt, qt, ... etc) > > If you are going to many more columns, then an array might be faster, and if speed is the ultimat

Re: How to use an array to solve the following...

2012-02-19 Thread dunbarx
Kay's is much faster than mine. Well done. Craig Newman -Original Message- From: Glen Bojsza To: How to use LiveCode Sent: Sun, Feb 19, 2012 9:49 pm Subject: Re: How to use an array to solve the following... Hi Kay, This looks very good mainly the use of case with the decision b

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Mark Wieder
Len- Sunday, February 19, 2012, 8:09:11 PM, you wrote: > As it turns out, there are only two function codes I have to worry about > (i.e., ones we actually use): FC 3 - Read multiple registers, and FC 16 > - write multiple registers. FC3 is easy (on the way in) because it has > a fixed length.

Re: How to use an array to solve the following...

2012-02-19 Thread dunbarx
I am an old HyperCarder, so I tend to attack things in an old fashioned way. I use arrays, but think that the decisions needed here may not use them to any great advantage. I am usually wrong. I tried this with a worst case list of 20,000 lines, that is, no adjacent lines in your sense, to ma

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Len Morgan
On 2/19/2012 9:05 PM, Mark Wieder wrote: Len- Sunday, February 19, 2012, 5:23:11 PM, you wrote: Related to my problem with reading binary data from a socket, how do I handle a variable number of numbers that will come in with binaryDecode? To explain, I get a number in the packet header that

Re: Does 'quit' have a place in iOS apps?

2012-02-19 Thread Gerry Orkin
Yup, LC apps can't take advantage of background functioning...yet. Hopefully that will change in a future release. Gerry On 20/02/2012, at 12:12 PM, Ken Ray wrote: > I assume is the case with LC apps. ___ use-livecode mailing list use-livecode@lists

Re: Socket reading problem

2012-02-19 Thread Len Morgan
On 2/19/2012 8:50 PM, Mark Wieder wrote: Len- Sunday, February 19, 2012, 5:25:32 PM, you wrote: LC doesn't know from uints. Your best bet is to read them as chars (or more precisely as bytes), as you're doing in your second example. I thought this was true until I looked it up in the diction

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Mark Wieder
Len- Sunday, February 19, 2012, 5:23:11 PM, you wrote: > Related to my problem with reading binary data from a socket, how do I > handle a variable number of numbers that will come in with binaryDecode? >>> To explain, I get a number in the packet header that tells me there are >>> x number of

Re: Socket reading problem

2012-02-19 Thread Mark Wieder
Len- Sunday, February 19, 2012, 5:25:32 PM, you wrote: >> LC doesn't know from uints. Your best bet is to read them as chars (or >> more precisely as bytes), as you're doing in your second example. >> > I thought this was true until I looked it up in the dictionary. It > states that those are v

Re: How to use an array to solve the following...

2012-02-19 Thread Glen Bojsza
Hi Kay, This looks very good mainly the use of case with the decision being the switch... never thought about that. Also, I didn't realize that arrays would be slower... I will test this with some of the data sets ... currently up to 80,000 lines but with values I have indicated... but I like the

Re: How to use an array to solve the following...

2012-02-19 Thread Kay C Lan
Here's the same solution, but with 101 records. On my machine, over 3 runs I get, 4924 millisec, 4932 ms, 4914 ms. I'm sure others will now improve on that. There are a couple of extra lines to do the timing which you'd remove for your solution. on mouseUp --create the dummy list put 1

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Len Morgan
Hi Mark, It looks like that's what I'm going to have to do. In looking at your code though, the "word x" part (where the binary data is) won't that only work on "real" words that have spaces between them? This is actually a chunk of binary data where I'm using "word" in the sense of 2 8 bit

Re: How to use an array to solve the following...

2012-02-19 Thread Kay C Lan
Whoops typo, the start dummy list is 10 6 80 7 130 23 140 2 160 22 <--- 160, not 150 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://list

Re: How to use an array to solve the following...

2012-02-19 Thread Kay C Lan
On Mon, Feb 20, 2012 at 2:53 AM, Glen Bojsza wrote: > > Is the use of arrays to solve this appropriate? Efficient? Fast? > > From another recent thread, using arrays is slower than repeat for each line, and if the values you give are realistic (not lines with 1 chars) then even if you have a

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Mark Schonewille
Hi Len, You could use a repeat loop, similar to repeat with x = 1 to myNrOfWords get binaryDecode("h*",word x of myData,myTempVar) put myTempVar into myArray[x] end repeat -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the clipboard of your computer over a

Re: How to use an array to solve the following...

2012-02-19 Thread Michael Kann
Glenn wrote: The bigger picture will be trying to do this where there may be 3 or more columns. Glenn, Please give us the "biggest" picture. Mike --- On Sun, 2/19/12, Glen Bojsza wrote: From: Glen Bojsza Subject: Re: How to use an array to solve the following... To: "How to use LiveCode

Re: Socket reading problem

2012-02-19 Thread Len Morgan
On 2/19/2012 6:29 PM, Mark Wieder wrote: Len- Sunday, February 19, 2012, 3:34:41 PM, you wrote: I'm trying to read data from a socket. The data is Modbus/TCP. The first routine I tried is read from socket pSock for 3 uInt2s LC doesn't know from uints. Your best bet is to read them as chars

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Len Morgan
Related to my problem with reading binary data from a socket, how do I handle a variable number of numbers that will come in with binaryDecode? To explain, I get a number in the packet header that tells me there are x number of bytes to follow in this packet. I know the first byte is a remote

Re: How to manage user alerts from apps when in the background

2012-02-19 Thread Ken Ray
> For Windows, I've found STSTray > http://www.sonsothunder.com/products/ststray/ststray.htm but I'm not sure if > this works beyond Vista - is anyone using it on Windows 7? It works on Windows 7, but the icon in the tray is stuck at 256 colors at the moment… I just tested the demo on Win 7 and

Re: Does 'quit' have a place in iOS apps?

2012-02-19 Thread Ken Ray
On Feb 19, 2012, at 1:43 PM, Graham Samuel wrote: > Gerry, thanks for replying. > > That's what happens to my simple little app, but what about my favourite > radio app, TuneIn Radio? It's feeding the BBC to me as I write this, but I > could only access Mail by pressing the Home button after

Re: How to use an array to solve the following...

2012-02-19 Thread Glen Bojsza
The xs values should only be "bumped" if the preceding xs value is not the one in sequence using 10 as the increment. No xs value (other than the very first one or the very last one cannot have a neighboring xs value within the increment range. for example xs wt 10 6 80 7 13023

[ANN] mergXattr iOS extended file attribute external

2012-02-19 Thread Monte Goulding
Hi Everyone There's a new external up on mergext.com (mergXattr) to set the do not backup and file protection attributes of files. There is also a poll for you to vote on what external you would most like added to the mergExt suite. If something you need isn't listed then please email me. Right

Re: binaryDecode with variable number of parameters

2012-02-19 Thread Mark Wieder
Len- Sunday, February 19, 2012, 4:08:24 PM, you wrote: > Related to my problem with reading binary data from a socket, how do I > handle a variable number of numbers that will come in with binaryDecode? > To explain, I get a number in the packet header that tells me there are > x number of bytes

Re: Socket reading problem

2012-02-19 Thread Mark Wieder
Len- Sunday, February 19, 2012, 3:34:41 PM, you wrote: > I'm trying to read data from a socket. The data is Modbus/TCP. The > first routine I tried is > read from socket pSock for 3 uInt2s LC doesn't know from uints. Your best bet is to read them as chars (or more precisely as bytes), as you'

Re: ButtonGadget2

2012-02-19 Thread Mark Wieder
Cal- Sunday, February 19, 2012, 4:09:40 PM, you wrote: > Is anyone still using ButtonGadget2? > If so, is it still being supported? > If not, what happened to Altuit? ButtonGadget has its own website now. http://www.buttongadget.com/buttongadget2/default.htm As you might have discovered i

ButtonGadget2

2012-02-19 Thread Cal Horner
Is anyone still using ButtonGadget2? If so, is it still being supported? If not, what happened to Altuit? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription prefe

binaryDecode with variable number of parameters

2012-02-19 Thread Len Morgan
Related to my problem with reading binary data from a socket, how do I handle a variable number of numbers that will come in with binaryDecode? To explain, I get a number in the packet header that tells me there are x number of bytes to follow in this packet. I know the first byte is a remote

Socket reading problem

2012-02-19 Thread Len Morgan
I'm trying to read data from a socket. The data is Modbus/TCP. The first routine I tried is read from socket pSock for 3 uInt2s This gives me no data (both "it" and "the result" are empty). I know the packet has been received and there is data after these 3 numbers. If I change this to:

Re: How to use an array to solve the following...

2012-02-19 Thread dunbarx
Glen. I sort of get what you are trying to do, and yes, arrays will be the most compact way to do it, though regular variables can work as well. But what happens if you already have the "xs" values in conecutive "by 10" order? Are you allowed to bump later values by 10? In other words, are yo

Re: 6 Is A Mystery Number

2012-02-19 Thread BNig
Hi Scott, as of version 4.6 and later this does seem to give the same of the max scroll whether your force it by setting the scroll to a very large number or use this script: --- on mouseUp put the formattedHeight of field 1 into tFormat put the heigh

Re: Valentina 5 Platform Announced; Reports, Valentina Studio forPostgre, Valentina DB and SQLite

2012-02-19 Thread Ruslan Zasukhin
On 2/19/12 2:21 AM, "Michael Chean" wrote: > On another more direct note, I could not find the download link for the > version you announced above. And my > attempts to download the prior version kept getting a corrupt copy. > Could you post the download link if it's available for he Valentina S

Re: How to manage user alerts from apps when in the background

2012-02-19 Thread Keith Clarke
...thanks Todd. I wasn't aware that any apps could run in the background in iOS - so I was assuming notifications 'to' iOS 'for' the registered app there. I didn't find any non-iOS notification entries in the dictionary, so I assume this means OSX and Windows don't support generic notifications

Re: How to manage user alerts from apps when in the background

2012-02-19 Thread Todd Geist
Hi Keith, Just a note about iOS... As of this moment LiveCode apps running on iOS aren't capable of running in the background. They quit. Todd Keith Clarke February 19, 2012 11:49 AM Hi folks, Can LiveCode alert the user of things such as inbound

How to manage user alerts from apps when in the background

2012-02-19 Thread Keith Clarke
Hi folks, Can LiveCode alert the user of things such as inbound message when the app is in the background? I'm guessing this is all about OS-specific features - notifications on iOS, maybe Growl for OSX and whatever those system tray icons and 'tooltips' are on windows. If it's possible, wher

Re: Does 'quit' have a place in iOS apps?

2012-02-19 Thread Graham Samuel
Gerry, thanks for replying. That's what happens to my simple little app, but what about my favourite radio app, TuneIn Radio? It's feeding the BBC to me as I write this, but I could only access Mail by pressing the Home button after getting my radio station started, and it was definitely not k

How to use an array to solve the following...

2012-02-19 Thread Glen Bojsza
Having limited experience with arrays I thought this might be a good question to ask the group. Is the use of arrays to solve this appropriate? Efficient? Fast? If the answers are yes then it will help with the bigger problem that I am trying to address but for now I am looking for advice or help

RE: Visual effect problems in iOS

2012-02-19 Thread John Dixon
Hi... have a look at p.12 in the LC 5.0.2 release notes about the changes to using visual effects... > From: livf...@mac.com > Subject: Visual effect problems in iOS > Date: Sun, 19 Feb 2012 18:15:50 +0100 > To: use-livecode@lists.runrev.com > > Folks, I have been trying to use 'visual effect'

Visual effect problems in iOS

2012-02-19 Thread Graham Samuel
Folks, I have been trying to use 'visual effect' to make transitions between cards and between stacks on an iPad app and I am not getting anywhere. Firstly I can't get the transition between stacks to do anything. The syntax shown in the dictionary seems a bit ambiguous (I just want to move to a

Re: [OT] HyperCard and the Interactive Web

2012-02-19 Thread Richmond
On 02/19/2012 05:24 PM, Bernard Devlin wrote: I saw one version where they built a robot arm (using LEGO, I think) to turn the pages. The process had thereby been completely automated. I also understand there is a Japanese company that does such scanning (and reasonably priced). Last time I lo

Re: Strange Tooltip behavior

2012-02-19 Thread Pete
Thanks Klaus, good to know.. Pete On Sat, Feb 18, 2012 at 11:46 PM, Kay C Lan wrote: > As per the Dictionary: > > set the toolTipDelay to 0 -- no tooltip > > HTH > > On Sat, Feb 18, 2012 at 12:46 AM, Pete wrote: > > > I have some code that sets the tooltip of a control to either some text > or >

Re: Strange Tooltip behavior

2012-02-19 Thread Klaus on-rev
Hi Pete, Am 17.02.2012 um 17:46 schrieb Pete: > I have some code that sets the tooltip of a control to either some text or > empty depending on a condition. If the code to set the tooltip to empty is > executed, the tooltip is still displayed with its previous values. How can > I get rid of the

Re: [OT] HyperCard and the Interactive Web

2012-02-19 Thread Bernard Devlin
I saw one version where they built a robot arm (using LEGO, I think) to turn the pages. The process had thereby been completely automated. I also understand there is a Japanese company that does such scanning (and reasonably priced). Last time I looked, they had a backlog of months. I feel I am

Re: Does 'quit' have a place in iOS apps?

2012-02-19 Thread Gerry Orkin
LC iOS apps don't stay alive when you quit them with the Home button. You can save and restore things to give the impressions of a quit and resume, but the app itself is killed when you quit. In my experience the "on shutdown" command is the best place to put stuff you want to do when the app q

Re: Math problem

2012-02-19 Thread Kay C Lan
Once I put 17 into tRepeats so I do 102 cycles, I get very similar: For 102 cycles K's solution = 1657ms Paul's solution = 1453ms Geoff's solution = 1536ms For 102 cycles K's solution = 1638ms Paul's solution = 1455ms Geoff's solution = 1533ms For 102 cycles K's solution =

Re: Math problem

2012-02-19 Thread Kay C Lan
On Sun, Feb 19, 2012 at 5:32 PM, Kay C Lan wrote: > >put "For " & tRepeats & " cycles" & cr into R > > Oopps. That should read "For " & (6 * tRepeats) & " cycles" & cr into R Because of the nested repeat it's really doing 600 cycles. ___ use-li

Does 'quit' have a place in iOS apps?

2012-02-19 Thread Graham Samuel
AFAICS, iOS apps don't have an overt 'quit' button, since simply pressing the physical button on the device (I forgot its name) quits whatever is running. However this isn't quite right is it, since apps can go on being present and maybe actually running in the background. And then there is the

Re: Math problem

2012-02-19 Thread Kay C Lan
On Sun, Feb 19, 2012 at 4:48 PM, Geoff Canyon Rev wrote: > "repeat for each line" is incredibly fast, so I'm not surprised that it > beats an array. Interestingly, I was able to speed up all three solutions > by doing this: > > get aTime[i]["Increment"] > > and then using "it" in the math mak

Re: 6 Is A Mystery Number

2012-02-19 Thread Geoff Canyon Rev
Fair point -- no clue here. On Sun, Feb 19, 2012 at 1:02 AM, J. Landman Gay wrote: > I was wondering if the engine counts it regardless of its visibility. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

Re: Math problem

2012-02-19 Thread Geoff Canyon Rev
On Sun, Feb 19, 2012 at 12:58 AM, Kay C Lan wrote: > I've tweaked your solution only slightly as you solution only worked for > quarter hour increment, whilst both mine and Paul's would work for any > required increment . I simply replace your fixed 4 with the 3600/increment > that both Paul and I