Re: Why Save the Mac Mini

2007-07-14 Thread Judy Perry

Paul,

Sorry, "Katheryn" is my alternate persona  (Katherine Roet Swynford,
sister of the Philippa Roet who married the 14th C. poet Geoffrey
Chaucer).  I've studied her for about 30 years.

I'm using her now as my normal addy is unavailable due to system update.

I suspect a woman 600+ years deceased shouldn't vote.

;-)

Judy

On 7/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Judy (Katheryn),
Children, probably OK.
Dog votes, phantom votes, duplicate votes, definitely not OK.
As of this morning, only 8877 votes to go...
When the time comes that we all need a 30" monitor just to see the opening
splash screen in MS Word, those monitors will be $250 or less. I hope.
Have you been enjoying our heatwave?
Paul Looney
San Dimas
PS I'm sure you have a hundred good friends, anxious to vote when they know
about the petition: www.petitiononline.com/macminsa/petition.html



**
 Get a sneak peak of the all-new AOL at
http://discover.aol.com/memed/aolcom30tour
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "words" within quotations, smart quotes v double quotes

2007-07-14 Thread Mark Swindell
Thanks for the responses.  What I'm trying to accomplish is to strip  
the quotes out of random text imported to a field, act on the  
remaining text word by word, char by char, and then replace the  
quotes when I'm done.  The problem arises in that when double quotes  
are present in the text everything within them is reduced to a single  
"word" for Rev.  "What are you doing?" becomes a single word with 19  
chars rather than four words of different lengths.


At any rate, I used a different strategy and changed out the quotes  
for something obscure, and it works fine.  But what is the ascii for  
smart quotes?


Thanks,
Mark

On Jul 14, 2007, at 5:20 PM, Mark Smith wrote:


May not be practical for the context you're in, but

put quote & "How are you" & quote into tStr
put word 2 of (char 2 to -2 of tStr) -- brackets necessary

seems to get the right thing.

Best,
Mark


On 14 Jul 2007, at 23:58, Mark Swindell wrote:


"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to  
_"How_ as the first of three words, _are_ as the second, and  
_you?"_ as the third?  I'm thinking I want to change the double  
quotes for "smart quotes" or curved quotes before acting on the  
text, but how is that handled by Rev?


Thanks,
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



"Many of life's failures are people who did not realize how close  
they were to success when they gave up."

-Thomas Edison



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Log scales = animation scales?

2007-07-14 Thread Scott Rossi
Recently, David Bovill wrote:

> Are there any ideas for natural type movements - straight acceleration
> (maybe with ease in and / or ease out)?

You're welcome to use the following (watch wraps).  It's set up as a handler
with parameters to allow for easing (moving) multiple objects at once.  So
you can place the code in the card script, for example, and call
"easeObject..." for each object on the card you want to move.
(Requires Rev 2.7 or later for object fading.)

# EASE IN/OUT ANIMATION SCRIPT
#
# VARIABLE DESCRIPTIONS
# pObj = LONG ID OF OBJECT TO MOVE
# pStartLoc = STARTING LOCATION
# pDestLoc = ENDING LOCATION
# pMethod = "IN" OR "OUT" -- "IN" DECELERATES, "OUT" ACCELLERTATES
# pDuration = DURATION OF EASE EFFECT
# pStartTime = TIME IN MILLISECONDS WHEN EASE EFFECT BEGINS
# pFade = "IN" OR "OUT" -- OPTIONAL FADE IN/OUT OF EASED OBJECT
# pHost = LONG ID OF OBJECT TO RECEIVE 'EASEDONE' MESSAGE

on easeObject 
pObj,pStartLoc,pDestLoc,pMethod,pDuration,pStartTime,pFade,pHost
  put (the millisecs - pStartTime)/pDuration into phi
  # REQUIRED FOR SHORT MOVE TIMES
  if phi > 1 then put 1 into phi
  # USE APPROPRIATE FUNCTION
  if pMethod = "in" then put (2*phi - phi^2) into tEase # EASE IN
  if pMethod = "out" then put phi^2 into tEase # EASE OUT
  # MOVE OBJECT
  put (item 1 of pDestLoc - item 1 of pStartLoc) into xDist
  put (item 2 of pDestLoc - item 2 of pStartLoc) into yDist
  put item 1 of pStartLoc + round(tEase * xDist) into newX
  put item 2 of pStartLoc + round(tEase * yDist) into newY
  set loc of pObj to newX,newY
  if pFade = "in" then set blendLevel of pObj to 100 - (phi * 100)
  if pFade = "out" then set blendLevel of pObj to (phi * 100)
  # EXIT WHEN OBJECT REACHES ITS DESTINATION
  if ((newX,newY) = pDestLoc) or (phi >= 1) then
send "easeDone pObj" to pHost
exit easeObject
  end if
  # LOOP SCRIPT
  send "easeObject 
pObj,pStartLoc,pDestLoc,pMethod,pDuration,pStartTime,pFade,pHost" to me in
10 milliseconds
end easeObject


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Menu text formatting documentation?

