Re: [ANN] and Re: Problem with mask

2008-10-23 Thread Scott Rossi
Recently, Wilhelm Sanke wrote:

> Scott Ross's approach, taking a snapshot from the rect of the selection
> graphic, produces oval images with a very smooth fringe.
> As my selection tool is already a grouped one, in my minor necessary
> adaptation of Scott's script the grouping and later ungrouping of the
> oval graphic was no longer needed, as was also the resetting the
> templategroup.
> I am wondering if we could avoid or suppress the flickering that appears
> when taking the snapshot?

Yes, there are probably a couple of ways to eliminate the visible
selection/creation of the mask (which is surprisingly more trouble than
expected), but the intention of this stack to was to demonstrate the process
for Jim Hurley.  This was not intended to be a finished tool/library for
developers.  I believed it would be more informative for Jim to see what was
was happening rather than keeping process hidden.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


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


Re: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Kay C Lan
On Thu, Oct 23, 2008 at 4:48 PM, Bernard Devlin <[EMAIL PROTECTED]> wrote:


> People
> think Notes is just email but it's far more.  It's a distributed document
> database.  So I store PDFs, web pages, code, executables, stacks (versioned
> with annotations), etc. all in Notes.


Bernard,

This is off topic to this topic but I'm just catching up on a 100 odd List
posts and was reading your drama regarding crashing Rev, and having been in
a similar situation where mine kept crashing but everyone else's worked
happily I too agree with those that there is something with 'your peculiar
situation' which is the cause of the problem. Not necessarily Rev, the OS,
plug-ins, but a combination of the lot.

So the fact that you have stacks going into and out of Notes strikes me as
peculiar. Does Notes compress and uncompress? Is it UTF-8 or UTF-16? What
about encryption? Is there any possibility that the process of inputting and
outputting stack files changes just one character within the stack file and
that this then has a fatal effect on Rev? Maybe numToChar(29) or
numToChar(30) and Notes produces results that upsets certain Rev plug-ins?

Glad to see you are enjoying some stability on OSX at the moment. Hope it's
contagious ;-)
___
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: Two DB questions

2008-10-23 Thread Len Morgan

Klaus,

It seems that you come from an "old fashioned" DB background (i.e., 
dBaseII, etc) where the idea of a record number meant something.  If you 
read up on the history of SQL, you'll see that one of reasons for SQL 
was to get rid of the concept of a record number.  In fact when you join 
two or more tables, what would the "record number" represent since the 
"table" that you are returning doesn't actually exist in the database 
(it's created on the fly). 

However, there IS a way that Revolution is particularly good at:  Return 
your records as a list (as opposed to a record set) and then go to the 
line number (which becomes the record number) and use "items" to get at 
the various fields.  As long as your returned data isn't too large, it 
should be very fast.


As to your second question (how do you know if a table has any data in 
it), I've always used SQL to give me that answer:


SELECT COUNT(*) FROM mytable

Any SQL database worthy of the name should have at least this aggregate 
function.  PostgreSQL at least, doesn't require the "GROUP BY" clause 
with COUNT(*) and I suspect others would be the same.  If the record 
count is 0, there hasn't been any data entered.  It won't choke if there 
are no tables since in this case, zero is a valid answer.


len morgan
___
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: 3rd-Party iMovie Titles that Don't Suck?

2008-10-23 Thread Judy Perry
Josh,

Thanks, I will try that link.  Will get back to you.  I export movies
for a variety of playback (DVD, YouTube, webpage...).  I usually try
to use the highest export settings but maybe I just haven't a clue!
;-)

Judy


On Thu, Oct 23, 2008 at 4:21 PM, Josh Mellicker <[EMAIL PROTECTED]> wrote:
> Judy,
>
> I would guess the titles are not pixelating due to iMovie, but probably
> because of the format you are exporting in?
>
> You can get very nice looking titles from iMovie by exporting using this
> process:
>
> http://www.dvcreators.net/how-do-i-export-a-high-quality-movie/
>
> Give that a try and see how your titles look in the exported movie.
>
>
> Also, what is your destination for the movie? Playing in Rev from disc? a
> web page?
>
>
>
>
> On Oct 21, 2008, at 10:20 PM, Judy Perry wrote:
>
>> Are you serious?!?!?
>>
>> Bummer!
>>
>> Yes, I have both the '08 and '06 versions.
>>
>> Yes, I am looking for type/titling plug-ins that don't horribly pixellate.
>>
>> Thanks!
>>
>> Judy
>> http://revined.blogspot.com
>>
>> On Tue, Oct 21, 2008 at 10:10 PM, Jim Kanter <[EMAIL PROTECTED]> wrote:
>>>
>>> iMovie 08 does not support plug-ins. Are you running the 06 version or
>>> earlier?
>>>
>>> Are you looking for a specific plug-in? You mentioned type.
>>>
>>> Jim
>>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> 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: 3rd-Party iMovie Titles that Don't Suck?

2008-10-23 Thread Josh Mellicker

Judy,

I would guess the titles are not pixelating due to iMovie, but  
probably because of the format you are exporting in?


You can get very nice looking titles from iMovie by exporting using  
this process:


http://www.dvcreators.net/how-do-i-export-a-high-quality-movie/

Give that a try and see how your titles look in the exported movie.


Also, what is your destination for the movie? Playing in Rev from  
disc? a web page?





On Oct 21, 2008, at 10:20 PM, Judy Perry wrote:


Are you serious?!?!?

Bummer!

Yes, I have both the '08 and '06 versions.

Yes, I am looking for type/titling plug-ins that don't horribly  
pixellate.


Thanks!

Judy
http://revined.blogspot.com

On Tue, Oct 21, 2008 at 10:10 PM, Jim Kanter <[EMAIL PROTECTED]> wrote:
iMovie 08 does not support plug-ins. Are you running the 06 version  
or earlier?


Are you looking for a specific plug-in? You mentioned type.

Jim


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

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


___
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] and Re: Problem with mask

2008-10-23 Thread BNig

Hi Wilhelm,

Wilhelm Sanke wrote:
> 
> I am wondering if we could avoid or suppress the flickering that appears
> when taking the snapshot?
just add a 'lock screen' after the mouseUp in the script of Scott's version
and the flicker is gone.

the beauty of Scott's approach is that he has the alphadata antialiased,
which makes for the sharp edges. That from what I understand, this is
because he groups the graphic and if you take a snapshot from a group you
get antialiased alphadata. 
I take a simple snapshot of the image and the oval overlaid and get
alphadata which is not antialiased, that makes the visible pixels. (at least
you dont get the flat sides of the within-approach)

For what Jim originally wanted, a masked picture with an oval mask, Scott's
solution seems the one, that makes the finest masks.

thank you for providing the side by side comparison of the different
approaches
regards
Bernd


-- 
View this message in context: 
http://www.nabble.com/-ANN--and-Re%3A-Problem-with-mask-tp20139760p20140779.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: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Matthias Rebbe

Hi,

i can confirm, that the right shift key is really difficult to use. I 
modified the registry to swap the right shift key with the cursor up key.


I just put

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
@=""
"Scancode Map"=hex:00,00,00,00,00,00,00,00,3,00,00,00,\
36,00,48,E0,\
48,E0,36,00,\
00,00,00,00

in a .reg file and imported it. After a restart the cursor up key was/is 
shift and the right shift is the cursor up key.


That´s it.

Regards,

Matthias


--
From: "Chipp Walters" <[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2008 10:16 PM
To: "How to use Revolution" 
Subject: Re: OT: "take-up of netbooks has been staggering"



The new eee 901 and 1000 are both 1024 x 600 display. Sadly, the 1000
has the right shift-key so far out of place, it's impossible to touch
type w/out actually 'swapping' it with the up arrow key. But, I did
see where one could purchase the 1000H (120 Gb Hard drive, Atom



___
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


[ANN] and Re: Problem with mask

2008-10-23 Thread Wilhelm Sanke
I have uploaded a sample stack containing 8 different scripts for 
creating masks and generating oval images.


.

Stack "Three Masks" demonstrates and lets you compare the approaches of 
Jim Hurley, Scott Rossi, and my own.


All examples use the same basic selelection procedure with a draggable, 
resizable, and reshapable and already grouped selection graphic 
(applying the same routines I use for my selection graphic of  stack 
"Seamless Tiles 2"), which makes it easy  to compare the effects of a 
specific identical size and shape of the selection graphic across the 8 
examples.


There are three examples based on Jim's script:

- The first uses his almost unchanged script, which produced the "mask 
problem" with flattened edges on the right and at the bottom.
- In the second exampled I have reversed the direction of Jim's 
"within"-scan, with the result that now the edges appear on the left and 
on top


Because of the different edge effects I am not sure if  the "mask 
problem" is caused by a bug in the within-function or could rather be 
remedied by more precise (?) scan routines. I have tried to change this 
part of the script in various ways, but without success. Maybe Bernd 
Niggemann' approach, which I could not yet include here, will show other 
possibilities.


- The workaround-solution of the "mask problem" in the third example 
based on Jim's script combines the two examples above. I use a scan in 
two directions producing two masks with edges at different places. I 
then combine the two masks, which then results in a perfectly rounded 
mask without any flattened edges.

All oval images produced by the above examples display a slight "roughness".

Scott Ross's approach, taking a snapshot from the rect of the selection 
graphic, produces oval images with a very smooth fringe.
As my selection tool is already a grouped one, in my minor necessary 
adaptation of Scott's script the grouping and later ungrouping of the 
oval graphic was no longer needed, as was also the resetting the 
templategroup.
I am wondering if we could avoid or suppress the flickering that appears 
when taking the snapshot?


In my own 4 examples no masks are created by script. I use prefabricated 
masks in the form of imported invisible images that are then adapted to 
the size and shape of the oval selection graphic. Hence, basically only 
4 script lines are needed to crop the image and apply the mask.
The masks selected as examples are named "plain oval", "small fringe", 
"wide fringe", and "transition".


Best regards,

Wilhelm Sanke


___
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: "take-up of netbooks has been staggering"

2008-10-23 Thread Chipp Walters
I still use my eee 701 quite a bit-- but converted it to WinXP awhile
ago. XP runs great on it, but the screen is small at 800 x 480. Using
some 3rd party drivers I can scale it to 1024 x 768, but it's a bit
hard to read. One of my favorite uses for my eee is to remote control
my Mac (always online) via LogMeIn for testing plugins and projects.
The screen scaling of LogMeIn is great and allows me to view my
MacBook at full resolution.

The new eee 901 and 1000 are both 1024 x 600 display. Sadly, the 1000
has the right shift-key so far out of place, it's impossible to touch
type w/out actually 'swapping' it with the up arrow key. But, I did
see where one could purchase the 1000H (120 Gb Hard drive, Atom
processor) for ~ $300 from Ebay using MS Live Search (just go to
www.live.com and enter in "eee 1000H"). That's a VERY GOOD price for a
WinXP netbook!
___
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: Printing

2008-10-23 Thread william humphrey
Thanks. I tried "it" but should have realized that the mac os dialog wasn't
going to put anything into "it".
I'm still surprised that somehow the "cancel" button on the dialog gets
deactivated but I guess the RunRev PrintCard command over-rides it.

Thanks again.

On Thu, Oct 23, 2008 at 3:45 PM, Mark Schonewille <
[EMAIL PROTECTED]> wrote:

> William,
>
> on mouseup
>   select empty
>   set the printmargins to 0,0,0,0
>   set the printPaperOrientation to "landscape"
>   open printing with dialog
>   if the result is not "Cancel" then
> print card from 0,0 to 790,580
>   end if
>   close printing
> end mouseup
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
> Dutch forum: http://runrev.info/rrforum/
>
> Benefit from our inexpensive hosting services. See
> http://economy-x-talk.com/server.html for more info.
>
>
> On 23 okt 2008, at 21:39, william humphrey wrote:
>
>  I just discovered that Rev 3.0 running on Mac OS ignores the "cancel"
>> button
>> in a print dialogue.
>> Can anyone please help me how to re-write the following so that I can have
>> a
>> "cancel" back again?
>>
>>
>> on mouseup
>>   select empty
>>   set the printmargins to 0,0,0,0
>>  set the printPaperOrientation to "landscape"
>>   open printing with dialog
>> -- I ask for the dialog and get the dialog
>> -- all functions in dialog work except "cancel"
>>   print card from 0,0 to 790,580
>>   close printing
>> end mouseup
>>
> ___
> 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.bluewatermaritime.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: Printing

2008-10-23 Thread Mark Schonewille

William,

on mouseup
   select empty
   set the printmargins to 0,0,0,0
   set the printPaperOrientation to "landscape"
   open printing with dialog
   if the result is not "Cancel" then
 print card from 0,0 to 790,580
   end if
   close printing
end mouseup

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 23 okt 2008, at 21:39, william humphrey wrote:

I just discovered that Rev 3.0 running on Mac OS ignores the  
"cancel" button

in a print dialogue.
Can anyone please help me how to re-write the following so that I  
can have a

"cancel" back again?


on mouseup
   select empty
   set the printmargins to 0,0,0,0
  set the printPaperOrientation to "landscape"
   open printing with dialog
-- I ask for the dialog and get the dialog
-- all functions in dialog work except "cancel"
   print card from 0,0 to 790,580
   close printing
end mouseup

___
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: Printing

2008-10-23 Thread william humphrey
I just discovered that Rev 3.0 running on Mac OS ignores the "cancel" button
in a print dialogue.
Can anyone please help me how to re-write the following so that I can have a
"cancel" back again?

*
*

**
*

on mouseup

select empty

set the printmargins to 0,0,0,0

   set the printPaperOrientation to "landscape"

open printing with dialog

-- I ask for the dialog and get the dialog


-- all functions in dialog work except "cancel"

print card from 0,0 to 790,580

close printing


end mouseup
*
___
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: Searching the list - alternative to gzip files?

2008-10-23 Thread Richard Gaskin

Michael wrote:

Many of the list search results at lists.runrev.com are gzip files. This is
the opposite of useful for web searching.

Is there a way to search the list archives on the web with an actual web
browser (Safari)?

Or can all the archives be downloaded as a gzip in ONE file?


For most of the years this list has been in service, the archives were 
maintained in a convenient html format that made them easily searchable 
and therefore invaluable to those learning Rev.


Some time in the last couple years some portions of the archive have 
been converted to gzip files, impeding both searching and reading, thus 
slashing the value of this compendium as a learning resource.


I hope that will change soon, that the original html archives will be 
restored.


In the meantime, each month's archive is available as a gzip file here:


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: Searching the list - alternative to gzip files?

2008-10-23 Thread Mark Schonewille

Hi Michael,

There is a good alternative to Google/GZip files, called GMane. If you  
go to , you can find a  
FireFox search plugin for the Revolution archives at GMane near the  
bottom of the page.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 23 okt 2008, at 20:18, Michael wrote:


Hi:

Many of the list search results at lists.runrev.com are gzip files.  
This is

the opposite of useful for web searching.

Is there a way to search the list archives on the web with an actual  
web

browser (Safari)?

Or can all the archives be downloaded as a gzip in ONE file?

Thanks,

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: Searching the list - alternative to gzip files?

2008-10-23 Thread Michael
Hi:

Many of the list search results at lists.runrev.com are gzip files. This is
the opposite of useful for web searching.

Is there a way to search the list archives on the web with an actual web
browser (Safari)?

Or can all the archives be downloaded as a gzip in ONE file?

Thanks,

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: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Richard Gaskin

Bernard Devlin wrote:

It was various issues with the engine and the IDE.  Problems with hanging
and crashing, memory leaking, the script editor being very slow, the
backdrop not working properly (window decorations disappearing until next
restart), virtual desktops not working, etc.
Maybe some of those issues are related to the plugins I was using.  On OS X
I've not used any plugins for about a week, and I've not had a single crash
(although I've had a couple of lockups that are known bugs).


Good to hear, though it would be interesting to learn which, if any, 
plugins contributed to the anomalies.


I'll be doing more work in Linux over the next three months, and I'll 
report back here if I find anything disturbing there (beyond the 
appearance of fields borders set to two pixels; yeck).


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Bernard Devlin
It was various issues with the engine and the IDE.  Problems with hanging
and crashing, memory leaking, the script editor being very slow, the
backdrop not working properly (window decorations disappearing until next
restart), virtual desktops not working, etc.
Maybe some of those issues are related to the plugins I was using.  On OS X
I've not used any plugins for about a week, and I've not had a single crash
(although I've had a couple of lockups that are known bugs).

I hope the other issues with Rev are addressed in the next six months to a
year.  I now have a netbook that's lying idle.

The resolution of the laptop was not a problem for me, as I used
revNavigator instead of tools like the application browser, and in place of
property inspectors.  However, as revNavigator might be the thing that was
causing the crashes, if I can't use that in future then maybe the resolution
would be a problem when working with the normal Rev IDE.

Bernard

On Thu, Oct 23, 2008 at 4:14 PM, Richard Gaskin
<[EMAIL PROTECTED]>wrote:

>
>  I bought the AA1 to do Rev development on, but unfortunately that didn't
>> work out.  Maybe others will have better luck with that (could be it will
>> work better on other versions of Linux).
>>
>
> Was it issues with the Rev Linux engine, or just dealing with 1024x600?--
>  Richard Gaskin
>  Managing Editor, revJournal
>  ___
>  Rev tips, tutorials and more: http://www.revJournal.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: no live resizeStack on Mac?

2008-10-23 Thread Eric Chatonet

Bonsoir Tiemo,

Le 23 oct. 08 à 15:26, Tiemo Hollmann TB a écrit :

Rev 3.0, Win XP. I just experienced, when resizing a stack on Win  
the window
size follows the resizing mouse. But on Mac (standalone) the resize  
is done
after mouse up. Is this a standard Mac / Win difference of Rev? Am  
I missing

something in coding for Mac? Or is it a bug?


Actually there was no live resizing with any window in Mac OS 9.
Live resizing appeared with Mac OS X but Rev did not set liveResizing  
property set to true by default when creating a stack using this system.

Richard pointed out this more than five years ago...
So, we may hope it will be changed before 2015 :-)
In the meantime, as Klaus said, just set it by yourself.

Best regards from Paris,
Eric Chatonet.

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



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


Re: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Richard Gaskin

Bernard Devlin wrote:

I think the keyboard size is ok (I can touch type on it).  The only thing I
think is bad are the trackpad buttons - they're in an uncomfortable place
(either side of the trackpad), and they are very stiff.  I have to use a
mouse with it.  From what I've read, it looks like others feel the same way
about that.  Maybe later versions of the AA1 will sort that out.  Mind you,
there are going to be so many of these netbooks, so I expect the quality of
them to improve still further.


True.  It's now been one year since the EeePC first premiered, and that 
product line has come a long way.  Same with the Acer.  One of the 
things I love about buying computers:  this is one of the few industries 
that consistently rewards procrastination. :)



I bought the AA1 to do Rev development on, but unfortunately that didn't
work out.  Maybe others will have better luck with that (could be it will
work better on other versions of Linux).


Was it issues with the Rev Linux engine, or just dealing with 1024x600?


If the growth in netbook sales
continues, in a year or so I can see there being more Linux laptops sold
than Mac laptops.  Rev could be very well positioned to take advantage of
that.  Whilst there are obviously masses of free dev tools for Linux, there
is no easy route to visual programming (unlike Applescript or VB).


Agreed.  Netbooks may well be the killer app to move Linux forward with 
consumers, esp. in the current economic climate where every dollar 
counts and the extra cost of a proprietary OS can add as much as 25% or 
more to the total cost of a cheap computer.


I think sometime in the next five years we'll see the dawn of the Golden 
Age of Linux.


I've been lurking on the Gnome UI list for some months now, and I'm 
impressed with the quality of the discussion there.  If work slows down 
here in my office I'd love to have the time to help contribute to their 
next HIG.  This is a very exciting time in OS evolution.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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


AW: no live resizeStack on Mac?

2008-10-23 Thread Richard Gaskin

Tiemo Hollmann wrote:

>>> Rev 3.0, Win XP. I just experienced, when resizing a stack on Win
>>> the window size follows the resizing mouse. But on Mac (standalone)
>>> the resize is done after mouse up. Is this a standard Mac / Win
>>> difference of Rev? Am I missing something in coding for Mac? Or
>>> is it a bug?
>>
>> Did you check the docs? Obviously not, the would have given you the
>> answer :-)
>>
>> On OS X you have to "set the liveresizing of stack XYZ to true" to
>> get the same behaviour as on Win.
>
> Oh boy, sorry for not having searched effective :)

Don't feel badly. While not technically a bug, all currently-supported 
OSes use live resizing so it seems a reasonable expectation that it 
would be the default consistently across them all.


There's a request to make this the default going forward:


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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: no live resizeStack on Mac?

2008-10-23 Thread Klaus Major

Hi Luis,


Should be easy in Rev... :)


Nice try!
Of course I meant HANDWRITTEN! :-D


Cheers,

Luis.


Best

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


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


Re: AW: no live resizeStack on Mac?

2008-10-23 Thread Luis

Should be easy in Rev... :)

Cheers,

Luis.


On 23 Oct 2008, at 14:50, Klaus Major wrote:


Hi Tiemo,


Oh boy, sorry for not having searched effective :)


Now you will have to write 1000 times: "I will search the Rev docs  
first!"

:-D


Thanks Klaus
Tiemo


Best

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


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

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



___
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: no live resizeStack on Mac?

2008-10-23 Thread Klaus Major

Hi Tiemo,


Yup :)


be prepared, I will check this later this evening! ;-)


Hi Tiemo,


Oh boy, sorry for not having searched effective :)

Now you will have to write 1000 times: "I will search the Rev docs
first!" :-D


Best

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


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


Re: making a tooltip (for Japanese)

2008-10-23 Thread Thomas McGrath III

Nicolas,

You might want to look at mouseLeave as well to see if the mouse left  
the object.


Tom McGrath

On Oct 23, 2008, at 12:04 AM, Nicolas Cueto wrote:


The challenge for me is how to measure whether the
mouse has moved or not. All I can figure out is to add
a "send" command to the trigger-script in the card
which'll compare mouselocs both before and after
the second send command.

But, maybe there's a simpler way of doing 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


AW: AW: no live resizeStack on Mac?

2008-10-23 Thread Tiemo Hollmann TB
Yup :)

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:use-revolution-
> [EMAIL PROTECTED] Im Auftrag von Klaus Major
> Gesendet: Donnerstag, 23. Oktober 2008 15:50
> An: How to use Revolution
> Betreff: Re: AW: no live resizeStack on Mac?
> 
> Hi Tiemo,
> 
> > Oh boy, sorry for not having searched effective :)
> 
> Now you will have to write 1000 times: "I will search the Rev docs
> first!"
> :-D
> 
> > Thanks Klaus
> > Tiemo
> 
> Best
> 
> Klaus Major
> [EMAIL PROTECTED]
> http://www.major-k.de
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
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: making a tooltip (for Japanese)

2008-10-23 Thread Thomas McGrath III

Mark,

I just noticed that error as well. It was not there before. The second  
pane "Walkthroughs" is the one that I thought might apply to Nicolas.  
I thought the Unicode issue in tooltips was fixed???


Regards,

Tom McGrath

On Oct 23, 2008, at 9:14 AM, Mark Schonewille wrote:


Hi Tom,

If I click the Run button on the Walkthrough pane of your stack and  
immediately thereafter click on the Changing Tooltips tab, I get an  
execution error.


I think that Nicolas' problem is that Rev tooltips can't display  
unicode. He is probably trying to make his own tooltips and  
therefore needs to check the mouseControl in a mouseMove handler and  
is also likely to run into focus problems.


--
Best regards,

Mark Schonewille


___
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: Another DB question

2008-10-23 Thread Jan Schenkel
--- Klaus Major <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> although I did not receive a response to my first DB
> questions,
> I dare to ask another question :-)
> 
> Is it possible to directly "search" in the data of a
> db cursor?
> Or will on have to use a repeat loop through all the
> data in a cursor
> to find the desired data? Know what I mean?
> 
> Background:
> When the user adds/inserts or updates a record, the
> current cursor is  
> not
> "up to date" anymore and one has to create a new one
> that reflects  
> these changes
> 
> And of course it is "good style" to display the SAME
> data to the user  
> after that action
> and not the first record of the new cursor.
> 
> 
> Regards
> 
> Klaus Major
> 

Hi Klaus,

It's a very old problem inherent to the SQL query
model with database-independent front-ends: how to
ensure that all clients have up-to-date data.

And this gets even messier when you're taking
transactions into account: changes to the database
shouldn't be visible to another user until they have
completed and the entire transaction is committed.
That's why, in most modern databases, cursors are a
'snapshot' of the records that matched your criteria
at the time of query execution.

Some databases offer 'live' cursors that will fetch
the latest information from the database when you
'move' to a record in the result set.
That helps but still leaves you in the cold when
you're looking at a record that gets updated by
another user while you're idle. Of course, you could
use a 'send in x seconds' refresh loop.

The way FileMaker Pro and other database-tied
front-ends do this, is by pushing update information
from the database server to all the clients, based on
some sort of publish-subscribe scheme.

Jan Schenkel.

Quartam Reports & PDF Library for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


  
___
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: no live resizeStack on Mac?

2008-10-23 Thread Klaus Major

Hi Tiemo,


Oh boy, sorry for not having searched effective :)


Now you will have to write 1000 times: "I will search the Rev docs  
first!"

:-D


Thanks Klaus
Tiemo


Best

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


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


AW: no live resizeStack on Mac?

2008-10-23 Thread Tiemo Hollmann TB
Oh boy, sorry for not having searched effective :)
Thanks Klaus
Tiemo

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:use-revolution-
> [EMAIL PROTECTED] Im Auftrag von Klaus Major
> Gesendet: Donnerstag, 23. Oktober 2008 15:28
> An: How to use Revolution
> Betreff: Re: no live resizeStack on Mac?
> 
> Hi Tiemo,
> 
> > Hello,
> >
> > Rev 3.0, Win XP. I just experienced, when resizing a stack on Win
> > the window
> > size follows the resizing mouse. But on Mac (standalone) the resize
> > is done
> > after mouse up. Is this a standard Mac / Win difference of Rev? Am I
> > missing
> > something in coding for Mac? Or is it a bug?
> 
> Did you check the docs? Obviously not, the would have given you the
> answer :-)
> 
> On OS X you have to "set the liveresizing of stack XYZ to true" to get
> the same behaviour as on Win.
> 
> > Thanks for your experience
> >
> > Tiemo
> 
> Best
> 
> Klaus Major
> [EMAIL PROTECTED]
> http://www.major-k.de
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

___
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: no live resizeStack on Mac?

2008-10-23 Thread Klaus Major

Hi Tiemo,


Hello,

Rev 3.0, Win XP. I just experienced, when resizing a stack on Win  
the window
size follows the resizing mouse. But on Mac (standalone) the resize  
is done
after mouse up. Is this a standard Mac / Win difference of Rev? Am I  
missing

something in coding for Mac? Or is it a bug?


Did you check the docs? Obviously not, the would have given you the  
answer :-)


On OS X you have to "set the liveresizing of stack XYZ to true" to get  
the same behaviour as on Win.



Thanks for your experience

Tiemo


Best

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


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


no live resizeStack on Mac?

2008-10-23 Thread Tiemo Hollmann TB
Hello,

Rev 3.0, Win XP. I just experienced, when resizing a stack on Win the window
size follows the resizing mouse. But on Mac (standalone) the resize is done
after mouse up. Is this a standard Mac / Win difference of Rev? Am I missing
something in coding for Mac? Or is it a bug?

Thanks for your experience

Tiemo

 

 

 

___
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: XML Data Problem

2008-10-23 Thread Ben Rubinstein

Dave wrote:
The following in a string of XML data causes revCreateXMLTree() to 
return an error:


Gorillaz & Killers

Is there a way to handle this?



revCreateXMLTree is correct to return an error; "&" is an illegal character in 
XML.  (One of two, the other is "<".)


The 'right' way to handle this is for the XML to be valid; which would be done 
by either wrapping the offending text in a CDATA section:


   

or by using entities in place of the offending characters:

   Gorillaz & Killers

However, if you don't have control over the XML, and want to parse it anyway, 
you could try using the dontparseBadData parameter to revCreateXMLTree, to 
encourage it to do its best.  That will probably, but not definitely, let you 
get away with it - at least for that example.


Failing that, if you can't get valid XML, and it's so invalid that 
revCreateXMLTree won't accept it even when asked to be more tolerant, and you 
want to parse it anyway, you might have to do some preprocessing to massage 
out known errors that you want to overlook.


HTH,

- Ben

___
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: making a tooltip (for Japanese)

2008-10-23 Thread Mark Schonewille

Hi Tom,

If I click the Run button on the Walkthrough pane of your stack and  
immediately thereafter click on the Changing Tooltips tab, I get an  
execution error.


I think that Nicolas' problem is that Rev tooltips can't display  
unicode. He is probably trying to make his own tooltips and therefore  
needs to check the mouseControl in a mouseMove handler and is also  
likely to run into focus problems.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 23 okt 2008, at 15:03, Thomas McGrath III wrote:


Nicolas,

Go to the Rev Online User space "mcgrath3" and look at my sample  
tooltips stack "ToolTip Tricks". It shows many ways to play with  
tooltips that might help.


Tom McGrath III

On Oct 23, 2008, at

___
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: More - XML Data Problem

2008-10-23 Thread coiin
I was going to reply to say that apparently colon is used with namespaces, and 
authors are not supposed to use them in tags, but even so, parsers are supposed 
to cope with that.

As the problem may be with the ampersand, try this:

Gorillaz & Killers
___
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: making a tooltip (for Japanese)

2008-10-23 Thread Thomas McGrath III

Nicolas,

Go to the Rev Online User space "mcgrath3" and look at my sample  
tooltips stack "ToolTip Tricks". It shows many ways to play with  
tooltips that might help.


Tom McGrath III

On Oct 23, 2008, at 12:04 AM, Nicolas Cueto wrote:


Hello List,

I'd like to add a tooltip with Japanese text to objects,
and am looking for suggestions on how to script it.

My thought is to add a script to an object which uses
both "mousemove" to show a field (i.e.,the tooltip) and
"send" to trigger a "hide field" after a few seconds.

The trigger (which is the card) will also need to put off
hiding the field so long as the mouseloc has changed.

The challenge for me is how to measure whether the
mouse has moved or not. All I can figure out is to add
a "send" command to the trigger-script in the card
which'll compare mouselocs both before and after
the second send command.

But, maybe there's a simpler way of doing this?

Thanks.

--
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


More - XML Data Problem

2008-10-23 Thread Dave

Opps! Meant to say;

If I change the string to:

Gorillaz and Killers

All is Fine!

Thanks a lot
Dave

--
Hi,

The following in a string of XML data causes revCreateXMLTree() to  
return an error:


Gorillaz & Killers

Is there a way to handle this?

All the best
Dave


___
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


XML Data Problem

2008-10-23 Thread Dave

Hi,

The following in a string of XML data causes revCreateXMLTree() to  
return an error:


Gorillaz & Killers

Is there a way to handle this?

All the best
Dave


___
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: Two DB questions

2008-10-23 Thread Klaus Major

Strastwutje Ruslan,


On 10/23/08 2:55 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

--- Klaus Major <[EMAIL PROTECTED]> wrote:

Hi all,
1. One can move to the first/prev/next/last record
in a DB cursor  with: revdb_moveXXX(Cursor_ID)
Is it also possible to go to a specific record
NUMBER? Maybe I overlooked this in the docs...

Nope, you have to look at revdb_currentrecord() to
figure out where you're at, and then repeatedly call
revdb_moveprev() or revdb_movenext().


Some good news for Klaus :-)
Valentina for Revolution, allows random move on cursor records,
It have method
   Vcursor_Position( N )


this is really wonderful, moj drug!

But does not help me very much really ;-)


--
Best regards,

Ruslan Zasukhin


Best from germanski

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


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


Re: Another DB question

2008-10-23 Thread Ruslan Zasukhin
On 10/23/08 2:58 PM, "Klaus Major" <[EMAIL PROTECTED]> wrote:

Hi Klaus,

> Is it possible to directly "search" in the data of a db cursor?

Usually no. 

Bad news this time, Valentina also do not provide this.


> Or will on have to use a repeat loop through all the data in a cursor
> to find the desired data? Know what I mean?

All depends on your task.

At last of end, if you have BIG set of data in cursor,
And you still need do complex search on it,
You can first time build not cursor, but TMP table. May be in RAM.

In Valentina this is as

SELECT ... INTO tmpTable

 
> Background:
> When the user adds/inserts or updates a record, the current cursor is  not "up
> to date" anymore and one has to create a new one that reflects  these changes
> 
> And of course it is "good style" to display the SAME data to the user  after
> that action and not the first record of the new cursor.

Yes, right.

I have hear dozens times about this task from Valentina users.

Solution is:

* you need to have in cursor some unique number field.
and SORT on that field if possible.

* then you can use binary search on records of new cursor.


-
Another tip.

For this task you will execute SEVERAL times the same SELECT search to db.

Valentina allow do it using binding.
SELECT ... WHERE f1 = :1 and f2 > :2

As result of such technique, engine is able keep pool of precompiled
queries. This can speed execution of second, third, ... Queries.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
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: Two DB questions

2008-10-23 Thread Ruslan Zasukhin
On 10/23/08 2:55 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

>> 2. Since I cannot test it in the moment, how can one check if an  existing
>> table does NOT contain any data/records (yet)? I presume one can get a db
>> cursor first and then check  "revdb_recordcount" = 0. Is that correct?
> 
> Depending on the database, you could look at its
> internal statistics system tables, but this is very
> DBMS-specific.


> You can't have a cursor without a SELECT query, so
> what you could do is something like
> ##
> put revdb_query(tConnection, "SELECT * FROM
> customers") into tCursor
> put revdb_recordcount(tCursor) into tRecordCount
> ##

> but depending on the DBMS, this may lock the entire table (as it's not going
> to make a copy of the entire table just so that you can traverse it at leisure
> while others make changes or delete records)

I will add to this.

For MOST dbs this can be quite LONG operation in seconds if table is quite
big.
 
> So if you're only interested in learning if there's any data in the table, and
> if your DBMS supports it, you should use a LIMIT or TOP clause in your SELECT
> query to make sure you only get the first record if there is one.

Again, some good news. :-)

Valentina DBMS offer to developers VERY REACH API.
This means that we have up to 1000 public methods that developers can use.

And one of them is:

  res = VTalble_RecordCount()

Easy?  YES.

Effective?  YES. Zero time.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
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: formatting

2008-10-23 Thread Larry Watts

Thanks Mark!

- Original Message - 
From: "Mark Schonewille" <[EMAIL PROTECTED]>

To: "How to use Revolution" 
Sent: Thursday, October 23, 2008 5:06 AM
Subject: Re: formatting



Hi Larry,

Maybe this helps with regard to the formatting:



--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See 
http://economy-x-talk.com/server.html for more info.


On 23 okt 2008, at 14:01, Larry Watts wrote:

I want to generate a random number between 1 and  1,000,000,000,000,000 
but after experimenting, it seems the largest  number I'm allowed to put 
in for upperLimit in the random function  is 1,999,999,999.


Does anyone know if that is a limitation of Rev (not mentioned in  the 
documentation) or a limitation of my system? (Windows XP.)


Also, can anyone please tell me how to format the resulting number  so 
that it would appear with the commas - 1,234,567,890 instead of 
1234567890?


thanks, Larry


___
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: Two DB questions

2008-10-23 Thread Ruslan Zasukhin
On 10/23/08 2:55 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

> --- Klaus Major <[EMAIL PROTECTED]> wrote:
>> Hi all,
>> 
>> 1. One can move to the first/prev/next/last record
>> in a DB cursor  
>> with: revdb_moveXXX(Cursor_ID)
>> Is it also possible to go to a specific record
>> NUMBER? Maybe I 
>> overlooked this in the docs...
>> 
> 
> Nope, you have to look at revdb_currentrecord() to
> figure out where you're at, and then repeatedly call
> revdb_moveprev() or revdb_movenext().

Some good news for Klaus :-)

Valentina for Revolution, allows random move on cursor records,
It have method

Vcursor_Position( N )


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]


___
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: Two DB questions

2008-10-23 Thread Klaus Major

Hi Jan,


--- Klaus Major <[EMAIL PROTECTED]> wrote:

Hi all,

1. One can move to the first/prev/next/last record
in a DB cursor
with: revdb_moveXXX(Cursor_ID)
Is it also possible to go to a specific record
NUMBER? Maybe I
overlooked this in the docs...
Nope, you have to look at revdb_currentrecord() to

figure out where you're at, and then repeatedly call
revdb_moveprev() or revdb_movenext().


I was afraid of that :-)


2. Since I cannot test it in the moment, how can one
check if an
existing table does NOT contain any data/records
(yet)?
I presume one can get a db cursor first and then
check  "revdb_recordcount" = 0.
Is that correct?


Depending on the database, you could look at its
internal statistics system tables, but this is very
DBMS-specific.


I try to avoid DB specific things!


You can't have a cursor without a SELECT query, so
what you could do is something like
##
put revdb_query(tConnection, "SELECT * FROM
customers") into tCursor
put revdb_recordcount(tCursor) into tRecordCount
##


Yep, that's what I thought of.


but depending on the DBMS, this may lock the entire
table (as it's not going to make a copy of the entire
table just so that you can traverse it at leisure
while others make changes or delete records)

So if you're only interested in learning if there's
any data in the table, and if your DBMS supports it,
you should use a LIMIT or TOP clause in your SELECT
query to make sure you only get the first record if
there is one.


See above, I'd like to stick to "pure" SQL.


HTH,

Jan Schenkel.

Quartam Reports & PDF Library for Revolution



Thanks a lot, Jan!


Best

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


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


Re: formatting

2008-10-23 Thread Mark Schonewille

Hi Larry,

Maybe this helps with regard to the formatting:



--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 23 okt 2008, at 14:01, Larry Watts wrote:

I want to generate a random number between 1 and  
1,000,000,000,000,000  but after experimenting, it seems the largest  
number I'm allowed to put in for upperLimit in the random function  
is 1,999,999,999.


Does anyone know if that is a limitation of Rev (not mentioned in  
the documentation) or a limitation of my system? (Windows XP.)


Also, can anyone please tell me how to format the resulting number  
so that it would appear with the commas - 1,234,567,890 instead of  
1234567890?


thanks, Larry


___
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


formatting

2008-10-23 Thread Larry Watts
I want to generate a random number between 1 and 1,000,000,000,000,000  but 
after experimenting, it seems the largest number I'm allowed to put in for 
upperLimit in the random function is 1,999,999,999.

Does anyone know if that is a limitation of Rev (not mentioned in the 
documentation) or a limitation of my system? (Windows XP.)

Also, can anyone please tell me how to format the resulting number so that it 
would appear with the commas - 1,234,567,890 instead of 1234567890?

thanks, Larry

___
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


Another DB question

2008-10-23 Thread Klaus Major

Hi all,

although I did not receive a response to my first DB questions,
I dare to ask another question :-)

Is it possible to directly "search" in the data of a db cursor?
Or will on have to use a repeat loop through all the data in a cursor
to find the desired data? Know what I mean?

Background:
When the user adds/inserts or updates a record, the current cursor is  
not
"up to date" anymore and one has to create a new one that reflects  
these changes


And of course it is "good style" to display the SAME data to the user  
after that action

and not the first record of the new cursor.


Regards

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


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


Re: Two DB questions

2008-10-23 Thread Jan Schenkel
--- Klaus Major <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> 1. One can move to the first/prev/next/last record
> in a DB cursor  
> with: revdb_moveXXX(Cursor_ID)
> Is it also possible to go to a specific record
> NUMBER? Maybe I  
> overlooked this in the docs...
> 

Nope, you have to look at revdb_currentrecord() to
figure out where you're at, and then repeatedly call
revdb_moveprev() or revdb_movenext().

> 2. Since I cannot test it in the moment, how can one
> check if an  
> existing table does NOT contain any data/records
> (yet)?
> I presume one can get a db cursor first and then
> check  
> "revdb_recordcount" = 0.
> Is that correct?
> 

Depending on the database, you could look at its
internal statistics system tables, but this is very
DBMS-specific.

You can't have a cursor without a SELECT query, so
what you could do is something like
##
put revdb_query(tConnection, "SELECT * FROM
customers") into tCursor
put revdb_recordcount(tCursor) into tRecordCount
##
but depending on the DBMS, this may lock the entire
table (as it's not going to make a copy of the entire
table just so that you can traverse it at leisure
while others make changes or delete records)

So if you're only interested in learning if there's
any data in the table, and if your DBMS supports it,
you should use a LIMIT or TOP clause in your SELECT
query to make sure you only get the first record if
there is one.

> Thanks a lot in advance!
> 
> 
> Best
> 
> Klaus Major
> 

HTH,

Jan Schenkel.

Quartam Reports & PDF Library for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)


  
___
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: Gaussian pseudo-random numbers -- math issues

2008-10-23 Thread Mark Smith
Correction, I messed up with last night's version, so here's a  
correct one.



function polarBoxMuller pLength, pMean, pStd
   put 2 ^ 32 -1 into tMax
   repeat plength div 2
  repeat
 put (random(tMax) / tMax) * 2 - 1 into x
 put (random(tMax) / tMax) * 2 - 1 into y
 put x * x + y * y into r
 if r <> 0 and r <= 1 then exit repeat
  end repeat

  put sqrt( -2 * ln(r) / r) into d
  put pMean + (x * d) * pStd & comma after tList
  put pMean + (y * d) * pStd & comma after tList
   end repeat
   return char 1 to -2 of tList
end polarBoxMuller

Best,

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


Re: Handling custom URL protocols in Mac OS X?

2008-10-23 Thread Lyn Teyla
Ben Rubinstein wrote:

> Note the crazy GURL/LRUG test; this became necessary when
> Intel Macs came out.
> I think it applied when running under Rosetta on an Intel
> Mac.  I don't know
> if it's still an issue - ie whether it was a bug in Rev, or
> in Apple's code.

Thanks Ben, the code works great.

I can also confirm that Jacqueline's suggestion
about including a custom plist via the standalone
builder works fine.

Lyn
___
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-2: Q: timeout in http/ftp functions

2008-10-23 Thread [EMAIL PROTECTED]
Hello Klaus,

thank you. I will test this global variable - perhaps it is used in the put and 
post functions within runrev also. 

Regards, Franz


Original Messageprocessed by David InfoCenter 
Subject: Re: Q: timeout in http/ftp functions (23-Okt-2008 12:02)
From:Klaus Major <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]


Hi Franz,

> Hello,
> in using "put into URL" or "post xyz to URL zyx" runrev works for a > while 
> if the URL does not exist or any problem occurs with the 
> connection. Can I set a timeout like in Perl?
> ## use strict; use LWP::UserAgent; use HTTP::Request::Common; my $ua > = 
> LWP::UserAgent->new; $ua->timeout(30); ...

Maybe "the SocketTimeoutInterval" is what you are looking for?

> Regards, Franz Böhmisch

Best

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


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

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


Re: Q: timeout in http/ftp functions

2008-10-23 Thread Klaus Major

Hi Franz,


Hello,
in using "put into URL" or "post xyz to URL zyx" runrev works for a  
while if the URL does not exist or any problem occurs with the  
connection. Can I set a timeout like in Perl?
## use strict; use LWP::UserAgent; use HTTP::Request::Common; my $ua  
= LWP::UserAgent->new; $ua->timeout(30); ...


Maybe "the SocketTimeoutInterval" is what you are looking for?


Regards, Franz Böhmisch


Best

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


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


Q: timeout in http/ftp functions

2008-10-23 Thread [EMAIL PROTECTED]
Hello,
in using "put into URL" or "post xyz to URL zyx" runrev works for a while if 
the URL does not exist or any problem occurs with the connection. Can I set a 
timeout like in Perl?
## use strict; use LWP::UserAgent; use HTTP::Request::Common; my $ua = 
LWP::UserAgent->new; $ua->timeout(30); ...

Regards, Franz Böhmisch
___
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


Two DB questions

2008-10-23 Thread Klaus Major

Hi all,

1. One can move to the first/prev/next/last record in a DB cursor  
with: revdb_moveXXX(Cursor_ID)
Is it also possible to go to a specific record NUMBER? Maybe I  
overlooked this in the docs...


2. Since I cannot test it in the moment, how can one check if an  
existing table does NOT contain any data/records (yet)?
I presume one can get a db cursor first and then check  
"revdb_recordcount" = 0.

Is that correct?

Thanks a lot in advance!


Best

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


P.S.
I updated my bass page recently.
Now with some sound snippets, more to come in the next time.
http://www.major-k.de/bass


___
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: "take-up of netbooks has been staggering"

2008-10-23 Thread Bernard Devlin
I think the keyboard size is ok (I can touch type on it).  The only thing I
think is bad are the trackpad buttons - they're in an uncomfortable place
(either side of the trackpad), and they are very stiff.  I have to use a
mouse with it.  From what I've read, it looks like others feel the same way
about that.  Maybe later versions of the AA1 will sort that out.  Mind you,
there are going to be so many of these netbooks, so I expect the quality of
them to improve still further.

I synch everything by Lotus Notes.  I run Notes on a couple of Linux servers
(linode.com), and under WINE on the AA1 (and on Vista and OS X).  People
think Notes is just email but it's far more.  It's a distributed document
database.  So I store PDFs, web pages, code, executables, stacks (versioned
with annotations), etc. all in Notes.  It also means that I have everything
replicated in multiple places (my laptops, and a server in Atlanta, and
another in California) in case of disaster.   I had my development laptop
stolen a few years ago, but I only lost a couple of hours of work.

But I know Notes is an acquired taste :-)  It might be worth looking into
using Gmail as a filesystem (using FUSE).

I bought the AA1 to do Rev development on, but unfortunately that didn't
work out.  Maybe others will have better luck with that (could be it will
work better on other versions of Linux).  If the growth in netbook sales
continues, in a year or so I can see there being more Linux laptops sold
than Mac laptops.  Rev could be very well positioned to take advantage of
that.  Whilst there are obviously masses of free dev tools for Linux, there
is no easy route to visual programming (unlike Applescript or VB).

Bernard



On Thu, Oct 23, 2008 at 8:33 AM, Richard Gaskin
<[EMAIL PROTECTED]>wrote:

>
> This is exciting news for both Linux fans and cyclists. :)
>
> Still drooling over the prospect of a small light device, and with the AA1
> taking the thunder from Eee I'm glad I've been waiting for the market to
> sort itself out.
>
> How do you like the keyboard?  (size and responsiveness)
>
> Do you synch data with another computer, and if so how?  (net, flash drive,
> something else?  what software?)
>
> --
>  Richard Gaskin
>  Managing Editor, revJournal
>  ___
>  Rev tips, tutorials and more: http://www.revJournal.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: OT: "take-up of netbooks has been staggering"

2008-10-23 Thread Richard Gaskin

Bernard Devlin wrote:


http://www.itwire.com/content/view/21221/53/

It looks like my experiences in the week when I bought my AA1 were typical -
in seven days my local PC store went from selling two types of netbook, to
having a whole section devoted to eight different netbooks (most running
Linux).


This is exciting news for both Linux fans and cyclists. :)

Still drooling over the prospect of a small light device, and with the 
AA1 taking the thunder from Eee I'm glad I've been waiting for the 
market to sort itself out.


How do you like the keyboard?  (size and responsiveness)

Do you synch data with another computer, and if so how?  (net, flash 
drive, something else?  what software?)


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.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