Re: Rev as Linux Shell Script

2010-10-28 Thread Peter W A Wood
Bill 

On 28 Oct 2010, at 22:39, Bill Andersen wrote:

 I'm sorry this is so long winded.  I'm hoping it will help you understand my 
 motivation...
 
 ... snip 
 
 
 I've read how to get the runtime working as a CGI and played around enough 
 that I 'can' (seemingly) make it work from a shell with the #!revolution 
 -ui declaration on the first line.  However, when I get to some of the 
 higher level features (FTP, ODBC, etc) I start getting errors.  I was 
 researching how to possibly resolve these issues (need libraries, etc) when I 
 found that Rev 3.5 is the last version to support the ability to run as a CGI.


I also am keen to use LiveCode to write shell programs and believe that it is 
possible by adopting a slightly different approach. I believe that if you build 
a standalone of your script, you can run the 'standalone program with the 
-ui argument.

I performed a small test under Revolution 4.0. I created a new stack and added 
the following handler to the stack:

on startup
put Hello Console
quit
end startup

I created a standalone and then ran the executable from a shell console using 
the -ui option :

Rodney:MacOS peter$ ./CLTest -ui
Hello Console
Rodney:MacOS peter$ 

It's not much of a test but it did work. I would expect the technique to work 
just as well under Linux.

It would be even better if there was an option to build a GUI-less program when 
building a standalone in LiveCode though.

Regards

Peter


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


Re: Bl**dy Laptop Keyboards

2010-10-27 Thread Peter W A Wood
Richmond

 Thanks, but what is a Fn button?

It's the bottom left key in the picture at 
http://gamoe.net/imagebank/NewMacBookKeyboard.jpg.

There are both return and enter keys on my MacBookPro.

Regards

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


Re: Distinguishing between ASCII and UTF8

2010-10-06 Thread Peter W A Wood
Richard

 I have an app that needs to auto-detect Unicode and plain text, and render 
 them correctly based on that auto-detection.
 
 I have the UTF16 stuff working, but with UTF8 I have a problem:  there is no 
 BOM to let me know if it's Unicode, and some plain text files will 
 occasionally have high-ASCII values in them (like the dagger symbol).
 
 What patterns should I be looking for in the binary data of a file to 
 distinguish UTF8 from plain text?

These are the Rules of Thumb that I have used to try to determine the 
encoding type of text files. I feel that I achieved more than 90 per cent 
success but that may because most of the files only included true ASCII 
characters (0 -127). The script only tries to distinguish between ASCII, UTF-8, 
MacRoman and Windows 1252 Codepage (the US default for Windows).

Rules of Thumb, applied in the following order:

1. If the string starts with a BOM, the encoding infered by the BOM will be 
returned.

2. If the string contains only characters in the range 0x00 - 0x7F, it is an 
ASCII string.

3. If the string contains more UTF-8 multi-byte characters than it does invalid 
utf-8 characters and invalid multi-byte sequences, it is a UTF-8 string.

4. If the string contains characters in the range 0xA0 - 0xFF but none in the 
range 0x80 - 0x9F, it is an ISO-8859-1 string.

5. If the string contains any of 0x81, 0x8D, 0x8F, 0x90 or 0x9D, it is a 
MacRoman string. .

6. If the string contains carriage returns but no line feeds, it is a MacRoman 
string.

7. It is a Windows 1252 Codepage string.

The approach I take in the script is to count the different types of characters 
in the text and then apply the rules of thumb. The script is written in REBOL 
so will probably not be even be of help as a guide. However, the documentation 
includes a table of the differences between UTF-8, Windows 1252 and MacRoman 
which you may find useful. You can find it at 
http://www.rebol.org/documentation.r?script=str-enc-utils.r

Regards

Peter



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


Re: Scripts that are already running

2010-09-24 Thread Peter W A Wood
Richard 

 One small step in that direction, from the LiveCode 4.5 Release Notes.pdf 
 (which is unfortunately buried deep inside the app bundle on OS X virtually 
 guaranteeing no Mac customer will ever see it):

The release notes are easily accessible from the LiveCode IDE Menu 
(help-release notes) which you probably didn't know as you use your own IDE.

Regards

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


Re: Revserver / Dreamhost question

2010-08-13 Thread Peter W A Wood
Richard

On 14 Aug 2010, at 00:10, Richard Gaskin wrote:

 As many here have noted, 30 seconds is a very long time to run a continuous 
 process.  With my CGIs I target a maximum of 5 seconds and may in some 
 extreme cases tolerate up to 10 seconds if absolutely unavoidable, but even 
 that's too long for my tastes; I can't have the user siting there without 
 feedback for that long.

After reading this I wasn't clear whether the 30 second per process limit was 
imposed on CPU usage or elapsed time. I ran the following test that confirms it 
is CPU usage.

The iRev file:

html
head
/head
body
?rev
put pI started at  the date  the time  /p
wait 120 seconds
put pI finished at  the date  the time  /p
?
/body
/html

The result:
I started at 8/13/10 6:30 PM

I finished at 8/13/10 6:32 PM

Personally, I think a 30 second cpu usage limit  per process to avoid looping 
process is very reasonable and should rarely be an issue when serving web 
pages. It could possibly be restrictive for server based tasks though.


Regards

Peter




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


Re: Classic CGI on Win

2010-08-09 Thread Peter W A Wood
Malte

Thanks to RRobert from Hamburg, if you can do all you want in a standalone, you 
can do it as a CGI. It is easy to forget that a CGI is just an ordinary program 
with specific output. His detailed explanation is here - 
http://forums.runrev.com/phpBB2/viewtopic.php?f=8t=5160p=24096hilit=RRobert#p23142
 

Also, this may be of interest 
http://forums.runrev.com/phpBB2/viewtopic.php?f=15t=4755#p21119

Regards

Peter

On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:

 Hi folks,
 
 as we do not yet have a win version of revServer, I need to set up a CGI on 
 Win Server 2003 (if possible)
 
 Requirements are: 
 
 Needs to work with local postGreSQL DB
 Needs to work with revXML
 
 Is this possible? If so, which components do I need to install where? Server 
 can run Apache.
 
 Cheers,
 
 Malte___
 use-revolution mailing list
 use-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: Classic CGI on Win

2010-08-09 Thread Peter W A Wood
Andre

I must admit I only tried a simple hello world test on Mac OS X and then not 
as a CGI but a simple command line executable.

Regards

Peter

On 9 Aug 2010, at 21:44, Andre Garzia wrote:

 Peter,
 
 The standalone trick will not work on some circunstances. If you don't
 have X11 installed on the linux machine (Common for servers), the
 standalone will not load due to missing libraries. :-/
 
 PS: This was the case long time ago, need to double check now if it still 
 holds.
 
 Andre
 
 On Mon, Aug 9, 2010 at 10:36 AM, Peter W A Wood peterwaw...@gmail.com wrote:
 Malte
 
 Thanks to RRobert from Hamburg, if you can do all you want in a standalone, 
 you can do it as a CGI. It is easy to forget that a CGI is just an ordinary 
 program with specific output. His detailed explanation is here - 
 http://forums.runrev.com/phpBB2/viewtopic.php?f=8t=5160p=24096hilit=RRobert#p23142
 
 Also, this may be of interest 
 http://forums.runrev.com/phpBB2/viewtopic.php?f=15t=4755#p21119
 
 Regards
 
 Peter
 
 On 9 Aug 2010, at 19:19, Malte Pfaff-Brill wrote:
 
 Hi folks,
 
 as we do not yet have a win version of revServer, I need to set up a CGI on 
 Win Server 2003 (if possible)
 
 Requirements are:
 
 Needs to work with local postGreSQL DB
 Needs to work with revXML
 
 Is this possible? If so, which components do I need to install where? 
 Server can run Apache.
 
 Cheers,
 
 Malte___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-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: Rodeo, revServer etc.

2010-08-05 Thread Peter W A Wood
On 6 Aug 2010, at 01:17, J. Landman Gay wrote:

 I know for a fact that at least one of our major players has an inbox that 
 goes on practically to infinity, and he's unlikely to even notice anything 
 you send.

I think that buying him a copy of David Allen's Getting Things Done and taking 
his computers away from him for a day so that he will read it would be one of 
the best investments RunRev could make at this time. In fact, if RunRev can get 
him to read it, I'll happily buy the book for him.

Regards

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


Re: Rodeo, revServer etc.

2010-08-05 Thread Peter W A Wood
On 6 Aug 2010, at 09:33, J. Landman Gay wrote:
 I am fairly certain that if you take his computer away for even a few hours, 
 his head will implode.

A neural de-tox. Perfect! ;-)

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


Re: [revServer] process timeout issue

2010-08-04 Thread Peter W A Wood
Hi Chipp

On 4 Aug 2010, at 11:14, Chipp Walters wrote:

 I believe I paid something like 500 bucks for it at the beginning and nothing 
 since, so I
 understand the SLA (or lack thereof) I am receiving.

I also bought a founder account and share your sentiment to a large degree. 
However, RunRev appears to be its own worst enemy by making public statements 
such as Ultra reliable web hosting, Blistering Performance and Server 
Performance - Blistering. Yes, the founder account is good value at the 
current service levels but it doesn't live up to its promises. 

Regards

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


Re: Estimate/Quotation program, help me please.....

2010-07-22 Thread Peter W A Wood
Perhaps the hangman tutorial will be of help to you - 
http://www.runrev.com/developers/lessons-and-tutorials/tutorials/intermediate-hangman/

On 23 Jul 2010, at 09:17, tm274 wrote:

 
 I see a one day training course for a kiosk but it appears to be a web based
 program and I am looking to learn or get help to build a windows executable
 that includes option buttons and combo boxes rather than drag and drop. Any
 other thoughts?
 -- 
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Estimate-Quotation-program-help-me-please-tp2299593p2299615.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

___
use-revolution mailing list
use-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] G4 goes West

2010-07-09 Thread Peter W A Wood
This may help - http://www.encyclo.co.uk/define/Gone%20West
On 9 Jul 2010, at 21:12, Colin Holgate wrote:

 I hadn't seen anyone use the expression going west before, so I just took 
 it to mean going south, with some misdirection (as it were) for the sake of 
 humor. ___
 use-revolution mailing list
 use-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: Writing Externals in Pascal?

2010-07-08 Thread Peter W A Wood
Mark

I suspect that writing a dynamic link library for use with Rebol is likely to 
be easier than writing an external for Revolution. The Rebol language is 
evaluated not compiled.

I found writing a dynamic link library with FPC quite straightforward though I 
encountered two problems which I have been able to overcome.

The first could hinder developing complicated externals for Revolution. FPC 
does not support error handling in dynamic link libraries, so no try/finally 
etc.. I believe this is due to the difficulty of coming up with a 
cross-platform implementation. This limitation can probably be overcome through 
conservative and defensive coding in most cases. In my case, I perform 
additional validations in the Rebol module that calls the dynamic link library.

The second is that there is a conflict between the Mac OS X Snow Leopard linker 
and FPC. There is a work around but the resulting dynamic link library is not 
fully stable. I believe this is something to do with initialisation and 
termination routines. The workaround is to compile the dynamic link library 
under Mac OS X Leopard.

The dynamic link library is very simple but runs successfully on Windows, 
Ubuntu and Mac OS X.

Regards

Peter



On 8 Jul 2010, at 00:26, Mark Wieder wrote:

 Peter-
 
 Monday, July 5, 2010, 4:59:11 PM, you wrote:
 
 Free Pascal. At the moment, I am testing calling a dynamic load
 library written in Free Pascal from Rebol (a language written in C)
 using C calling conventions.
 
 Keep us posted on your progress - that's a promising start.
 
 -- 
 -Mark Wieder
 mwie...@ahsoftware.net
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-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: Writing Externals in Pascal?

2010-07-05 Thread Peter W A Wood
Hi Scott

I am also be interested in being able to develop externals in Free Pascal. At 
the moment, I am testing calling a dynamic load library written in Free Pascal 
from Rebol (a language written in C) using C calling conventions.

 It is impossible to get the level
 of granularity of compiler options with Borland's compilers
 (C++ Builder, Delphi) to get the combination of:
 1. no leading underscore

You get to name the function in FPC. Here is an extract from my dll:

{$ifndef Darwin}
exports  
  version name 'version';
{$else}
exports
  version name '_version';
{$endif}

 2. mixed case exported symbols

I tested with a mixed case function name:

exports
  accountingformat name '_accountingFormat',
  version name '_version';


 3. C-style parameter passing (first to last)
 4- C-style stack frames (calling program cleans up
 the stack)

FPC includes a modifier for the cdecl calling convention (which I believe 
answers 3  4). Here is an example:

procedure version(var answer: shortstring);cdecl;
begin
  answer := CurrentVersion;
end;

Regards

Peter Wood

___
use-revolution mailing list
use-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: Rev 4.0 Enterprise Splash Stack - xmlerr, can't find element

2009-12-27 Thread Peter W A Wood
Jacque and Malte

Thanks. I've entered into the QCC - #8512.

Peter

On 28 Dec 2009, at 02:19, Malte Pfaff-Brill wrote:

 Hi Peter,
 
 I am pretty sure the RSS feed broke, when the forum software was updated to 
 the latest version. As Jacque mentioned already, this should go into 
 quality.runrev.com
 
 Cheers,
 
 Malte___
 use-revolution mailing list
 use-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


Rev 4.0 Enterprise Splash Stack - xmlerr, can't find element

2009-12-26 Thread Peter W A Wood
I've just upgraded to Rev 4.0 Enterprise and get an XML error reported in the 
Splash Stack. The Offers tab is fine and downloads and shows its advert 
nicely. When I click on the Forums tab instead of a list of recent discussions, 
an xmlerr, can't find element message is displayed. Is it a bug or something 
that I need to setup?

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


Re: does anyone have experience printing PDFs from Rev @ full resolution?

2009-12-13 Thread Peter W A Wood
Richmond 

 And, Linux 

Have you tried using the lpr shell command - 
http://www.linuxquestions.org/questions/linux-software-2/print-files-in-pdf-or-html-format-from-the-linux-command-line-204012/

Regards

Peter Wood


___
use-revolution mailing list
use-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: ode Samples/Comparisons