2007-07-14 Thread J. Landman Gay

David Bovill wrote:

Specifically - what does !u mean?


This is from the MetaCard documentation regarding menu buttons:

***
There are several special characters that you can put at the start of a 
line in the button contents to indicate that an item should be something 
other than a simple rectangle button:


-  makes a divider between groups of menu items
!c makes the menu item a hilited check box
!n makes the menu item an unhilited check box
!r makes the menu item a hilited radio button
!u makes the menu item an unhilited radio button
(  makes the menu item disabled

***

I'm not sure where it is in the Rev docs any more. It used to be in the
reference materials that Jeanne wrote for Rev 1.x but RR removed a lot 
of those stacks.


Note that not all menuitem styles above are supported on all operating 
systems.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "words" within quotations, smart quotes v double quotes

2007-07-14 Thread J. Landman Gay

J. Landman Gay wrote:

Mark Swindell wrote:

"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to _"How_ 
as the first of three words, _are_ as the second, and _you?"_ as the 
third?  I'm thinking I want to change the double quotes for "smart 
quotes" or curved quotes before acting on the text, but how is that 
handled by Rev?


Replacing the quotes with single or curly quotes will count as a 
character and you'll get unusual results (word 1 will be 'How). 
Replacing the straight quotes with empty will give you the actual text 
string. Or if you want to get fancy:


  put quote & "how are you" & quote into tStr
  put word 2 of the value of word 1 of tStr -- "are"


Re-reading your note, I think I misunderstood. You actually do want to 
include the quote character as part of the word, right? In that case, 
yes, replacing quotes with curly or single quotes will give you what you 
want.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "words" within quotations, smart quotes v double quotes

2007-07-14 Thread J. Landman Gay

Mark Swindell wrote:

"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to _"How_ as 
the first of three words, _are_ as the second, and _you?"_ as the 
third?  I'm thinking I want to change the double quotes for "smart 
quotes" or curved quotes before acting on the text, but how is that 
handled by Rev?


Replacing the quotes with single or curly quotes will count as a 
character and you'll get unusual results (word 1 will be 'How). 
Replacing the straight quotes with empty will give you the actual text 
string. Or if you want to get fancy:


  put quote & "how are you" & quote into tStr
  put word 2 of the value of word 1 of tStr -- "are"


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Log scales = animation scales?

2007-07-14 Thread David Bovill

I am playing with some animation "zoom" effects - and have a maths question.
Say I want to scale something between 1 and 72 in10 steps - so i need to
generate a series of numbers between 1 and 72. Now i could just say each
step is 7 - but more natural would be for it to start slower and get faster
so i want an exponential series with 10 steps or something like that :)

Are there any ideas for natural type movements - straight acceleration
(maybe with ease in and / or ease out)?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why Save the Mac Mini

2007-07-14 Thread Scott Kane

From: "Mark Smith" <[EMAIL PROTECTED]>


Who was 666? Or 664 (neighbour of the beast)?


Aw -  I think he unsubbed from the mailing list.  

Scott
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "words" within quotations, smart quotes v double quotes

2007-07-14 Thread Mark Smith

May not be practical for the context you're in, but

put quote & "How are you" & quote into tStr
put word 2 of (char 2 to -2 of tStr) -- brackets necessary

seems to get the right thing.

Best,
Mark


On 14 Jul 2007, at 23:58, Mark Swindell wrote:


"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to  
_"How_ as the first of three words, _are_ as the second, and  
_you?"_ as the third?  I'm thinking I want to change the double  
quotes for "smart quotes" or curved quotes before acting on the  
text, but how is that handled by Rev?


Thanks,
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "words" within quotations, smart quotes v double quotes

2007-07-14 Thread David Bovill

Non - quote chars including single "'" are usually treated as just another
char. So yes replace them with empty first.

On 14/07/07, Mark Swindell <[EMAIL PROTECTED]> wrote:


"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to _"How_
as the first of three words, _are_ as the second, and _you?"_ as the
third?  I'm thinking I want to change the double quotes for "smart
quotes" or curved quotes before acting on the text, but how is that
handled by Rev?

Thanks,
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: implicitVars [Was: Re: Best Practices in Rev development]

2007-07-14 Thread David Bovill

It's just a simplified example Mark - to show the principle. the real world
script was a complex one that searched a stack and added things to an index
when they matched a certain criteria - I removed the local variable
declaration from the script and it started to fail in the cases where no
matches were found.

The principle is that if you use call-by-reference handlers inside repeat
loops they are not automatically initiated and you should implicitly declare
them either by using "local" or "put empty into..." or "put 0 into..."

On 15/07/07, Mark Smith <[EMAIL PROTECTED]> wrote:


I'm curious - what's the advantage over 'put "a" after string' ?

Best,

Mark

On 14 Jul 2007, at 19:48, David Bovill wrote:

> on mouseUp
>repeat 0
>addAnA string
>end repeat
>put string
> end mouseUp
>
> on addAnA @string
>put "a" after string
> end addAnA
>

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: implicitVars [Was: Re: Best Practices in Rev development]

2007-07-14 Thread Mark Smith

I'm curious - what's the advantage over 'put "a" after string' ?

Best,

Mark

On 14 Jul 2007, at 19:48, David Bovill wrote:


on mouseUp
   repeat 0
   addAnA string
   end repeat
   put string
end mouseUp

on addAnA @string
   put "a" after string
end addAnA



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why Save the Mac Mini

2007-07-14 Thread Mark Smith

Who was 666? Or 664 (neighbour of the beast)?
:)
Mark

On 14 Jul 2007, at 19:34, Lynn Fredricks wrote:


PS I'm sure you have a hundred good friends, anxious to vote
when they know about the petition:
www.petitiononline.com/macminsa/petition.html


I scored the 999 position on the the petition :-)

The Mac Mini is the only mac in my office.

Best regards,

Lynn Fredricks
Worldwide Business Operations
Runtime Revolution Ltd
http://www.runrev.com


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


"words" within quotations, smart quotes v double quotes

2007-07-14 Thread Mark Swindell

"How are you?" is considered a single word by Rev.

How are you?  is considered three words by Rev.

Working with text dialog, how would one get Rev to respond to _"How_  
as the first of three words, _are_ as the second, and _you?"_ as the  
third?  I'm thinking I want to change the double quotes for "smart  
quotes" or curved quotes before acting on the text, but how is that  
handled by Rev?


Thanks,
Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Wireframe animation engine examples?

2007-07-14 Thread David Bovill

I'd like to take a look at some examples of wire frame animation  - for
speed and flexibility -are there any knocking around?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why Save the Mac Mini

2007-07-14 Thread SimPLsol
Lynn,
Who will be ?
Paul Looney


**
 Get a sneak peak of the 
all-new AOL at http://discover.aol.com/memed/aolcom30tour
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Get the RGB values for the pixel under the mouse.

2007-07-14 Thread Chipp Walters

On 7/14/07, James Hurley <[EMAIL PROTECTED]> wrote:


Got to go now. I'm working on my new invention. It's round and rolls.
Going to call it the "wheel."


If you get the patent, let me know and I'll help you raise money for
your company. We can hire the same attorney SCO had-- I hear they're
looking for business ;-)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


KeyDown or optionKeyDown - bug or not?

2007-07-14 Thread Mark Schonewille

Hello,

As you can read here...



an incompatibility with HyperCard has been created. This  
incompatibility may cause some people who are converting HyperCard  
stacks to Revolution a lot of additional work, because they have to  
check and possibly change all field scripts that interact with  
keyDown and optionKeyDown messages. I would appreciate to know your  
opinion about this bug. My opinion is that the bug has not been  
fixed, as long as this incompatibility exists, but not everybody  
shares my opinion (naturally). Please reply on- or off-list.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: implicitVars [Was: Re: Best Practices in Rev development]

2007-07-14 Thread David Bovill

On 29/06/07, Jim Ault <[EMAIL PROTECTED]> wrote:



I am a bit confused.. why would you pass a param then set it to empty?
or establish the param and declare it as a local, as you do later?

What is the benefit?



Finally - found a reason :)

Call by references ! I quite often in repeat loops use a call-by-reference
command to increment (or modify) some value. If you do not implicity declare
the variable you get a nasty error when the repeat loop is not executed
because something is empty an example may help.

There may be other examples, but take this simplified script:

on mouseUp
   repeat 0
   addAnA string
   end repeat
   put string
end mouseUp

on addAnA @string
   put "a" after string
end addAnA

This does not result in an empty string, but "string"
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Menu text formatting documentation?

2007-07-14 Thread David Bovill

Specifically - what does !u mean?

On 14/07/07, David Bovill <[EMAIL PROTECTED]> wrote:


Hi - does anyone know where I can dig out the documentation regarding the
various special chars you can use in menus?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Referencing a stack that is not open

2007-07-14 Thread David Bovill

On 14/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Dan,
David provided a very good, and very concise, explanation.
I'd only add two things:
1. If you go invisible to a stack, that stack will remain invisible when
it
is closed. So the next time you go to it, it is invisible - but open.
Drove me
crazy until I realized what was happening.



Only if the destroyStack is false - in which case when it is closed it
remains in memory retaining its properties. Otherwise it is reloaded from
the file and unless it was actively saved the visible status as with all
other properties will be reverted to the last saved status.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Why Save the Mac Mini

2007-07-14 Thread Lynn Fredricks
> PS I'm sure you have a hundred good friends, anxious to vote 
> when they know about the petition: 
> www.petitiononline.com/macminsa/petition.html

I scored the 999 position on the the petition :-)

The Mac Mini is the only mac in my office.

Best regards,

Lynn Fredricks
Worldwide Business Operations
Runtime Revolution Ltd
http://www.runrev.com
 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Get the RGB values for the pixel under the mouse.

2007-07-14 Thread Klaus Major

Hi James,


...
Jim,
It's easier than that. Check the mouseColor function.

-Chipp



Chipp,

Well, I never. Rev seems to have thought of everything.
Got to go now. I'm working on my new invention. It's round and  
rolls. Going to call it the "wheel."


Hmm, sounds interesting but I doubt that it has any commercial  
potential, sorry.


;-)


Jim


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Referencing a stack that is not open

2007-07-14 Thread SimPLsol
Dan,
David provided a very good, and very concise, explanation.
I'd only add two things:
1. If you go invisible to a stack, that stack will remain invisible when it 
is closed. So the next time you go to it, it is invisible - but open. Drove me 
crazy until I realized what was happening.
2. It is critical to "delete" (badly named, indeed) any stack loaded into 
memory by opening or referencing - if other users can access it. For instance, 
say you have a data stack that is shared by several users on a network. User A 
opens it and it loads into RAM, User B opens it, makes some changes and then 
closes it (yes, it is possible for A and B to both be writing to the same open 
file - at least in OS X, this was impossible in OS 9). Now A closes the stack - 
and overwrites B's changes. This problem seems to be magnified if the data is 
stored on a NAS.

Here is an abbreviated sample of the way we do it:
on getSomeData pTheSourceStack
  set lockMessages to true
  go invisible to pTheSourceStack
  get field "Some Important Field" of stack pTheSourceStack
  delete stack pTheSourceStack
end getSomeData

The reason for the "set lockMessages to true" is the stacks we open in this 
way have a preOpenStack script that makes them visible (in case we want to open 
them directly, instead of remotely). Without the "lockMessages" they would be 
come visible, then invisible when the next line executes "go invisible to 
pTheSourceStack".
You can also open the source stack, quickly transfer the required info to 
variables, then immediately delete the source stack.
Paul Looney


**
 Get a sneak peak of the 
all-new AOL at http://discover.aol.com/memed/aolcom30tour
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: localizing software

2007-07-14 Thread Mark Talluto


On Jul 14, 2007, at 2:10 AM, Scott Kane wrote:



Hey - nice looking software, Mark.  I'd never of thought of Vision  
tools. Looks nicely done.


Thanks Scott.  I have learned a lot about vision diagnostic tools.


Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need fore speed...

2007-07-14 Thread viktoras didziulis

Yest it is at
http://www.sqlite.org/cvstrac/wiki?p=FtsTwo
full text search with recently added complete Unicode support via ICU 
(http://www.icu-project.org/)...


Viktoras

David Bovill wrote:

Interesting I read somewhere that Google added full text search to
sqlLite codebase recently (last 6 months)?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need fore speed...

2007-07-14 Thread David Bovill

Interesting I read somewhere that Google added full text search to
sqlLite codebase recently (last 6 months)?

On 14/07/07, viktoras didziulis <[EMAIL PROTECTED]> wrote:


one more alternative - works very fast - use sqlite in-memory database:
1) download sqlite3 command-line executable
2) run shell (cmd on windows) and create an in-memory database by
executing:
sqlite3 :memory:
3) assuming your data consists of 4 fields (columns) that are tab
delimited and stored in file table.csv type or copy paste and execute
the following commands in your sqlite3 session:

create table myTable (a varchar, b varchar, pepMass float, d integer);
.separator \t
.import table.csv myTable

4) Now all you need to do is to store a list of update statements like
this in text file (lets name it q.sql):
UPDATE myTable SET  a='whatever', b='whatever',  d='100' WHERE pepMass
BETWEEN   2267. AND 2267.;
UPDATE myTable SET a='whatever', b='whatever',  d='1000' WHERE pepMass
BETWEEN   2268. AND 2268.;

and
5) execute the following sql string in sqlite:
.read q.sql

6) Thats it. Now you can get your result:
.output myTable.csv
SELECT * FROM myTable;
.output stdout

Here you can use Revolution to create a list of multiple UPDATES :-).
But I do not know how to use in memory sqlite database directly from
Revolution :-(.

Viktoras


.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Why Save the Mac Mini

2007-07-14 Thread SimPLsol
Judy (Katheryn),
Children, probably OK.
Dog votes, phantom votes, duplicate votes, definitely not OK.
As of this morning, only 8877 votes to go...
When the time comes that we all need a 30" monitor just to see the opening 
splash screen in MS Word, those monitors will be $250 or less. I hope.
Have you been enjoying our heatwave?
Paul Looney
San Dimas
PS I'm sure you have a hundred good friends, anxious to vote when they know 
about the petition: www.petitiononline.com/macminsa/petition.html



**
 Get a sneak peak of the all-new AOL at 
http://discover.aol.com/memed/aolcom30tour
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need fore speed...

2007-07-14 Thread viktoras didziulis

one more alternative - works very fast - use sqlite in-memory database:
1) download sqlite3 command-line executable
2) run shell (cmd on windows) and create an in-memory database by executing:
sqlite3 :memory:
3) assuming your data consists of 4 fields (columns) that are tab 
delimited and stored in file table.csv type or copy paste and execute 
the following commands in your sqlite3 session:


create table myTable (a varchar, b varchar, pepMass float, d integer);
.separator \t
.import table.csv myTable

4) Now all you need to do is to store a list of update statements like 
this in text file (lets name it q.sql):
UPDATE myTable SET  a='whatever', b='whatever',  d='100' WHERE pepMass 
BETWEEN   2267. AND 2267.;
UPDATE myTable SET a='whatever', b='whatever',  d='1000' WHERE pepMass 
BETWEEN   2268. AND 2268.;


and
5) execute the following sql string in sqlite:
.read q.sql

6) Thats it. Now you can get your result:
.output myTable.csv
SELECT * FROM myTable;
.output stdout

Here you can use Revolution to create a list of multiple UPDATES :-). 
But I do not know how to use in memory sqlite database directly from 
Revolution :-(.


Viktoras


.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Get the RGB values for the pixel under the mouse.

2007-07-14 Thread James Hurley


Message: 2
Date: Thu, 12 Jul 2007 18:48:42 -0600
From: "Chipp Walters" <[EMAIL PROTECTED]>
Subject: Re: Get the RGB values for the pixel under the mouse.
To: "How to use Revolution" 
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jim,
It's easier than that. Check the mouseColor function.

-Chipp



Chipp,

Well, I never. Rev seems to have thought of everything.

Got to go now. I'm working on my new invention. It's round and rolls.  
Going to call it the "wheel."


Jim

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Menu text formatting documentation?

2007-07-14 Thread David Bovill

Hi - does anyone know where I can dig out the documentation regarding the
various special chars you can use in menus?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OT: my friendly blue tooth hacker

2007-07-14 Thread David Bovill

No - thats right Richard (in terms of my / the user experience). I'm still
not sure how it happened - which is what I am trying to find out. AFAIK -
you cannot execute a file you upload by Bluetooth and the user has to accept
- neither of which I did.

On 14/07/07, Richard Gaskin <[EMAIL PROTECTED]> wrote:


David Bovill wrote:

> On 13/07/07, Richard Gaskin  wrote:
>>
>> That Bluetooth is merely discoverable doesn't seem alarming in itself.
>> Where I'm concerned is that a stranger can not only upload files to the
>> target computer but also execute them.
>
> Do you know that to be the case?

All I know about this alleged security breach is what you've written in
your descriptions of it.

If I've understood this correctly, the reported issue involved strangers
uploading and playing files on your computer without your permission or
even knowledge.  Perhaps I misunderstood.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The "presevation" variable ?

2007-07-14 Thread Mark Schonewille

Yes. You are correct.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 14-jul-2007, om 12:30 heeft David Bovill het volgende geschreven:


OK - so its a global property - not local to a particular script?



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: whole( )

2007-07-14 Thread FlexibleLearning
This is getting closer but is still not foolproof...

on mouseUp
answer whole(fld "str",fld "source")
end  mouseUp

function whole stringToFind, sourceText
--| Based on a  script by Sakari Ruoho <[EMAIL PROTECTED]>
--| Tests  for a whole word or phrase in a variable. Returns TRUE or FALSE
--|  Handles single punctuation and hyphenated words.
--| Fails with  unbalanced double punctuation (brackets, quotes etc).
--| Fails if the  string to find is punctuation only
--| Fails with leading  punctuation
--| Does not support multiple-line matching (ignores  ends-of-line)

# set the caseSensitive to true # Optional  setting
set the wholematches to TRUE
if NOT  incPunctuation(stringToFind)
then put stripPunctuation(sourceText)  into sourceText
put 0 into tSkip
repeat while  wordOffset(word 1 of stringToFind, sourceText, tSkip) >  0
add wordOffset(word 1 of stringToFind, sourceText,  tSkip) to tSkip
put TRUE into  tReturn
repeat with x=2 to the number of words in  stringToFind
try
get matchText(word x of  stringToFind, "^" & word (tSkip-1+x) of sourceText & 
"$"  )
catch  errorNum
put FALSE into  tReturn
exit  repeat
end  try
if it is FALSE  then
put stripPunctuation(word  (tSkip-1+x) of sourceText) into  strippedString
try
get matchText(word  x of stringToFind, "^" & strippedString &  "$")
catch  errorNum
put FALSE  into tReturn
exit  repeat
end  try
if it is not TRUE  then
put FALSE into  tReturn
exit  repeat
else
put TRUE into  tReturn
end  if
else
put TRUE into  tReturn
end if
end  repeat
if tReturn is TRUE  then
return  TRUE
exit whole
end  if
end repeat
return FALSE
end whole

function  incPunctuation tString
repeat for each char c in  (";:.,!'?[](){}"&return"E)
if c is in tString  then return TRUE
end repeat
return FALSE
end  incPunctuation

function stripPunctuation tString
repeat for  each char c in (";:.,!'?[](){}"&return"E)
replace c with SPACE in tString
end repeat
return  tString
end stripPunctuation
 
 
/H
 
Hugh Senior
FLCo



   
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The "presevation" variable ?

2007-07-14 Thread David Bovill

OK - so its a global property - not local to a particular script?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Need fore speed...

2007-07-14 Thread viktoras didziulis

Rob,

use the filter:
1) Modify your table so that each line starts with line number as the 
first item;
2) Copy the original table variable (say it is called myTable) to 
tableCopy. Filter modifies contents of variable, so make sure it won't 
touch the original data;

3) use the filter like this:
   filter tableCopy with  *2267.10*
4) now all lines that contain anything between 2267.1000 and 2267.1099 
are stored in tableCopy
5) as these lines contain line numbers too (that's what step 1 was used 
for), now you can cycle through the 1st item of each line in the result 
and find line numbers of the original data that matched the criteria:


set the itemdelimiter to tab
repeat for each line myFilteredLine in tableCopy
   put item 1 of myFilteredLine into lineNo
   put line lineNo of myTable into varModifiedLine
   #modify varModifiedLine contents here
   put varModifiedLine into line lineNo of myTable
end repeat

6) you can put multiple obsMass values and corresponding modifications 
into a variable (e.g. varObsMass) as tab delimited list:

*2267.10*   modified_string_1
*2267.11*   modified_string_2
...
*2271.16*   modified_string_n

and then cycle through each pair of pepMass value and a corresponding 
modification string:


set the itemdelimiter to tab
repeat for each line myConstraintsLine in varObsMass
   put item 1 of myConstraintsLine into varConstraint
   put item 2 of myConstraintsLine into varModifiedLine
   put myTable into tableCopy
   filter newVar with varConstraint

   repeat for each line myFilteredLine in tableCopy
   put item 1 of myFilteredLine into lineNo
   put varModifiedLine into line lineNo of myTable
   end repeat

end repeat

Best wishes!
Viktoras

Beynon, Rob wrote:


Some questions - is there advantage in sorting the list by mass first?

Would I gain speed by using integer arithmetic (is that even possible?) or by 
matching the numbers as strings?

 


And most importantly..

Is there an elegant rev way of handling this that I don't even know about?!

Thanks

Rob

 

 




Prof R J Beynon[h]
Proteomics and Functional Genomics Group
Faculty of Veterinary Science
University of Liverpool
Crown Street, Liverpool L69 7ZJ



Phone: +44 151 794 4312

Fax: +44 151 794 4243

Email: [EMAIL PROTECTED]

http://www.liv.ac.uk/pfg



 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

  


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need fore speed...

2007-07-14 Thread Mark Smith

One approach might be to do this:

  set the itemDelimiter to tab
  repeat for each line L in tData
add 1 to counter
put counter & comma after tArray[item 3 of L]
  end repeat

Now you have an array, the keys of which are the pemMass values, and  
the contents of which are item lists of the line numbers with those  
values. You can now do your comparisons to obsMass on the keys, and  
those which meet the criteria will give you a list of lines in your  
original data.


It's still going to be a longish process, though!

Best,

Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need fore speed...

2007-07-14 Thread Mark Schonewille

Ron,

Untested, but I believe you need something like the following:

function findmatches theData,theNumber,theTolerance
  put char 1 to -2 of theNumber into myTempNr
  filter theData with "|*" & tab & "*" & tab & myTempNr & "*" & tab
  set the itemDel to tab
  repeat for each line myLine in theData
if (item 3 of myLine >= theNumber - theTolerance) and \
(item 3 of myLine <= theNumber + theTolerance) then
put myLine & cr after myNewData
  end repeat
  return myNewData
end findMatches

I didn't see any brackets in your e-mail, but I did see a "|" at the  
beginning of each line. Maybe you need to adjust the script for that.


Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 14-jul-2007, om 9:32 heeft Beynon, Rob het volgende geschreven:

I don't want to be accused of passing effort out to the list, but I  
would like to know, from the experts, the fastest way to execute  
some code..




I have a file of tab delimited items like so...16,000 lines long  
read into a single variable. (The right bracket is part of the  
file, not a quote mark)




I now want to search each line, and match an input number (obsMass)  
against the third item of each line (pepMass)


If it matches, within a certain tolerance (expressed in parts per  
million (ppm)  - the tolerance changes with the magnitude of the  
number) I want to do something with that line. Ties (or multiple  
hits to the same obsMass) are OK.




I then want to repeat that process for several thousand different  
values of obsMass. In other words, I will evaluate the mass  
matching loop tens of millions of times.




Some questions - is there advantage in sorting the list by mass first?

Would I gain speed by using integer arithmetic (is that even  
possible?) or by matching the numbers as strings?




And most importantly..

Is there an elegant rev way of handling this that I don't even know  
about?!


Thanks

Rob







Prof R J Beynon[h]
Proteomics and Functional Genomics Group
Faculty of Veterinary Science
University of Liverpool
Crown Street, Liverpool L69 7ZJ



Phone: +44 151 794 4312

Fax: +44 151 794 4243

Email: [EMAIL PROTECTED]

http://www.liv.ac.uk/pfg





___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: localizing software

2007-07-14 Thread Eric Chatonet

Hi Graham,

Le 13 juil. 07 à 20:37, Graham Samuel a écrit :


My point is that either version of the above is preferable to writing

Answer myStringConstant468

In other words, the author should still use meaningful names for  
his/her strings in his/her own native language, otherwise all  
coding will have to be done with a dictionary, which takes away  
some of the charm of the human-readable scripting language which we  
all know and love. I suppose this is really saying that what Eric  
calls the ID of the text string should clearly remind the developer  
what the string was intended to say.


I hope other people agree with this approach.


From a productive point of view, I am not sure to agree ;-)
In the app we have in beta tests, we use about 6000 strings (1000  
strings in six languages) and of course, the same string can be used  
in several places.
So I don't think possible to keep a meaningful name for each of the  
1000 strings...
I would need a lot of imagination, a big dictionary and my memory  
would not enough :-)


So I prefer to act as follows:
I have my Rev project and Excel always open at the same time.
As soon as I create a new button for instance, I need a label.
I create the label in Excel:

2258Quick linksLiens rapidesetc.
i.e. IDEnglishFrenchetc.

And I feed my code with this ID in Rev.
I reserve a range from 1000 to 1100 for the most common used strings  
("OK", "Cancel", etc.) and I know these by heart...
Using an Excel sheet (saved as text) is very handy because you may  
sort lines, search, etc.
And when you have 6000 strings, not having these tools would be  
really painful.


My two cents.

Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The "presevation" variable ?

2007-07-14 Thread Mark Schonewille

Hi David,

local lVar

on mouseUp
 if lVar is empty then
   put 1 into lVar
 else add 1 to lVar
 put "You clicked" && lVar && "times"
end mouseUp

Click the button once or twice. Now set preserveVariables to false  
and add a comment or even a space to the script. It will start  
counting again when you click on the button.


Set preserveVariables to true and click the button. Edit the script  
and click again. You will see that it continues counting.


Unfortunately, the variable preservation setting in the preferences  
is broken. To use this feature, you have to set the preserveVariables  
manually in the message box at the start of each new session:


set the preserveVariables to true

Let's hope that this problem will get fixed soon.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http;//www.salery.com

Quickly extract data from your HyperCard stacks with DIFfersifier.  
http://differsifier.economy-x-talk.com



Op 14-jul-2007, om 10:48 heeft David het volgende geschreven:


This is a relatively new version feature and is not documented except
for this:

If variable preservation is turned on, script locals retain their  
values when the script is re-compiled, unless there is an error in  
the script. With variable preservation turned off, script locals  
lose their values when the script is recompiled.


There was some documentation in the readme files at one time - but I
cannot find it. Is it an engine / language feature or an IDE feature
and anyone have an example of use?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: localizing software

2007-07-14 Thread Scott Kane
- Original Message - 
From: "Mark Talluto" <[EMAIL PROTECTED]>



Mark Talluto
--
CANELA Software
http://www.canelasoftware.com


Hey - nice looking software, Mark.  I'd never of thought of Vision tools. 
Looks nicely done.


Scott Kane 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: localizing software

2007-07-14 Thread Mark Talluto


On Jul 13, 2007, at 11:37 AM, Graham Samuel wrote:


I hope other people agree with this approach.


Good point Graham.  Thanks.  I only wish I had designed this app with  
all this wonderful information from the beginning.  Needless to say,  
I will make this standard for all future apps that have the slightest  
potential of going to other countries.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


The "presevation" variable ?

2007-07-14 Thread David
This is a relatively new version feature and is not documented except
for this:

> If variable preservation is turned on, script locals retain their values when 
> the script is re-compiled, unless there is an error in the script. With 
> variable preservation turned off, script locals lose their values when the 
> script is recompiled.

There was some documentation in the readme files at one time - but I
cannot find it. Is it an engine / language feature or an IDE feature
and anyone have an example of use?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Crashing Macs

2007-07-14 Thread Scott Kane

From: "Richmond Mathewson" <[EMAIL PROTECTED]>


Has anybody else had similar "fun" recently?


Yes.  Two or three weeks ago I downloaded Safari for Windows.  Was very 
pleased as it was meaner and leaner than IE7.  Following day a service pack 
was delivered via automatic updates from MS for Windows.   Safari no longer 
runs, ITunes crashes on load.  A few days later Apple's update program 
downloaded updates for Safari and ITunes and lo - they work again.  Probably 
a fluke but I've heard of worse before.


Scott Kane 


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


for anyone curious about Linux byond Ubuntu...

2007-07-14 Thread Richmond Mathewson
Still rabbiting on about FREE software.

Elive.

I don't know what those chaps are playing at: the
forced donation is neither one nor the other.

Obviously, the Elive people feel "coy" about making
their OS commercial - not entirely sure why - after
all being blunt and saying that Elive costs $25 (or
whatever) will put some people off, but probably not
as many as the forced donation "thing".

If you want to be paid for your work then say so.

What is nice about our world is that (at least in
large parts of it) there is room for a diversity of
belief systems, commercial systems and so on.

sincerely, Richmond Mathewson



A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


The Real Revolution

2007-07-14 Thread Richmond Mathewson
The Real Revolution concerns computer usage:

When I was a kid (about 1974) there were a whole
series of newspaper articles with titles approximating
to:

"The Promise of Computers"

They contained lists of what people would do with
computers in the future (i.e. now); they were badly
wrong (unfortunately) because they did not realise
that computers would largely be used as:

1. Glorified telephones,
2. Glorified fax machines,
3. Glorified photocopiers,
4. Glorified TVs,
5. Glorified Radios,
6. Glorified Gramophones

What they said was that computers would be used to
enable people to stretch their brains/minds.

Runtime Revolution allows people to stretch their
minds without a great, long, drawn-out cognitive
apprenticeship. You should see kids who have
previously only thought of computers as 1-6 above,
suddenly feel that "kick in the guts" when they
realise what can be done with computers.

And that Revolution is what we should be discussing.

Thank you, Joe Lewis Wilkins; but I, for one, will
find my own path to hell, without your help! At least,
I shall go to hell programming with Runtime Revolution
:)

And, while we are still in the area of quasi-religious
terminology; I find working with Runtime Revolution a
positively Liberating and Uplifting experience - cue
the temple bells!

Share the Love, Richmond Mathewson




A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Crashing Macs

2007-07-14 Thread Richmond Mathewson
Just spent 2 days "untrashing" my G4 dual that "threw
a wobbly" when I installed:

Latest iTunes upgrade
Latest QuickTime upgrade
and
MS Office 2004 patch

1. My Finder started quitting and launching every 15
seconds

2. One of my 4 hard-disks merrily went blank

Had to boot from a Mac OS 9 install disk (because it
allows access to the hard-disks) and back up 160 Gigs
of data onto an external drive - took about 5 hours -
and then blank the disk and do a complete reinstall.
Wall-to-wall pleasure :)

Still not sure about why this happened.

Suspect it might be Uncle Bill, as installed the 2
apple upgrades on my PPC Mac mini with no ill effects
at all.

Has anybody else had similar "fun" recently?

sincerely, Richmond Mathewson




A Thorn in the flesh is better than a failed Systems Development Life Cycle.



  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Need fore speed...

2007-07-14 Thread Beynon, Rob
I don't want to be accused of passing effort out to the list, but I would like 
to know, from the experts, the fastest way to execute some code..

 

I have a file of tab delimited items like so...16,000 lines long read into a 
single variable. (The right bracket is part of the file, not a quote mark)

 

>DAPA_ECO57   MFTGSIVAIVTPMDEKGNVCR  2267.1049 1

>DAPA_ECOL6   MFTGSIVAIVTPMDEKGNVCR  2267.1049 1

>DAPA_ECOLI   MFTGSIVAIVTPMDEKGNVCR  2267.1049 1

>(-M)YEGS_ECOLI  AEFPASLLILNGKSTDNLPLR  2268.2398 1

>GLTS_ECOLI   MFHLDTLATLVAATLTLLLGR  2269.283720

>(-M)YDIV_ECOLI  KIFLENLYHSDCYFLPIR   2270.1462 1

>YBAA_ECO57   MKYVDGFVVAVPADKKDAYR 2271.162563

>YBAA_ECOL6   MKYVDGFVVAVPADKKDAYR 2271.162563

>YBAA_ECOLI   MKYVDGFVVAVPADKKDAYR 2271.162563

 

I now want to search each line, and match an input number (obsMass) against the 
third item of each line (pepMass)

If it matches, within a certain tolerance (expressed in parts per million (ppm) 
 - the tolerance changes with the magnitude of the number) I want to do 
something with that line. Ties (or multiple hits to the same obsMass) are OK.

 

I then want to repeat that process for several thousand different values of 
obsMass. In other words, I will evaluate the mass matching loop tens of 
millions of times.

 

Some questions - is there advantage in sorting the list by mass first?

Would I gain speed by using integer arithmetic (is that even possible?) or by 
matching the numbers as strings?

 

And most importantly..

Is there an elegant rev way of handling this that I don't even know about?!

Thanks

Rob

 

 



Prof R J Beynon[h]
Proteomics and Functional Genomics Group
Faculty of Veterinary Science
University of Liverpool
Crown Street, Liverpool L69 7ZJ



Phone: +44 151 794 4312

Fax: +44 151 794 4243

Email: [EMAIL PROTECTED]

http://www.liv.ac.uk/pfg



 

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution