re Ping timeout much longer with 10.3.7

2005-02-12 Thread Mr D Glasgow
Hmmm.  Just a wild guess, but 10.3.8 claims to fix some very long 
launch latencies in iCal, Mail. that were a problem in 10.3.7 etc.  
Could be connected?

On 10 Feb 2005, at 5:00 pm, [EMAIL PROTECTED] 
wrote:

Date: Thu, 10 Feb 2005 11:07:09 EST
From: [EMAIL PROTECTED]
Subject: OT:  Ping timeout much longer with 10.3.7
To: use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII
Our testers have discovered that when Revolution does a shell(ping) 
to a
server that isn't responding, that the timeouts are much different, 
depending on
which version of Mac OS X one is on.   In Mac OS 10.3.2, we get 
feedback in a
matter of seconds.   In Mac OS 10.3.7, it takes over 2 minutes to get
feedback.   This happens in the terminal window too, so it's not a Rev 
issue.   I'm
not into unix enough to know what to look for on Apple's site for a 
technote on
this.   ping latency?   What's interesting is that the same problem 
exists
for traceroute, even though the docs say that traceroute's wait-period 
is to
default to 3 seconds.   Any thoughts?
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread Alex Tweedly
MisterX wrote:
Mark,
I did say I already wrote a function to extract these
but is there no split combination that does this without
a slow loop?
Here's the two functions I used
function MergeColumns
end MergeColumns
I'm still trying to understand just what that one does (in all cases) so 
I'll start with the simpler one.

function ExtractItems tabl,column,adelimiter
 if adelimiter is not empty then
   set the itemdelimiter to adelimiter
 end if
 
 local a
 put  into a
 local x=1
 repeat for each line L in tabl
   put (item column of l) into line x of a
   add 1 to x
 end repeat
 return a
end ExtractItems
 

x is used only to count the number of lines,and changed only when a new 
line is added the end - so just use put after

function ExtractItems tabl,column,adelimiter
 local a
 if adelimiter is not empty then
   set the itemdelimiter to adelimiter
 end if
 
 repeat for each line L in tabl
   put (item column of L)  cr after a
 end repeat
 delete the last char of a 
 return a
end ExtractItems


Of which the MergeColumn could use lots of optimizing ;)
But they're slow functions compared to split or combine.
 

I can't see a way to use split/combine (except for the special case of 
first col).

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread Alex Tweedly
MisterX wrote:
I can't see any radically different approach - but you can certainly 
optimize the details

function MergeColumns
 local xp,y,linecount,z,c
 put the paramcount into xp
 
 put empty into y
 put empty into linecount
 repeat with x = 1 to xp
   put the number of lines in param(x)  comma after linecount
 end repeat
 delete last char of linecount
 put max(linecount) into linecount
 

Then either
 repeat with x = 1 to linecount
   repeat with y = 1 to xp
 put line x of param(y)  comma after line x of c
   end repeat
   delete last char of c
 end repeat
 

or (probably better)
 repeat with x = 1 to linecount
   repeat with y = 1 to xp
 put line x of param(y) comma after c
   end repeat
   delete last char of c
   put cr after c
 end repeat
 

It would be worth experimenting with turning the loop inside out
  repeat with x = 1 to xp
put param(x) into theLine
repeat with y = 1 to linecount
  put line y of theLine  comma after line y of c
end repeat
  end repeat
  repeat with y = 1 to linecount
 delete the last char of line y of c
  end repeat
but I don't think that will be faster.
--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread Richard Gaskin
Alex Tweedly wrote:
MisterX wrote:
or (probably better)
 repeat with x = 1 to linecount
   repeat with y = 1 to xp
 put line x of param(y) comma after c
   end repeat
   delete last char of c
   put cr after c
 end repeat
It would be worth experimenting with turning the loop inside out
  repeat with x = 1 to xp
put param(x) into theLine
repeat with y = 1 to linecount
  put line y of theLine  comma after line y of c
end repeat
  end repeat
  repeat with y = 1 to linecount
 delete the last char of line y of c
  end repeat
but I don't think that will be faster.
Darn, Alex, I got so used to being amazed with your nifty use of arrays 
I was betting on you coming up with a one-liner for this. :)

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: ODBC database access

2005-02-12 Thread Steve Paris
Thanks Jan. It works!
Jan Schenkel wrote:
Hi Steve,
Welcome to Revolution -- you'll find it a great tool
for interfacing with databases, even if it has a bit
of a learning curve when you're used to doing this
'the hypercard way' with backgrounds and cards.
Try using single quotes for the strings in your
SQL-suery, as in the following snippet :
--
put SELECT *   cr  \
   FROM Students   cr  \
   WHERE Students.StudentID = '  \
   studentID  ' into tSQL
--
Hope this helped,
Jan Schenkel.
=
Quartam - Tools for Revolution
http://www.quartam.com
=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)
		
__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


copy field to stack of unknown name

2005-02-12 Thread Bob Hartley
Hi All.
I have a wee database designer app for my students Armbase Database 
Designer. I would like to copy a field from my master database to the new 
database. The new database is named by the student so I don't know the name.

Therefor I cant use
on mouseUp
  copy field TextField of stack Armbase Database Designer to card 1 of 
stack MyDatabase.abd
end mouseUp

I thought of putting the file name of the stack into a variable tStackName 
and using the command
on mouseUp
  copy field TextField of stack Armbase Database Designer to card 1 of 
stack tStackName
end mouseUp

Any ideas?
All the best
Bob; Sunny Scotland
  

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: copy field to stack of unknown name

2005-02-12 Thread Klaus Major
Hi Bob,
Hi All.
I have a wee database designer app for my students Armbase Database 
Designer. I would like to copy a field from my master database to the 
new database. The new database is named by the student so I don't know 
the name.

Therefor I cant use
on mouseUp
  copy field TextField of stack Armbase Database Designer to card 
1 of stack MyDatabase.abd
end mouseUp

I thought of putting the file name of the stack into a variable 
tStackName and using the command
on mouseUp
  copy field TextField of stack Armbase Database Designer to card 1 
of stack tStackName
## leave the quotes and that should work fine :-)
end mouseUp
Any ideas?
A variable will do.
All the best
Bob; Sunny Scotland
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


How to build nice repport with Revolution

2005-02-12 Thread P2M
Hi,
I'm a new user of Revolution and it's a real pleasure to work with this 
soft.
I was also an old user of Hypercard since version 1.0 to the last one.

Revolution is nice, but I don't find à easy way to create nice repport.
Of course, for printing a text or a list I use revPrintField, but I 
want to create
some repports more complex.

Just for an exemple, if I want to print address labels using a MySQL
database and let the user choose his personnal size of labels.
How can I do that ?
I think that the repport builder doesn't more exist. I remember the
create repport from Hypercard, it was so nice and easy.
My software will be used by different countries, so I have to
let the choice of the paper size US Letter and A4 for exemple.
How I do that with Revolution ?
Thank you for your help
Philippe (Paris, France)
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread David Vaughan
On 13/02/2005, at 4:00, MisterX [EMAIL PROTECTED] wrote:
Xavier
I have not searched back to your original request, but if I understand 
it correctly then you wish to be able to de-merge columns from an 
array, and that these columns may be of the data or of the keys. Let us 
assume you have an array where an element is defined by:
put n1,n2 into myArray[a,b]

Here, you can extract anything from the keys or the element using split 
and combine. For example, this code places all four columns in separate 
variables  v1-v4 (untested)

put the keys of myArray into tKeys
split tKeys with return and comma
put the keys of tKeys into v1
combine tKeys   -- discards the keys
put tKeys into v2
combine myArray  -- discards the keys
split myArray with return and comma
put the keys of myArray into v3
combine myArray
put myArray into v4
Now, v1=a, v2=b, v3=n1, v4=n2
(or close enough if I made a coding error)
I have a column merge function somewhere. I will look it up to see if 
it is any improvement over what you have.

regards
David
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread David Vaughan
Moron me! Doing some edits from my test script I omitted the line add 
1 to i just before  end repeat

On 13/02/2005, at 10:43, David Vaughan wrote:
Xavier
This is the merge part
Assume you have the following two variables:
v1 contains a
v2 contains b
  split v2 with return
  put 1 into i
  repeat for each line x in v1
put v2[i] into myArray[x]
  end repeat
  combine myArray with return and comma
myArray is now a list whose first line is a,b
This code avoids any repeat with i = 1 to n loops and is thus fairly 
linear in time taken with longer lists.

Incidentally, I left with return off a couple of lines in the 
previous extract code.

I have not done any speed tests.
Hope this is relevant.
regards
David
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Split, combine ok but where's extract?

2005-02-12 Thread MisterX

Just sweet! I'll test it monday (or before) on my 2k lines tables ;)

Surely will be shocking and you'll be famous!

Gza

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 David Vaughan
 Sent: Sunday, February 13, 2005 00:46
 To: use-revolution@lists.runrev.com
 Subject: Re: Split, combine ok but where's extract? 
 
 Moron me! Doing some edits from my test script I omitted the line add
 1 to i just before  end repeat
 
 On 13/02/2005, at 10:43, David Vaughan wrote:
 
  Xavier
 
  This is the merge part
  Assume you have the following two variables:
  v1 contains a
  v2 contains b
 
split v2 with return
put 1 into i
repeat for each line x in v1
  put v2[i] into myArray[x]
end repeat
combine myArray with return and comma
 
  myArray is now a list whose first line is a,b
 
  This code avoids any repeat with i = 1 to n loops and is 
 thus fairly 
  linear in time taken with longer lists.
 
  Incidentally, I left with return off a couple of lines in the 
  previous extract code.
 
  I have not done any speed tests.
 
  Hope this is relevant.
 
  regards
  David
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-revolution
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Split, combine ok but where's extract?

2005-02-12 Thread Alex Tweedly
David Vaughan wrote:
On 13/02/2005, at 4:00, MisterX [EMAIL PROTECTED] wrote:
Xavier
I have not searched back to your original request, but if I understand 
it correctly then you wish to be able to de-merge columns from an 
array, and that these columns may be of the data or of the keys. Let 
us assume you have an array where an element is defined by:
put n1,n2 into myArray[a,b]

Here, you can extract anything from the keys or the element using 
split and combine. For example, this code places all four columns in 
separate variables  v1-v4 (untested)

put the keys of myArray into tKeys
split tKeys with return and comma
put the keys of tKeys into v1
combine tKeys   -- discards the keys
put tKeys into v2
combine myArray  -- discards the keys
split myArray with return and comma
put the keys of myArray into v3
combine myArray
put myArray into v4
Now, v1=a, v2=b, v3=n1, v4=n2
(or close enough if I made a coding error)
I have a column merge function somewhere. I will look it up to see if 
it is any improvement over what you have.
David,
I may have missed something in the original problem description, but I 
think there's a problem with this scheme.

If you take the case of
  put 1,2 into myArray[a,b]
  put 1,3 into myarray[c,d]
I believe what Xavier wants (at least, what his posted code gives - 
though it used a simple table not keys) is
v1 = a,c
v2 = b,d
v3 = 1,1
v4 = 2,3

Note particularly v3 - using the various repeat forms, it has each 
item from the column.

split/combine will remove duplicates - and hence give
v1 = a,c
v2 = b,d
v3 = 1
v4 = 2,3
There's a similar problem with the merge code - repeated values in a 
column cause loss of data.

--
Alex Tweedly   http://www.tweedly.net

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: does a group weigh 30K?

2005-02-12 Thread Richard Gaskin
Erik Hansen wrote:
does a group weigh 30K?
i did check the docs...
I'm not sure if object sizes are listed there, but I made two stacks and 
got these in the Finder's Get Info:

New stack with no objects:  363 bytes
New stack with empty group: 394 byes
So this difference is about 30, but just bytes instead of kilobytes. :)
--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: does a group weigh 30K?

2005-02-12 Thread J. Landman Gay
On 2/12/05 6:50 PM, Erik Hansen wrote:
does a group weigh 30K?
It depends on what's in it.
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: does a group weigh 30K?

2005-02-12 Thread Erik Hansen

 New stack with no objects:  363 bytes
 
 New stack with empty group: 394 byes
 
 So this difference is about 30, but just bytes
 instead of kilobytes. :)
 
   Richard Gaskin
   Fourth World Media Corporation
   Developer of WebMerge: 
   Publish any database on any Web site

classic Gaskin response


Jacqueline Landman Gay
[EMAIL PROTECTED]
HyperActive Software
http://www.hyperactivesw.com

 It depends on what's in it.

Zen


=
[EMAIL PROTECTED]http://www.erikhansen.org



__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: sockets and Windows behavior

2005-02-12 Thread Dar Scott
On Feb 12, 2005, at 8:36 AM, John Rule wrote:
  Maybe the problem is in doing broadcast messages in general on 
Windows
(this same code works fine on OSX...Linux is another issue 
altogether). It
doesn't work consistently (I do not always get the callback to my 
'with'
message, the average is 6 out of 10).

  Using a 'sniffer', I am ALWAYS getting my response from the devices. 
It
seems like it is just that the messages are not always finding their 
way
back to my callback handler (in Windows XP).

Is this a problem, or is there a better way?
If the devices are responding to the ip address and port that sent the 
query, then this might be your problem:  The doc is lacking on using 
UDP.  The callback for 'open datagram socket' is not for open.  (It 
would be sent immediately, if it was.)  It is for read.  Scott Raney 
says to use that instead of read.

If the devices are not responding to the port that sent the broadcast, 
but to some specific port then I guess the above does not apply; you 
would be using accept.  If the messages are very large or a very large 
number comes in at once, then Windows will lose some.  There are some 
system parameters that can be tweeked, but I forgot what they are.

Dar
--
**
DSC (Dar Scott Consulting  Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution