Python Samples stack

2007-05-12 Thread Peter Alcibiades
I can view it but not go to it.  Is this due to being on 2.6.1 Linux?

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


End of U3?

2007-05-12 Thread Alex Shaw


sounds like it..

http://hardware.slashdot.org/article.pl?sid=07/05/11/2021244from=rss

regards
alex
___
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


Grep -- How to match segment containing many lines

2007-05-12 Thread Sivakatirswami

I want to replace a chunk many files

div id=linklist
# lots of other stuff here, many lines all inconsistent
across many files##
/html

div id=linklist(.*?)/html

div id=linklist(.*)/html

isn't working... I suspect because of the many lines
issue and I am having trouble finding the answer to
how to get grep to ignore line endings?

I'm sure it's really simple, but even after looking thru
BBEdit's grep help I can't find it.

TIA

Sivakatirswami
www.himalayanacademy.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: End of U3?

2007-05-12 Thread Richard Gaskin

Alex Shaw wrote:

sounds like it..

http://hardware.slashdot.org/article.pl?sid=07/05/11/2021244from=rss


Thanks for posting that, Alex.  Interesting read.

I liked this comment from one of the slashdotters:

   Trusted computing isn't about providing an environment you,
   the user can trust. It is about providing an environment
   copyright holders can trust you to have.

   Like the Soviet Russia jokes, only real.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a complete walkthrough

2007-05-12 Thread Bob Warren
How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a complete 
walkthrough


I came across the above article on the Internet the other day, and 
thought it might be potentially useful to any Rev colleagues who had not 
discovered it:


http://www.simplehelp.net/2007/04/27/how-to-install-ubuntu-feisty-fawn-in-os-x-using-parallels-a-complete-walkthrough/

If anyone has any further tips to give regarding the installation of 
Feisty through Parallels, please do give them to us.


A word of warning. If your Feisty involves the use of a PS/2 mouse in 
any way, I suggest you wait for Ubuntu's bugfix update which is sure to 
appear soon. The PS/2 mouse doesn't work in Feisty! This was a general 
Linux problem and not just a Ubuntu problem, but a very good example of 
the kind of disaster that can occur if you take the quality of other 
people's work for granted!


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


Intel standalone crash

2007-05-12 Thread ron

Hi,

I saved a standalone for an intel Mac and the older type on a Mac 
iBook. It calls custom properties for the control names and sets the 
menubar depending on whether the user selected UI is English or 
Japanese.  The older type standalone runs fine on an intel Mac as long 
as the rosetta option is chosen.


The intel version crashes on the intel Mac when the menu is clicked. It 
also does not display the control labels  properly, but as unreadable 
symbols. The program imports Japanese text and displays it with no 
problem.


It seems that text that is uniencoded will display but that unicoded 
text stored as custom props and simply set on a preopenstack handler do 
not? They work fine in a non-intel and not at all in the intel for 
which it was built. Is this a BOM problem and I need to store yet 
another set of custom props for the intel build?