2009-12-03 Thread Peter W A Wood

 The program that markets itself as the champion of the one-liners is REBOL. 
 Its website features a hundred one-liners  O.K. you won the one-liner contest 
 but where are the programs that actually do something useful? REBOL reminds 
 me of a trailer to an action movie that contains all the good parts. When you 
 watch the entire movie you wonder what the hell that was all about. As for 
 me, the only selling point for REBOL is that Pierre Sahores thinks highly of 
 it. (But he's a lot smarter than I am.)

I was enthusiastically introduced to Revolution by Olivier Auverlot 
(http://auverlot.fr/) after working with him to translate one of his books on 
Rebol to English. (I included his web address as list members may be interested 
in his OdtRev stack for working with OpenOffice.org - it's free. The docs are 
in French, I will try to find the time from somewhere to translate them into 
English.)

Sometimes Rebol does seem to promise more than it delivers but it can do some 
very useful things. Two very different examples are the Cheyenne Web Server 
(http://cheyenne-server.org/) and the Synapse Electronic Medical Record System 
(http://www.compkarori.co.nz:8090/).

Regards

Peter

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


Re: Rev 4.0 article on TheServerSide

2009-12-02 Thread Peter W A Wood
Richard 

 IIRC, the Java example of how to make an alias is from the Apple web site.

That raises an interesting question. Is is because Apple's engineers write poor 
Java that Steve Jobs said “Java’s not worth building in. Nobody uses Java 
anymore. It’s this big heavyweight ball and chain.” or is it because Steve Jobs 
said it that Apple's engineers write poor Java?

Whatever the answer, Andre raised a very relevant point, with which I fully 
agree, that Rev is not well served by using a comparison against what others 
feel is very poor code.

To truly demonstrate Rev's ability against other code, get the code written by 
a recognised expert in that language (somebody like Bruce Eckel for Java and 
C++). Yes, it would cost money but I believe it would be money well spent.

If RunRev doesn't have or want to spend the money then issue a challenge to 
improve the code on a forum like Stackoverflow.

To exemplify both points, I was going to write a counter example of sending a 
simple email - sending a simple text message. I'm new to Rev so I couldn't do 
it off the top of my head. So, I leave it to the experts on the list to come up 
with the Rev to counter my Rebol example:

REBOL[] ;; Script header

;; Initialise network settings
set-net [
myem...@mydomain.com
smtp.MyDomain.com
pop.MyDomain.com
ProxyDomain.com ;; or None
ProxyPort   ;; or None
ProxyProtocol   ;; or None
MyUserAccount
MyPassword
  ]

send yourem...@yourdomain.com Hello There

send/header yourem...@yourdomain.com
Doesn't this demonstrate a biased example?
Rebol needs far fewer lines than Rev

;; end of scrpt 

Regards

Peter


]




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


Re: One day to go . . .

2009-11-10 Thread Peter W A Wood

Richmond

Ideally I would like, eventually, to  have a successful, web-based  
client so that
end-users can do their Sanskrit without having to clutter up their  
hard disks

(or their employers) with a standalone.


Is a stand-alone really that much more clutter than the plug-in and  
the revlet? Surely, they're about the same size, just stored in  
different places on the users' hard disks.


Regards

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


Re: [OT] Figuring Out XML Error?

2009-10-12 Thread Peter W A Wood

Hi Scott

I'm no XML expert but tried your sample file with this XML Validator - 
http://www.validome.org/xml/validate/

It complained about an HTML escape sequence aacute; As the XML file  
is UTF-8 encoded it shouldn't be necessary to use HMTL escapes.


I've attached the actual error message.

Regards

Peter Wood



Error (1)
LineFile name:  document.xml
2   Column: 4703
Error:  Entity aacute was referenced, but not declared.
Error Position: 
...th Plan, Inc. ya no seguiraacute; ofreciendo su plan en el 2010./ 
w:t/

On 12 Oct 2009, at 15:19, Scott Rossi wrote:


Hi List:

Was wondering if any XML savvy folks out there might know how to track
down/correct a formatting error (?) in an XML file.

My brother is using some proprietary software to translate text in XML
documents into languages with diacritical characters.  The output  
produced
by the software apparently has one or more errors that prevent it  
from being

rendered properly in a Web browser for example.

I've tried just looking at the raw XML which appears to include some  
MS
tags, but I have neither a dedicated XML editor nor enough knowledge  
to know

what to look for.  Perhaps someone here can offer a clue.

A sample file is posted here:
http://www.tactilemedia.com/download/document.xml.zip

Thanks  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


___
use-revolution mailing list
use-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] Figuring Out XML Error?

2009-10-12 Thread Peter W A Wood

Hi Scott
On 12 Oct 2009, at 16:24, Scott Rossi wrote:
Thanks for looking Peter.  It seems possible to discern the error  
even just

using a Web browser, but how to correct it?


By changing all the HTML escapes to their UTF-8 Equivalent which is  
will be a little laborious and beyond my fledgling Rev skills at the  
moment.


I could do it with Rebol but that probably won't be much help to  
you.  :-(


Regards

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


Re: [OT] Figuring Out XML Error?

2009-10-12 Thread Peter W A Wood

Hi Scott

Thanks for looking Peter.  It seems possible to discern the error  
even just

using a Web browser, but how to correct it?


By referring to a couple of tutorials and the dictionary, I managed to  
cobble together this simple skeleton of how to correct the file using  
RunRev. I'm sure that most people on this list could do better:


By referring to a couple of tutorials and the dictionary

set the defaultFolder to /Users/peter/Desktop
put url (file:   document.xml) into myXML
replace aacute; with numToChar(195)  numToChar(161) in myXML
replace eacute; with numtoChar(195)  numToChar(169) in myXML
-- etc.
put myXML into url (file:  newdocument.xml)

In case it isn't obvious what the above script does is change all the  
occurrences of  aacute; to the UTF-8 character sequence for a small a  
with an acute accent. It does the same to a small e with an acute  
accent. Unfortunately, their are a lot more to add. I'm not aware of a  
programatic way of converting from HTML escape characters to UTF-8.


I did test against the file you supplied and it worked in the sense  
that the XML validator found a different error.


I hope this helps.

Regards

Peter

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


Re: faxing from a rev stack?

2009-09-03 Thread Peter W A Wood


On 4 Sep 2009, at 12:04, Sarah Reichelt wrote:

Peter, I do this by using an online fax service that accepts emails
and sends them  their attachments out as faxes.
Unless you are sending lots of faxes, this is a lot cheaper than
buying a fax machine.


You can send and receive faxes directly from a Mac which either has a  
built-in modem or using an Apple USB modem. (Depending on the  
comparative charges, the online fax service could still end up cheaper).


I don't yet know enough about Revolution to properly answer Peter's  
question but as a Fax is automatically added to the list of printers  
shown in the printer dialog in OS X when a fax modem is attached and  
connected to a phone line, I guess it could well be possible.


Regards

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


Re: faxing from a rev stack?

2009-09-03 Thread Peter W A Wood

Peter

2009/9/3 Peter Brigham MD pmb...@gmail.com

I'm interested in building a fax capability into one of my stack  
systems.
I'm presuming that I'll need to call on a Mac fax application.  
Anyone know
which app would be best to use and how to call on it it to fax by  
script

from within rev?

MacBook, OSX 10.5.8, Rev Studio 3.5.0-gm-2, build 870

-- Peter


It is possible to send a fax with a shellCommand. I tested sending a  
very basic fax with the following shell command :


lp -d External_Modem -o phone=67300923 ~/Desktop/testfax.txt

Hope this helps

Regards

Peter 
___

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


Re: Snow Leopard

2009-08-29 Thread Peter W A Wood
I think there can be little doubt that Revolution is a Carbon  
application. The easiest way to tell is when the old black  white  
busy cursor can be seen. I've certainly seen it whilst using the  
Revolution IDE and I guess it can be seen from Revolution apps.


Regards

Peter

On 30 Aug 2009, at 05:53, Colin Holgate wrote:



On Aug 29, 2009, at 5:31 PM, François Chaplais wrote:


An answer to this question would be welcome from the mothership.


Yes, come on Kevin, don't tell me you're busy preparing for  
something...



___
use-revolution mailing list
use-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: Referring to chars by decimal or hex numbers ????

2009-07-10 Thread Peter W A Wood

Richmond


Supplementary Private Use Area-A  [not that funny place in the USA
where aliens have been landing] starts at Unicode hex U+F

[funny how that says 'UFO' in code. But I digress . . .]

(that's 983040 in decimal numbers)

so merrily tried
set the useUnicode to true
put numToChar(983040) into fld SUCCESS

and fell foul of this:

If the useUnicode property is set to true, the ASCIIValue is an  
integer between zero and 65535.


BLAST!

Oops:  983040 is bigger than 65535
(had to slip in that note for people who have a problem counting up  
to 7) . . .:)


Your blast may be premature. Devan Asay's Unicode tutorial (http://www.runrev.com/developers/tutorials/unicode-in-revolution/ 
) says that all Unicode characters are UTF-16. In UTF-16 numbers  
greater than 65535 can be represented by a two character combination.  
It's all explained much better than I could at http://en.wikipedia.org/wiki/Utf-16


The UTF-16 sequence for the Unicode code point 983040 (decimal) is  
DB80 DC00 (Hexadecimal) ; courtesy of http://rishida.net/tools/conversion/


Regards

Peter

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


Re: Hide Screen Furniture

2009-06-22 Thread Peter W A Wood

Dear Richmond

Heaven forfend the thought of over-riding your UI selections  
PERMANENTLY,
but as it seems perfectly reasonable, under certain circumstances,  
to make

the Windows Taskbar or the Mac Menubar take a holiday, it might be
equally reasonable to clear away an end-user's screen clutter so  
that s/he

can see the UI of the stack/standalone they are using.

I make the EFL stuff for my school to a standardised 1024 x 768
screen size, and that's just fine for the Linux boxes; everything
(meaning the GNOME panel) gets hidden. However, the Mac
version resizes daftly unless there is a 'hide menuBar' in
the preOpen Card script.

I don't know about Klaus's Dock, which he claims tucks away
with hide menuBar; the faithful, old, G3 iMac (running Tiger)
has to have the Dock set to Hide for that to happen.

Personally, while I like the Dock on the Macs, and use both
Avant Window Navigator and Cairo Dock on my Ubuntu
test machine, they do tend to get on my nerves when they
float around over whatever I am trying to do.


I am trying to understand what is the difference between hiding  
screen furniture and using full screen mode especially when you  
appear to be filling the screen on your Linux boxes. I'm sure there  
must be a difference as somebody would have advised you to set the  
fullscreen of the stack to true but I'm lost.


I look forward to finding out.

Regards
Peter Wood


___
use-revolution mailing list
use-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: Unicode Numbers

2009-06-11 Thread Peter W A Wood

Richmond


Cheap-Jacks like me, who want to find out unicode values for
obscure characters and explore the wierd and wonderful array
of characters in unicode fonts can do worse than using this:

http://fontforge.sourceforge.net/

Fontforge is FREE and cross-platform and makes me wonder why
I bought Fontographer in 1995.


If you just like finding unicode values and browsing unicode  
characters on your Mac, you could simply use the built-in character  
palette.


Regards

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