Re: sending data to a printer over v.24 rs232 interface to a printer under windows

2010-03-04 Thread Peter Alcibiades

It was easy enough in Linux that even I could do it, and I think it works the
same way in Windows.  The problem is essentially one of printing to a
printer without having a driver.  You first set up the printer as a raw
printer, which seems from googling to be possible in Windows.  Then you have
to invoke a command line utility to send the character stream directly to
the interface.  You do have to know what the control characters are.  And
you do have to put the control characters into a text file using a hex
editor.  At least I did.  And there may be problems with print queue
management and recognizing the printer if it is powered on after the
computer.  You have to be careful, if you use some way of sending the
characters that has no queue management, that a failed print cannot block
subsequent attempts.  Which is why my Linux friends told me to use lp + raw
printer name, rather than simple cat >.  I think you can use lp in Windows
also.  

The way I do it is to have one text file for each command, and then I send
the text file in its entirety when I want the action to take place.  So for
instance, printing is simply a dump of the characters to be printed.  To
operate the cutter is sending the file with those hex characters in it.  To
set the font to a given size is sending the file with those hex characters
in it, and so on.  Its brute force, but it should be pretty easy to get
something working.

Peter
-- 
View this message in context: 
http://n4.nabble.com/sending-data-to-a-printer-over-v-24-rs232-interface-to-a-printer-under-windows-tp1575516p1577818.html
Sent from the Revolution - User mailing list archive at Nabble.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: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Ian Wood

Votes added.

Ian

On 4 Mar 2010, at 00:37, Richard Gaskin wrote:

This inconsistency seems worth addressing, since doing so has  
practical application as you've noted, so I logged it as a request:





___
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


text-to-speech API? SAPI?

2010-03-04 Thread Nicolas Cueto
Hello,

Minutes ago just had a bit of a minor programming epiphany.

A teacher on an EFL (English as a Foreing Language) mailing list pointed me to:

http://neospeech.com/

It's a text-to-speech service, and I was amazed how well intelligible
and ear pleasing it was. The state of the art has certainly improved
from what I remember way back when!

So, seeing profound new possiblities for my language classroom,  I
immediately popped open Rev to see if it had text-to-speech functions
and, lo and behold!, there was the revSpeak command.

Gave it a whirl with...

revSpeak "hello world'"

... and two reactions.

First, wow that was simple. Rev is brilliant!

Second was, what the hey!! For my target users -- young EFL learners
-- not only is "Microsoft Sam" unintelligible but he'd either give
them the giggles or scare them into tears.

Looking at the Rev documentation, I guess the problem is the API. But
this is all very new to me, so I don't really know.

If the holy grail of voice-quality I'm after here is the API (or is it
SAPI?), would anyone have a recommendation or experience with great
Windows text-to-speech APIs/SAPIs?

I'd of course also welcome general advise about text-to-speech
APIs/SAPiS, especially how to integrate one with my standalones.

Thank you.

--
Nicolas Cueto
___
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: use-revolution Digest, Vol 77, Issue 71

2010-03-04 Thread Luis

Hiya,

Anyone mentioned LiveQuartz yet? http://www.livequartz.com/

What about Pixen? http://opensword.org/pixen/

Pixel Studio Pro (was Pixel), was cheap (one small fee, chuck it on  
all your home machines): http://www.pixelstudiopro.com/ Don't know  
the status as yet.

This was on a par with Photoshop (ok, a tad quirky).

Blender does have a 'steep' learning curve but it doers have a lot to  
offer!


Personally, for 3D I use Cheetah 3D: http://www.cheetah3d.com/ The  
price is totally worth it.


I don't know if the new Macs still come with OmniGraffle, if they do,  
it might be worth a look for vector work.


Cheers,

Luis.

On 3 Mar 2010, at 19:57, Judy Perry wrote:




On Mon, 1 Mar 2010, Richmond Mathewson wrote:

For Graphics and Sound I think that Open Source is really good  
(GIMP, Inkscape, Audacity, Ardour(linux)),


GIMP on the Mac is just okay at best (I've upgraded my assessment  
of it from "sucks completely") as everything seems to take two  
clicks, you have to run it under X11 and it neither looks nor  
behaves like a standard Mac app.


Inkscape is blue language-inducing (I would so love to have  
Freehand back), so it can't be used around the kiddies.


I actually like Audacity, but I probably have low standards because  
for the longest time the only audio app I had access to was Adobe's  
SoundEdit...


YMMV.

Judy
___
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: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Peter Brigham MD

On Mar 3, 2010, at 7:37 PM, Richard Gaskin wrote:


Ian Wood wrote:

I just had a quick try but can't see how to apply a backgroundpattern
to anything less than the whole field.


Mea culpa.

According to the dictionary RevTalk allows backgroundColor for  
chunks, and backgroundPattern for fields, and textPattern/ 
foregroundPattern for chunks, so I was a little optimistic about the  
orthogonality of the implementation.


But in trying it here, you're right, it seems the backgroundPattern  
cannot be applied to chunks.


This inconsistency seems worth addressing, since doing so has  
practical application as you've noted, so I logged it as a request:





Is this one of those "why not just do it, looks simple" things that  
runs into the apparently huge complexity of the field object? Which I  
seem to recall Scott Raney describing as the "monster" it terms of  
complexity.


Meanwhile, Firefox and other browsers use backgroundcolor to identify  
found text, so that technique is not foreign to  most users, though  
it's not quite what would be perfect. But as the late Robert Parker  
said (via Spenser), "It's almost never perfect."


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: text-to-speech API? SAPI?

2010-03-04 Thread Peter Brigham MD
Look at revSpeechVoices() and revSetSpeechVoice in the dictionary.  
There are a bunch of different voices you can try,


-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Mar 4, 2010, at 5:54 AM, Nicolas Cueto wrote:


Hello,

Minutes ago just had a bit of a minor programming epiphany.

A teacher on an EFL (English as a Foreing Language) mailing list  
pointed me to:


http://neospeech.com/

It's a text-to-speech service, and I was amazed how well intelligible
and ear pleasing it was. The state of the art has certainly improved
from what I remember way back when!

So, seeing profound new possiblities for my language classroom,  I
immediately popped open Rev to see if it had text-to-speech functions
and, lo and behold!, there was the revSpeak command.

Gave it a whirl with...

revSpeak "hello world'"

... and two reactions.

First, wow that was simple. Rev is brilliant!

Second was, what the hey!! For my target users -- young EFL learners
-- not only is "Microsoft Sam" unintelligible but he'd either give
them the giggles or scare them into tears.

Looking at the Rev documentation, I guess the problem is the API. But
this is all very new to me, so I don't really know.

If the holy grail of voice-quality I'm after here is the API (or is it
SAPI?), would anyone have a recommendation or experience with great
Windows text-to-speech APIs/SAPIs?

I'd of course also welcome general advise about text-to-speech
APIs/SAPiS, especially how to integrate one with my standalones.

Thank you.

--
Nicolas Cueto
___
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: text-to-speech API? SAPI?

2010-03-04 Thread Nicolas Cueto
> Look at revSpeechVoices() and revSetSpeechVoice in the dictionary. There are
> a bunch of different voices you can try,

That's the first thing I did. I'm on XP so only have "Microsoft Sam".
Not sufficient at all.

Have also listened to Vista's "Microsoft Anna". So-so, but still too unnatural.

Perhaps alternate voices aren't the solution...

--
Nicolas Cueto
___
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: locking software to one specific machine?

2010-03-04 Thread Peter Alcibiades
Completely OT question.  Do any of you do this?  The method is that the 
machine on first run produces a machine ID, and you then issue a license 
key which is tied to that ID.  The software can only be run on that 
specific machine.

If so, or even if not, what is the usual and recommended package/method to 
use?

Peter
___
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: locking software to one specific machine?

2010-03-04 Thread Mark Schonewille

Hi Peter,

I use a MAC address for this, sometimes a drive serial number or  
computer serial number. This can only work if the configuration of the  
computer isn't going to change. In one project, I take the MAC address  
and check the license plus MAC address in a database. In another  
project, I use the IP address to confine a license to a particular  
organisation. It is also possible to hardcode information in the  
software, if this is a unique project for one single customer.


The problem with these approaches is often that they take lots of  
support hours and cause your customers a lot of frustrations. You  
might want to think again before implementing such a system.


It isn't OT, once you start implementing it with RunRev :-) It is  
doable.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new software development  
projects. Feel free to contact me for a quote.


Op 4 mrt 2010, om 15:03 heeft Peter Alcibiades het volgende geschreven:

Completely OT question.  Do any of you do this?  The method is that  
the
machine on first run produces a machine ID, and you then issue a  
license

key which is tied to that ID.  The software can only be run on that
specific machine.

If so, or even if not, what is the usual and recommended package/ 
method to

use?

Peter


___
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: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Peter Alcibiades wrote:

Completely OT question.  Do any of you do this?  The method is that the
machine on first run produces a machine ID, and you then issue a license
key which is tied to that ID.  The software can only be run on that
specific machine.


I don't bother, instead just using the more common method of 
machine-independent reg codes.  Like I tell my customers, "We don't 
punish you for your good fortune of owning more than one computer." :)


In the modern world many people own more than one computer, and by 
choosing to have per-person licenses rather than per-machine licenses we 
keep our support costs down by not having to deal with angry people when 
they upgrade their computer or change their NIC.


I'm sure this allows a certain amount of piracy among our customers, but 
the cost-benefit ratio of both methods favors flexibility for the 
customer with our products.


In certain markets this may not always hold true.  For example, games 
and music software are the two most pirated categories (which is 
especially ironic for music, given that musicians make their living from 
intellectual property).


So like any security consideration, you'll have to consider the relative 
ROI for your product.


But it may be helpful to keep in mind that security is overhead, while 
features are investment.  So here, using minimal security lets us focus 
on adding features which encourage sales among honest people, the only 
people who ever pay for software anyway.


All software can be hacked, most within three days of release. Game 
companies who spend millions on security do so with the hope of 
postponing the inevitable c...@ck by just 60 days.  Fortunately, few 
honest people take on the risk of downloading c...@cked copies from random 
sites in the PRC or Russia (home to some 90% of c...@ck sites), many of 
which are loaded with keyloggers and other zombieware.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Ian Wood


On 4 Mar 2010, at 12:42, Peter Brigham MD wrote:

Is this one of those "why not just do it, looks simple" things that  
runs into the apparently huge complexity of the field object? Which  
I seem to recall Scott Raney describing as the "monster" it terms of  
complexity.


That could well be.

Meanwhile, Firefox and other browsers use backgroundcolor to  
identify found text, so that technique is not foreign to  most  
users, though it's not quite what would be perfect.


To some extent that would actually be *worse* than making the text  
red, because by now it's become the most widely used visual trigger  
for finding within a document. To then use that for spell-as-you-type  
or similar would just cause confusion.


Ian
___
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: Sticky popup?

2010-03-04 Thread dfepstein


Scott Rossi asked "Is there any way to make the action of popping up a menu 
"sticky"?" 



To imitate a "sticky popup" I show a stack (named here "L9nav") with empty 
decorations, whose buttons trigger the desired actions and cause the stack to 
close.  And I include in the stack an invisible graphic named "auto" whose 
script, when in use, causes the stack to close when there's a click somewhere 
outside the stack. 



On mousedown: 



insert script of graphic "auto" of stack "L9nav" into front 

go stack "L9nav" as palette 



Graphic "auto" has this script: 



on focusIn 

get the short name of this stack 

if it is not "L9nav" then close stack "L9nav" 

pass focusIn 

end focusIn 



on openField 

get the short name of this stack 

if it is not "L9nav" then close stack "L9nav" 

pass openField 

end openField 



And "L9nav" itself has this script: 



on closeStack 

if there is not a graphic "auto" then exit closeStack 

get the long name of graphic "auto" 

remove script of it from front 

end closeStack 



David Epstein
___
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: locking software to one specific machine?

2010-03-04 Thread François Chaplais

Le 4 mars 2010 à 15:25, Mark Schonewille a écrit :

> Hi Peter,
> 
> I use a MAC address for this, sometimes a drive serial number or computer 
> serial number. This can only work if the configuration of the computer isn't 
> going to change. In one project, I take the MAC address and check the license 
> plus MAC address in a database. In another project, I use the IP address to 
> confine a license to a particular organisation. It is also possible to 
> hardcode information in the software, if this is a unique project for one 
> single customer.
> 
> The problem with these approaches is often that they take lots of support 
> hours and cause your customers a lot of frustrations. You might want to think 
> again before implementing such a system.
> 
> It isn't OT, once you start implementing it with RunRev :-) It is doable.
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> 
> Economy-x-Talk is always looking for new software development projects. Feel 
> free to contact me for a quote.
> 
My first macbook pro had its NVIDIA chipset broken. The MBP wouldn't boot. The 
motherboard was replace and voila, I had lost the license on some of my 
software because it was tied to the MAC address (and I could not uninstall the 
software on the now defunct motherboard). Moreover, I upgraded afterwards to a 
new MBP, and the transition was painful for the same software.

Tying software to a specific hardware configuration is BAD marketing practice. 
The customer is your friend, not your enemy. S/N tied to a name or e-mail are 
quite common in software registration and they do not penalize the customer.

Think of piracy as a form of advertisement. IMHO, when a user of a pirated copy 
(S/N here) finds your software useful, and if if the price is right for him, he 
will buy the regular version to have the upgrades, customer support, etc If 
this is not the case, he may not ever have bought your software anyway.

Best,
François

___
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: Faking OS X text field behaviour (was: Good books on Cocoa dev?)

2010-03-04 Thread Richard Gaskin

Peter Brigham wrote:


On Mar 3, 2010, at 7:37 PM, Richard Gaskin wrote:

...

According to the dictionary RevTalk allows backgroundColor for
chunks, and backgroundPattern for fields, and textPattern/
foregroundPattern for chunks, so I was a little optimistic about the
orthogonality of the implementation.

But in trying it here, you're right, it seems the backgroundPattern
cannot be applied to chunks.

This inconsistency seems worth addressing, since doing so has
practical application as you've noted, so I logged it as a request:




Is this one of those "why not just do it, looks simple" things that
runs into the apparently huge complexity of the field object? Which I
seem to recall Scott Raney describing as the "monster" it terms of
complexity.


Hard to say without confirmation from the Mother Ship, but according to 
Dr. Raney, historically many such property limitations were the result 
of having a certain number of bits set aside for built-in object 
properties, so that adding another would require a format change.


Text chunks are the odd man out, since they don't have the same sort of 
record structure objects have.   It may be harder than adding properties 
for objects, or it may be easier.


Either way, the field object is due for an overhaul anyway 
(paragraph-level formatting and independent column alignment are among 
the most voted-for items at the RQCC), so it seems worth raising the 
visibility of this request to see it implemented.


Not only is it useful, but the absence of backgroundPattern for chunks 
in a system that already supports backgroundColor just means one more 
"gotcha" inconsistency newcomers need to learn.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: locking software to one specific machine?