sigh, when will foreign languages just work... (c'mon v3.0)

Can anyone explain this or point to a workaround?

Thanks
Ron

ps a windows standalone built on the Mac suffers the same problem with 
the control names being unreadable but clicking in the menu does not 
crash the program.


___
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


HTTPS from the comandline

2007-05-12 Thread David Bovill

I have to do a one-off https post, and as the ssl library is now a $199
extra I am looking to do this from the command line. Does anyone have any
cross-platform experience 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


Re: Grep -- How to match segment containing many lines

2007-05-12 Thread Klaus Major

Hi Swami,


I want to replace a chunk many files

div id=linklist
# lots of other stuff here, many lines all inconsistent
across many files##
/html

div id=linklist(.*?)/html

div id=linklist(.*)/html

isn't working... I suspect because of the many lines
issue and I am having trouble finding the answer to
how to get grep to ignore line endings?

I'm sure it's really simple, but even after looking thru
BBEdit's grep help I can't find it.


Good ol' Ken Ray once posted a code snippet that even iI could  
understand and

I use it now all the time for extracting values from XML like files:

function getXMLdata theData, what
  get matchText(theData,(?s)  what  (.*?)/  what   
,retValue)

  return retValue
end getXMLdata

This does only wok with fixed TAG names like:

- theData = oneTagthis and that and again this and that/oneTag
- get getXMLData theDAta,oneTag

Will return: his and that and again this and that

Maybe you can adapt this to your needs?
Like getting the desired string this way and then replace it with  
another string?


You could change it this way two support two different TAGs

function getXMLdata theData, TagOne,TagTwo
  get matchText(theData,(?s)  TagOne  (.*?)/  TagTwo   
,retValue)

  return retValue
end getXMLdata

Not tested, just an idea...


TIA

Sivakatirswami
www.himalayanacademy.com


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: HTTPS from the comandline

2007-05-12 Thread David Bovill

Using the curl command line tool seems to be easy and working well for
https and http posts - it is installed by default on linux and OSX machines
- how about windows?

   put curl -d  kwote(postData)  someURL into someShell
   put shell(someShell) into theResult
   delete line 1 to 3 of theResult
   put theResult

The -d option is for post - see
http://curl.haxx.se/docs/httpscripting.html and
http://curl.haxx.se/docs/manual.html for examples...
___
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: Intel standalone crash

2007-05-12 Thread Kenji Kojima

Ron,

If it was a BOM problem, try to use SJIS text for custom props.
It works for a Mac and Win BOM problem.

--
Kenji Kojima
http://www.kenjikojima.com/



On May 12, 2007, at 9:46 AM, ron wrote:


Hi,

I saved a standalone for an intel Mac and the older type on a Mac  
iBook. It calls custom properties for the control names and sets  
the menubar depending on whether the user selected UI is English or  
Japanese.  The older type standalone runs fine on an intel Mac as  
long as the rosetta option is chosen.


The intel version crashes on the intel Mac when the menu is  
clicked. It also does not display the control labels  properly, but  
as unreadable symbols. The program imports Japanese text and  
displays it with no problem.


It seems that text that is uniencoded will display but that  
unicoded text stored as custom props and simply set on a  
preopenstack handler do not? They work fine in a non-intel and not  
at all in the intel for which it was built. Is this a BOM problem  
and I need to store yet another set of custom props for the intel  
build?


sigh, when will foreign languages just work... (c'mon v3.0)

Can anyone explain this or point to a workaround?

Thanks
Ron

ps a windows standalone built on the Mac suffers the same problem  
with the control names being unreadable but clicking in the menu  
does not crash the program.


___
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: End of U3?

2007-05-12 Thread Lynn Fredricks
 sounds like it..
 
 http://hardware.slashdot.org/article.pl?sid=07/05/11/2021244from=rss

No, not exactly - only a transformation in our support for an even larger
entity. Read the original article in Infoweek here
http://www.informationweek.com/news/showArticle.jhtml?articleID=199501108.

Not all that long ago, U3 was acquired by San Disk (San Disk and M-Systems
both owned 50% each previously; San Disk acquired M-Systems) and our
partnership with San Disk has blossomed. We havent been able to say anything
about this, for obvious reasons. It isnt something I can discuss in great
detail at this point but you shouldn't automatically assume this is going to
hose the Rev-U3 community - maybe just the opposite :-)

Best regards,

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

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


Spreadsheet

2007-05-12 Thread David Bovill

I am just starting work on a basic spreadsheet in Rev - I have a few
fragments but was wandering if anyone has some work they would be willing to
share?

The bits I have:

  1. altTable like component with headers
  2. data model
  3. bits to read and write to OpenOffice documents

I don't have any GUI or code for viewing, adding and editing formulae, or a
general way of taking standard formulae and applying them to cells. Any
ideas?
___
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: Accessing gRev values

2007-05-12 Thread Jim Ault
On 5/11/07 8:41 PM, Cal Horner [EMAIL PROTECTED] wrote:

 Is there any way of getting the value from an RR gRev global variable? Such as
 gRevMenuTarget.

I am not sure of your question.  Doesn't this work?

put gRevMenuTarget into msg


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: Grep -- How to match segment containing many lines

2007-05-12 Thread Jim Ault
you should look at the (?) directive syntax

such as (?i) = case sensitive
(?si) = ignore line endings + case sensitive
(?Usi) = ungreedy + ignore + sensitive

I think you want [greedy + ignore line endings] so use

put (?s)div id=linklist(.*?)/html into regEx
get matchChunk(textBlock,regEx,charpos1,charpos2)
delete char charpos1 to charpos2 of textBlock

This should get you close to what you want.

Jim Ault
Las Vegas


On 5/12/07 2:08 AM, Sivakatirswami [EMAIL PROTECTED] wrote:

 I want to replace a chunk many files
 
 div id=linklist
 # lots of other stuff here, many lines all inconsistent
 across many files##
 /html
 
 div id=linklist(.*?)/html
 
 div id=linklist(.*)/html
 
 isn't working... I suspect because of the many lines
 issue and I am having trouble finding the answer to
 how to get grep to ignore line endings?
 
 I'm sure it's really simple, but even after looking thru
 BBEdit's grep help I can't find it.
 
 TIA
 
 Sivakatirswami
 www.himalayanacademy.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] How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a complete walkthrough