2010-03-04 Thread Bob Sneidar
I WHOLEHEARTEDLY AGREE! Often I migrate software to a different machine, as in 
the case when I got a new Macbook Pro and handed down mine to someone else. 
That's two computers that your software would have been broken on. 

I think it has been proven beyond dispute that if someone wants your software 
hacked, they will hack it. They will decompile it then link around it if they 
have to, or they will figure out your algorithm and duplicate it. But rest 
assured you cannot lock everyone out. 

So do what Microsoft does. Charge the good men extra for the vices of the 
wicked. :-)

Bob


On Mar 4, 2010, at 7:37 AM, François Chaplais wrote:

> 
> Le 4 mars 2010 à 15:25, Mark Schonewille a écrit :
> 
>> Hi Peter,
>> 
>> I use a MAC address for this, sometimes a drive serial number or computer 
>> serial number. This can only work if the configuration of the computer isn't 
>> going to change. In one project, I take the MAC address and check the 
>> license plus MAC address in a database. In another project, I use the IP 
>> address to confine a license to a particular organisation. It is also 
>> possible to hardcode information in the software, if this is a unique 
>> project for one single customer.
>> 
>> The problem with these approaches is often that they take lots of support 
>> hours and cause your customers a lot of frustrations. You might want to 
>> think again before implementing such a system.
>> 
>> It isn't OT, once you start implementing it with RunRev :-) It is doable.
>> 
>> --
>> Best regards,
>> 
>> Mark Schonewille
>> 
>> Economy-x-Talk Consulting and Software Engineering
>> Homepage: http://economy-x-talk.com
>> Twitter: http://twitter.com/xtalkprogrammer
>> 
>> Economy-x-Talk is always looking for new software development projects. Feel 
>> free to contact me for a quote.
>> 
> My first macbook pro had its NVIDIA chipset broken. The MBP wouldn't boot. 
> The motherboard was replace and voila, I had lost the license on some of my 
> software because it was tied to the MAC address (and I could not uninstall 
> the software on the now defunct motherboard). Moreover, I upgraded afterwards 
> to a new MBP, and the transition was painful for the same software.
> 
> Tying software to a specific hardware configuration is BAD marketing 
> practice. The customer is your friend, not your enemy. S/N tied to a name or 
> e-mail are quite common in software registration and they do not penalize the 
> customer.
> 
> Think of piracy as a form of advertisement. IMHO, when a user of a pirated 
> copy (S/N here) finds your software useful, and if if the price is right for 
> him, he will buy the regular version to have the upgrades, customer support, 
> etc If this is not the case, he may not ever have bought your software 
> anyway.
> 
> Best,
>   François
> 
> ___
> 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: OT: locking software to one specific machine?

2010-03-04 Thread Bob Sneidar
I should also mention that if you swap hard drives in two Macbook Pros, the 
serial number of the machine will FOLLOW THE MACHINES! It's odd I know, but 
true nonetheless. And as previously mentioned, if you have a motherboard 
replaced, Apple will give you a refurbished one that has the serial number 
removed from the PRAM.

Bob


On Mar 4, 2010, at 6:03 AM, Peter Alcibiades wrote:

> Completely OT question.  Do any of you do this?  The method is that the 
> machine on first run produces a machine ID, and you then issue a license 
> key which is tied to that ID.  The software can only be run on that 
> specific machine.
> 
> If so, or even if not, what is the usual and recommended package/method to 
> use?
> 
> Peter
> ___
> 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: text-to-speech API? SAPI?

2010-03-04 Thread Bob Sneidar
Odd. It didn't work for me.

Bob


On Mar 4, 2010, at 2:54 AM, Nicolas Cueto wrote:

> Hello,
> 
> Minutes ago just had a bit of a minor programming epiphany.
> 
> A teacher on an EFL (English as a Foreing Language) mailing list pointed me 
> to:
> 
> http://neospeech.com/
> 
> It's a text-to-speech service, and I was amazed how well intelligible
> and ear pleasing it was. The state of the art has certainly improved
> from what I remember way back when!
> 
> So, seeing profound new possiblities for my language classroom,  I
> immediately popped open Rev to see if it had text-to-speech functions
> and, lo and behold!, there was the revSpeak command.
> 
> Gave it a whirl with...
> 
> revSpeak "hello world'"
> 
> ... and two reactions.
> 
> First, wow that was simple. Rev is brilliant!
> 
> Second was, what the hey!! For my target users -- young EFL learners
> -- not only is "Microsoft Sam" unintelligible but he'd either give
> them the giggles or scare them into tears.
> 
> Looking at the Rev documentation, I guess the problem is the API. But
> this is all very new to me, so I don't really know.
> 
> If the holy grail of voice-quality I'm after here is the API (or is it
> SAPI?), would anyone have a recommendation or experience with great
> Windows text-to-speech APIs/SAPIs?
> 
> I'd of course also welcome general advise about text-to-speech
> APIs/SAPiS, especially how to integrate one with my standalones.
> 
> Thank you.
> 
> --
> Nicolas Cueto
> ___
> 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


AW: OT: locking software to one specific machine?

2010-03-04 Thread Tiemo Hollmann TB
Hello,

we have made some difference experiences and so I have to disagree to
Richard and Francois.

We are publishing software in a very small specific market, so no music, no
games. In the first years our software was - in your intention - completely
free of copy protection, later we implemented a copy protection on some
programs, which were running off the CD.

We made the experience, that nobody ever thanked us the ease of use and lack
of licensing. Just the opposite. Just because our target market is so small
and lots of people know each other, our software was copied, given away
without control. Not only once we got support calls in the kind "hi, we just
made a copy of your software at ..., but we have some troubles installing
it..."

After more than ten years of living with the total lack of conscience at
most people out there "what? Everbody copies software!" we decided to
implement a heavy licensing system to our newest product which ties our
product to the single machine without any doubts.

Yes, we get furious calls, how we can be so cruel not to let the user
install it on all of his (and the rest of the world) machines. Yes, it is
much more support as having just a licence-number without any verifying,
beside entering the right name and email and a fixed number.

But yes, the cost-benefit ratio is very satisfying for us. Not for the
pirates of the past. The pirates of the past were no Russian hackers or
hacker kids. They were people like you and me, who just didn't mind and
didn't care about what copying of software means. I think especially of one
target group "teachers" (sorry Richmond, nothing personal) teachers are the
heroes of copying everything in my mind. Btw. Richmond, where is your pin on
the map http://qurl.tk/4O ? And yes, after month of heavy support and dozens
of smaller and bigger enhancements in our system (which was designed from
the scratch), now the support comes down to a "normal" amount.

The need and whish of the customer to install your software on more than one
machine can also be handled by your pricing system. That are our
experiences.

P.S.
If you are looking for an individual engineered system, there is a very
experienced company: http://economy-x-talk.com/

Tiemo




> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von Richard Gaskin
> Gesendet: Donnerstag, 4. März 2010 15:48
> An: How to use Revolution
> Betreff: Re: OT: locking software to one specific machine?
> 
> Peter Alcibiades wrote:
> > Completely OT question.  Do any of you do this?  The method is that
> the
> > machine on first run produces a machine ID, and you then issue a
> license
> > key which is tied to that ID.  The software can only be run on that
> > specific machine.
> 
> I don't bother, instead just using the more common method of
> machine-independent reg codes.  Like I tell my customers, "We don't
> punish you for your good fortune of owning more than one computer." :)
> 
> In the modern world many people own more than one computer, and by
> choosing to have per-person licenses rather than per-machine licenses
> we
> keep our support costs down by not having to deal with angry people
> when
> they upgrade their computer or change their NIC.
> 
> I'm sure this allows a certain amount of piracy among our customers,
> but
> the cost-benefit ratio of both methods favors flexibility for the
> customer with our products.
> 
> In certain markets this may not always hold true.  For example, games
> and music software are the two most pirated categories (which is
> especially ironic for music, given that musicians make their living
> from
> intellectual property).
> 
> So like any security consideration, you'll have to consider the
> relative
> ROI for your product.
> 
> But it may be helpful to keep in mind that security is overhead, while
> features are investment.  So here, using minimal security lets us focus
> on adding features which encourage sales among honest people, the only
> people who ever pay for software anyway.
> 
> All software can be hacked, most within three days of release. Game
> companies who spend millions on security do so with the hope of
> postponing the inevitable c...@ck by just 60 days.  Fortunately, few
> honest people take on the risk of downloading c...@cked copies from
> random
> sites in the PRC or Russia (home to some 90% of c...@ck sites), many of
> which are loaded with keyloggers and other zombieware.
> 
> --
>   Richard Gaskin
>   Fourth World
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___
> 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-revolut

Re: text-to-speech API? SAPI?

2010-03-04 Thread Phil Davis
There is a world of difference in quality between voices included with 
the Windows OS and those available from third parties. When I was 
exploring this a few years ago, I discovered that Cepstral offered some 
higher quality voices for not that much money (relative to my need at 
the time). This was several years ago so I'm sure the market has 
changed, but you might check them out anyway:


http://www.cepstral.com/demos/

HTH -
Phil Davis


On 3/4/10 4:58 AM, Nicolas Cueto wrote:

Look at revSpeechVoices() and revSetSpeechVoice in the dictionary. There are
a bunch of different voices you can try,
 

That's the first thing I did. I'm on XP so only have "Microsoft Sam".
Not sufficient at all.

Have also listened to Vista's "Microsoft Anna". So-so, but still too unnatural.

Perhaps alternate voices aren't the solution...

--
Nicolas Cueto
   


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
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: text-to-speech API? SAPI?

2010-03-04 Thread Bob Sneidar
No Mac support either.

Bob


On Mar 4, 2010, at 2:54 AM, Nicolas Cueto wrote:

> Hello,
> 
> Minutes ago just had a bit of a minor programming epiphany.
> 
> A teacher on an EFL (English as a Foreing Language) mailing list pointed me 
> to:
> 
> http://neospeech.com/
> 
> It's a text-to-speech service, and I was amazed how well intelligible
> and ear pleasing it was. The state of the art has certainly improved
> from what I remember way back when!
> 
> So, seeing profound new possiblities for my language classroom,  I
> immediately popped open Rev to see if it had text-to-speech functions
> and, lo and behold!, there was the revSpeak command.
> 
> Gave it a whirl with...
> 
> revSpeak "hello world'"
> 
> ... and two reactions.
> 
> First, wow that was simple. Rev is brilliant!
> 
> Second was, what the hey!! For my target users -- young EFL learners
> -- not only is "Microsoft Sam" unintelligible but he'd either give
> them the giggles or scare them into tears.
> 
> Looking at the Rev documentation, I guess the problem is the API. But
> this is all very new to me, so I don't really know.
> 
> If the holy grail of voice-quality I'm after here is the API (or is it
> SAPI?), would anyone have a recommendation or experience with great
> Windows text-to-speech APIs/SAPIs?
> 
> I'd of course also welcome general advise about text-to-speech
> APIs/SAPiS, especially how to integrate one with my standalones.
> 
> Thank you.
> 
> --
> Nicolas Cueto
> ___
> 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: OT: locking software to one specific machine?

2010-03-04 Thread Luis

:(

Is that like flogging innocent folk in the streets to put criminals  
off that potential punishment?


No Cheers,

Luis.


On 4 Mar 2010, at 16:35, Bob Sneidar wrote:



So do what Microsoft does. Charge the good men extra for the vices  
of the wicked. :-)


Bob


___
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: locking software to one specific machine?

2010-03-04 Thread Bob Sneidar
Sorry Luis. It was meant tongue in cheek. And it's more like charging the 
butcher double for a loaf of bread because the blacksmith won't pay me for a 
bag of rice. 

Bob


On Mar 4, 2010, at 8:46 AM, Luis wrote:

> :(
> 
> Is that like flogging innocent folk in the streets to put criminals off that 
> potential punishment?
> 
> No Cheers,
> 
> Luis.
> 
> 
> On 4 Mar 2010, at 16:35, Bob Sneidar wrote:
> 
>> 
>> So do what Microsoft does. Charge the good men extra for the vices of the 
>> wicked. :-)
>> 
>> Bob
> 
> ___
> 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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Tiemo Hollmann wrote:

In the first years our software was - in your intention - completely
free of copy protection, later we implemented a copy protection on some
programs, which were running off the CD.

We made the experience, that nobody ever thanked us the ease of use and lack
of licensing. Just the opposite. Just because our target market is so small
and lots of people know each other, our software was copied, given away
without control.


"Completely free of copy protection" is very different from the 
industry-standard per-user license keys I described, and not something I 
would advocate for any commercial product.


In markets where piracy is an unusually serious consideration, 
server-based activation can provide reasonable control over license key 
redistribution.  If smartly implemented with grace periods, "phone home" 
activation should pose no inconvenience to the end-user.


But most successful products don't even do that, they merely use 
pre-generated keys.  Per-user license keys have made Adobe, Microsoft, 
Apple, and most other software vendors quite profitable.


Not having any protection at all is, IMO, only appropriate for free 
products.  The early years of the computer industry's "shareware" 
experiments proved that convincingly.  The difference between "free 
demo" and "full version" need not be onerous to the user, but there must 
be some incentive to motivate the user to put in the additional effort 
to fill out an order form.


This is one reason why having PayPal as a payment option is so valuable: 
 it reduces the payment process to just a single password field and one 
click.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: locking software to one specific machine?

2010-03-04 Thread Luis

No harm done.

Cheers,

Luis.


On 4 Mar 2010, at 16:49, Bob Sneidar wrote:

Sorry Luis. It was meant tongue in cheek. And it's more like  
charging the butcher double for a loaf of bread because the  
blacksmith won't pay me for a bag of rice.


Bob


On Mar 4, 2010, at 8:46 AM, Luis wrote:


:(

Is that like flogging innocent folk in the streets to put  
criminals off that potential punishment?


No Cheers,

Luis.


On 4 Mar 2010, at 16:35, Bob Sneidar wrote:



So do what Microsoft does. Charge the good men extra for the  
vices of the wicked. :-)


Bob


___
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



___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Jeff Massung
Just tossing out another option for people:

I've found with shareware I've written in the past that - in this day of
internet access - my customers didn't mind at all having to be connected to
the internet in order to gain access to their purchased software (read: ping
a server w/ their license key/user name and get an reply access key that was
good for the "session"). This also allows you to see if a certain key is
being used all over the world and black list it.

I had to also implement temporary session keys for people who weren't
connected to the internet or who were planning on taking the software on
vacation or such, but that wasn't too difficult. And it was very generous
(offline keys lasting for a week+). I think I only had a single complaint
from a paying customer and went out of my way to give them a version of the
software that didn't require a key at all.

And, while I understand this isn't the case for all niches and companies, if
your licensing is good, a certain level of copying and sharing is *highly*
desirable.

Keep in mind that no matter what you do your software will be
cracked/pirated. Your goal should be to make customers happy and balance the
price + the value of your software vs. the difficult to pirate in order to
maximize paying customers.

Jeff M.
___
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


AW: AW: OT: locking software to one specific machine?

2010-03-04 Thread Tiemo Hollmann TB
I did not mentioned that we had also some steps in between.

But many of the per-user licenses can be passed on.
I don't know how Adobe or Microsoft prevent people of passing their user
license to other people.

Tiemo

> -Ursprüngliche Nachricht-
> Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> boun...@lists.runrev.com] Im Auftrag von Richard Gaskin
> Gesendet: Donnerstag, 4. März 2010 18:00
> An: How to use Revolution
> Betreff: Re: AW: OT: locking software to one specific machine?
> 
> Tiemo Hollmann wrote:
> > In the first years our software was - in your intention - completely
> > free of copy protection, later we implemented a copy protection on
> some
> > programs, which were running off the CD.
> >
> > We made the experience, that nobody ever thanked us the ease of use
> and lack
> > of licensing. Just the opposite. Just because our target market is so
> small
> > and lots of people know each other, our software was copied, given
> away
> > without control.
> 
> "Completely free of copy protection" is very different from the
> industry-standard per-user license keys I described, and not something
> I
> would advocate for any commercial product.
> 
> In markets where piracy is an unusually serious consideration,
> server-based activation can provide reasonable control over license key
> redistribution.  If smartly implemented with grace periods, "phone
> home"
> activation should pose no inconvenience to the end-user.
> 
> But most successful products don't even do that, they merely use
> pre-generated keys.  Per-user license keys have made Adobe, Microsoft,
> Apple, and most other software vendors quite profitable.
> 
> Not having any protection at all is, IMO, only appropriate for free
> products.  The early years of the computer industry's "shareware"
> experiments proved that convincingly.  The difference between "free
> demo" and "full version" need not be onerous to the user, but there
> must
> be some incentive to motivate the user to put in the additional effort
> to fill out an order form.
> 
> This is one reason why having PayPal as a payment option is so
> valuable:
>   it reduces the payment process to just a single password field and
> one
> click.
> 
> --
>   Richard Gaskin
>   Fourth World
>   Rev training and consulting: http://www.fourthworld.com
>   Webzine for Rev developers: http://www.revjournal.com
>   revJournal blog: http://revjournal.com/blog.irv
> ___
> 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


Interfacing to Mac iCal and Address Book

2010-03-04 Thread Peter Haworth
Anyone got any tips on how to integrate calendar and name/address info  
from OSX into an application?  Not thinking in terms of import/export/ 
sync, more along the lines of instant query/update/delete.  Not much  
detail there but something along the lines of listing Mac address book  
entries within my app and being able to directly update/delete them  
from within the app.  With the calendar data, use iCal to display  
appointments/tasks but have lists of them in my app linked to their  
iCal entriess so any changes within my app get reflected in iCal.

Thanks,

Pete Haworth








___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread stephen barncard
All of Adobe's apps are tied to the computer processor #  AND check into
'headquarters' and were a PIA to re-install on CS3, especially if one had
run the demo version before. The main reason for CS4 was to try to fix
the-now cracked CS3 mess.   The Adobe solution was to recommend upgrading to
CS4.  Their best support dance for CS3 was to issue scary-looking shell
scripts that supposedly fixed things.

Shell scripts to users? Yikes.
-
Stephen Barncard
San Francisco
http://houseofcubes.com/disco.irev


On 4 March 2010 09:37, Tiemo Hollmann TB  wrote:

> I did not mentioned that we had also some steps in between.
>
> But many of the per-user licenses can be passed on.
> I don't know how Adobe or Microsoft prevent people of passing their user
> license to other people.
>
> Tiemo
>
> > -Ursprüngliche Nachricht-
> > Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-
> > boun...@lists.runrev.com] Im Auftrag von Richard Gaskin
> > Gesendet: Donnerstag, 4. März 2010 18:00
> > An: How to use Revolution
> > Betreff: Re: AW: OT: locking software to one specific machine?
> >
> > Tiemo Hollmann wrote:
> > > In the first years our software was - in your intention - completely
> > > free of copy protection, later we implemented a copy protection on
> > some
> > > programs, which were running off the CD.
> > >
> > > We made the experience, that nobody ever thanked us the ease of use
> > and lack
> > > of licensing. Just the opposite. Just because our target market is so
> > small
> > > and lots of people know each other, our software was copied, given
> > away
> > > without control.
> >
> > "Completely free of copy protection" is very different from the
> > industry-standard per-user license keys I described, and not something
> > I
> > would advocate for any commercial product.
> >
> > In markets where piracy is an unusually serious consideration,
> > server-based activation can provide reasonable control over license key
> > redistribution.  If smartly implemented with grace periods, "phone
> > home"
> > activation should pose no inconvenience to the end-user.
> >
> > But most successful products don't even do that, they merely use
> > pre-generated keys.  Per-user license keys have made Adobe, Microsoft,
> > Apple, and most other software vendors quite profitable.
> >
> > Not having any protection at all is, IMO, only appropriate for free
> > products.  The early years of the computer industry's "shareware"
> > experiments proved that convincingly.  The difference between "free
> > demo" and "full version" need not be onerous to the user, but there
> > must
> > be some incentive to motivate the user to put in the additional effort
> > to fill out an order form.
> >
> > This is one reason why having PayPal as a payment option is so
> > valuable:
> >   it reduces the payment process to just a single password field and
> > one
> > click.
> >
> > --
> >   Richard Gaskin
> >   Fourth World
> >   Rev training and consulting: http://www.fourthworld.com
> >   Webzine for Rev developers: http://www.revjournal.com
> >   revJournal blog: http://revjournal.com/blog.irv
> > ___
> > 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
>
___
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: AW: AW: OT: locking software to one specific machine?

2010-03-04 Thread François Chaplais

Le 4 mars 2010 à 18:37, Tiemo Hollmann TB a écrit :

> I did not mentioned that we had also some steps in between.
> 
> But many of the per-user licenses can be passed on.
> I don't know how Adobe or Microsoft prevent people of passing their user
> license to other people.
> 
> Tiemo
> 
Adobe requires an internet connection to register. I have bought a student CS3 
design edition for my second son, and at some time, because that son was 
addicted to peer to peer download, I put him on a non admin account. This 
implied that the CS3 user account was bound to be changed. I emailed the 
support at Adobe to ask if switching accounts required de-installation and 
re-installation Tthe support (where my son has an account as a registered user) 
replied there should be no problem. Actually, everything turned out fine. And I 
am convinced that, if there would have be a problem, it would have been solved 
gracefully by Adobe's support.

Then we upgraded our son's iMac to an new, intel, model, and used Apple's 
migration assistant (with the original mac in target mode) to transfer the 
accounts' data, and whoppee, CS3 was installed on the new computer without any 
further work. (this should answer stephen's post on CS3, at least on the mac).

As for theP2P music, I made a deal with my son: if he wants music, he tells me 
and I offer him an Itunes gift card. It turns out that he is very happy with 
his legal purchases, and they are quite reasonable as far as expenses are 
considered. Most of the P2P stuff he could do without, actually.

The really difficult part in fixing a price is the evaluation of the ROI of the 
customers. Including support.

cheers
François

___
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


FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Ken Ray
I have some large files (100MB +) that I need to FTP to a customer's server.
I have tried to use libURL to do the uploading, but I get odd results/random
timeouts/errant status messages when the file I'm uploading is over 40MB.
I've tried many different workarounds to this, but none have been
consistent/acceptable so for this project I'm seeing if I can use curl.

The pain is that there doesn't seem to be a way to retrieve the progress of
an FTP upload so I can display a custom upload box. If I redirect it to
dev/null, I get control back after the upload starts, but I can't get any
progress data:

   curl -T filePath -u user:pass serverAdress > /dev/null 2>&1 &

If I redirect to stdin, it's blocking and I only get anything when the
upload is complete:

   curl -T filePath -u user:pass serverAdress > stdin

I've also tried:

   curl -T filePath -u user:pass serverAdress > stdin &
   curl -T filePath -u user:pass serverAdress > stdin 2>&1 &

Is there any way to make a non-blocking call to curl, but then to get back
the progress text that would normally be displayed in the Terminal?

Any help would be appreciated...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Marty Knapp
I like the idea of pre-generated keys. It seems like a good in-between 
method. If your user then registered their key and someone else 
subsequently tried to register the same number you would have some 
recourse. I don't want to get bogged down in lots of administrative 
hassles, so I like this method. Does anyone have suggestions about 
setting up something like this? And a method for verifying the key? I'm 
no mathematician by any means, unfortunately! Perhaps there is a key 
generator program, though I looked around and couldn't really find 
anything (other than non-Rev code). I'd prefer a Mac program but I have 
XP running in Parallels if there's a Windows only offering.


Any help, tips, leads?

Marty Knapp


"Completely free of copy protection" is very different from the 
industry-standard per-user license keys I described, and not something 
I would advocate for any commercial product.


In markets where piracy is an unusually serious consideration, 
server-based activation can provide reasonable control over license 
key redistribution.  If smartly implemented with grace periods, "phone 
home" activation should pose no inconvenience to the end-user.


But most successful products don't even do that, they merely use 
pre-generated keys.  Per-user license keys have made Adobe, Microsoft, 
Apple, and most other software vendors quite profitable.



___
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


How do I change the script for 100 buttons in one time?

2010-03-04 Thread William de Smet
Hi there,

I have a stack with 100 buttons in it and they all have the same script.
The buttons are called "d1" to "d100".

How do I change the code for all of them in one time?
I don't feel like copy/paste 100 times.

Thanks!

Greetings,

William
___
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: FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Andre Garzia
Ken,

can you pipe and forget to a file and keep reading the text file from rev.

curl bla bla bla > progress.txt

right?

On Thu, Mar 4, 2010 at 3:28 PM, Ken Ray  wrote:

> I have some large files (100MB +) that I need to FTP to a customer's
> server.
> I have tried to use libURL to do the uploading, but I get odd
> results/random
> timeouts/errant status messages when the file I'm uploading is over 40MB.
> I've tried many different workarounds to this, but none have been
> consistent/acceptable so for this project I'm seeing if I can use curl.
>
> The pain is that there doesn't seem to be a way to retrieve the progress of
> an FTP upload so I can display a custom upload box. If I redirect it to
> dev/null, I get control back after the upload starts, but I can't get any
> progress data:
>
>   curl -T filePath -u user:pass serverAdress > /dev/null 2>&1 &
>
> If I redirect to stdin, it's blocking and I only get anything when the
> upload is complete:
>
>   curl -T filePath -u user:pass serverAdress > stdin
>
> I've also tried:
>
>   curl -T filePath -u user:pass serverAdress > stdin &
>   curl -T filePath -u user:pass serverAdress > stdin 2>&1 &
>
> Is there any way to make a non-blocking call to curl, but then to get back
> the progress text that would normally be displayed in the Terminal?
>
> Any help would be appreciated...
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread Jacques Hausser
Hi William

A good case for using behaviors ! Set the script of an hidden btn 
"BCommonScript" as you want and then put somewhere in the opening process of 
your stack:

repeat with i = 1 to 100
   put "d" &i into tButtonName
   set the behavior of btn tbuttonName to the long ID of button "BCommonscript"
end repeat

Jacques

Le 4 mars 2010 à 19:46, William de Smet a écrit :

> Hi there,
> 
> I have a stack with 100 buttons in it and they all have the same script.
> The buttons are called "d1" to "d100".
> 
> How do I change the code for all of them in one time?
> I don't feel like copy/paste 100 times.
> 
> Thanks!
> 
> Greetings,
> 
> William
> ___
> 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

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread David Coker
On Thu, Mar 4, 2010 at 12:46 PM, William de Smet
 wrote:
> Hi there,
>
> I have a stack with 100 buttons in it and they all have the same script.
> The buttons are called "d1" to "d100".
>
> How do I change the code for all of them in one time?
> I don't feel like copy/paste 100 times.
>

Hello William,
I once had the same issue with my little "Sign Language" stack and the
late Eric Chatonet provided me with a tip that worked very well for
me. Would something like this work as a stack script:

on mouseUp
  if "button" is in the target then
--do something here--
  end if
end mouseUp

Regards,
David C.
___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Josh Mellicker
We use "phone home" authorization that uses machine-specific info. In  
case of a user with two computers, a hard drive crash, etc., we let  
people authorize additional computers with their email address and  
password so they always have access to what they've purchased.


We "police" our database in case someone gives out their info, we can  
"pull the plug" on any pirated installs.


Works great, in tens of thousands of customers, only encountered a  
tiny handful who were not connected to the Internet. In these cases we  
can do a "manual registration".


Cheers,

Josh

On Mar 4, 2010, at 8:59 AM, Richard Gaskin  
 wrote:



Tiemo Hollmann wrote:

In the first years our software was - in your intention - completely
free of copy protection, later we implemented a copy protection on  
some

programs, which were running off the CD.

We made the experience, that nobody ever thanked us the ease of use  
and lack
of licensing. Just the opposite. Just because our target market is  
so small
and lots of people know each other, our software was copied, given  
away

without control.


"Completely free of copy protection" is very different from the  
industry-standard per-user license keys I described, and not  
something I would advocate for any commercial product.


In markets where piracy is an unusually serious consideration,  
server-based activation can provide reasonable control over license  
key redistribution.  If smartly implemented with grace periods,  
"phone home" activation should pose no inconvenience to the end-user.


But most successful products don't even do that, they merely use pre- 
generated keys.  Per-user license keys have made Adobe, Microsoft,  
Apple, and most other software vendors quite profitable.


Not having any protection at all is, IMO, only appropriate for free  
products.  The early years of the computer industry's "shareware"  
experiments proved that convincingly.  The difference between "free  
demo" and "full version" need not be onerous to the user, but there  
must be some incentive to motivate the user to put in the additional  
effort to fill out an order form.


This is one reason why having PayPal as a payment option is so  
valuable:  it reduces the payment process to just a single password  
field and one click.


--
Richard Gaskin
Fourth World
Rev training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
___
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


COPY PROTECTION of Rev Project

2010-03-04 Thread Ted
Hello, I have two questions for the Revolution Sages:


1. Recently, I had to move years' worth of old software to a new machine, and
because I couldn't locate one of my keys, I contacted the vendor.

This got me thinking. Suddenly I saw myself, five years from now, as a vendor,
tied to a desk with a bank of ringing phones, giving out keys to customers
from five years before.

What are others' experiences with this?

(I got into this business so I could retire, not babysit a ticking bomb.)


2. I seem to remember Bill Gates' once saying that rampant worldwide piracy of
Windows had greatly helped Microsoft capture the market, because it kept Linux
at bay.

In certain cases, how might a lack of copy protection work as a competitive
tool?


Thanks,

Ted





___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Andre Garzia
I was going to make my software refuse to run 15% of the time due to bad
licensing and then catch some smart hackers just due to statistic
misfortune.

I was going to call the system the "Schrodingers Quantum Copy Protection
Lock System" patent it and win billions from holywood and RIAA!

On Thu, Mar 4, 2010 at 4:12 PM, Josh Mellicker  wrote:

> We use "phone home" authorization that uses machine-specific info. In case
> of a user with two computers, a hard drive crash, etc., we let people
> authorize additional computers with their email address and password so they
> always have access to what they've purchased.
>
> We "police" our database in case someone gives out their info, we can "pull
> the plug" on any pirated installs.
>
> Works great, in tens of thousands of customers, only encountered a tiny
> handful who were not connected to the Internet. In these cases we can do a
> "manual registration".
>
> Cheers,
>
> Josh
>
>
> On Mar 4, 2010, at 8:59 AM, Richard Gaskin 
> wrote:
>
>  Tiemo Hollmann wrote:
>>
>>> In the first years our software was - in your intention - completely
>>> free of copy protection, later we implemented a copy protection on some
>>> programs, which were running off the CD.
>>>
>>> We made the experience, that nobody ever thanked us the ease of use and
>>> lack
>>> of licensing. Just the opposite. Just because our target market is so
>>> small
>>> and lots of people know each other, our software was copied, given away
>>> without control.
>>>
>>
>> "Completely free of copy protection" is very different from the
>> industry-standard per-user license keys I described, and not something I
>> would advocate for any commercial product.
>>
>> In markets where piracy is an unusually serious consideration,
>> server-based activation can provide reasonable control over license key
>> redistribution.  If smartly implemented with grace periods, "phone home"
>> activation should pose no inconvenience to the end-user.
>>
>> But most successful products don't even do that, they merely use
>> pre-generated keys.  Per-user license keys have made Adobe, Microsoft,
>> Apple, and most other software vendors quite profitable.
>>
>> Not having any protection at all is, IMO, only appropriate for free
>> products.  The early years of the computer industry's "shareware"
>> experiments proved that convincingly.  The difference between "free demo"
>> and "full version" need not be onerous to the user, but there must be some
>> incentive to motivate the user to put in the additional effort to fill out
>> an order form.
>>
>> This is one reason why having PayPal as a payment option is so valuable:
>>  it reduces the payment process to just a single password field and one
>> click.
>>
>> --
>> Richard Gaskin
>> Fourth World
>> Rev training and consulting: http://www.fourthworld.com
>> Webzine for Rev developers: http://www.revjournal.com
>> revJournal blog: http://revjournal.com/blog.irv
>> ___
>> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Marty Knapp wrote:

I like the idea of pre-generated keys. It seems like a good in-between
method. If your user then registered their key and someone else
subsequently tried to register the same number you would have some
recourse. I don't want to get bogged down in lots of administrative
hassles, so I like this method. Does anyone have suggestions about
setting up something like this? And a method for verifying the key?



Challenging, but fun:
-

Start by reading these for inspiration:

The Plain Truth about Casual Software Piracy
by Matt Slot, Ambrosia Software


Anti Cracking FAQ
How to make cracking your programs a little harder


Now devise a scheme of between 12 and 20 characters in which some of the 
characters must be in a specific range to be valid, and others are 
derived from combinations of others.  For example, character 10 could be 
the ASCII equivalent of the average of characters 9, 4, and 2, and 
character 2 could be the sum of characters 1 and 5 minus character 8, 
etc.  It's sometimes useful to have some characters use values you can 
derive meaning from, such as the version number, if needed.  Use that to 
generate your keys.


Avoid schemes that produce any "1" or "0" characters since those will be 
mistyped as "l" and "O" by many users, raising support requests with 
complaints of a "bad reg code".  This will reduce the range of 
acceptable keys, but you should still be able to produce at least 10,000 
unique keys from most schemes you can think up in a few minutes. If you 
sell 10,000 copies you've made more than enough money to finance your 
upgrade with a new reg scheme. :)


Also provide a Paste Code button in your reg window so they don't need 
to type the code at all, and handle Cmd-V yourself by cleaning the 
clipboardData["text"] of any extraneous characters before pasting into 
your field (people will include trailing returns and other garbage when 
copying from the reg email you sent them).


Then write the inverse of the generator to validate your codes, but 
break up the validation into multiple handlers each doing a small part 
of it, using obscure function names strewn all over your code base with 
lots of red-herring handlers with similar names littered among them. 
Extra bonus points if the handlers you call also call others; the more 
the merrier.  Anyone tracing your code in a low-level debugger will find 
it far more annoying than it's worth.


Run all your keys through the validator before shipping, to ensure the 
generator and the validator are in synch.  This batch validator should 
also check uniqueness of all keys to avoid having a single key sent to 
multiple users.


Then of course add at least a half-second delay for validation somewhere 
in your sequence to thrwart brute-force attacks.  A half-second won't 
bother a user, but for automated attempts it means the difference 
between hours and years.


Then lock your stack with a good password, after writing down your algo 
somewhere since your code will be unreadable to even yourself.  Use v4.0 
to build, since the password protection is much stronger.


Repeat with each new version, changing your scheme substantially between 
versions so that all the old keygens that showed up on those overseas 
servers within a week of your last release will no longer work with your 
new version.




Less challenging, but no less fun:
-

Just use Jacque Gay's Zygodact
Automated Registration System for Revolution



--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread Jim Ault

Try this-
on changeScripts
   put "new script lines" into baseScript
   repeat with k = 1 to the number of cards
  repeat with m = 1 to the number of controls
 get word 1 of the short name of control m
 if char 1 of IT = "d" and char 2 to -2 of IT < 101 then
get "--" & the short date && the short time
get IT & cr & baseScript
set the script of control m to IT
 end if
  end repeat
   end repeat
end changeScripts

Hope this helps

On Mar 4, 2010, at 10:46 AM, William de Smet wrote:


Hi there,

I have a stack with 100 buttons in it and they all have the same  
script.

The buttons are called "d1" to "d100".

How do I change the code for all of them in one time?
I don't feel like copy/paste 100 times.



Jim Ault
Las Vegas



___
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: FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Michael Kann
http://unite.opera.com/

-- just an idea.



--- On Thu, 3/4/10, Ken Ray  wrote:

> From: Ken Ray 
> Subject: FTP uploads with curl - monitoring progress - any ideas?
> To: "Use Revolution List" 
> Date: Thursday, March 4, 2010, 12:28 PM
> I have some large files (100MB +)
> that I need to FTP to a customer's server.
> I have tried to use libURL to do the uploading, but I get
> odd results/random
> timeouts/errant status messages when the file I'm uploading
> is over 40MB.
> I've tried many different workarounds to this, but none
> have been
> consistent/acceptable so for this project I'm seeing if I
> can use curl.
> 
> The pain is that there doesn't seem to be a way to retrieve
> the progress of
> an FTP upload so I can display a custom upload box. If I
> redirect it to
> dev/null, I get control back after the upload starts, but I
> can't get any
> progress data:
> 
>    curl -T filePath -u user:pass
> serverAdress > /dev/null 2>&1 &
> 
> If I redirect to stdin, it's blocking and I only get
> anything when the
> upload is complete:
> 
>    curl -T filePath -u user:pass
> serverAdress > stdin
> 
> I've also tried:
> 
>    curl -T filePath -u user:pass
> serverAdress > stdin &
>    curl -T filePath -u user:pass
> serverAdress > stdin 2>&1 &
> 
> Is there any way to make a non-blocking call to curl, but
> then to get back
> the progress text that would normally be displayed in the
> Terminal?
> 
> Any help would be appreciated...
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: k...@sonsothunder.com
> Web Site: http://www.sonsothunder.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


Re: AW: OT: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Andre Garzia wrote:

I was going to make my software refuse to run 15% of the time due to bad
licensing and then catch some smart hackers just due to statistic
misfortune.

I was going to call the system the "Schrodingers Quantum Copy Protection
Lock System" patent it and win billions from holywood and RIAA!


The problem with the Schrodinger algorithm is that as soon as you open 
the script editor to look at the code the cat dies.


:)

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread Mikey
When I read the original post the first thing I thought was "yeah, try THAT
in most other tools", and then "OMG there are going to be 20 different
solutions to this issue".  We're up to 3.  17 to go.


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
  and did a little diving.
And God said, "This is good."
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread Jim Ault

Yours is the best solution, Jacques, if using Rev 3.0 or later.
Repeat loops will work on all versions 2.2+

Jim Ault
Las Vegas


On Mar 4, 2010, at 11:05 AM, Jacques Hausser wrote:


Hi William

A good case for using behaviors ! Set the script of an hidden btn  
"BCommonScript" as you want and then put somewhere in the opening  
process of your stack:


repeat with i = 1 to 100
  put "d" &i into tButtonName
  set the behavior of btn tbuttonName to the long ID of button  
"BCommonscript"

end repeat

Jacques

Le 4 mars 2010 à 19:46, William de Smet a écrit :


Hi there,

I have a stack with 100 buttons in it and they all have the same  
script.

The buttons are called "d1" to "d100".

How do I change the code for all of them in one time?
I don't feel like copy/paste 100 times.








___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Andre Garzia
funny tale below:

Once I lost both the serial generator for one of my software and the backup
for the given generator. People were buying the software but I could not
generate the serial for them, then, I remembered that I had not removed some
debug messages. So if invoked thru the terminal from inside the bundle
instead of run thru the finder, it would output debug messages.

If the user tried a license that was invalid, it would output the invalid
license and the correct license for the given email to the console.

By running my copy and trying buyers emails, I got all licenses I needed.

I never found my console trick anywhere on the pirates sites. It is quite
impressive the amount of stuff softwares output to the console, lots of
developers leave this kind of stuff behind due to simply forgetting about
them.

These days (9 years later) I am much more organized with my code and backups
and I always have a switch to turn off all debug messages before shipping.

Cheers
andre


On Thu, Mar 4, 2010 at 4:18 PM, Richard Gaskin
wrote:

> Marty Knapp wrote:
>
>> I like the idea of pre-generated keys. It seems like a good in-between
>> method. If your user then registered their key and someone else
>> subsequently tried to register the same number you would have some
>> recourse. I don't want to get bogged down in lots of administrative
>> hassles, so I like this method. Does anyone have suggestions about
>> setting up something like this? And a method for verifying the key?
>>
>
>
> Challenging, but fun:
> -
>
> Start by reading these for inspiration:
>
> The Plain Truth about Casual Software Piracy
> by Matt Slot, Ambrosia Software
> 
>
> Anti Cracking FAQ
> How to make cracking your programs a little harder
> 
>
> Now devise a scheme of between 12 and 20 characters in which some of the
> characters must be in a specific range to be valid, and others are derived
> from combinations of others.  For example, character 10 could be the ASCII
> equivalent of the average of characters 9, 4, and 2, and character 2 could
> be the sum of characters 1 and 5 minus character 8, etc.  It's sometimes
> useful to have some characters use values you can derive meaning from, such
> as the version number, if needed.  Use that to generate your keys.
>
> Avoid schemes that produce any "1" or "0" characters since those will be
> mistyped as "l" and "O" by many users, raising support requests with
> complaints of a "bad reg code".  This will reduce the range of acceptable
> keys, but you should still be able to produce at least 10,000 unique keys
> from most schemes you can think up in a few minutes. If you sell 10,000
> copies you've made more than enough money to finance your upgrade with a new
> reg scheme. :)
>
> Also provide a Paste Code button in your reg window so they don't need to
> type the code at all, and handle Cmd-V yourself by cleaning the
> clipboardData["text"] of any extraneous characters before pasting into your
> field (people will include trailing returns and other garbage when copying
> from the reg email you sent them).
>
> Then write the inverse of the generator to validate your codes, but break
> up the validation into multiple handlers each doing a small part of it,
> using obscure function names strewn all over your code base with lots of
> red-herring handlers with similar names littered among them. Extra bonus
> points if the handlers you call also call others; the more the merrier.
>  Anyone tracing your code in a low-level debugger will find it far more
> annoying than it's worth.
>
> Run all your keys through the validator before shipping, to ensure the
> generator and the validator are in synch.  This batch validator should also
> check uniqueness of all keys to avoid having a single key sent to multiple
> users.
>
> Then of course add at least a half-second delay for validation somewhere in
> your sequence to thrwart brute-force attacks.  A half-second won't bother a
> user, but for automated attempts it means the difference between hours and
> years.
>
> Then lock your stack with a good password, after writing down your algo
> somewhere since your code will be unreadable to even yourself.  Use v4.0 to
> build, since the password protection is much stronger.
>
> Repeat with each new version, changing your scheme substantially between
> versions so that all the old keygens that showed up on those overseas
> servers within a week of your last release will no longer work with your new
> version.
>
>
>
> Less challenging, but no less fun:
> -
>
> Just use Jacque Gay's Zygodact
> Automated Registration System for Revolution
> 
>
>
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjo

Re: AW: OT: locking software to one specific machine?

2010-03-04 Thread Jeff Massung
On Thu, Mar 4, 2010 at 1:18 PM, Richard Gaskin
wrote:

[... snip ...]


> Then write the inverse of the generator to validate your codes, but break
> up the validation into multiple handlers each doing a small part of it,
> using obscure function names strewn all over your code base with lots of
> red-herring handlers with similar names littered among them. Extra bonus
> points if the handlers you call also call others; the more the merrier.
>  Anyone tracing your code in a low-level debugger will find it far more
> annoying than it's worth.
>
>
Just a note on the recommendation below (as I do have a lot of experience in
this area), before someone goes and wastes a lot of time coming up with
something awesome that ends up being cracked in a matter of minutes...

1. Don't have this code in one localized place (as Richard already
mentioned).

2. Don't follow the "Extra bonus points" recommendation. This is a *bad
idea*. You want these functions that check reg codes to be extremely small
and obfuscated.

3. You *DO* want to checksum the code that checks regcodes (either the
optimized assembly or the raw script in Rev) and stick that checksum in
several random places through out the code.

4. Inside the reg check code is also the check against one of those random
checksums with a checksum of itself. You're protecting against someone who
modifies the registration checking code (which is trivial to do).

5. Don't make a global variable that is true if the user is registered and
false if not. This will get hacked in ~2 minutes. Instead, every time you
want to make sure the user is registered, call your check function.

6. Check often, and in random places. If possible, make it a completely
random check (e.g. have a timer or message loop that checks it every 60
seconds, regardless of what the user is doing).

7. Don't error out immediately if the check fails. Instead, you want to wait
and die later on, and often times in subtle ways. For example, suddenly
prompt the user to re-enter their code.

Those are some good starting points.

It should be noted that white-listing reg codes usually isn't a great idea.
Reg codes should be generated from something personal (like the user's email
address), and can be reverse engineered by you if needed. But white listing
is easy.

Jeff M.
___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Jeff Massung wrote:


On Thu, Mar 4, 2010 at 1:18 PM, Richard Gaskin
wrote:

[... snip ...]



Then write the inverse of the generator to validate your codes, but break
up the validation into multiple handlers each doing a small part of it,
using obscure function names strewn all over your code base with lots of
red-herring handlers with similar names littered among them. Extra bonus
points if the handlers you call also call others; the more the merrier.
 Anyone tracing your code in a low-level debugger will find it far more
annoying than it's worth.


...

2. Don't follow the "Extra bonus points" recommendation. This is a *bad
idea*. You want these functions that check reg codes to be extremely small
and obfuscated.


I agree with everything else you wrote, and it seems very reflective of 
much of the Delphi Anti-Cracking FAQ, but on this I'm confused:


It seems like we're saying the same thing about obfuscation. Or maybe I 
just wrote poorly.


Having obscure, small handlers in your validation scheme calling other 
obscure, small handlers, some of which are are red-herrings, seems to 
only further obfuscate the code, no?


At least, that was what I had intended to suggest. I think we're in 
agreement here, unless I misunderstand something.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: COPY PROTECTION of Rev Project

2010-03-04 Thread Richmond Mathewson

On 04/03/2010 22:21, Ted wrote:

Hello, I have two questions for the Revolution Sages:


1. Recently, I had to move years' worth of old software to a new machine, and
because I couldn't locate one of my keys, I contacted the vendor.

This got me thinking. Suddenly I saw myself, five years from now, as a vendor,
tied to a desk with a bank of ringing phones, giving out keys to customers
from five years before.

What are others' experiences with this?

(I got into this business so I could retire, not babysit a ticking bomb.)


2. I seem to remember Bill Gates' once saying that rampant worldwide piracy of
Windows had greatly helped Microsoft capture the market, because it kept Linux
at bay.

In certain cases, how might a lack of copy protection work as a competitive
tool?


Thanks,

Ted

   

The Open Source model seems to work: download for free, then donate if you
have the resources.


___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Jeff Massung
On Thu, Mar 4, 2010 at 1:38 PM, Richard Gaskin
wrote:

> Jeff Massung wrote:
>
>  On Thu, Mar 4, 2010 at 1:18 PM, Richard Gaskin
>> wrote:
>>
>>
>> [... snip ...]
>>
>>
>>  Then write the inverse of the generator to validate your codes, but break
>>> up the validation into multiple handlers each doing a small part of it,
>>> using obscure function names strewn all over your code base with lots of
>>> red-herring handlers with similar names littered among them. Extra bonus
>>> points if the handlers you call also call others; the more the merrier.
>>>  Anyone tracing your code in a low-level debugger will find it far more
>>> annoying than it's worth.
>>>
>>
> ...
>
>  2. Don't follow the "Extra bonus points" recommendation. This is a *bad
>> idea*. You want these functions that check reg codes to be extremely small
>> and obfuscated.
>>
>
> I agree with everything else you wrote, and it seems very reflective of
> much of the Delphi Anti-Cracking FAQ, but on this I'm confused:
>
> It seems like we're saying the same thing about obfuscation. Or maybe I
> just wrote poorly.
>
> Having obscure, small handlers in your validation scheme calling other
> obscure, small handlers, some of which are are red-herrings, seems to only
> further obfuscate the code, no?
>
> At least, that was what I had intended to suggest. I think we're in
> agreement here, unless I misunderstand something.
>

Fundamentally, I this we are in agreement. My experience here has been that
calling out to any other code (even red herrings) just increases the number
of possible failure points that a cracker can hone in on... and they only
have to break one.

While you don't want to funnel the registration check into a single
location, you just as equally don't want to explode the code location of the
registration check as opposed to exploding the number of places where the
check is located.

Jeff M.

P.S. I like this thread... dunno why, but I really get into things like
this. ;-)
___
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: Interfacing to Mac iCal and Address Book

2010-03-04 Thread Bob Sneidar
Sounds like you either need to enlist the help of a registered Apple Developer 
who can get information on the proper way to communicate with the iApps, or 
else become an Apple developer yourself. 

I suspect also that there may be a way to write an Applescript to do it, but 
that might be cumbersome. 

Bob


On Mar 4, 2010, at 9:45 AM, Peter Haworth wrote:

> Anyone got any tips on how to integrate calendar and name/address info from 
> OSX into an application?  Not thinking in terms of import/export/sync, more 
> along the lines of instant query/update/delete.  Not much detail there but 
> something along the lines of listing Mac address book entries within my app 
> and being able to directly update/delete them from within the app.  With the 
> calendar data, use iCal to display appointments/tasks but have lists of them 
> in my app linked to their iCal entriess so any changes within my app get 
> reflected in iCal.
> Thanks,
> 
> Pete Haworth
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Bob Sneidar
Well I guess the idea that men are basically good at heart is DOA. :-)

Bob


___
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: FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Phil Davis

Hi Ken,

If you open curl as a process, you can then read the status info one 
line at a time. Would that work?


Here's one way (courtesy of Josh Mellicker, with some mods):

-- a button script --

local vCurlProcess


on mouseUp
   put empty into fld "output"
   put formattedForCurl(fld "filename") into tFiles

   put ("curl -T" && tFiles && fld "server" && "-C -") into vCurlProcess
   open process vCurlProcess for read
   get the result
   if it = empty
   then send "getCurlReport" to me in 12 ticks
   else answer it
end mouseUp


on getCurlReport
   read from process vCurlProcess for 1 line
   put it after fld "output"
   if it = empty
   then closeCurl
   else send "getCurlReport" to me in 12 ticks
end getCurlReport


on closeCurl
   close process vCurlProcess
   answer "Done."
end closeCurl


function formattedForCurl pFileList
   -- handle single file selection
   if the number of lines in pFileList = 1 then return quote & 
pFileList & quote


   -- handle multi file selections
   replace CR with "," in pFileList
   put quote & "{" & pFileList & "}" & quote into tList
   return tList
end formattedForCurl


There you have it!
Phil



On 3/4/10 10:28 AM, Ken Ray wrote:

I have some large files (100MB +) that I need to FTP to a customer's server.
I have tried to use libURL to do the uploading, but I get odd results/random
timeouts/errant status messages when the file I'm uploading is over 40MB.
I've tried many different workarounds to this, but none have been
consistent/acceptable so for this project I'm seeing if I can use curl.

The pain is that there doesn't seem to be a way to retrieve the progress of
an FTP upload so I can display a custom upload box. If I redirect it to
dev/null, I get control back after the upload starts, but I can't get any
progress data:

curl -T filePath -u user:pass serverAdress>  /dev/null 2>&1&

If I redirect to stdin, it's blocking and I only get anything when the
upload is complete:

curl -T filePath -u user:pass serverAdress>  stdin

I've also tried:

curl -T filePath -u user:pass serverAdress>  stdin&
curl -T filePath -u user:pass serverAdress>  stdin 2>&1&

Is there any way to make a non-blocking call to curl, but then to get back
the progress text that would normally be displayed in the Terminal?

Any help would be appreciated...

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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

   


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Richard Gaskin

Jeff Massung wrote:


On Thu, Mar 4, 2010 at 1:38 PM, Richard Gaskin

...

I agree with everything else you wrote, and it seems very reflective of
much of the Delphi Anti-Cracking FAQ, but on this I'm confused:

It seems like we're saying the same thing about obfuscation. Or maybe I
just wrote poorly.

Having obscure, small handlers in your validation scheme calling other
obscure, small handlers, some of which are are red-herrings, seems to only
further obfuscate the code, no?

At least, that was what I had intended to suggest. I think we're in
agreement here, unless I misunderstand something.


Fundamentally, I this we are in agreement. My experience here has been that
calling out to any other code (even red herrings) just increases the number
of possible failure points that a cracker can hone in on... and they only
have to break one.

While you don't want to funnel the registration check into a single
location, you just as equally don't want to explode the code location of the
registration check as opposed to exploding the number of places where the
check is located.


Ah, I see.  Thanks for the clarification.  Yes, that makes sense.



Jeff M.

P.S. I like this thread... dunno why, but I really get into things like
this. ;-)


Yeah, me too.  The Delphi Anti-Crack FAQ was one of the more fun reads 
I've come across.  It's almost too bad that I'm not all that concerned 
about piracy anymore, since it's kind of fun to play with.  I suppose 
another good outlet for that sort of thing is securing Internet 
transmission - got any tips there? (esp. since we don't have SFTP)


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: Interfacing to iCal and Mac Address Book

2010-03-04 Thread Peter Haworth
Well, I've seen a couple of apps out there that interface directly  
with iTunes so was hoping someone might have done the same thing with  
Calendar/Address Book.


I do have some expertise with AppleScript so might be able to figure  
something out using that method, just didn't want to re-invent the  
wheel if there was a wheel already out there.


Pete Haworth








On Mar 4, 2010, at 12:51 PM, use-revolution-requ...@lists.runrev.com  
wrote:



Date: Thu, 4 Mar 2010 12:06:01 -0800
From: Bob Sneidar 
Subject: Re: Interfacing to Mac iCal and Address Book
To: How to use Revolution 
Message-ID: <9ffbae66-dc82-41cd-9a85-3c943ad32...@twft.com>
Content-Type: text/plain; charset=us-ascii

Sounds like you either need to enlist the help of a registered Apple  
Developer who can get information on the proper way to communicate  
with the iApps, or else become an Apple developer yourself.


I suspect also that there may be a way to write an Applescript to do  
it, but that might be cumbersome.


Bob


___
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


RevMobile first impressions?

2010-03-04 Thread François Chaplais
I received by mail the availability on the pre alpha revmobile release. I still 
have a week to use a coupon that entitles me 5 years for the price of one 
(reason is I have done the same for studio). Still, this is 700€, which is a 
lot considering I probably will never make any money of it.

So, has someone jumped in the wagon and can share his/her impressions?

This would be very appreciated.

I went though the buying process and cancelled at the last moment when I saw 
the price...

On the other hand, I love the idea of programming for the iPhone/iPad.

TIA

François



___
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: RevMobile first impressions?

2010-03-04 Thread Marcio Alexandroni
Hi François,

I have purchased RevMobile and I'm very well impressed with the product.
It's still in Alpha-Version, which means it lacks a lot of features, but the
executables generated are fast although a little bit large for now.

I really think it will be an amazing product upon release in november. I
have projects to create for iPhone, Maemo and WM and I'll do all them in
RevMobile.

I'm used to test and use new mobile dev tools since 1998, I've used many
tools and RevMobile is the most impressive Alpha-Version I've ever seen.

Regards,

Marcio Alexandroni
www.cialogica.com.br
 ( (+55 11) 9989-8316
Skype: marcioalexandroni
-- 



> From: François Chaplais 
> Reply-To: How to use Revolution 
> Date: Thu, 4 Mar 2010 22:02:08 +0100
> To: How to use Revolution 
> Subject: RevMobile first impressions?
> 
> I received by mail the availability on the pre alpha revmobile release. I
> still have a week to use a coupon that entitles me 5 years for the price of
> one (reason is I have done the same for studio). Still, this is 700€, which is
> a lot considering I probably will never make any money of it.
> 
> So, has someone jumped in the wagon and can share his/her impressions?
> 
> This would be very appreciated.
> 
> I went though the buying process and cancelled at the last moment when I saw
> the price...
> 
> On the other hand, I love the idea of programming for the iPhone/iPad.
> 
> TIA
> 
> François
> 
> 
> 
> ___
> 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: RevMobile first impressions?

2010-03-04 Thread Colin Holgate

On Mar 4, 2010, at 4:02 PM, François Chaplais wrote:

> >So, has someone jumped in the wagon and can share his/her impressions?


Would people who have such a thing be allowed to tell you about it?


___
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: RevMobile first impressions?

2010-03-04 Thread Ian Wood


On 4 Mar 2010, at 21:02, François Chaplais wrote:

I went though the buying process and cancelled at the last moment  
when I saw the price...


That's my problem as well. As much as I want to do stuff for the  
iPhone and iPad without learning Cocoa, $800 plus $400 per year *on  
top* of my existing licence means a hell of a lot of app sales just to  
break even. For some who isn't primarily a programmer and wears a lot  
of other hats (photography, web stuff, installation artist etc.) it's  
not even in consideration. :-(


Ian___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Brian Yennie
While this thread is alive, I've long been curious what the criticisms would be 
of the following scheme, for a product with low to medium security needs. This 
does assume that you require an internet connection for registration, but that 
seems to be a generally acceptable requirement these days.

1) Generate as many (or as few) *random* keys as you need
2) Put them in a database
3) User inputs key, app contacts hosted script which checks if the key is in 
the database
4) If YES, expire that key
5) If NO, lock out the user for a few seconds
6) Go back to #1 if you sell more keys

Point being, if you are ok with requiring an internet connection, why generate 
a key which has *any* pattern that can be cracked? Guessing a random key you 
can do very simple math to know the chances of someone cracking it by brute 
force, and there will be no other method short of getting a hold of your 
database (and let's face it, if someone is cracking your servers, you might as 
well give up). For example if you have "only" 1,000 valid keys and something 
like a 16 digit HEX code, a cracker has about a 1 in 20,000,000,000,000,000 
chance of guessing a correct code. Even if you don't lock out after failures... 
that's 20 quadrillion tries we're talking about. As a bonus crackers may expend 
a lot of effort looking for a pattern which doesn't exist.

I probably haven't given this as much thought since I've never really had to 
implement it, but I'm keen to hear opinions from those that have. What am I 
missing? Is there an inherent fear of keeping the database secure which trumps 
keeping an algorithm secret?

> Marty Knapp wrote:
>> I like the idea of pre-generated keys. It seems like a good in-between
>> method. If your user then registered their key and someone else
>> subsequently tried to register the same number you would have some
>> recourse. I don't want to get bogged down in lots of administrative
>> hassles, so I like this method. Does anyone have suggestions about
>> setting up something like this? And a method for verifying the key?
> 
> 
> Challenging, but fun:
> -
> 
> Start by reading these for inspiration:
> 
> The Plain Truth about Casual Software Piracy
> by Matt Slot, Ambrosia Software
> 
> 
> Anti Cracking FAQ
> How to make cracking your programs a little harder
> 
> 
> Now devise a scheme of between 12 and 20 characters in which some of the 
> characters must be in a specific range to be valid, and others are derived 
> from combinations of others.  For example, character 10 could be the ASCII 
> equivalent of the average of characters 9, 4, and 2, and character 2 could be 
> the sum of characters 1 and 5 minus character 8, etc.  It's sometimes useful 
> to have some characters use values you can derive meaning from, such as the 
> version number, if needed.  Use that to generate your keys.
> 
> Avoid schemes that produce any "1" or "0" characters since those will be 
> mistyped as "l" and "O" by many users, raising support requests with 
> complaints of a "bad reg code".  This will reduce the range of acceptable 
> keys, but you should still be able to produce at least 10,000 unique keys 
> from most schemes you can think up in a few minutes. If you sell 10,000 
> copies you've made more than enough money to finance your upgrade with a new 
> reg scheme. :)
> 
> Also provide a Paste Code button in your reg window so they don't need to 
> type the code at all, and handle Cmd-V yourself by cleaning the 
> clipboardData["text"] of any extraneous characters before pasting into your 
> field (people will include trailing returns and other garbage when copying 
> from the reg email you sent them).
> 
> Then write the inverse of the generator to validate your codes, but break up 
> the validation into multiple handlers each doing a small part of it, using 
> obscure function names strewn all over your code base with lots of 
> red-herring handlers with similar names littered among them. Extra bonus 
> points if the handlers you call also call others; the more the merrier.  
> Anyone tracing your code in a low-level debugger will find it far more 
> annoying than it's worth.
> 
> Run all your keys through the validator before shipping, to ensure the 
> generator and the validator are in synch.  This batch validator should also 
> check uniqueness of all keys to avoid having a single key sent to multiple 
> users.
> 
> Then of course add at least a half-second delay for validation somewhere in 
> your sequence to thrwart brute-force attacks.  A half-second won't bother a 
> user, but for automated attempts it means the difference between hours and 
> years.
> 
> Then lock your stack with a good password, after writing down your algo 
> somewhere since your code will be unreadable to even yourself.  Use v4.0 to 
> build, since the password protection is much stronger.
> 
> Repeat with each new version, changin

Dispatch Versus Send

2010-03-04 Thread Gregory Lypny

Hello everyone,

What's the difference between the two other than Dispatch using the  
normal message path?


Regards,

Gregory

___
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: RevMobile first impressions?

2010-03-04 Thread Marian Petrides
That's interesting Francois, since the offer I received (same details, 
different expiration) expired a week or so ago.  Too bad I didn't take 
advantage of it.  The video of Ben designing his Sheep Herder app certainly was 
impressive!

On Mar 4, 2010, at 3:02 PM, François Chaplais wrote:

> I received by mail the availability on the pre alpha revmobile release. I 
> still have a week to use a coupon that entitles me 5 years for the price of 
> one (reason is I have done the same for studio). Still, this is 700€, which 
> is a lot considering I probably will never make any money of it.
> 
> So, has someone jumped in the wagon and can share his/her impressions?
> 
> This would be very appreciated.
> 
> I went though the buying process and cancelled at the last moment when I saw 
> the price...
> 
> On the other hand, I love the idea of programming for the iPhone/iPad.
> 
> TIA
> 
> François
> 
> 
> 
> ___
> 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: Dispatch Versus Send

2010-03-04 Thread Trevor DeVore

On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote:


Hello everyone,

What's the difference between the two other than Dispatch using the  
normal message path?


* No error thrown if message you dispatch isn't caught along the way.

* Dispatch tells you whether or not the message was handled, passed or  
not handled.


* Easier to pass params with dispatch.

* Dispatch always happens immediately. No "in time" option.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.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: Dispatch Versus Send

2010-03-04 Thread zryip theSlug
2010/3/4 Gregory Lypny :
> Hello everyone,
>
> What's the difference between the two other than Dispatch using the normal
> message path?

Hello Gregory,

The disptach definition from the Rev dictionary:

The dispatch command is most useful when using behaviors, as it allows
a behavior script to send an 'event' to one of its child objects and
then perform an action depending on the outcome.

Executing a dispatch command causes the message to be sent to the
target object with the given argument list. This message passes
through the message path in the normal way. Once finished, the
variable 'it' will contain one of the following three values:

"handled" - the message was handled and not passed
"unhandled" - no matching handlers were found
"passed" - the message was handled but passed by all handlers

If no target is specified, the message is sent to 'me'. Note that in
the context of a behavior, this will typically be the child that is
executing rather than the behavior object itself.


The send message in the rev dictionary:

Use the send command to override the normal message path, or to delay
a command until a specified time.

In conclusion,
1) Dispatch
- is recommended with behavior.
- provide you a result if the message has been intercepted or not
(handled, unhandled or passed)

2) send
- allow you to override the normal message path. You'll be obtain an
error if the message is not intercepted by an object (ie if you send a
customMessage to a cd, you will obtain an error message if the
customMessage doesn't exists in the card script).
- allow you to delay a command (ie for scanning some events, creating
animations, etc)

HTH,

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: Dispatch Versus Send

2010-03-04 Thread zryip theSlug
2010/3/4 Trevor DeVore :
> On Mar 4, 2010, at 4:42 PM, Gregory Lypny wrote:
>
>> Hello everyone,
>>
>> What's the difference between the two other than Dispatch using the normal
>> message path?
>
> * No error thrown if message you dispatch isn't caught along the way.
>
> * Dispatch tells you whether or not the message was handled, passed or not
> handled.
>
> * Easier to pass params with dispatch.
>
> * Dispatch always happens immediately. No "in time" option.

Trevor is too fast for me. I will ask an anti-doping control!

8-)

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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


Application Browser not showing groups

2010-03-04 Thread Glen Bojsza
This is a strange one (for me) but I rely on the Application Browser to show
me the various components on cards.

I have an application that shows me some of the components but not all of
them.

If I use the Property Inspector and inspect groups I find that the
application has tens of groups yet in the application browser it only shows
8?

>From the Property Inspector I select one group and it hilites the actual
group on the card.

BUT, there are also other groups that I select via the Property Browser and
nothing is visibly shown??

Finally, I also noticed that the Application Browser shows gaps in the
Layers numbering which is also a tip off.

What is the reason they do not show in  the Application Browser?

As for their purpose, I am assuming that they may be having custom
properties being assigned though I haven't confirmed this yet.

thanks,
___
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: RevMobile first impressions?

2010-03-04 Thread Jacques Hausser

Le 4 mars 2010 à 22:53, Marian Petrides a écrit :

> That's interesting Francois, since the offer I received (same details, 
> different expiration) expired a week or so ago.  Too bad I didn't take 
> advantage of it.  The video of Ben designing his Sheep Herder app certainly 
> was impressive!

Yes, indeed, but poor Ben had nevertheless to jump straight over his lunch...

Jacques

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***

___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Martin Baxter
Richard Gaskin wrote:
> Andre Garzia wrote:
>> I was going to make my software refuse to run 15% of the time due to bad
>> licensing and then catch some smart hackers just due to statistic
>> misfortune.
>>
>> I was going to call the system the "Schrodingers Quantum Copy Protection
>> Lock System" patent it and win billions from holywood and RIAA!
> 
> The problem with the Schrodinger algorithm is that as soon as you open
> the script editor to look at the code the cat dies.
> 
> :)
> 

Maybe. ;)

More usually it is just asleep and dreaming of a box in which there is
an indeterminate mouse that...

:)
Martin Baxter

-- 
I am Not a Number, I am a free NaN

___
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: Dispatch Versus Send

2010-03-04 Thread Jim Bufalini
Gregory Lypny wrote:

> What's the difference between the two other than Dispatch using the
> normal message path?

I think one of the more significant considerations when deciding to use
dispatch or send "in time" is the last point Trevor made, which is dispatch
is more like executing a command or function in that the handler that
executes the dispatch is "blocked" from exiting until the result of the
dispatch is returned, where a send "in time" allows the calling handler to
exit first before the send is executed. It should be noted here that a send
without the "in time" option is the same as it also is executed immediately
and is therefore similar to executing a command.

Aloha from Hawaii,

Jim Bufalini

___
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: Dispatch Versus Send

2010-03-04 Thread Richard Gaskin

Gregory Lypny wrote:

What's the difference between the two other than Dispatch using the
normal message path?


FWIW, where they can be used interchangeably dispatch is about 20% faster.

Of course it's not like you'll be using them for all your messages, but 
if you have a situation where speed matters it can add up.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: RevMobile first impressions?

2010-03-04 Thread Sarah Reichelt
2010/3/5 François Chaplais :
> I received by mail the availability on the pre alpha revmobile release. I 
> still have a week to use a coupon that entitles me 5 years for the price of 
> one (reason is I have done the same for studio). Still, this is 700€, which 
> is a lot considering I probably will never make any money of it.
>
> So, has someone jumped in the wagon and can share his/her impressions?
>
> This would be very appreciated.
>
> I went though the buying process and cancelled at the last moment when I saw 
> the price...
>
> On the other hand, I love the idea of programming for the iPhone/iPad.

Just started it up and tested my first stack, so these are really very
superficial first impressions. I don't see any problem telling you
about since there is already so much detail on the runrev site - I
just can't give you my downloaded copy or login details.

You install a plugin to Rev. Open your stack file and tell the plugin
to use this stack. You can give it various other parameters like a
bundle name, icon etc, as well as setting it up with a profile for
distribution (although I don't know if this bit works yet). Then just
click the "Start" button on the plugin and the iPhone simulator pops
up and your stack is running.

I just dragged some basic interface elements in to see how they looked.
First impression - the display is very like MetaCard used to be: grey
& blocky. However RunRev has said that the native iPhone look will be
coming later, so that isn't something to worry about.
It feels very fast - certainly faster to get started in the iPhone
Simulator than my XCode projects, and then the response feels snappy.
The basic interface elements just work: clicking in an unlocked field
pops up the keyboard, clicking away makes it disappear. Radio buttons,
check boxes, sliders all work.
Dialogs: answer works fine and produces a native alert box, ask does nothing.
You cannot test on the iPad simulator yet.

I'm really excited about this. Now a single language and IDE allows us
to deliver on the desktop, web, server and mobile. It's going to be
fantastic.

Should you spend the money? That's a tricky one. I spent a
considerable time last year learning XCode so I could program on the
iPhone, and I believe that anyone who can program in Rev can learn to
program in XCode - it all just takes longer. While XCode itself is
free, you will need to buy books and invest a lot of time learning.
And you do need an iPhone developer license to get any apps on to an
iPhone. So it comes down to the value of your time and whether you
think you can get the return on investment.

I will be exploring revMobile further during the day, and if people
are interested, I am happy to post my more detailed impressions later.

Cheers,
Sarah
___
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: RevMobile first impressions?

2010-03-04 Thread Marian Petrides
I'd love to hear your more detailed impressions, Sarah, and I bet others would 
too.  Meanwhile, thanks for the early preview!

On Mar 4, 2010, at 4:38 PM, Sarah Reichelt wrote:

> 2010/3/5 François Chaplais :
>> I received by mail the availability on the pre alpha revmobile release. I 
>> still have a week to use a coupon that entitles me 5 years for the price of 
>> one (reason is I have done the same for studio). Still, this is 700€, which 
>> is a lot considering I probably will never make any money of it.
>> 
>> So, has someone jumped in the wagon and can share his/her impressions?
>> 
>> This would be very appreciated.
>> 
>> I went though the buying process and cancelled at the last moment when I saw 
>> the price...
>> 
>> On the other hand, I love the idea of programming for the iPhone/iPad.
> 
> Just started it up and tested my first stack, so these are really very
> superficial first impressions. I don't see any problem telling you
> about since there is already so much detail on the runrev site - I
> just can't give you my downloaded copy or login details.
> 
> You install a plugin to Rev. Open your stack file and tell the plugin
> to use this stack. You can give it various other parameters like a
> bundle name, icon etc, as well as setting it up with a profile for
> distribution (although I don't know if this bit works yet). Then just
> click the "Start" button on the plugin and the iPhone simulator pops
> up and your stack is running.
> 
> I just dragged some basic interface elements in to see how they looked.
> First impression - the display is very like MetaCard used to be: grey
> & blocky. However RunRev has said that the native iPhone look will be
> coming later, so that isn't something to worry about.
> It feels very fast - certainly faster to get started in the iPhone
> Simulator than my XCode projects, and then the response feels snappy.
> The basic interface elements just work: clicking in an unlocked field
> pops up the keyboard, clicking away makes it disappear. Radio buttons,
> check boxes, sliders all work.
> Dialogs: answer works fine and produces a native alert box, ask does nothing.
> You cannot test on the iPad simulator yet.
> 
> I'm really excited about this. Now a single language and IDE allows us
> to deliver on the desktop, web, server and mobile. It's going to be
> fantastic.
> 
> Should you spend the money? That's a tricky one. I spent a
> considerable time last year learning XCode so I could program on the
> iPhone, and I believe that anyone who can program in Rev can learn to
> program in XCode - it all just takes longer. While XCode itself is
> free, you will need to buy books and invest a lot of time learning.
> And you do need an iPhone developer license to get any apps on to an
> iPhone. So it comes down to the value of your time and whether you
> think you can get the return on investment.
> 
> I will be exploring revMobile further during the day, and if people
> are interested, I am happy to post my more detailed impressions later.
> 
> Cheers,
> Sarah
> ___
> 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: Dispatch Versus Send

2010-03-04 Thread Jeff Massung
Anyone want to now comment on dispatch vs. call?

;-)

Jeff M.

On Thu, Mar 4, 2010 at 4:37 PM, Richard Gaskin
wrote:

> Gregory Lypny wrote:
>
>> What's the difference between the two other than Dispatch using the
>> normal message path?
>>
>
> FWIW, where they can be used interchangeably dispatch is about 20% faster.
>
> Of course it's not like you'll be using them for all your messages, but if
> you have a situation where speed matters it can add up.
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjournal.com/blog.irv
>
> ___
> 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: Application Browser not showing groups

2010-03-04 Thread Richard Gaskin

Glen Bojsza wrote:


I have an application that shows me some of the components but not all of
them.

If I use the Property Inspector and inspect groups I find that the
application has tens of groups yet in the application browser it only shows
8?


From the Property Inspector I select one group and it hilites the actual

group on the card.

BUT, there are also other groups that I select via the Property Browser and
nothing is visibly shown??

Finally, I also noticed that the Application Browser shows gaps in the
Layers numbering which is also a tip off.

What is the reason they do not show in  the Application Browser?

As for their purpose, I am assuming that they may be having custom
properties being assigned though I haven't confirmed this yet.


Is the selectGroupedControls property of any of those groups set to false?

I believe the Rev App Browser hides the contents of "custom controls", 
being any group which has its selectGroupedControls set to false.


--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Sarah Reichelt
On Fri, Mar 5, 2010 at 5:23 AM, Richard Gaskin
 wrote:
> Andre Garzia wrote:
>>
>> I was going to make my software refuse to run 15% of the time due to bad
>> licensing and then catch some smart hackers just due to statistic
>> misfortune.
>>
>> I was going to call the system the "Schrodingers Quantum Copy Protection
>> Lock System" patent it and win billions from holywood and RIAA!
>
> The problem with the Schrodinger algorithm is that as soon as you open the
> script editor to look at the code the cat dies.


Surely it only half dies :-)
___
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: RevMobile first impressions?

2010-03-04 Thread Jeff Massung
On Thu, Mar 4, 2010 at 4:38 PM, Sarah Reichelt wrote:

>
> Should you spend the money? That's a tricky one. I spent a
> considerable time last year learning XCode so I could program on the
> iPhone, and I believe that anyone who can program in Rev can learn to
> program in XCode - it all just takes longer. While XCode itself is
> free, you will need to buy books and invest a lot of time learning.
> And you do need an iPhone developer license to get any apps on to an
> iPhone. So it comes down to the value of your time and whether you
> think you can get the return on investment.
>
>
Sarah, thanks for the first impressions.

Question: what would you recommend for someone who knows xcode and obj-c
inside-out? I like Rev just fine, but paying what amounts to $1000 for
something I could do for free...

Do you see any major features in RevMobile that would set it apart for
someone otherwise that would give it a leg up?

Jeff M.
___
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: Application Browser not showing groups

2010-03-04 Thread Glen Bojsza
That seems to be what is happening... thanks.

I'll have to do a little more research into this but I am over the "hump".

Glen

On Thu, Mar 4, 2010 at 3:48 PM, Richard Gaskin
wrote:

> Glen Bojsza wrote:
>
>  I have an application that shows me some of the components but not all of
>> them.
>>
>> If I use the Property Inspector and inspect groups I find that the
>> application has tens of groups yet in the application browser it only
>> shows
>> 8?
>>
>>  From the Property Inspector I select one group and it hilites the actual
>>>
>> group on the card.
>>
>> BUT, there are also other groups that I select via the Property Browser
>> and
>> nothing is visibly shown??
>>
>> Finally, I also noticed that the Application Browser shows gaps in the
>> Layers numbering which is also a tip off.
>>
>> What is the reason they do not show in  the Application Browser?
>>
>> As for their purpose, I am assuming that they may be having custom
>> properties being assigned though I haven't confirmed this yet.
>>
>
> Is the selectGroupedControls property of any of those groups set to false?
>
> I believe the Rev App Browser hides the contents of "custom controls",
> being any group which has its selectGroupedControls set to false.
>
> --
>  Richard Gaskin
>  Fourth World
>  Rev training and consulting: http://www.fourthworld.com
>  Webzine for Rev developers: http://www.revjournal.com
>  revJournal blog: http://revjournal.com/blog.irv
> ___
> 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: Dispatch Versus Send

2010-03-04 Thread Mark Wieder
Richard-

Thursday, March 4, 2010, 2:37:47 PM, you wrote:

> FWIW, where they can be used interchangeably dispatch is about 20% faster.

Have you benchmarked that? Empirically that's what I'm seeing as well,
but I've never actually timed it, so it's subjective here.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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


popup command cross-platform

2010-03-04 Thread Jeff Massung
So, I'm seeing different functionality w/ the popup command on OS X and
Win32, wondering if I should mark this as a bug, and also wondering if
anyone has a work-around?

-- in a field's script
on mouseUp
   set the backgroundColor of me to "black"
   popup btn "some menu"
   set the backgroundColor of me to "white"
end mouseUp

On Mac OS X this will set the backgruond color black, popup the menu, and
wait for me to "cancel" the popup or click a menu item in it, and then set
the background color back to white. On Win32 the field goes black -> white
instantly and the popup is still there.

I much prefer the OS X implementation (given this single context and what I
want to have happen), but I understand the advantages of the Win32
implementation. So if it's a bug, I could care less which version was
considered "correct" by RunRev, but them being different I consider
incorrect behavior.

That said, anyone have a workaround for me?

Jeff M.
___
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: RevMobile first impressions?

2010-03-04 Thread Sarah Reichelt
> Sarah, thanks for the first impressions.
>
> Question: what would you recommend for someone who knows xcode and obj-c
> inside-out? I like Rev just fine, but paying what amounts to $1000 for
> something I could do for free...
>
> Do you see any major features in RevMobile that would set it apart for
> someone otherwise that would give it a leg up?


As far as the iPhone/iPad go, if you are already an expert in
XCode/Obj-C, then I'd stay there. revMobile is really for people who
don't want to have to become XCoders, but do want to deploy on mobile
devices. I think it will result in much faster development, but it
won't offer any extra features and I think it is unlikely to allow
access to the full iPhone API.

But as with Rev itself, revMobile will allow cross-platform
development, so you can also deploy on Windows Mobile and Maemo, where
XCode is for Apple devices only.

Cheers,
Sarah
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread DunbarX
Typical.


In a message dated 3/4/10 2:25:09 PM, jimaultw...@yahoo.com writes:


> Yours is the best solution, Jacques, 
> 
> 
___
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: Dispatch Versus Send

2010-03-04 Thread Jim Bufalini
Mark Wieder wrote:

> Richard-
> 
> Thursday, March 4, 2010, 2:37:47 PM, you wrote:
> 
> > FWIW, where they can be used interchangeably dispatch is about 20%
> faster.
> 
> Have you benchmarked that? Empirically that's what I'm seeing as well,
> but I've never actually timed it, so it's subjective here.

While we are on benchmarking, has anyone benchmarked the difference in speed
of  execution between just calling *commandName* verses *send "commandName"*
without "in time". I realize send allows dynamically constructing a command
name similar to a *do*  without the compile time factor of a *do*, but I
guess I've always been curious if there was a speed difference in execution
of a command vs. send command.

I guess not curious enough to actually benchmark it. ;-)

Aloha from Hawaii,

Jim Bufalini

___
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: AW: OT: locking software to one specific machine?

2010-03-04 Thread Scott Morrow
I think this might be very effective at locking people out...  
including the developer. The process of observing the password could  
change it.


On Mar 4, 2010, at 11:17 AM, Andre Garzia wrote:

I was going to make my software refuse to run 15% of the time due to  
bad

licensing and then catch some smart hackers just due to statistic
misfortune.

I was going to call the system the "Schrodingers Quantum Copy  
Protection

Lock System" patent it and win billions from holywood and RIAA!

--
http://www.andregarzia.com All We Do Is Code.
___
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: RevMobile first impressions?

2010-03-04 Thread Ian Wood


On 4 Mar 2010, at 22:42, Marian Petrides wrote:

I'd love to hear your more detailed impressions, Sarah, and I bet  
others would too.  Meanwhile, thanks for the early preview!


Ditto!

Ian
___
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: How do I change the script for 100 buttons in one time?

2010-03-04 Thread J. Landman Gay

dunb...@aol.com wrote:

Typical.


In a message dated 3/4/10 2:25:09 PM, jimaultw...@yahoo.com writes:


Yours is the best solution, Jacques, 


Don't confuse the guy with the "s" with me, who has no "s". ;) I still 
trip over it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: Dispatch Versus Send

2010-03-04 Thread Richard Gaskin

Mark Wieder wrote:


Richard-

Thursday, March 4, 2010, 2:37:47 PM, you wrote:


FWIW, where they can be used interchangeably dispatch is about 20% faster.


Have you benchmarked that?


You have to ask? :)

Here's a script I tested with back in September when I had to make some 
architectural decisions for an app with complex messaging:


on mouseUp
  put 10 into n
  --
  -- Dispatch:
  put the millisecs into t
  repeat n
dispatch "GetNada" to btn "b"
  end repeat
  put the millisecs - t into t1
  --
  -- Send:
  put the millisecs into t
  repeat n
send "GetNada" to btn "b"
  end repeat
  put the millisecs - t into t2
  --
  put "Dispatch:  Total time: "&t1 &" ("& t1/n&" per iteration)"\
  &cr& "Send: : Total time: "&t2 &" ("& t2/n&" per iteration)"
end mouseUp


The GetNada handler is just a time-waster so we have a non-empty handler 
to call:


on GetNada
  get 1+1
end GetNada


Results:

Dispatch:  Total time: 250 (0.0025 per iteration)
Send: : Total time: 364 (0.00364 per iteration)


So it's actually much better than 20% faster (I must be getting old, my 
memory's going).


The per-iteration times are useful:  with either one we're talking about 
such a small fraction of a millisecond that it really won't
matter much when either is used occasionally.  When you need timers you 
shouldn't feel bad about losing 0.00114 milliseconds.  We had to burn 
through a hundred thousand iterations just to get to a quarter-second.


But if you don't need the timer delay, adopting dispatch as a habit can 
help save a few clock cycles here and there that you can spend on more 
useful things.  A lot of the stuff I'm working on is migrating to 
providing real-time updates to data views, so I take every convenient 
chance I can to save time to keep things snappy as we add new stuff.


Hats off to Mark Waddingham for the well-optimized implementation.

--
 Richard Gaskin
 Fourth World
 Rev training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
 revJournal blog: http://revjournal.com/blog.irv
___
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: popup command cross-platform

2010-03-04 Thread J. Landman Gay

Jeff Massung wrote:

So, I'm seeing different functionality w/ the popup command on OS X and
Win32, wondering if I should mark this as a bug, and also wondering if
anyone has a work-around?

-- in a field's script
on mouseUp
   set the backgroundColor of me to "black"
   popup btn "some menu"
   set the backgroundColor of me to "white"
end mouseUp

On Mac OS X this will set the backgruond color black, popup the menu, and
wait for me to "cancel" the popup or click a menu item in it, and then set
the background color back to white. On Win32 the field goes black -> white
instantly and the popup is still there.

I much prefer the OS X implementation (given this single context and what I
want to have happen), but I understand the advantages of the Win32
implementation. So if it's a bug, I could care less which version was
considered "correct" by RunRev, but them being different I consider
incorrect behavior.

That said, anyone have a workaround for me?


I hadn't noticed that before, but I don't think I've ever changed a 
field during a popup operation either. The only workaround I found is so 
ugly I'm embarrassed. BTW, typically a popup is called on a mousedown 
handler.


on mousedown
   set the backgroundColor of me to "black"
   popup btn 1
   if the platform = "win32" then
  wait until the mouseclick
  click at the clickloc
   end if
   set the backgroundColor of me to "white"
end mousedown

To make it worse, it introduces a slight delay between the time of the 
mouseclick and the menu selection. But it sort of works.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
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: [ANN] The Slug's Color Picker is now on the road for beta test

2010-03-04 Thread zryip theSlug
2010/3/3 René Micout :
> Thank you Slug...
> A very little thing : in "infos" the version of Color Picker Beta 01.e is 01.c
> and... when I write this email the Color Picker window is over the mail 
> window (and not the RunRev Tools window...)
> On Macintosh OS X 10.6.2
> Bons souvenirs de Paris
> René

Thanks René,

The 0.1f beta version is now available on the slug's website:

- Hide the palette when you switch to an other application
- Fix a bug when right clicking on the picker to obtain the picker
color dialog. Only the contextual close menu was available since the
0.1e beta
- Fix the version number.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
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: popup command cross-platform

2010-03-04 Thread Ken Ray



On 3/4/10 4:59 PM, "Jeff Massung"  wrote:

> So, I'm seeing different functionality w/ the popup command on OS X and
> Win32, wondering if I should mark this as a bug, and also wondering if
> anyone has a work-around?
> 
> -- in a field's script
> on mouseUp
>set the backgroundColor of me to "black"
>popup btn "some menu"
>set the backgroundColor of me to "white"
> end mouseUp
> 
> On Mac OS X this will set the backgruond color black, popup the menu, and
> wait for me to "cancel" the popup or click a menu item in it, and then set
> the background color back to white. On Win32 the field goes black -> white
> instantly and the popup is still there.
> 
> I much prefer the OS X implementation (given this single context and what I
> want to have happen), but I understand the advantages of the Win32
> implementation. So if it's a bug, I could care less which version was
> considered "correct" by RunRev, but them being different I consider
> incorrect behavior.

Well, I don't know if it's a *bug*, but it is certainly inconsistent. Oh,
and you should do this on mouseDown instead of mouseUp.
 
> That said, anyone have a workaround for me?

All I can suggest is what I ended up having to do... make sure that the
popup command was the last thing encountered in the mouseDown handler, and
then have the menuPick of the btn being popped handle what happens when they
release the mouse button. If you need to pass data between the button
calling the popup command and the button being popped, you can use custom
properties or globals, etc.

Example:

-- Main button
on mouseDown
  set the backgroundColor of me to "black"
  set the uCaller of btn "some menu" to (the long id of me)
  popup btn "some menu"
end mouseDown

-- btn "some menu"
on menuPick pItem
  -- do whatever you want to do
  set the backgroundColor of (the uCaller of me) to "white"
end menuPick

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: FTP uploads with curl - monitoring progress - any ideas?

2010-03-04 Thread Ken Ray

Thanks, Phil! Josh sent me his code as well so having both will let me get
this done!

Thanks again...

Ken

On 3/4/10 2:16 PM, "Phil Davis"  wrote:

> Hi Ken,
> 
> If you open curl as a process, you can then read the status info one
> line at a time. Would that work?
> 
> Here's one way (courtesy of Josh Mellicker, with some mods):
> 
> -- a button script --
> 
> local vCurlProcess
> 
> 
> on mouseUp
> put empty into fld "output"
> put formattedForCurl(fld "filename") into tFiles
> 
> put ("curl -T" && tFiles && fld "server" && "-C -") into vCurlProcess
> open process vCurlProcess for read
> get the result
> if it = empty
> then send "getCurlReport" to me in 12 ticks
> else answer it
> end mouseUp
> 
> 
> on getCurlReport
> read from process vCurlProcess for 1 line
> put it after fld "output"
> if it = empty
> then closeCurl
> else send "getCurlReport" to me in 12 ticks
> end getCurlReport
> 
> 
> on closeCurl
> close process vCurlProcess
> answer "Done."
> end closeCurl
> 
> 
> function formattedForCurl pFileList
> -- handle single file selection
> if the number of lines in pFileList = 1 then return quote &
> pFileList & quote
> 
> -- handle multi file selections
> replace CR with "," in pFileList
> put quote & "{" & pFileList & "}" & quote into tList
> return tList
> end formattedForCurl
> 
> 
> There you have it!
> Phil
> 
> 
> 
> On 3/4/10 10:28 AM, Ken Ray wrote:
>> I have some large files (100MB +) that I need to FTP to a customer's server.
>> I have tried to use libURL to do the uploading, but I get odd results/random
>> timeouts/errant status messages when the file I'm uploading is over 40MB.
>> I've tried many different workarounds to this, but none have been
>> consistent/acceptable so for this project I'm seeing if I can use curl.
>> 
>> The pain is that there doesn't seem to be a way to retrieve the progress of
>> an FTP upload so I can display a custom upload box. If I redirect it to
>> dev/null, I get control back after the upload starts, but I can't get any
>> progress data:
>> 
>> curl -T filePath -u user:pass serverAdress>  /dev/null 2>&1&
>> 
>> If I redirect to stdin, it's blocking and I only get anything when the
>> upload is complete:
>> 
>> curl -T filePath -u user:pass serverAdress>  stdin
>> 
>> I've also tried:
>> 
>> curl -T filePath -u user:pass serverAdress>  stdin&
>> curl -T filePath -u user:pass serverAdress>  stdin 2>&1&
>> 
>> Is there any way to make a non-blocking call to curl, but then to get back
>> the progress text that would normally be displayed in the Terminal?
>> 
>> Any help would be appreciated...
>> 
>> Ken Ray
>> Sons of Thunder Software, Inc.
>> Email: k...@sonsothunder.com
>> Web Site: http://www.sonsothunder.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
>> 
>>

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: Dispatch Versus Send

2010-03-04 Thread Mark Wieder
Richard-

I've resorted lately to using dispatch as "a better send" for cases
where I don't need an "in time" message. It somehow just seems more
robust, even when you don't consider the speed increase.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
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: Custom tab controls

2010-03-04 Thread Ken Ray



On 3/2/10 3:38 PM, "Bob Sneidar"  wrote:

> How odd. This showed up with a .mc extension, and opened in something called
> TestAETE, and worked! When I changed the extension to .rev, it opened in
> Revolution and worked there too!
> 
> What in the world is TestAETE? It was in my Revcon Downloads folder.

TestAETE was an app distributed after my talk at RevCon about creating your
own custom AppleScript dictionary for Rev apps.  The TestAETE application
had a couple of examples in it.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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: RevMobile first impressions?

2010-03-04 Thread Sarah Reichelt
On Fri, Mar 5, 2010 at 8:42 AM, Marian Petrides  wrote:
> I'd love to hear your more detailed impressions, Sarah, and I bet others 
> would too.  Meanwhile, thanks for the early preview!

Here is some more info:

Set your stack's font to Helvetica 14, the backColor to "200,200,200"
and the look & feel to Motif to get the best preview of how it will
look on the iPhone without any skinning.

A multi-card stack works fine and moving into & out of sub-stacks works fine.

Not all text decoration works: there are no fonts and you can't
specify bold or italic, but all the other text styles work and you can
set colors.

I have used the photo picker and it works really well, but don't leave
an image on screen if you leave that card or the app usually crashes.

Images are a bit crashy - sometimes they work, other times they crash.

File handling: I have been able to list files in the app bundle,
create a new one and display it, download an image file and save it,
download a web page and show the htmlText.

File paths: you can get the defaultFolder which gives the full folder
to the app in my Library. Getting the filename of my stack gives a
much shorter path, with the app bundle being the root folder. I
haven't worked out yet how to save a file to the app's Documents
folder.

iPhone specific commands: I have tested the command that accesses the
photo library (& would do the camera if I was using a real iPhone) and
they work really well. Shaking & multi-touch all seem fine, although
on the simulator I haven't actually been able to multi-touch.
If you shake when typing in a text field, you get a dialog saying that
there is nothing to undo, so the shake has been correctly linked to
the undo mechanism, but the actual undo is not operational yet.

Rotation: seemingly not implemented yet, although the handbook
mentions that they cause the stack to get a resizeStack message. I
haven't been able to detect this, so I have no idea how they plan to
implement rotation. I tried activating the accelerometer but I can't
test that without installing on a real iPhone. It didn't make any
difference to the rotation - you still just see all the controls
turned sideways. I even tried changing to a wide stack to see if that
would help, but it didn't make any difference.

So basically, although it all looks weird, there is an awful lot of
Rev that just works. Images are the most flaky things I have
discovered.
As is usual with iPhone apps and Rev apps, errors don't make a fuss,
although the app can just quit quietly if something weird happens.

As regards future revMobile programming, the main things I will be
looking for are the native look & feel, rotation handling and better
image handling. Of these, the rotation is the most important as I need
to know how this will work in order to be able to plan my development.
The look & feel will not stop me developing, but you couldn't release
an iPhone app that looks like it's running under X11 :-)

Image handling is crucial because it has caused a lot of app crashes
in my tests.

Adding an icon to your app is super-easy. You just make a 57 x 57 png
file and tell revMobile the plugin. When the app installs, the iPhone
rounds the corners and adds the cool lighting effect.

If anyone would like me to test any aspect in particular, just let me know.

Cheers,
Sarah
___
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


Best way to carry out boolean searches on large text body.

2010-03-04 Thread James Hale
I would like the opinion of list members on the best way to approach the 
following task: Being able to perform boolean and proximity searches on a large 
body of text (say 400,000 words) returning paragraphs where the hits are 
located (clickable to give section containing paragraph desired.)

Of course by boolean I mean "find  where 'word a' AND 'word b' occur in the 
same paragraph". Same with OR.
By proximity I mean "find where 'word a' is within x words of 'word b'.

In thinking about this for a while and considering how to store the text and 
ways to search it I have come to the conclusion that a database of words 
contained in the text is the way to go. By this I mean effectively indexing 
every word and its position in the text and then using database operations on 
this index file to produce a list of hits. The hits giving me either chunk 
expressions to display the relevant text blocks or record ID if I also store 
paragraphs as individual records in a further database file. 

For example with the boolean AND, get a selection of 'word a' hits and then a 
selection of 'word b' hits and find where they intersect based on the paragraph 
numbers. This would result in a list of paragraphs only containing both words.

Do members think this an overkill?
Has anybody else looked at this?

Any comments would be appreciated.



James




___
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: RevMobile first impressions?

2010-03-04 Thread Petrides, M.D. Marian

Thanks for all the details, Sarah.

Is it possible to install an app onto an iPhone the way Ben appears to  
have done in the demo?  I know you probably don't want to actually do  
it with a pre-alpha version for risk of seriously messing up your  
iPhone, but just wondered if it is possible.  (If it were, then I  
might just try it on an iTouch if I got daring enough.)



On Mar 4, 2010, at 8:11 PM, Sarah Reichelt wrote:

On Fri, Mar 5, 2010 at 8:42 AM, Marian Petrides > wrote:
I'd love to hear your more detailed impressions, Sarah, and I bet  
others would too.  Meanwhile, thanks for the early preview!


Here is some more info:

Set your stack's font to Helvetica 14, the backColor to "200,200,200"
and the look & feel to Motif to get the best preview of how it will
look on the iPhone without any skinning.

A multi-card stack works fine and moving into & out of sub-stacks  
works fine.


Not all text decoration works: there are no fonts and you can't
specify bold or italic, but all the other text styles work and you can
set colors.

I have used the photo picker and it works really well, but don't leave
an image on screen if you leave that card or the app usually crashes.

Images are a bit crashy - sometimes they work, other times they crash.

File handling: I have been able to list files in the app bundle,
create a new one and display it, download an image file and save it,
download a web page and show the htmlText.

File paths: you can get the defaultFolder which gives the full folder
to the app in my Library. Getting the filename of my stack gives a
much shorter path, with the app bundle being the root folder. I
haven't worked out yet how to save a file to the app's Documents
folder.

iPhone specific commands: I have tested the command that accesses the
photo library (& would do the camera if I was using a real iPhone) and
they work really well. Shaking & multi-touch all seem fine, although
on the simulator I haven't actually been able to multi-touch.
If you shake when typing in a text field, you get a dialog saying that
there is nothing to undo, so the shake has been correctly linked to
the undo mechanism, but the actual undo is not operational yet.

Rotation: seemingly not implemented yet, although the handbook
mentions that they cause the stack to get a resizeStack message. I
haven't been able to detect this, so I have no idea how they plan to
implement rotation. I tried activating the accelerometer but I can't
test that without installing on a real iPhone. It didn't make any
difference to the rotation - you still just see all the controls
turned sideways. I even tried changing to a wide stack to see if that
would help, but it didn't make any difference.

So basically, although it all looks weird, there is an awful lot of
Rev that just works. Images are the most flaky things I have
discovered.
As is usual with iPhone apps and Rev apps, errors don't make a fuss,
although the app can just quit quietly if something weird happens.

As regards future revMobile programming, the main things I will be
looking for are the native look & feel, rotation handling and better
image handling. Of these, the rotation is the most important as I need
to know how this will work in order to be able to plan my development.
The look & feel will not stop me developing, but you couldn't release
an iPhone app that looks like it's running under X11 :-)

Image handling is crucial because it has caused a lot of app crashes
in my tests.

Adding an icon to your app is super-easy. You just make a 57 x 57 png
file and tell revMobile the plugin. When the app installs, the iPhone
rounds the corners and adds the cool lighting effect.

If anyone would like me to test any aspect in particular, just let  
me know.


Cheers,
Sarah
___
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


very strange rev behavior

2010-03-04 Thread rand valentine
For some reason, Rev has started taking 50 times as long to open as it used
to, and the menus are so slow as to be completely unusable. I thought the
program was frozen, just a spinning beach ball for minutes on end as it
started up, then slowly it went through the process of opening and finally
opened. But choosing any menu item just creates a spinning beach ball that
lasts for several minutes. Clicking on the Close button in a window also
produces a good minute of beach ball spinning. I downloaded a new copy of
Rev and installed it, same problem. It seems to only be Rev that is affected
by this, though it seems to be REV vs OS interface issue. I thought perhaps
some Preferences file was trashed but replaced those I could find. I'm
running Enterprise version 4.0 under Mac OS X Server Verision 10.5.8, on a
Power Mac 2.66Gz Quad Core Intel Xeon with 8Gb of memory. I S miss Rev,
I hadn't realized how important it is to my daily workflow!

Rand Valentine
University of Wisconsin-Madison

___
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: RevMobile first impressions?

2010-03-04 Thread Sarah Reichelt
On Fri, Mar 5, 2010 at 12:41 PM, Petrides, M.D. Marian
 wrote:
> Thanks for all the details, Sarah.
>
> Is it possible to install an app onto an iPhone the way Ben appears to have
> done in the demo?  I know you probably don't want to actually do it with a
> pre-alpha version for risk of seriously messing up your iPhone, but just
> wondered if it is possible.  (If it were, then I might just try it on an
> iTouch if I got daring enough.)

Yes it is possible according to the docs. You have to have an iPhone
developer license i.e. the $99 per year version, not the free version.
Then you can use the developer portal to get a provisioning
certificate for your app. This is needed by the revMobile plugin
before it can install on the actual device.

This is all exactly the same as if you were developing using XCode.


might "borrow" my son's iPod Touch...


Cheers,
Sarah
___
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: very strange rev behavior

2010-03-04 Thread Sarah Reichelt
On Fri, Mar 5, 2010 at 12:51 PM, rand valentine  wrote:
> For some reason, Rev has started taking 50 times as long to open as it used
> to, and the menus are so slow as to be completely unusable. I thought the
> program was frozen, just a spinning beach ball for minutes on end as it
> started up, then slowly it went through the process of opening and finally
> opened. But choosing any menu item just creates a spinning beach ball that
> lasts for several minutes. Clicking on the Close button in a window also
> produces a good minute of beach ball spinning. I downloaded a new copy of
> Rev and installed it, same problem. It seems to only be Rev that is affected
> by this, though it seems to be REV vs OS interface issue. I thought perhaps
> some Preferences file was trashed but replaced those I could find. I'm
> running Enterprise version 4.0 under Mac OS X Server Verision 10.5.8, on a
> Power Mac 2.66Gz Quad Core Intel Xeon with 8Gb of memory. I S miss Rev,
> I hadn't realized how important it is to my daily workflow!


When Rev starts up, it connects to the Rev servers to check for
updates and to show the data in the Start Center. Do you have it
showing the Start Center on startup? If so, try turing that off and
trying in case, just in case your firewall is blocking some
connection.

Cheers,
Sarah
___
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: Best way to carry out boolean searches on large text body.

2010-03-04 Thread Sarah Reichelt
On Fri, Mar 5, 2010 at 12:40 PM, James Hale  wrote:
> I would like the opinion of list members on the best way to approach the 
> following task: Being able to perform boolean and proximity searches on a 
> large body of text (say 400,000 words) returning paragraphs where the hits 
> are located (clickable to give section containing paragraph desired.)
>
> Of course by boolean I mean "find  where 'word a' AND 'word b' occur in the 
> same paragraph". Same with OR.
> By proximity I mean "find where 'word a' is within x words of 'word b'.
>
> In thinking about this for a while and considering how to store the text and 
> ways to search it I have come to the conclusion that a database of words 
> contained in the text is the way to go. By this I mean effectively indexing 
> every word and its position in the text and then using database operations on 
> this index file to produce a list of hits. The hits giving me either chunk 
> expressions to display the relevant text blocks or record ID if I also store 
> paragraphs as individual records in a further database file.
>
> For example with the boolean AND, get a selection of 'word a' hits and then a 
> selection of 'word b' hits and find where they intersect based on the 
> paragraph numbers. This would result in a list of paragraphs only containing 
> both words.
>
> Do members think this an overkill?
> Has anybody else looked at this?


Have you tried using the filter command? Remembering that a paragraph
is really just a line, this might work well for finding paragraphs
where the two words occur.

e.g.
filter tData with "*" & wordA & "*"
filter tData with "*" & wordB & "*"

would leave you only with lines containing both wordA and wordB.

Proximity is a different type of search, but once you had narrowed the
data to just those lines with both words, then a repeat loop would be
easier.

Cheers,
Sarah
___
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: Best way to carry out boolean searches on large text body.

2010-03-04 Thread Michael Kann
James, I doubt this is the "best" way. But it will work and might give you some 
ideas. What we think of as a "paragraph", RunRev thinks of as a "line".
-
put fld 1 into v  // raw text
repeat for each line k in v
  if (word_uno is in k) AND (word_dos is in k) then  // AND condition
--if (word_uno is in k) OR (word_dos is in k) then  // OR condition
 put k & cr after h
  end if
end repeat
put h into fld 2
---

To make word_uno and word_dos look like real words you have to put spaces 
before and after and consider words at the end of the line -- but the template 
gives you the idea.

You can also use the "filter" command. For the AND condition filter twice, once 
with each word. For the OR condition filter separately for each word, then 
combine the results.


The two techniques above will succeed in
 
"returning paragraphs where the hits are located"

I'm not sure exactly what the following means:

(clickable to give section containing paragraph desired.)"


I have some ideas about "proximity," if these are the kinds of suggestions you 
are interested in. It's really easier than you think. I think there was a 
recent thread on indexing strategies if you want to go that route. 







--- On Thu, 3/4/10, James Hale  wrote:

> From: James Hale 
> Subject: Best way to carry out boolean searches on large text body.
> To: use-revolution@lists.runrev.com
> Date: Thursday, March 4, 2010, 8:40 PM
> I would like the opinion of list
> members on the best way to approach the following task:
> Being able to perform boolean and proximity searches on a
> large body of text (say 400,000 words) returning paragraphs
> where the hits are located (clickable to give section
> containing paragraph desired.)
> 
> Of course by boolean I mean "find  where 'word a' AND
> 'word b' occur in the same paragraph". Same with OR.
> By proximity I mean "find where 'word a' is within x words
> of 'word b'.
> 
> In thinking about this for a while and considering how to
> store the text and ways to search it I have come to the
> conclusion that a database of words contained in the text is
> the way to go. By this I mean effectively indexing every
> word and its position in the text and then using database
> operations on this index file to produce a list of hits. The
> hits giving me either chunk expressions to display the
> relevant text blocks or record ID if I also store paragraphs
> as individual records in a further database file. 
> 
> For example with the boolean AND, get a selection of 'word
> a' hits and then a selection of 'word b' hits and find where
> they intersect based on the paragraph numbers. This would
> result in a list of paragraphs only containing both words.
> 
> Do members think this an overkill?
> Has anybody else looked at this?
> 
> Any comments would be appreciated.
> 
> 
> 
> James
> 
> 
> 
> 
> ___
> 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: popup command cross-platform

2010-03-04 Thread Jeffrey Massung

On Mar 4, 2010, at 7:11 PM, Ken Ray wrote:
> 
> All I can suggest is what I ended up having to do... make sure that the
> popup command was the last thing encountered in the mouseDown handler, and
> then have the menuPick of the btn being popped handle what happens when they
> release the mouse button. If you need to pass data between the button
> calling the popup command and the button being popped, you can use custom
> properties or globals, etc.

Ken,

Thanks for the reply. Sadly this doesn't work 100% because menuPick won't get 
called if no menu item is actually selected (i.e. the user clicks outside the 
popup and it goes away).

And yes, I agree on the mouseDown... which is what I have in my script, I just 
get so used to typing mouseUp... ;-)

Jeff M.___
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


  1   2   >