2007-05-12 Thread Mark Talluto


On May 12, 2007, at 6:26 AM, Bob Warren wrote:

How to install Ubuntu (Feisty Fawn) in OS X using Parallels - a  
complete walkthrough


I came across the above article on the Internet the other day, and  
thought it might be potentially useful to any Rev colleagues who  
had not discovered it:


http://www.simplehelp.net/2007/04/27/how-to-install-ubuntu-feisty- 
fawn-in-os-x-using-parallels-a-complete-walkthrough/




Thanks Bob!  Handy tips.


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

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


Re: Spreadsheet

2007-05-12 Thread Martin Blackman

I have something basic with a 'formula bar' but the spreadsheet
doesn't actually allow for formulas, its basically for table entry.
Send me an email if that's of any interest.



I don't have any GUI or code for viewing, adding and editing formulae, or a
general way of taking standard formulae and applying them to cells. Any
ideas?

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

2007-05-12 Thread Björnke von Gierke

Hi David

Unfortunately, I don't have any spreadsheet to share. I would be 
interested in your OpenOffice code though, any chance of making an 
example stack which contains your snippets?


As for formula handling, is there a special format you had in mind with 
standard formulae? Otherwise you could do (hehe) something like this:


1. Make up your code, as similar to rev code as possible. For example 
(off the top of my mind):

cell 1,3 + cell 1,4 / cell 1,5

2. Replace stuff rev doesn't understand with rev stuff (assuming every 
cell is a rev field):

field cell 1,3 + field cell 1,4 / field cell 1,5

3. evaluate the string in rev:
put value(field cell 1,3 + field cell 1,4 / field cell 1,5) into 
field cell 1,6


You could of course use do as an alternative, I'm not sure if that'd 
be more complex, but it would certainly be less secure.


have fun
Björnke

On 12 May 2007, at 17:17, David Bovill wrote:


I am just starting work on a basic spreadsheet in Rev - I have a few
fragments but was wandering if anyone has some work they would be 
willing to

share?

The bits I have:

  1. altTable like component with headers
  2. data model
  3. bits to read and write to OpenOffice documents

I don't have any GUI or code for viewing, adding and editing formulae, 
or a

general way of taking standard formulae and applying them to cells. Any
ideas?
___
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: Accessing gRev values

2007-05-12 Thread Phil Davis

Hi Cal, Jim,

Assuming the gRev globals are in fact globals, and since globals have, well, 
global scope (there's no place in the runtime environment where they can't be 
made available once they exist), then all you should have to do in your script 
to gain access to those gRev globals is declare them the way you do any other 
global.


I've a lot of this recently with gRevAppIcon and gRevSmallAppIcon, to change the 
icons that show up in dialogs. I assume it's the same with any other global. 
Somebody please correct me if I'm wrong!


Thanks -
Phil Davis



Jim Ault wrote:

On 5/11/07 8:41 PM, Cal Horner [EMAIL PROTECTED] wrote:


Is there any way of getting the value from an RR gRev global variable? Such as
gRevMenuTarget.


I am not sure of your question.  Doesn't this work?

put gRevMenuTarget into msg


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


Date Chooser

2007-05-12 Thread Matthew
I need a way for the user to be able to choose a date like through a  
dialog. Has there been anything like this? Or is there something  
similar that I could adapt?


I thing Shao Sean made something similar, but I don't know if it  
would work. I am going to look at it, but I would still like to see  
if there is something better.


--
Matthew Peterson
Programmer
Christa McAuliffe Space Education Center


___
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: Date Chooser

2007-05-12 Thread Björnke von Gierke

third entry on my stacks page:

http://www.bjoernke.com/runrev/stacks.php

On 12 May 2007, at 21:26, Matthew wrote:

I need a way for the user to be able to choose a date like through a 
dialog. Has there been anything like this? Or is there something 
similar that I could adapt?


I thing Shao Sean made something similar, but I don't know if it would 
work. I am going to look at it, but I would still like to see if there 
is something better.


--
Matthew Peterson
Programmer
Christa McAuliffe Space Education Center


--

official ChatRev page:
http://chatrev.bjoernke.com

Chat with other RunRev developers:
go stack URL http://homepage.mac.com/bvg/chatrev1.3.rev;

___
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: Python Samples stack

2007-05-12 Thread Joel Guillod

I can view it but not go to it.  Is this due to being on 2.6.1 Linux?


Hi Peter,

Is Python installed on your machine? To check that python is  
installed and to know the command folder path of the python tool type  
«which python». Also, try a python -V» command (with uppercase for  
V) in a shell terminal to get the version number.


In Revolution you can also execute:
  answer Is python installed in the $PATH:  shell(which python)
  answer Python version is  shell(python -V)

If Python is not installed, go to http://www.python.org/download/  
it's just easy to proceed. In MacOSX python is installed by default.  
I use version 2.5 but the stack should work for 2.3 and 2.4.

___
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: Date Chooser

2007-05-12 Thread Sarah Reichelt

On 5/13/07, Matthew [EMAIL PROTECTED] wrote:

I need a way for the user to be able to choose a date like through a
dialog. Has there been anything like this? Or is there something
similar that I could adapt?


http://www.troz.net/Rev/libraries/Calendar.rev.gz gives you a
calendar display that allows date selction by clicking only.

HTH,
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: Date Chooser

2007-05-12 Thread Matthew
Thanks to you both. I started using Bjornke's stack, but I think I  
like the calander better. I am going to try and combine both into a  
date chooser stack and write a small handler for it. If anyone is  
interested, I can post it later.


--
Matthew Peterson
Programmer
Christa McAuliffe Space Education Center


On May 12, 2007, at 2:37 PM, Sarah Reichelt wrote:


On 5/13/07, Matthew [EMAIL PROTECTED] wrote:

I need a way for the user to be able to choose a date like through a
dialog. Has there been anything like this? Or is there something
similar that I could adapt?


http://www.troz.net/Rev/libraries/Calendar.rev.gz gives you a
calendar display that allows date selction by clicking only.

HTH,
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: Grep -- How to match segment containing many lines

2007-05-12 Thread Sivakatirswami

Jim Ault wrote:

you should look at the (?) directive syntax

such as (?i) = case sensitive
(?si) = ignore line endings + case sensitive
(?Usi) = ungreedy + ignore + sensitive

I think you want [greedy + ignore line endings] so use

put (?s)div id=linklist(.*?)/html into regEx
get matchChunk(textBlock,regEx,charpos1,charpos2)
delete char charpos1 to charpos2 of textBlock

This should get you close to what you want.

Jim Ault
Las Vegas




Jim, thanks... that's it.

(?s)div id=linklist(.*?)/html
does it... and I found the section in the BBEdit help on
Perl-Style Pattern Extensions  where all this is
explained...

s   allow. to match \r

Marvelous!  The unintuitive part is that this pattern
or toggle must begin the entire expression.

Sivakatirswami
www.himalayanacademy.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: Grep -- How to match segment containing many lines

2007-05-12 Thread Ken Ray
 does it... and I found the section in the BBEdit help on
 Perl-Style Pattern Extensions  where all this is
 explained...
 
 s   allow. to match \r
 
 Marvelous!  The unintuitive part is that this pattern
 or toggle must begin the entire expression.

For more on how Rev handles it, go to www.pcre.org/man.txt, which is 
the documentation on the PCRE library that Rev uses for regex handling.

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
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: End of U3?

2007-05-12 Thread Judy Perry
I hope you are right... I was just counting on U3 drives for teaching next
fall...

Judy

On Sat, 12 May 2007, Lynn Fredricks wrote:

  sounds like it..
 
  http://hardware.slashdot.org/article.pl?sid=07/05/11/2021244from=rss

 No, not exactly - only a transformation in our support for an even larger
 entity. Read the original article in Infoweek here
 http://www.informationweek.com/news/showArticle.jhtml?articleID=199501108.

 Not all that long ago, U3 was acquired by San Disk (San Disk and M-Systems
 both owned 50% each previously; San Disk acquired M-Systems) and our
 partnership with San Disk has blossomed. We havent been able to say anything
 about this, for obvious reasons. It isnt something I can discuss in great
 detail at this point but you shouldn't automatically assume this is going to
 hose the Rev-U3 community - maybe just the opposite :-)

 Best regards,

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


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


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