Re: Running revlets on the iPad

2010-07-02 Thread Martin Baxter
Alejandro Tejada wrote:
> Hi Andre,
> 
> 
> Andre Garzia-3 wrote:
>> HTML5 + JS + CSS3 is the future... it will superseed Flash, eventually.
>>
> 
> Actually, the problem is not Flash, but the persistent abuse
> and misuse of SWF for advertising content. 
> 
> You could find, easily, 4 or 5 swf files on the same page,
> trying to get your attention, your bandwidth and your
> processor, all of them, at the same time.
> 
> The solution that i envision to this is:
> Only the more recent (or latest) SWF
> is able to run. The rest should wait
> until the user clicks on them.
> 


> If HTML5 + JS + CSS3 replace SWF files, then
> this problem would become only more evident.
> 
> Al

I couldn't agree more. At present I can choose to either not install, or
to disable Flash (and I do). With html video, canvas, dom storage etc.
protecting yourself from "demented content snippets" (and sneaky
snooping) becomes even harder. It introduces a whole new world of
opportunity for design and marketing low-lifes to make web pages
unbearable to the point of icky. The faction that wants the web to be
like TV (only worse), alienates those who like using the web because TV
sucks. But hey, at least there's no way they can override the missing
sound card I removed. :D (Bliss. Bliss. Silence is golden.)

Flash could have been used for good or evil, guess which one mankind
chose! ;-)

Martin Baxter

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


Re: OT'ish: Logs on on-rev.com

2010-04-28 Thread Martin Baxter
Hi Tim,

<http://httpd.apache.org/docs/2.2/logs.html>

May help

Martin Baxter

Tim Selander wrote:
> Hi,
> 
> I've got an account on on-rev.com and am trying to wrap my head
> around access logs. What's showing up in the raw logs does not
> seem to match what the statistic programs are showing. The cpanel
> documents aren't too helpful as they (typical in this industry)
> assume more knowledge than a newbie has...
> 
> Can anyone point me to an online primer about access logs, exp.
> if it relates to the same system on-rev.com uses?
> 
> Many thanks,
> 
> Tim Selander
> Tokyo, Japan


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


Re: browser can't find .irev files on new on-rev subdomain

2010-04-28 Thread Martin Baxter
Martin,

I don't have any suggestions about your index.* files not being served,
though it sounds like there is some unintended redirection occurring.

However you can turn the directory file listing off by adding this line
in the .htaccess file:

Options All -Indexes

That will then generate an error if anybody does e.g.

http://www.yourdomain.com/directory_with_no_index_file/

"Directory listing denied" or whatever

The .htaccess file will affect the directory it is in and all its
subdirectories

This was one of the first things I changed when I got my on-rev account.
They are set up rather insecurely by default, in my view.

Martin Baxter

Martin Koob wrote:
> Hi Michael
> 
> I tried putting the .htaccess file in the subdomain's document 
> root and putting it in the public_html directory but that did not help.
> 
> I tried just putting a basic html page in the subdomain's document 
> root as index.html and that still generates the 404 error.
> 
> if I take out the index.irev and index.html pages I will see a listing 
> of the files in the document root.
> 
> I am not sure what I did wrong.   The process I used to create the
> subdomain was:
> 1. I used cPanel to create the subdomain for a hosted domain
> 2. I used the file manage from cPanel to copy the files from a 
> document root where I was working on the site to the new 
> document root.
> 3. I updated a config.irev file to ensure all the information 
> was correct to reflect the new path.
> 
> Is there something else I need to do to set up a subdomain.
> 
> 
> Martin
> 


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


Re: Heather Are You All OK with the Ash!

2010-04-20 Thread Martin Baxter
The ash is very fine, and here (S.E. England), it is invisible in the
air. On Thursday I thought I had a sore throat coming on. Started to
cough. Friday I spent 10 minutes in the local supermarket and noticed 4
or 5 other people with the same cough and the penny dropped. It wasn't a
virus, it was the ash causing it. So I'm staying indoors as much as I can.

Martin Baxter

Alex Tweedly wrote:
> Sivakatirswami wrote:
>> Just checking... last time the ash was a disaster for Scotland... is
>> our RunRev Team OK?
>>
> It's not causing any problems here other than the shutting down of air
> space (and hence just about all air travel). So unless the Rev team are
> travelling, and can't get home, there should be no problem for them.
> 
> -- Alex.

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


Re: Comma-delimited values

2010-03-09 Thread Martin Baxter
And drink many beers, and dance on the coffin.

Martin Baxter

stephen barncard wrote:
> We could have a funeral like IE6.
> -
> Stephen Barncard
> San Francisco
> 
> 
> On 8 March 2010 13:53, J. Landman Gay  wrote:
> 
>> Richard Gaskin wrote:
>>
>>  CSV must die.
>> Oh come on, Richard, tell us what you really think. :)
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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

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

Maybe. ;)

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

:)
Martin Baxter

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

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


Re: [semi-OT]simulating onSubmit in post

2010-02-24 Thread Martin Baxter
Hi Devin,

In the url instanced below, unless I'm misunderstanding what you are
trying to do, if you make a properly formed POST direct to
someurl.htm?loadpage, direct from a script or a stack for instance, the
onSubmit event in the html form is almost certainly irrelevant, because
it is only triggered in the browser when the user clicks the submit
element, and wouldn't apply in other cases.

Have you experienced some issue that makes you think it is relevant?

javascript validation can stop the form data being POSTed by the browser
if something is wrong with user input or whatever, but you would bypass
that by POSTing directly to the action url.

Javascript pre-validation can manipulate the form data or perhaps set
headers before it allows the POST action, and that might conceivably be
relevant to it being accepted as valid by the action url. But it isn't
very likely and in any case you should be able to figure the details out
by reading the javascript to see what happens.

Any serious validation will invariably be done by the script the data is
POSTed *to* (the action url), unless the author is naive. Javascript
validation (pre-validation) is really only useful for catching obvious
data entry errors for purposes of user-friendliness.

Martin Baxter

Devin Asay wrote:
> Hi folks,
> 
> I'm trying to teach myself how to GET and POST submissions to URLs that
> provide simple web services, like word lookups and the like. I
> understand the basic concept pretty well and can successfully "harvest"
> data from various web forms. But I notice that often POST method forms
> use JavaScript calls to validate data in the forms before submitting it
> to the server. It might look like this:
>  onSubmit="return Validate(this);">
> In this case the Validate function is defined in the header and
> basically returns true if the submit came from the form "formname" AND
> all of the fields are filled in. It returns false if either of these
> conditions is not met.
> 
> My question: Is it possible to construct a post command and/or header
> combination that simulates this onSubmit event returning true? This is
> basically an academic exercise to help me understand how JS and forms
> work, and how Rev's GET and POST functionality works; I'm not planning
> to distribute stacks that do this in any way.
> 
> Regards,
> 
> Devin


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


Re: [OT] Languages and cultures (was Re: survey)

2010-02-20 Thread Martin Baxter
Kay C Lan wrote:
> On a slightly different note, it's always good to see when someone
> tries to do the right thing and translate their signs into a foreign
> language to help tourists. Of course it would help a lot more if they
> actually used a native speaker, rather than the www:
> 
> http://www.kirainet.com/images/errortranslate.jpg
> 
> The correct translation would be Dining Room, or maybe Restaurant,
> depending on the actual establishment.

In Wales, signs have to be bilingual. Quality control is not all it
might be though...



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


Re: HTML Editor

2010-01-25 Thread Martin Baxter
Warren Kuhl wrote:
> I am looking for a WYSIWYG HTML editor I can attach to a text field (similar
> to FCKeditor).  Any direction would be greatly appreciated!
> 
> Warren

TinyMCE ?

<http://www.moxiecode.com/products_tinymce.php>

Martin Baxter
___
use-revolution mailing list
use-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: answer command in .irev file

2010-01-15 Thread Martin Baxter
Sarah Reichelt wrote:
>>>> Is there any way to put up an answer dialog? I have a variety of
>>>> small text files I'd like to pop up over the main page to give
>>>> the user extra information
>>>
>>> Here is an On-Rev command that I use to create a JavaScript dialog,
>>> similar to an answer dialog:
>>>
>>> command doAlert tData
>>>put ">>put ">alert('" & tData & "')" after tJScommand
>>>
>>>put tJScommand
>>> end doAlert
>>>
>>>
>>> Use it like this:
>>>
>>> doAlert "This is just like an answer dialog."
>> Just a word of caution. Be aware that not all web clients are able to
>> raise a javascript alert. The iphone for instance just fails silently I
>> gather - because it's a single window environment. I would recommend
>> using javascript/css to hide and show these texts rather than javascript
>> alerts.
> 
> 
> This script works perfectly on the iPhone, opening a dialog box just
> like all iPhone alerts, but I agree that one should not depend on
> JavaScript being enabled.
> 
> Cheers,
> Sarah

Thanks for clarifying that Sarah, it failed in my tests failed when I
checked that, but admittedly that was a while ago now.

Martin Baxter
___
use-revolution mailing list
use-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: answer command in .irev file

2010-01-15 Thread Martin Baxter
Sarah Reichelt wrote:
> 2010/1/15 Tim Selander :
>> More playing with scripting .irev/html files.
>>
>> Is there any way to put up an answer dialog? I have a variety of
>> small text files I'd like to pop up over the main page to give
>> the user extra information
> 
> 
> Here is an On-Rev command that I use to create a JavaScript dialog,
> similar to an answer dialog:
> 
> command doAlert tData
>put "put ">alert('" & tData & "')" after tJScommand
> 
>put tJScommand
> end doAlert
> 
> 
> Use it like this:
> 
> doAlert "This is just like an answer dialog."

Just a word of caution. Be aware that not all web clients are able to
raise a javascript alert. The iphone for instance just fails silently I
gather - because it's a single window environment. I would recommend
using javascript/css to hide and show these texts rather than javascript
alerts.

Martin Baxter
___
use-revolution mailing list
use-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: Flash cookies

2010-01-11 Thread Martin Baxter
Oh yes, it's very sneaky,

http://en.wikipedia.org/wiki/Local_Shared_Object

Martin Baxter

Marty Knapp wrote:
> On the "Global Privacy Settings" you can deny access to your camera and
> microphone? Yikes - didn't know Flash could do that. Very disturbing if
> that is indeed the case.
> 
> Marty
>> At this site you can see all the flash cookies that have been stored
>> on your computer. These cookies aren't cleaned out when you "clear
>> cookies." They get through even when you are "private browsing" with
>> Firefox. I don't remember ever giving permission to any of the
>> websites I see on my list.
>> http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html
>>
>>
>>   
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


-- 
In the absence of a definition, anything makes sense.
___
use-revolution mailing list
use-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: Caching problem with revlets

2009-12-04 Thread Martin Baxter
Richard,

Yes do read the article. It may clarify, and details a number of methods
and their pros and cons. Using htaccess files with apache is only one of
the possibilities discussed there. However the article seems to be
written in French today. It was in English yesterday, honestly. I think
there's probably been a mistake. I emailed the author to point this out
so perhaps he'll restore the english version eventually. If you read
French well enough it won't be a problem of course.

I won't try and go into all the potential issues here. But ask again if
there is something particular that you want clarification on.

Martin

Richard Miller wrote:
> Martin,
> 
> Thanks. I only wish I knew what you are talking about! I will read the
> article.
> 
> The revlet is stored on a GoDaddy server. Is that apache? Can I do the
> things you suggest, given where it is stored?
> 
> Richard
> 
> 
> Martin Baxter wrote:
>> Richard
>>
>> if:
>>
>> a you are using apache
>> b mod_expires is installed
>> c you can use .htaccess files
>>
>> Then you should be able to use expires directives in an .htaccess file
>> to inhibit cacheing based on media type (extension).
>>
>> <http://httpd.apache.org/docs/2.0/mod/mod_expires.html>
>>
>> I don't know if that will work, I haven't tried it, but I think it has
>> more chance than cache control meta tags, which are known to be
>> ineffective IIRC. It's the way I would try and do it anyway.
>>
>> Also, possibly helpful article on cacheing generally:
>>
>> <http://www.mnot.net/cache_docs/>
>>
>> Martin Baxter
>>
>> Richard Miller wrote:
>>  
>>> I really need help with this one.
>>>
>>> To get at the heart of a few problems, I just put some code into my
>>> revlet to check that when a user opens my revlet, this person actually
>>> has the latest version. Just got word from one user (Vista + IE) that
>>> the revlet he recently accessed was an older version. So caching is
>>> taking place.
>>>
>>> This code doesn't do the job:
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> Suggestions?
>>>
>>> Thanks.
>>> Richard Miller
>>> 
>>
>>
>>
>>   
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


-- 
In the absence of a definition, anything makes sense.
Jeff Ello
http://www.computerworld.com/s/article/9141609/Opinion_The_unspoken_truth_about_why_your_IT_sucks?taxonomyId=14&pageNumber=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: Is it possible to change the revlet embed html?

2009-12-03 Thread Martin Baxter
J. Landman Gay wrote:
> What I do is just
> alter the test page once, and then after every new revlet build I just
> drop the new revlet into the permanent folder with my altered HTML page,
> replacing the old revlet. It's pretty easy.
> 

Which is what I naturally do too and kind of why I would love to be able
to turn off generation of the annoying test.html entirely. Once is
enough IMO. Every time I generate a revlet this darn test.html page
automatically opens in my text editor.  I had hoped that computing would
get more user-friendly with time, but it got helpful instead, which,
naturally, enrages me. :D

Martin Baxter

-- 
In the absence of a definition, anything makes sense.
Jeff Ello
http://www.computerworld.com/s/article/9141609/Opinion_The_unspoken_truth_about_why_your_IT_sucks?taxonomyId=14&pageNumber=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: Caching problem with revlets

2009-12-03 Thread Martin Baxter
Richard

if:

a you are using apache
b mod_expires is installed
c you can use .htaccess files

Then you should be able to use expires directives in an .htaccess file
to inhibit cacheing based on media type (extension).

<http://httpd.apache.org/docs/2.0/mod/mod_expires.html>

I don't know if that will work, I haven't tried it, but I think it has
more chance than cache control meta tags, which are known to be
ineffective IIRC. It's the way I would try and do it anyway.

Also, possibly helpful article on cacheing generally:

<http://www.mnot.net/cache_docs/>

Martin Baxter

Richard Miller wrote:
> I really need help with this one.
> 
> To get at the heart of a few problems, I just put some code into my
> revlet to check that when a user opens my revlet, this person actually
> has the latest version. Just got word from one user (Vista + IE) that
> the revlet he recently accessed was an older version. So caching is
> taking place.
> 
> This code doesn't do the job:
> 
> 
> 
> 
> 
> 
> 
> Suggestions?
> 
> Thanks.
> Richard Miller



-- 
In the absence of a definition, anything makes sense.
Jeff Ello
http://www.computerworld.com/s/article/9141609/Opinion_The_unspoken_truth_about_why_your_IT_sucks?taxonomyId=14&pageNumber=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


revlet test.html

2009-11-26 Thread Martin Baxter
Is it possible to stop the standalone builder generating test.html
everytime you build a revlet?

Or failing that is it possible to stop it opening test.html in the
default html application (a text editor, on my system) every time?

(Undesired side-effects and all that...)

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


Re: how to preserve character set encoding when creating a text file?

2009-10-21 Thread Martin Baxter
Perhaps this info is a clue?

Windows or Unix character position 237 = iacute

Mac character position 237 = Igrave

Martin Baxter

Josh Mellicker wrote:
> In Czechoslovakia, the "Application Data" folder on Windows XP is called
> "Data aplikací". So, when we get specialfolderpath("26"), the path looks
> something like this:
> 
> C:/Documents and Settings/Username/Data aplikací/OurFolder/
> 
> In Rev, all works fine.
> 
> But when we create a regular text batch file:
> 
>put tBatchCommands into URL ("binfile:" & theBatchFileLoc())
> 
> the Czech character is transformed into this:
> 
> C:/Documents and Settings/Username/Data aplikacÌ/OurFolder/
> 
> and when running the batch file, the system cannot find the path.
> 
> Obviously we are messing up the character encoding when we write the
> text file and the (one character, in our case) is changed.
> 
> Has anyone run into this or know how to preserve character encoding in
> our text file?___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


-- 
If you want to go fast, go alone; if you want to go far, go together
(African proverb)
___
use-revolution mailing list
use-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] Who still uses a Mac PPC?

2009-08-27 Thread Martin Baxter
I have a beige G3 - now only used for printing to an ancient but still
usable inkjet that won't run with X, and for reminding myself what
computers were like when buying one meant that you actually owned it,
yourself, and the need to protect yourself against constant snoopers and
diallers-home was barely imagined.

Plus 2 G4s which are quite heavily used mainly for graphics but also for
general tasks. I mainly script on Windows XP.

I have too many old mac programs that I still want to run / see no
reason to buy all over again.

The G4s are identical models. If either one breaks I intend to keep it
as spares for the other, and keep one running as long as possible.

You might guess that I have long-since lost interest in "keeping up with
the Joneses" as we say here. And you'd be right. I do hope to add an
Intel mac of some sort this year, but if so it will probably be brought
into commission slowly, and is unlikely to replace the others as such,
it will be more to run software that is only available for that platform.


On 26 Aug 2009, at 11:51, Richmond Mathewson wrote:
> With the advent of Mac OS 10.6; an Intel processor only OS I am
> interested to see who is
> still depending on Mac PPC computers (G3,G4,G5) to get their work done.

-- 
If you want to go fast, go alone; if you want to go far, go together
(African proverb)
___
use-revolution mailing list
use-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: Japanese text, cgi, sql (again)

2009-06-04 Thread Martin Baxter
Nicolas Cueto wrote:
> Hello All,
> 
> On and off over the last three years, I've
> been trying to crack the problem of
> downloading Japanese text which is
> contained in a mysql database by
> a stack + rev.cgi combination.
> 
> It's that time of year again.
> 
> As with past attempts, my latest too
> works fine except for the same old
> problem --  Japanese text arrives
> in the stack garbled (English text
> is ok).
> 
> Having tried a variety of suggestions
> from this list and from Japanese-users
> of Rev (the database's and its fields'
> collations; Rev uniencode/unidecode/
> unicodetext commands; etc),   my
> latest thought is the problem may lie
> with this final part of my cgi script:
> 
> 
>   -- put "Content-Type: text/plain" & cr before buffer
>   -- put "Content-Type: text/html; charset = utf-8" & cr
>   put  "Content-Length:" && the length of buffer & cr & cr
>   put buffer
> 
> 
> As the commented-out lines show, I've tried
> different "Content-Type".  But not having a full
> understanding of how this or char-set work,
> they're just blind guesses.
> 
> Could the cgi-script's content-type / charset
> (or something else similar) be what's garbling
> the Japanese text?
> 
> Perhaps this year will be the lucky one.
> 
> Thanks.
> 
> --
> Nicolas Cueto

Hello Nicolas,

I'm no expert but, working with mySQL and websites, I have found that
the following MySQL command is needed to tell the database what kind of
data it is about to transmit (this assumes the data is actually utf-8 of
course)

SET NAMES 'utf8'

You would use revExecuteSQL with the connection id to isssue this after
making the connection and before trying to transmit the data. Every part
of the process has to be told what kind of data it is dealing with.

Martin Baxter

-- 
If you want to go fast, go alone; if you want to go far, go together
(African proverb)
___
use-revolution mailing list
use-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: Subdomains

2009-04-21 Thread Martin Baxter
Bill Marriott wrote:

[much intersting stuff snipped]

> - You can integrate your on-Rev service with existing, external sites hosted 
> by clients. For example, your client has the domain bigcorp.com. They can 
> set up a subdomain revapps.bigcorp.com that points to your on-rev server 
> (they do what's called adding an A record).
> 

Can you elaborate on that Bill? What IP would the A record point at? and
what would you need to set up in on-rev to accept that traffic?

> 
> - Yes, when you point the nameservers to on-rev, email for that domain also 
> is automatically handled by the on-rev servers, too, unless you specifically 
> sex up an "MX record" to direct your email to a different server.
> 

I didn't know MX records could be sexed up. Is that legal?

Martin Baxter


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


Re: [OT] Opinions about On-Rev

2009-04-21 Thread Martin Baxter
Kay C Lan wrote:
> On Tue, Apr 21, 2009 at 1:05 PM, Chipp Walters  wrote:
> 
>> On Mon, Apr 20, 2009 at 9:21 PM, Kay C Lan 
>> wrote:
>>
>>> OK, I've had time to sift through all the advise, and again, thanks to
>>> everyone for the responses. So now just to confirm I'm not lost, just
>>> befuddled;
>>>
>>> I get one Main domain name and unlimited Sub domains, so if I sign up
>> with
>>> lan.on-rev.com I can subsequently create kc.lan.on-rev.com and
>>> dj.lan.on-rev.com. I just want to confirm that Sub domains are added to
>>> the
>>> left - seems important when picking a name.
>>
>> Hi Kay,
>>
>> Kinda the other way around. You're assigned a single sub domain (
>> kay.on-rev.com) and you can get it to work with as many domains as you've
>> registered (for now, you need to register domains elsewhere-- aka
>> GoDaddy.com).
>>
> 
> Thanks Chipp for the reply, but now I'm confused. When on-rev says I can
> have Unlimited Subdomains and Unlimited Add On Domains I understood
> (probably wrongly) that the Add On refers to those registered elsewhere,
> that I can move to on-rev at no charge from on-rev. What then is the
> Unlimited Subdomain feature, how do I go about creating the multiple
> Subdomains, and particularly what would they look like: kay1.on-rev,
> kay2.on-rev, OR something.on-rev, completely.on-rev, different.on-rev??
> 
> Trying to get my head around what the pros and cons of Subdomains vs Add On
> Domains and how to maximise the usefullness of the Subdomains as it appears
> (again I may have this wrong) to be free whilst every Add On will requie the
> cost of registration.
> 
> Clear as mud ;-|

Kay,

These matters can be hard to grasp, and also hard to explain. I'll have
a go though.

An "add-on" domain does indeed, in this case, refer to those registered
elsewhere.

Your on-rev account is a subdomain of on-rev.com

Your Add-on domains are hosted "inside" your subdomain's space, but look
independent of it to the outside world.

The major advantage of having at least one add on domain would be that
you own it - for as long as you continue to pay the domain name
registration fee.

You do not own on-rev.com, so if you set up a site or public services
using your on-rev.com subdomain address, and later decide to move them
elsewhere, you would then no longer be able to use the on-rev domain
name. On the other hand you can redirect a domain name that you own at
any web host you please.

Your add on domains can themselves have subdomains. So you could host
one domain that you own and give it as many subdomains as you please,
assuming you have a reason to do that.

I haven't tried but I would not expect that you can create any more
subdomains like kay1.on-rev.com, kay2.on-rev.com etc because the
on-rev.com domain is not yours to configure. Any subdomains you create
will therefore always be subdomains of an addon domain you have set up
inside your account space.

With hosting multiple add on domains, the typical scenario would be that
you were hosting sites you had designed or developed for customers, and
in that case the customer would normally be the one who owns the domain
and pays the domain registration costs.

A web site specialist like myself however, may own a number of domains
in order to logically separate different projects - e.g. I have a domain
for my business, two domains just for email, one domain where I put
freebie sites for friends and miscellaneous bits and pieces that don't
belong on a business site, another that is sometimes used for technical
research, plus several that I have plans for but have yet to exploit.

Martin Baxter

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


Re: On-Rev: from the outside looking in

2009-04-20 Thread Martin Baxter
Brian Yennie wrote:
> Had a thought. Dangerous, I know. To me the power of On-Rev is two things:
> 
> 1) Opening up server side scripting to Rev users that wouldn't otherwise
> go there
> 
> and
> 
> 2) Bring xTalk to server-side developers in general
> 
> These are both worthy tasks, but I think it's worth differentiating
> between the two. Depending on which perspective you are coming from, any
> example is going to be taken differently. To put it simply, a PHP
> developer won't be impressed by something they could do with roughly the
> same effort in PHP. However, a Rev developer might be thrilled because
> now they don't have to learn PHP!
> 
> What I'm really interested in is #2, because I'm experienced with PHP /
> Perl / Java / etc on the server side. So why would I consider onRev?
> 
> 1) Integrated debugger
> 
> and
> 
> 2) xTalk syntax
> 
> What I think would really shine light on onRev is an example that shows
> off file handling / URL syntax and chunk expressions. In other words, it
> needs to show off the strength of the language, not just the fact that
> it runs server-side. So what kind of web app would lend itself to URL
> syntax and chunk expressions, making it way more efficient in xTalk than
> any other language?
> 
> OK, that was my thought. I didn't say I had the answer.
> 
> - Brian

Brian,

I write PHP a lot, I'm obliged to wrestle with javascript, I've done a
little Perl, have recently decided to learn Python, plus I am moderately
familiar with hosting customer websites of many kinds. And I've asked
myself the same sort of questions you are asking about onrev. As you
suggest, the appeal, if any, will probably depend on personal
circumstances, as in the general case the appeal appears weak, if this
is considered only as a server-side scripting technology a la php etc.

As a hosting package, the founder on-rev package isn't especially
exciting to someone already established as a web-hosting reseller (e.g.
me). But at the same time it is quite a deep pond for a raw beginner. It
isn't very suitable IMO for hosting customer sites, it's more of a
specialised personal hosting account. What it is presumably intended for
is as a platform for web applications. As far as I'm concerned, its
appeal is its potential as a back-end service to other sites hosted
elsewhere. Anyway, this initial package need not be part of the wider
argument.

xtalk text chunk handling is what I miss most in php, javascript etc,
but apart from that, I agree with what you suggest: language features
alone provide no strong argument for using rev over other options. Plus
PHP, for example, is essentially free and massively supported while Rev
costs money and is proprietary. For a complete newcomer to rev, adopting
it as a server-side scripting language in the face of other options is
not very compelling at this point.

I'm not a newcomer to it though so have a different outlook. I already
have a sprawling mess of an application written with RR that generates
entire websites, plus a mess of 10-minute-quickie-utilities lying around
waiting to be re-used.

Personally I can see benefit in being able to integrate that setup with
server-based services written, or partly-written, in the same scripting
language - I can re-use existing concepts, data structures and code
fragments to provide satellite services that dovetail with the way I
work back at home. As an adjunct to existing desktop applications made
with sibling technology, it has merit.

The immediate challenge to me is to integrate it with my existing
working procedures*. I dutifully downloaded the onrev application, ran
it a couple of times, scratched my head wondering what it was meant to
be for, and quickly went fumbling back to the comfort zone of my trusty
text editor, where I already spend much of the time. Perhaps its value
will become clear when my experiments get a bit more complicated.

Since I can't install onrev as an apache module in my dev server at
home, onrev is sort of out in the cold as far as my daily work is
concerned - code, save, point browser at localhost, test. Can't yet do
that with onrev though. I prefer to code in my private sandbox. Existing
systems let me do that. I see this as a barrier to wide acceptance.

On the philosophical level, I may be to marketing what Kryptonite is to
Superman but I suppose that runrev see on-rev as a component that
enhances the existing product - revolution is very desktop-oriented, cgi
aside, and cgi isn't everyone's cup of tea or always appropriate. On-rev
is like Revolution growing tentacles into serverspace. I doubt that
on-rev will be proposed as a standalone technology, marketable on its
own. Look at it another way, how many people use PHP to make desktop
applications?

I would think this founder launch of o

Re: Re-2: [OT] on-rev urls

2009-04-19 Thread Martin Baxter
Jim Lambert wrote:
> Switching the DNS setting so that a site can live on different servers
> is straightforward.
> But what happens with mailservers if I want to move a domain that also
> has email from one ISP to another? Say, to on-rev?
> 
> Jim Lambert
> 

on-rev hosting includes mail hosting of course, and it would be fine for
many purposes.

But it might be a problem if you want to host a domain's website at
on-rev, while hosting email elsewhere (perhaps because there is an
established in-house mail server for instance).

on-rev uses cpanel to control your hosted domains, and while I've only
had a couple of days to look it over and I'm not yet familiar with it,
it seems to insist that you delegate the nameservers to on-rev before it
will let you add a domain, but at the same time it allows no access to
individual DNS records for the domain. So if you were used to a set-up
where web hosting and mail hosting are run in separate places (as you
seem to be asking about), by controlling the individual DNS records
yourself, it might not be feasible to use on-rev, although you could ask
"the management" to make an exception for you probably.

I hope to be corrected if anyone knows better.

However, if you were happy to move both web and mail hosting to on-rev,
you should be able to do that, providing you don't mind setting it up
from scratch, and you don't have any configuration which isn't supported
by the cpanel setup.

There is also, as far as I can tell, no way to give a customer access to
manage their own email. That's fine for some customers, but I have
several customers who wouldn't accept that situation as they have quite
frequent email changes to numerous addresses. Also, to be honest, I
personally have better things to do with my time than manage their email
forwarding and autoresponders and so on for them on a daily basis.

Martin Baxter

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


Re: Generating a phone call from Rev

2009-04-07 Thread Martin Baxter
Richard Miller wrote:
> Any suggestions on how to generate a phone message from Rev? This would
> be a situation in which I want my software to notify a vendor with a
> specific text-to-speech generated phone message. The message would be
> short (basically the name of a customer, a part number and the phone
> number of the customer). There must be some services out there that Rev
> can tie into for this.
> 
> Thanks.
> Richard Miller

Richard,

This might be of interest :

<http://www.aql.com/site/text2speech.php>

Martin Baxter

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


Re: Running Mac-developed stacks on a PC

2008-11-09 Thread Martin Baxter
Mark Smith wrote:
> This is bug 3681 - macToIso() does not return correct results...
> 
> Best,
> 
> Mark

I think it may depend what you think the function is for.

The conclusion I came to when I looked at this was that the intention of
the function is to convert *human-readable* characters. Historically,
fonts have naughtily used some 1-31 character positions for visible
glyphs, so the function needs to convert these from Mac Roman to windows
1252 character codes.

For this reason, I have a policy never to pass mactoiso or isotomac any
text containing delimiters, but only the actual human-readable content,
chunk by chunk. Then there are no issues.

Martin Baxter

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


Re: OS 10.5 character issue

2008-11-04 Thread Martin Baxter
Dan Friedman wrote:
> Mark,
> 
> Thanks for the response.  Here's what I did (on 10.5):
> 
> repeat with i = 1 to 256
>   put i &tab& numToChar(i) into line i of tempData
> end repeat
> put tempData into field 1 --set to my custom font
> 
> The check came on line 195
> The ellipse came on line 201
> 
> I then ran the SAME routine on a 10.4 Mac:
> 
> The check came on line 201 AND 195!  The ellipsis character was not listed
> at all.  Which it shouldn't be - it's where our check is.

Dan,

In the Mac Roman character set, 201 is defined as ellipsis, 195 is the
square root symbol.

It sounds like the OS is substituting a glyph from a system font,
perhaps because it objects to some aspect of your custom font?

Does this happen in other applications as well?

Martin Baxter

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


Re: strange char translation from intel to ppc

2008-10-09 Thread Martin Baxter
Hi Bernard,

ISOtoMac changes characters you wouldn't expect. There are historic
reasons for this. The answer is to NEVER use the function on blocks of
text containing custom delimiters, but only use it on the user readable
text fragments - i.e. convert each field individually. A pain, yes, but
then you won't have the problem.

Martin Baxter

P.S. I have looked into these functions in detail and would add the
following:

1) They are badly named. They translate between windows-1252 and Mac Roman.

2) They are not the inverse of each other.

3) They are designed to convert the user readable characters, some of
which, historically, were stored in what are properly control character
code positions. Hence the effect you see.

Bernard Devlin wrote:
> I have a stack where I use some non-printable ascii chars as delimiters
> (specifically, ascii 30 and 29).  This stack worked fine on the Windows and
> Linux versions of 3.0 (well, until they crashed or went berserk, but
> everyone's tired of that story).  However, when I moved the stack over to OS
> X (ppc), the application stopped working.  Upon investigation it turned out
> that the delimiters had swapped - they were now ascii 222 and 218.
> 
> Is that to be expected?  Nothing else in the stacks seems amiss, and I'm
> puzzled by this.  I had seen some strange behaviour copying them between
> platforms.  When copied by scp, the stacks were "corrupted", but copied fine
> by ftp binary. When copied by ftp as ascii, opening them crashed Rev 3.0 on
> OS X.
> 
> It's not a big deal, but I suppose it might be a gotcha worth noting for
> anyone else who uses non-printable ascii chars as delimiters.
> 
> Bernard



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


Re: [ANN] Site Update - Tactile Media

2008-10-08 Thread Martin Baxter
Chipp Walters wrote:
> Shao Sean <[EMAIL PROTECTED]> wrote:
>> While I agree with the posting that Mark made a few weeks back
>> about not spamming the list with non-Rev related postings,
> 
> So much for friendly correspondence on this list. ;-)
> 
> BTW, If you take another look, you'll find some excellent FREE Rev 
> demo stacks and tutorials on Scott's site. He's always been a champ
> at supporting Rev and this community--since before there even was a
> Rev! :-)
> 

I see the wink Chipp, but what's unfriendly? My reading of Shao Sean's
comment was that it was her own post that she felt might be taken as non
Rev-related (since the post was about the use of flash for website
navigation, without a fallback for those who do not have the plugin).

Full quote was:

> Shao Sean <[EMAIL PROTECTED]> wrote:
> While I agree with the posting that Mark made a few weeks back about
> not spamming the list with non-Rev related postings, I'd just like to
> point out that you should always have a non-Flash fallback for your
> navigation..

Martin Baxter

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

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


Re: Time for a break

2008-10-05 Thread Martin Baxter
[EMAIL PROTECTED] wrote:
> Mark Wieder wrote:
>> You know you've been doing too much coding when:
>>
>> ...you're in the middle of writing an email message and you >press the tab 
>> key to format a paragraph...
> 
> 
> You probably will not believe this one but its true!
> 
> When drawing in a graphics app I constantly keep two fingers over control+Z 
> to cancel the last drawn or painted line to correct my mistakes. When I 
> turned to real-world modelling in clay and my hand slipped, I actually 
> reached for the non existant keys!
> 
> Habits are hard to loose!
> Barry Barber

No, not hard to believe. In periods of intense Mac use, back in the day,
I several times caught myself looking for the Trash icon that surely
ought to be in the bottom right hand corner of the real world. ;-)

Martin Baxter

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


Re: Mail merge in Run Rev

2008-09-14 Thread Martin Baxter
James Hurley wrote:
> This is a new area for me, but I'm sure it is a common task for many of
> you.
> 
> I have a mail merge job for a local election.
> 
> I have generated all the data in RR for the letter, i.e. the label and
> the greeting for the letter from the election data base. (This greeting
> is a little complicated and that's where RR comes in. It is necessary to
> construct a greeting for the household, a household which may contain
> several people and some with different last names. Anyway Rev is  good
> at that part.)
> 
> Is there a convenient way to do the merging of this data with the
> letter  in RR or should I just export the data to File Maker and
> construct the letter there?
> 
> In RR would  you store the data and the text of the letter in variables,
> putting them together to construct the text for the field and then
> revprintfield in a repeat loop, one loop for each letter? Is this very
> slow? I have a lot of letters to do.
> 
> And how can one deal with the formatting, for example center the
> addressee's name and address at the top of the field, RR allows only
> alignment for the entire field?
> 
> Thanks,
> 
> Jim Hurley
> 

Jim,

If you haven't looked at revolution's "merge" command you should do so
as you might find it helpful for that part. As for formatting for print
I haven't really done anything like that with revolution, so I don't
know about that but I'd guess that could be the harder part to do.

Martin Baxter

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


Re: [OT] Copyright infringement, sometimes a good way to do guerilla marketing :o)

2008-08-27 Thread Martin Baxter
J. Landman Gay wrote:
> Malte Brill wrote:
>> Hi list,
>>
>> this an absolutely off topic post...
>>
>> I was reading my serverlogs yesterday night an have been a little
>> puzzled of why a relevant amount of Traffic comes from youTube. Until
>> now I was using youTube only passively. Looking at the detailed log
>> revealed that some kid in the US has 'borrowed' the logo of one of my
>> games to display as his background image. Not he did only use it
>> without asking, but he also linked it directly from my server. 
> 
> My Control Panel at my web site's ISP (jaguarpc.com) has a utility to
> prevent this kind of linking. I'm not exactly sure how it works but I
> think it writes to the .htaccess file at the root level of my domain
> account.
> 

Do a search for "hotlinking htaccess" that should get you started.

You can forbid access unless the request comes from a link in your own
(or other named) site. You can also return a substitute file. You can
choose specific file extensions for it to operate on. Some people return
rude or unsatisfactory images. Some regex knowledge is useful.

At one time I was losing a lot of bandwidth on some image-heavy sites to
"myspace kiddies", forum posters and the like. Course it depends if you
have bandwidth to spare and whether you host the kind of media files
people can't keep their sticky fingers off.

In some cases though I have photoshoppped a url into the image and
deliberately allowed this to happen in the hope of getting some traffic.

Martin Baxter

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


Re: Re-2: Removing CRLF from text

2008-08-07 Thread Martin Baxter
Kay C Lan wrote:
> On Thu, Aug 7, 2008 at 11:34 PM, Ken Ray <[EMAIL PROTECTED]> wrote:
> 
>> Actually IIRC, it's done this way to standardize *internal* interpretation
>> on all the platforms (much like Rev standardizes on forward slash for path
>> delimiters). That way, regardless of whether the host OS uses LF only, CR
>> only or CRLF, when text data is read in from the outside it is all
>> converted
>> internally to use the LF character (ASCII 10). If you want to read in the
>> actual end-of-line (EOL) delimiters, you can read the file in *as binary*:
>>
> 
> Might then that explain why Mark Stuart could only get the 'binfile' version
> of a solution to work.
> 
> Sarah and Jacque told him to replace  "+" & CRLF with "", but if what you
> say is correct, then Rev has already removed CRLFs, no such combo should
> exist?
> 

That's correct.

> Mark, although you seem to have got a solution with binfile, does it work
> with 'file' but just replacing "+" & LF ?
> 

That is an alternative approach that should also work.

Martin Baxter

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


Re: Removing CRLF from text

2008-08-07 Thread Martin Baxter
How about this?

put "C:/temp/some.ini" into tFilename
put URL ("binfile:" & tFilename) into tData
put "+" & crlf into tmatchstring
replace tmatchstring with space in tData

If you read as binfile: it should stop the engine automatically
translating crlf to lf on import.

Martin Baxter

mfstuart wrote:
> Hi,
> 
> RunRev: 2.90
> OS: WinXP
> 
> I have a situation where a software application's ini file has the plus (+)
> char and CRLF at the end of a line, when the line passes 80 characters. The
> balance of the ini entry is placed on the next line. Each ini entry could be
> very long and possibly go to 3 lines.
> Why they did this I don't know, really.
> 
> But what I need to do is remove the + and CRLF so that each ini entry is
> complete in itself, on one line.
> 
> ini file currently contains:
> dfgsdfg sdfgsd fgsdfgsdf gsdfg +
> sdfgadfs dgdghs dfdfgg fghf+
> dfgh dfgh
> 
> Result I'd like after running the script:
> dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh
> 
> I've used this script, and variations of it, to remove these characters: +
> CRLF.
> It removes the + char, but still leaves each ini entry split into multiple
> lines.
> 
> I've also searched the archives for a solution, nothing is working.
> 
> Any ideas?
> 
> 
> My script:
> 
> on mouseUp
>   --clear current fields on card
>   --these fields are so that I can see the results from the script.
>   put empty into fld "Orig"
>   put empty into fld "Changed"
> 
>   --fetch the file
>   put "C:/temp/some.ini" into tFilename
>   put URL ("file:" & tFilename) into tData
>   put tData into fld "Orig"
>   
>   repeat for each line L in tData
> --grab the line
> put L into tLine
> 
> --If the line contains +, then it will also contain CR and LF,
> --so only work on a line with +.
> if (tLine contains "+") then
>   --find + and delete it
>   put offSet("+",tLine) into tPos
>   delete char tPos to tPos in tLine
>   
>   --find CR and delete it
>   put offSet(CR,tLine) into tPos
>   delete char tPos to tPos in tLine
>   
>   --find LF and delete it
>   put offSet(LF,tLine) into tPos
>   delete char tPos to tPos in tLine
>   
>   --put the line into a container so that I can see the results
>   put tLine & cr after theLines
> else  -- just put the line into a container
>   put tLine & cr after theLines
> end if
>   end repeat
>   
>   put theLines into fld "Changed"
> end mouseUp
> 
> 
> Regards,
> Mark Stuart


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


Re: The Euro symbol

2008-08-05 Thread Martin Baxter
Devin Asay wrote:
> 
> On Aug 4, 2008, at 4:24 PM, Martin Baxter wrote:
> 
>> Devin Asay wrote:
>>
>>> 1. The html entity for the Euro symbol is "¤"
>>
>> I guess you are a mac user Devin? The html entity for the euro symbol
>> used in web pages is "€". "¤" may give you the euro symbol
>> on a mac, IIRC mac roman replaced its currency symbol with the euro
>> symbol some years back, but on Windows here I get the dear old currency
>> symbol when I use "¤" and, in Revolution, "€" just displays
>> unmodified, unfortunately.
>>
>>
>> Would be nice if € worked, I can't think of any reason why it
>> couldn't. I've used € or numtochar(128) on windows when needed.
> 
> Wow, that's really curious, and disturbing. On my Mac, if I do
> 
> set the htmlText of fld 1 to "€"
> 
> I get, as you do, the string "€" in the field. And ¤ gives a
> Euro symbol on Mac, and the generic "circle atop an X" symbol on
> Windows. All along, I've just assumed that html entities were the same
> across platforms. I mean, isn't that the point?
> 
> It looks like the only reliable way is to use unicode.
> 
> Devin

I'm pretty sure the reason is that Revolution's htmltext was designed
before the € entity was agreed. Would have been back in the day
when the mac had the currency symbol at that character position. Since
then the glyph has changed. I think that windows-1252's addition of the
euro glyph at position 128 probably also postdates the design of the
htmltext. This sounds like it might be a good enhancement request since,
in effect, the htmltext no longer reflects the character sets actually
in use today.

Would it inconvenience anybody's existing code to change this I wonder?

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


Re: The Euro symbol

2008-08-04 Thread Martin Baxter
Devin Asay wrote:

> 1. The html entity for the Euro symbol is "¤"

I guess you are a mac user Devin? The html entity for the euro symbol
used in web pages is "€". "¤" may give you the euro symbol
on a mac, IIRC mac roman replaced its currency symbol with the euro
symbol some years back, but on Windows here I get the dear old currency
symbol when I use "¤" and, in Revolution, "€" just displays
unmodified, unfortunately.

Would be nice if € worked, I can't think of any reason why it
couldn't. I've used € or numtochar(128) on windows when needed.

Otherwise, what you said, yeah...

Martin Baxter

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


Re: locking, permissions, data

2008-07-22 Thread Martin Baxter
Peter,

I believe the .rev~ file is made by the revolution engine automatically
when you do a stack save. It is a backup of the exisiting stack file
prior to the save command. If the save is successful it is deleted, so
you only see it if something went wrong.

Assuming this is correct, this would suggest that the stack save
operation is failing part way through, for some reason.

Martin Baxter

Peter Alcibiades wrote:
> Here is a very weird situation.  The program consists of a launcher, call it 
> launcher, and the program proper, call it program.rev, and they are both in 
> the same folder.
> 
> I get a call that launcher is not starting up the program.  On inspection of 
> the folder, one sees the following:
> 
> launcher [executable, 2.5mb]
> program.rev [unknown, 20k]
> program.rev~ [unknown, 300k]
> 
> So, I delete program.rev, remove the tilde from the other name, and 
> everything 
> works fine.
> 
> The only way I can think of to account for this is that someone opened the 
> program.rev file in a text editor, and then saved it.  All Linux text editors 
> I know seem to make a backup copy with a tilde to distinguish them, on 
> saving.  
> 
> Yet, the users at the time are definitely incapable of opening a file with a 
> text editor and then saving it.  This is the second time its happened.  
> 
> 
> Any ideas on how it could happen, and what to do, gratefully received!
> 
> Peter
> 

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


Re: Setting Geometry Manager Properties For A Stack

2008-06-23 Thread Martin Baxter
Mikey wrote:
> I'm trying to limit a stack from being resized smaller beyond a particular
> point. 
> 

Mikey,

You can set the minwidth and minheight properties of the stack in the
property inspector - size and position pane.

Martin Baxter

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


Re: Live Resizing checkbox problem

2008-05-24 Thread Martin Baxter
Randy Hengst wrote:
> Hello Paul,
> 
> I have no idea why Live Resizing doesn't influence the resize triangle
> -- but, the same thing appears in 2.8.1 and 2.9.0 with OSX 4.11 on a G4.
> So, it isn't a "bug."
> 
> But, I do know that the resize triangle you mention is controlled by the
> "resizable" check box under the Size & Position options.
> 
> take care,
> randy hengst
> -
> On May 24, 2008, at 1:03 PM, Paul Gabel wrote:
> 
>> Hello everybody:
>>
>> Can someone confirm this problem before I file a bug report?
>>
>> On Mac OS X Leopard, Intel chip, Rev 2.9, I've noticed that every time
>> I open a new mainstack or substack, Live Resizing is unchecked in the
>> Inspector yet the live resizing triangle is showing in the lower right
>> corner of the stack. Checking and unchecking the Live Resizing
>> checkbox has no effect. I also tried > "The Stack" to "false"> in the message box. No effect.
>>
>> I checked for previous bugs at RQCC but found no mention of this
>> problem. Please let me know. It's "bugging" me.
>>
>> Paul Gabel

liveresizing "Causes a stack window to display its contents changing
during resizing, instead of redrawing the contents after the window is
resized."

resizable "Specifies whether the user can resize a stack window."

Martin Baxter

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


Re: Is a file an alias?

2008-05-05 Thread Martin Baxter
For Windows, I should think you could just test for testalias empty? If
it had a path in it at all, that would indicate that somefile was an alias.

Linux I can't check.

Martin

David Bovill wrote:
> How about:
> 
> function file_IsAlias someFile
> put the aliasreference of someFile into testAlias
> return someFile is not testAlias or testAlias is empty
> end file_IsAlias
> 
> Any problems with that - how does it work on Linux?
> 
> 
> 2008/5/5 Martin Baxter <[EMAIL PROTECTED]>:
> 
>> David Bovill wrote:
>>> I guess this works? Can someone test it on windows?
>>>
>>> function file_IsAlias someFile
>>>> put the aliasreference of someFile into testAlias
>>>> return someFile is not testAlias
>>>> end file_IsAlias
>>>>
>>> 2008/5/5 David Bovill <[EMAIL PROTECTED]>:
>>>
>>>> Is there a way to find out if a file is an alias. The only way I can do
>> it
>>>> at the moment is with MacOS specific hacks?
>>>>
>> If the file in question is *not* an alias (aka a shortcut on Windows)
>> the aliasreference returns empty here on XP. So I would expect the above
>> function to always report that someFile <> testAlias, Regardless of
>> whether it was one or not.
>>
>> On Windows, shortcuts have the file extension ".lnk", perhaps all you
>> need to do is check for that?
>>
>> A quick test shows this works on my system:
>>
>>  answer file "whatever"
>>  put it into vv
>>  if vv is not empty then
>>set itemdelimiter to "."
>>if last item of vv = "lnk" then
>>  put "Is a shortcut"
>>else
>>  put "is not a shortcut"
>>end if
>>  end if
>>
>> Martin Baxter

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


Re: Is a file an alias?

2008-05-05 Thread Martin Baxter
David Bovill wrote:
> I guess this works? Can someone test it on windows?
> 
> function file_IsAlias someFile
>> put the aliasreference of someFile into testAlias
>> return someFile is not testAlias
>> end file_IsAlias
>>
> 
> 2008/5/5 David Bovill <[EMAIL PROTECTED]>:
> 
>> Is there a way to find out if a file is an alias. The only way I can do it
>> at the moment is with MacOS specific hacks?
>>

If the file in question is *not* an alias (aka a shortcut on Windows)
the aliasreference returns empty here on XP. So I would expect the above
function to always report that someFile <> testAlias, Regardless of
whether it was one or not.

On Windows, shortcuts have the file extension ".lnk", perhaps all you
need to do is check for that?

A quick test shows this works on my system:

  answer file "whatever"
  put it into vv
  if vv is not empty then
set itemdelimiter to "."
if last item of vv = "lnk" then
  put "Is a shortcut"
else
  put "is not a shortcut"
end if
  end if

Martin Baxter

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


Re: [somewhat OT] dumb html / cgi question

2008-04-13 Thread Martin Baxter
Hi jbv,

I see what you mean. I've used the following format:

> http://www.myDomain.com/myPage.cgi?a=1&b=2#myanchor

Successfully.

Martin Baxter

jbv wrote:
> Björnke
> 
> Thanks for the reply, but I don't think it answers my question...
> 
> I know what anchors are and how they work, but my problem remains :
> how to specify an anchor when the url of my page is :
> http://www.myDomain.com/myPage.cgi?a=1&b=2
> 
> IOW how to have this page opened straight to a specific section of the
> html code ?
> 
> Thanks,
> JB
> 
>> Anchors are not fetched from the server, but navigated to on the same
>> page, so the browser does everything itself. Just use an anchored link
>> as specified in the html source of your choice (mine is: 
>> http://w3schools.com/html/html_links.asp
>>   ), and the browser of your users will handle the rest.
>>
>> have fun
>> Björnke

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


Re: numToChar(13)

2008-03-31 Thread Martin Baxter
David Bovill wrote:
> Recently had the following problem processing lists from ftp directories -
> fetching and displaying the directories in a list field was fine but when I
> tried to use the list field to obtain an ftp url the script failed - the
> debugging was a nightmare as the ftp url looked correct and manually
> entering the url worked fine. The problem? numToChar(13) returned from the
> ftp url. So I now use this script to fetch the directory listing:
> 
> function ftp_FolderContents ftpDirectory
>> libURLSetFTPListCommand "NLST"
>> get word 1 to -1 of url ftpDirectory
>> replace numToChar(13) with empty in it
>> return it
>> end ftp_FolderContents
> 
> 
> 
> Rev uses numToChar(10) for line endings (showing its Unix origins), but if
> written to a file on a Mac, using URL "file:", they're translated to
> numToChar(13). if using URL "binfile:", no translation happens, so
> numToChar(10) is preserved. I thought the act of putting text into a field
> cleaned' up the line endings to standard Rev numToChar(10) = CR's - but
> seems not? I am also not quite sure hwat to expect from different ftp
> platforms - it seems NLST is CRLF seperated - but my server is Unix not a
> PC?
> 
> I am wandering if there is any tutorial out there that goes into these
> issues in any depth - they also come up when using certain command line
> tools, and reading and writing data in CGIs.

David,

FWIW here's what I do with incoming text whose line ending delimiters
are not known, but which are assumed to be some combination of LF and/or CR.

replace crlf with lf in tText
# if line-endings were LF or CRLF they are now LF
replace numtochar(13) with lf in tText
# if line-endings were CR (ascii 13) they are now LF

This results in LF line-delimiters in tText, regardless of the original
format, which you don't need to know. On modestly sized texts RR is
easily fast enough for this to be practical.

HTH

Martin Baxter

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


Re: Multiple instances of a window

2008-03-04 Thread Martin Baxter
Steve Checkley wrote:
> Hello all,
>  
> I'm designing a document centric application. Is is possible to have Rev
> launch the same stack more than once i.e. create more than one instance
> of a window?
>  
> I'm guessing that other than duplicating the same stack a few times or
> cloning the stack at runtime, it's not. Guess this particular method
> also means that unique global variables need to be declared for each
> window?
>  
> Thanks,
>  
>  
> Steve

Steve,

I think your guess is correct. The usual way to do this is to have an
invisible stack that serves as a document window template, and clone it
as required. It works well in my experience.

I would say that if variables apply only to a certain window (stack)
they would probably be better as local variables or properties of the
cloned stacks rather than global variables. But it might depend on your
specific situation.

Martin Baxter

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


Re: Anyone interested in learning more about Rev on Rockets?

2008-02-21 Thread Martin Baxter
Chipp Walters wrote:
> So, if you're interested, holler at me or Andre, or just respond here. If
> there are enough folks, we'll create a few free ROR tutes. Just let us know!
> 
> -Chipp

Yup, I've always been curious about it and a hand-holding intro sounds a
great idea to me.

Martin Baxter

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


Re: [OT] Validating Email Addresses...

2008-01-29 Thread Martin Baxter
Jim Carwardine wrote:
> Hi Folks... I offer some free downloads on my web site...
> 
> (a web site I will be recreating using Rev - so I feel some legitimacy
> asking the question on this list - as I will need to do something in Rev
> ultimately)
> 
> ... And I'm asking for some contact information from the downloader (fair
> trade I feel).  I'm getting a lot of garbage being offered by people who
> want a look but don't want to give their info.
> 
> Screening for legitimate email addresses is done on many web sites and I
> understand:
> 
> 1. Checking for the @ sign - a very weak edit.
> 2. Sending the download link by email to the downloader's email address -
> pretty strong edit.
> 
> What I see some web sites do is legitimize the email address on the spot and
> immediately deny access if the email is illegitimate.  How is this done?
> 
> Any other great ideas about screening email addresses?
> 
> Thanks... Jim
> 

Hi Jim,

Apart from testing for well-formed-ness using regex, since I am a php
type I sometimes also use the php function checkdnsrr, (which, last time
I checked, cannot be used on windows but works on unix servers).

syntax
checkdnsrr(host,record type)

I use it in a function like like this:

if(checkdnsrr(array_pop(explode("@",$email)),"MX")){
return true; # or whatever
}else{
return false; # or whatever
}

$email holds the email address of course.

This doesn't prove that the particular mail recipient is valid, but does
test that the domain exists and has an MX record. (Array_pop and explode
are just cute ways of extracting the domain part from the email address.)

AFAIK the only way to know for sure that the recipient is genuine is to
send a message.

FWIW

Martin Baxter


___
use-revolution mailing list
use-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: Adjusting a field size based upon its contents

2007-11-17 Thread Martin Baxter
Francis Nugent Dixon wrote:
> Hi from Paris,
> 
> I have a hidden field that I want to display after I have put a specific
> text in it. The text is of variable size.
> 
> The size of field required is obviously based on the "textSize",
> "textFont" and "number of characters" values. I need to set the size of
> the field (rect) so that it is just big enough for the text to be
> displayed.
> 
> If I had a few days available, I could surely work out an algorithm to
> do this, but I need to get the new version of my application out of the
> door quickly.
> 
> Has anybody come across this problem (and solved it) ?
> 
> Many Thanks
> 
> -Francis

Hi Francis,
see the formattedheight and formattedwidth properties. These should give
you the information you need to resize the field before displaying it.

Martin Baxter
___
use-revolution mailing list
use-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: Read from file problem

2007-11-15 Thread Martin Baxter
Dave

try:

open file for binary read
.

I think that should leave the line ending characters intact.

Martin Baxter

Dave wrote:
> Hi,
> 
> I tied all this, unfortunately it doesn't work, cos (on Mac anyway) cr =
> lf = 0x0A, e.g. RunRev maps cr or lf into a lf.
> 
> Try this in the message box:
> 
> put chartoNum(lf) && chartoNum(cr)
> 
> Cheers
> Dave
> 
> 
> On 14 Nov 2007, at 19:51, Brian Yennie wrote:
> 
>> Dave,
>>
>> How about something like this. Untested, but the idea is:
>>
>> Read in the lines as if they are all "cr" delimited. If the first
>> character of a line is a linefeed, then you just passed a crlf ending
>> (so just delete the linefeed). For any additional embedded linefeeds,
>> split them off as new lines.
>>
>>
>> read from file theXMLFilePathName until cr
>> put it into tLine
>> if (char 1 of tLine = linefeed) then delete char 1 of tLine
>> replace linefeed with cr in tLine
>> repeat for each line l in tLine
>>processLine l
>> end repeat
>>
>>> Hi,
>>>
>>> I am trying to read text files line by line, but have come across a
>>> file that doesn't have consistent line endings. The command I use is:
>>>
>>>   read from file theXMLFilePathName until cr
>>>
>>> When I looked in the file it has some lines ending in cr, some in lf
>>> and some in crlf.
>>>
>>> How can I read up to either of these characters (cr/lf) ?
>>>
>>> Thanks a lot
>>> 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: Problem with revExecuteSQL - More

2007-11-01 Thread Martin Baxter
Hi Dave,

Looks like at some point the ampersand is being converted to an entity
reference of itself.

ampersand is character number 38

The entity reference for that is & 

That means that the ampersand you see is no longer a literal character
in this case, but indicates the beginning of a character entity
reference. The semicolon indicates the end. The entity reference is
presumably intended to ensure that the original ampersand in your data
doesn't get interpreted as a control character.

% is the entity reference for % (percent), $ is the reference
for $ dollar and so forth.

I don't know what is doing this in your case, but I think this must be
what's happening. Hope that sheds some light.

Martin


Dave wrote:
> Hi,
> 
> The path is coming out of the iTunes XML file. It's not just this path,
> it's a load of them, for instance there are a lot of instances that
> wherever there is an ampersand it is followed by #38; There are files
> that have funny accents that cause the problem too, If I read back the
> same track using AppleScript the weird characters are not there.
> 
> I think that the tracks where this occurs were imported from a PC.
> 
> Thanks a lot
> All the Best
> Dave
> 
> On 1 Nov 2007, at 19:22, Ian Wood wrote:
> 
>> It looks like the folder name has been abbreviated at some stage by an
>> OS that didn't understand file/folder names that long.
>>
>> Where *exactly* is the filepath coming from?
>>
>> Ian
>>
>> On 1 Nov 2007, at 18:01, Dave wrote:
>>
>>> However I now have a another weird problem, I have a field that
>>> represents a file path, in this case the path is:
>>>
>>> /Users/Dave/Music/iTunes/iTunes Music/Blank & Jones/Addicted To
>>> Trance (Disc 1)/11 DJs, Fans And Freaks.mp3
>>>
>>> However a "if there is a file" fails on this path. When I look I
>>> can't see the & in the file name. I'm guessing it's something to
>>> do with UTF16 vs UTF8 or something, but I'm not sure how to resolve
>>> it. The database I am writing is set to UTF8 which AFAIK is the only
>>> option for SQLite.
>>
>> ___
>> use-revolution mailing list
>> use-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] great anti-spam tool

2007-09-18 Thread Martin Baxter

Richard Gaskin wrote:
My web host just added Greylist to the options for fighting spam.  I had 
been getting literally tens of thousands of spams a day, increasing at 
the rate of about 30% every month.  After turning on the greylist the 
spam count dropped overnight to a small trickle.


It's an ingenious technique - check it out:
http://greylisting.org



Yes, I second that. My host has been greylisting for over a year and 
when it was implemented, spam immediately dropped to, and is still, less 
than twenty a day, which is just about right. If I don't get any at all 
I start to worry that my mailhost is out of order. ;-)


Martin Baxter
___
use-revolution mailing list
use-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: Quotes become @ in Win32

2007-07-25 Thread Martin Baxter

[EMAIL PROTECTED] wrote:
Has anyone else noticed that you get @ instead of " on a Windows keyboard  
after copying or pasting unicode text? Requires an engine restart to reinstate  
the correct keyboard mapping.


(2.8.1)

/H


I've had the keyboard re-map numerous times, although I have never 
stopped to try and figure out what causes it. I've also had it 
spontaneously correct itself back after a while. Fortunately my head is 
compatible with either layout, due to long-term Mac use. Are you sure 
about the cause? Is it repeatable?


I'm not sure if it's an application or an OS problem. This happened to 
me in Thunderbird on my XP laptop just yesterday, and a while ago, when 
I mentioned it to a Windows-using friend of mine (who has never used 
revolution) he said "oh yes it does that, it changes the keyboard 
layout" - by "it" he meant Windows).


Martin Baxter
___
use-revolution mailing list
use-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: launch app from browser

2007-07-12 Thread Martin Baxter

Lars Brehmer wrote:
All I want to
know is whether or not you can have a hyperlink or button in an html 
document (that resides on your hard drive) and is open in your browser 
and that launches another application which also resides on your hard 
drive, exactly the way clicking on a mailto link in your browser opens 
your mail app or clicking on a link to a H.264 video file launches 
Quicktime Player.  Or just like clicking on a web link in a rev document 
launches your browser and internet connection or using "launch" in a rev 
script launches any app you want it to launch. In this case the app I 
want to lauch is a simple standalone created in Rev.


Cheers,

Lars


Lars,

The simple answer is that *if* it can be done, it will not be 
straightforward.


The more detailed answer is...

Launching an application directly from html or script in a web page 
without user confirmation is rightly considered a security risk, so 
although you can easily make an html hyperlink like:


click to launch myapp

In your html. What results from that will depend on the browser in use 
and perhaps the user's security preferences. Some browsers (e.g. IE6) 
may show a dialog offering [Run] [Save to disk] [cancel], others such as 
Firefox may not offer the [Run] option at all, but only [Save to disk], 
which is no use to you.


As others have suggested, you might try launching a document that the 
user's web browser already has an association for. That means, an 
internal web-browser preference will have been set by the user 
associating that document type with your app. So e.g. if the browser had 
been told that files ending .rev should be opened using myapp.exe, then 
the hyperlink run myapp would launch myapp.exe 
to handle the document stack.rev. This basically what is happening with 
quicktime, email clients, acrobat and so-on, the browser has been 
pre-configured to use specific software to handle those media types and 
requests.


An all-browser, all platform solution for this will take some work, here 
are some links I got from googling "launch exe from web page", relevant 
for windows only, and mostly IE oriented, all are a rather technical or 
cost money.


http://www.particlesoftware.com/en/index.html
http://www.whirlywiryweb.com/q/%2Flaunchinie.asp
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/overview/htaoverview.asp

Mac I don't know.

Martin Baxter
___
use-revolution mailing list
use-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: Dynamically Building an Option list

2007-07-05 Thread Martin Baxter

Stephen Barncard wrote:

I wish I could recall my question!... was trying

 put zzz into the text of button ""

but it is much simpler...

here's breadboard example...



ON mouseUp

put empty into userList


(not needed)



open file "D:\users.txt" for read

read from file "D:\users.txt"  until EOF

put it into userList

close file "D:\users.txt"

put userList into button "Users"


 set the text of button "Users" to userList

(assuming that userlist is a return delimited list)



END mouseUp




much simpler to do in one line

set the text of btn "userList" to URL 
"file:C:\path\to\my\file\USERLIST.txt"


Hi Rob,

...except that, inside RR scripts we use forward slash in paths
on all platforms, so I think your script should be...

set the text of btn "userList" to URL "file:D:/users.txt"

Martin Baxter
___
use-revolution mailing list
use-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: What is the Mac app signature?

2007-06-28 Thread Martin Baxter

Tiemo Hollmann TB wrote:

Hello, beeing new to Mac development, I don't know what to put into the
signature in the standalone settings of OS X instead of the . Everything
I put into it, was again replaced by the four . I thought it would have
been something like my company name, but obviously it must be a special
syntax or content.



its a unique 4 character signature that identifies your app:
see <http://developer.apple.com/datatype/>


And could perhaps someone explain to me in short words, what the info.plist
and PkgInfo files are for on Mac? Are they necessary to start the
application or just for "info" purposes?



Pass. I'll let someone more knowledgeable answer that one.

Martin Baxter
___
use-revolution mailing list
use-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: reading CSV text file

2007-06-23 Thread Martin Baxter

Richard Gaskin wrote:

runrev260805 wrote:
 > i have to read a textfile, which is comma separated and contains
 > " as text identifier. The item delimiter is ,
 > My problem is, i do not know, how can i read the file and detect
 > each item of a line, as the items are sepearated by comma and
 > the textfield/items could contain comma, too. How can i tell
 > Revolution to ignore the comma in the "tesxtarea of an item"

I know this probably isn't helpful, but the best solution is to go back 
to the source and ask for a copy of the file in a real format.




Tab-delimited can also be referred to as TSV. And I find this helpful 
when cajoling customers to use it, as it makes it sound to them like 
something technically respectable.


Martin Baxter

___
use-revolution mailing list
use-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: Windows menubar line

2007-06-23 Thread Martin Baxter

J. Landman Gay wrote:

Devin Asay wrote:
I've looked for this but can't find it. Is there a simple way to 
create a Windows-style 3-D-ish line that separates the menu from the 
rest of the window? (I.e., the line under the menubar, not the 
separators within individual menus.)


I usually just set the showborder and threeD of the menu group to true 
and fiddle with the borderwidth and color properties.




On the other hand I use a "line", set its linesize to 1, its height to 
2, its width to whatever, and set colours for the top3dbevel and 
bottom3dbevel respectively dark and light (or to taste).


Martin Baxter
___
use-revolution mailing list
use-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: SQLite

2007-06-22 Thread Martin Baxter

Hi Paolo,

I think Liam meant for you to look in your revolution application folder 
on your hard drive. You should find a folder called "examples" in the 
folder called "resources". In the examples folder is a stack called 
"SQLite Sampler.rev"


Martin Baxter

paolo mazza wrote:

Hi Liam,

I can not find any specific tutorial for SQLite.

In the video tutorial section of revolution site if found " Thumbnail
Kiosk - Simple MySQL Front End."  which is about MySQL.

Is there anything else?

Thanks

Paolo

How to use Revolution  writes:
There is a tutorial look in Resources/Examples it is very good and  
easy to use good luck


Liam
IRELAND
[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: I-beam Artifact bug?

2007-06-19 Thread Martin Baxter

[EMAIL PROTECTED] wrote:

Has anyone else noticed an I-beam artifact when locking a field?
 
Try this in a field on Win32...


on mouseLeave
set the  locktext of me to true
end mouseLeave

on mouseEnter
set the  locktext of me to false
end mouseEnter

Not affected on OSX.

/H


You mean that if the mouse leaves the field while the I-beam cursor is
visible, the field is locked but the I-beam cursor image is not cleared?

Which is what I see.

Martin Baxter

___
use-revolution mailing list
use-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: The iMac is... dead.

2007-06-13 Thread Martin Baxter

Shao Sean wrote:
Actually I had the same problem with an original iMac as well.. There's 
a small button on the motherboard that you need to press to reset it and 
then it should be good to go. :-)


That's likely to be it. Derek's iMac is an original iMac, and this
procedure (reset cuda chip) is a likely fix (assuming the keyboard is 
OK). Later models are a bit different though, the battery is also involved.


Martin Baxter


___
use-revolution mailing list
use-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: The iMac is... dead.

2007-06-12 Thread Martin Baxter

Derek Bump wrote:

I am in awe.  I shut down my recently acquired iMac, moved it to a
different desk, and then plugged it back in.  Now it doesn't boot at
all.  No LED lights up, no sound is made when the plug goes in.
Nothing.  Checked the power source, the power strip and the power cord.
 Nothing.



Derek,

When you have returned from being in awe :-), you may want to check the 
iMac's lithium battery, which powers the PMU (power management unit). If 
you can say exactly which iMac it is I probably have a .pdf service 
manual for it.


Martin Baxter
___
use-revolution mailing list
use-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: problem with encryption

2007-06-04 Thread Martin Baxter

David Beck wrote:


I finally resolved the issue with PHP and Rev encryption and I wanted to 
share the resolution with the list. I was able to get aes-128 bit 
working - 256 is still a mystery. (I think there is a problem with Rev 
only looking at the first 16 bytes of the IV value for 256 bit, as it 
appears bytes after #16 do not affect the resulting encrypted value with 
Rev. I will log this as a bug.)



...snip...


Hope this is helpful to somebody in the future!



Thank you for posting that David. I've saved it for future reference. :-)

Martin Baxter
___
use-revolution mailing list
use-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: Sorting lines

2007-05-29 Thread Martin Baxter

Ken Ray wrote:

On Tue, 29 May 2007 18:39:05 +0100, Martin Baxter wrote:


2;213;13;Josh;215;666
3;23;14;Mark;0;0
1000;999;10101;Mark;211;555
2;214;25;Peter;212:667
320;4999;219,Peter;329;366


set the itemDelimiter to ";"
sort lines of tVariable by item 4 of each
Erm, this doesn't seem to work here in 2.8.1 on win XP. The 
itemdelimiter appears to be ignored.


Well, I tried it here with the sample above and I got the same result. 
But then I noticd that in the last line, the fourth "item" has a comma 
between "219" and "Peter" instead of a semicolon. When I replaced the 
comma with a semicolon, it sorted properly.


Oh yeah, now that I wipe the grease from my visor, all is clear. ;-)

Martin Baxter
___
use-revolution mailing list
use-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: Sorting lines

2007-05-29 Thread Martin Baxter

Jan Schenkel wrote:

--- Martin Baxter <[EMAIL PROTECTED]>
wrote:

Hi Matthias,

Try the following:
##
set the itemDelimiter to ";"
sort lines of tVariable by item 4 of each
##

Hope this helped,

Jan Schenkel.

Erm, this doesn't seem to work here in 2.8.1 on win
XP. The 
itemdelimiter appears to be ignored.


Martin Baxter



Hi Martin,

As the itemDelimiter is a local propert and thus gets
reset at the end of a running handler, you have to run
both lines together from a script, or in the
multi-line section of the message box.

I tested it on MacOSX in Rev 2.6.1 and 2.8.1, and it
worked in both:
- I pasted the example text into a field:
##
320;4999;219;Peter;329;366
3;23;14;Mark;0;0
2;213;13;Josh;215;666
1000;999;10101;Mark;211;555
2;214;25;Peter;212:667
##
- And added a button with the following script:
##
on mouseUp
  put field 1 into tVariable
  sort lines of tVariable by random(1)
  set the itemDelimiter to ";"
  sort lines of tVariable by item 4 of each
  put tVariable into field 1
end mouseUp
##

When clicking a few times, you may end up with
different results, but the 'Josh', 'Mark' and 'Peter'
lines are still lumped together.

Hope this helped,

Jan Schenkel.



Hi Jan,

That's essentially what I did, but I tested it using Matthias' data from 
his email, which I hadn't noticed has a typo in line 1 - a comma instead 
of a semicolon.


# compounded operator errors ;-)

# mystery solved anyhow,

Martin Baxter
___
use-revolution mailing list
use-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: Sorting lines

2007-05-29 Thread Martin Baxter

Jan Schenkel wrote:

--- [EMAIL PROTECTED] wrote:
Hi, 


i have textfile, which contains data. Each line of
this text file contains serveral values, which are
separated by ;.
Each line has the  same number of values. My
problems is, that i have to sort the lines by one of
the values, in this case by the value of the 4th
field.


My textfile looks something like this. There are
about 42 fields per line.

320;4999;219,Peter;329;366
1000;999;10101;Mark;211;555
2;214;25;Peter;212:667
2;213;13;Josh;215;666
3;23;14;Mark;0;0
and so on


I have to sort the textfile by the 4th value (the
names). I need all lines with the same name in
field4 one below the other - similar like this:

2;213;13;Josh;215;666
3;23;14;Mark;0;0
1000;999;10101;Mark;211;555
2;214;25;Peter;212:667
320;4999;219,Peter;329;366

How should i solve this? 


I hope i described it a little understandable.

Regards,

Matthias



Hi Matthias,

Try the following:
##
set the itemDelimiter to ";"
sort lines of tVariable by item 4 of each
##

Hope this helped,

Jan Schenkel.


Erm, this doesn't seem to work here in 2.8.1 on win XP. The 
itemdelimiter appears to be ignored.


Martin Baxter
___
use-revolution mailing list
use-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: Cannot exit to top in modal

2007-05-29 Thread Martin Baxter

Michael Binder wrote:

Hi Martin,

 > Are you finding that it is only "exit to top" that is ignored?
 > In my (quick) test here I found that in the modal, no statements
 > after close stack were executed, as if close stack, when
 > encountered in a modal, immediately stops execution of the
 > running handler.

interesting... I just checked again.  Statements after the
'close stack' statement do execute.  But once the handler
gets to 'exit to top' no further statements in *that*
handler execute.  Unfortunately, statements in the handler
that called the modal do continue to execute.

--Michael Binder



Well, I checked again and there was a flaw in my previous test, so I now 
see exactly the same as you report above. Basically the modal stack 
itself seems to be the boundary of the universe as far as "exit to top" 
is concerned. This sounds like what Ben Rubinstein was referring to 
earlier when he described modals as akin to separate threads.


Ben Rubinstein wrote:
This is a real problem. Although we normally say that Rev doesn't do 
threading, effectively there is a kind of threading going on with

modal stacks, such that 'exit to top' exits the processing going on
in the open modal stack - but doesn't affect the processing of the
'underneath' script that was suspended when it executed the 'modal'
statement.


Martin Baxter
___
use-revolution mailing list
use-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: Cannot exit to top in modal

2007-05-29 Thread Martin Baxter

Michael Binder wrote:

Ben Rubinstein wrote:
 > I think that 'exit to top' should exit everything.   This has
 > been listed as an enhancement for almost four years.  My guess
 > is that it's not an easy change to make.  But please add your
 > comments/votes to:
 >   <http://quality.runrev.com/qacenter/show_bug.cgi?id=294>

Hi Ben,
I too expected 'exit to top' to exit everything.  I just read
bug/enhancement report #294.  I would never have guessed that
report was the same issue.  As I read the report, it is a
request to have 'command-period' or 'esc' trigger an 'exit to
top'.

In my case, I explicitly called 'exit to top' in a script.
Issue #294 may well be the same issue that I am describing,
but that wasn't clear to me from reading it.



Michael,

Are you finding that it is only "exit to top" that is ignored? In my 
(quick) test here I found that in the modal, no statements after close 
stack were executed, as if close stack, when encountered in a modal, 
immediately stops execution of the running handler.


Martin Baxter
___
use-revolution mailing list
use-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: Cannot exit to top in modal

2007-05-29 Thread Martin Baxter

Michael Binder wrote:

Hi everyone,
Would some kind soul explain what I am doing wrong?

I have a mainstack "myApp" and a substack "myModals".

The mainstack has a button:

on mouseup
  open stack "myModals" as modal
  doSomeThings -- unless the user cancels the modal
end mouseup

The modal substack has a "Cancel" button:

on mouseup
  close stack "myModals"
  exit to top
end mouseup

If the user cancels the modal substack, I do not want
doSomeThings to execute.  But despite the "Exit To Top"
control structure, doSomeThings does execute.  Why is that?

I do realize that I can get the results I desire by setting
a global or a custom property in the substack and testing
for it in the mainstack.  But I don't understand why "Exit
to Top" doesn't work.

Thanks, in advance,
Michael Binder



Hi Michael,

You are right that passing data back from the closing modal to the 
calling handler and having the latter make the decision about what to do 
next is the usual or recommended way to work with modals.


The behaviour you note is interesting though as in normal stacks, the 
handler should run to the end. It seems that this is not the case in a 
modal stack, and any statements after the close stack command are 
ignored. Whether this is a bug or by design I can't say. I couldn't find 
anything in the dictionary that would lead me to expect this behaviour.


Martin Baxter

___
use-revolution mailing list
use-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: Error in docs about "file creation date"

2007-05-21 Thread Martin Baxter

J. Landman Gay wrote:

Mark Smith wrote:
Ran the script here, on Mac 10.4.9, Rev 2.8.1 - all detailed files 
info matched the finder


Thanks for checking, Mark. It's puzzling why we're getting different 
results than Wilhelm. Any XP users who feel like running the script? 
Here it is again:


on mouseUp
  answer folder "Choose a folder:"
  set the directory to it
  put the detailed files into fld 1
  repeat with x = 1 to the number of lines in in fld 1
get item 4 of line x of fld 1
convert it to short date and time
put it into item 4 of line x of fld 1
get item 5 of line x of fld 1
convert it to short date and time
put it into item 5 of line x of fld 1
  end repeat
end mouseUp



My (linewrapped) results on XP look like this:

altindex.php,10225,,5/16/07 11:15 AM,5/20/07 4:18 PM,1179771621,0,0,0,666,

The dates are OK, although the result does deviate from what the docs 
tell you to expect in that items 3 and 11 (unsupported on windows) are 
supposed to therefore contain zero, according to the docs, in the same 
way as items 7,8,9. But are in fact empty. Unlikely to cause any real 
trouble I would think, but you never know.


Martin Baxter
___
use-revolution mailing list
use-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: Build for Classic

2007-05-20 Thread Martin Baxter

Mark Wieder wrote:

Jeff-

Sunday, May 20, 2007, 7:51:21 AM, you wrote:


find out if the classic is really dead at 2.6.1 or if there is going


(not trying to single you out in particular, but...)

I confess to not having read most of the posts in this discussion, not
having a driving interest in this subject, but I'm a bit mystified
about why people expect a new Classic version.

The web site no longer mentions an upcoming version and the installer
talks about deploying for various platforms, not one of which is
Classic. The 2.61 Classic build *is* available for download. That's
far from "dead" if you need to go that route.



By Jingo you're right. I wonder when that was removed. Did anybody ever 
get a notification? Steve Jobs and the famous B**T remark comes to 
mind for some reason.


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


Re: How do I mimic dialog boxes?

2007-05-20 Thread Martin Baxter

[EMAIL PROTECTED] wrote:

Hi Everyone,

Since “Ask” and “Answer” dialog boxes come up too slow how can I mimic 
those boxes without using those commands? I’m using Mac OSX if it matters.


Joe in Orlando Florida



These are both ordinary stacks that are opened as modal. There's no big 
secret to it other than that. You have to arrange to pass any needed 
parameters before you open it, and to receive back the user's input.


The built in ones are convenient but, IMO it is worth taking the time to 
roll your own, it gives you more control.


see the docs for modal and dialogdata

Of course if your problem is related in some way to the modal command 
itself, that won't help, but perhaps it is caused by something specific 
to rev's own ask and answer dialogs. In that case making your own could 
solve it.


Martin Baxter

___
use-revolution mailing list
use-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: "Easy to use"

2007-05-20 Thread Martin Baxter

Richmond Mathewson wrote:

I had a peep at the latest downloads on the Apple site
and there was Revolution Studio 2.8.1 which was
described as:

"easy-to-use and packed with features"

The "easy-to-use" surely only refers to a small subset
of the feature set (i.e. those that require little or
no coding).

Even the documentation can prove a bit opaque to new
users.

This is similar to claims that have been made about
the current cross-platform, cross-OS GUI: - but it is
not easy to use for people who have never used
computers before.

Working with an 11 year-old who had never done any
programming before RR was not "easy-to-use" at all.

By way of comparison we played with the OOO equivalent
of PowerPoint.

As the 11 year-old only wanted to bung together 25
images of trolls from the internet into an automatic
slideshow OOO won hands down.

When we moved on to try a calculator (+,-,/,* 
sophisticated stuff) we rapidly bogged down in the

child's lack of understanding of variables and
constants: we only got somewhere after sitting on the
floor (a long way away from the computer) with lots of
plastic cups and buttons - but I had to teach him.

Until somebody can cope with the following ideas, no
computer programming package (however O-O it may be)
will be easy to use:-

1.  A=A+1

2.  Looping

"We" (and by 'We' I include the staff of RunRev) have
"been at it" so long we have forgotten that.

4 Years ago I sat in a classroom in the University of
Abertay as part of what was passing itself off as a
MSc in Computers and IT while somebody tried to
explain these 2 fundamental concepts to students - as
I had the advanytage of having had them explained to
me 30 years earlier I fiddled with my double-sided
slide-rule - who just couldn't get to grips with this;
hence a comment:

"This is stupid, everybody knows that a number cannot
equal itself plus 1."

Somewhere down the line an extremely odd idea has
developed that anybody can program a computer without
learning first principles - this is seriously
misleading.



Welcome to "Marketing World"

Marketing World is easy to use, even for novices, yet delivers the power 
and flexibility normally only available in an entire solar system*.
Marketing World fits easily in your laptop bag or briefcase but provides 
ample space for your most ambitious projects*.
Tired of having sand kicked in your face? Want a larger bosom? 
Embarrassed by your unfashionable car or operating system version? 
Whatever your inferiority complex, Marketing World can promise you your 
dreams*.


*(exceptions may apply in your jurisdiction)

Martin Baxter ;-)
___
use-revolution mailing list
use-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: Descent FTP Client for Windows?

2007-05-19 Thread Martin Baxter

Chipp Walters wrote:

I like portable FileZilla, which can be put on a thumbdrive (or
ANYWHERE on your computer) and does all that you're looking for...plus
it's free.

www.portableapps.com



Also of course there's a "regular" version of FileZilla which is at:

<http://sourceforge.net/projects/filezilla>

Martin Baxter

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


Re: How do I create an autorun CD for Mac?

2007-05-07 Thread Martin Baxter

Hi Tiemo,

Tiemo Hollmann TB wrote:

Sorry, I don't have any Mac experience and hope Rev cares about the most for
me. Yes I still will test my app on a Mac of a friend, but right now I am
missing some Mac basics and didn't find anything about it in the tutorials.

I want to create a dual platform CD (Win and MacOS X) running the app from
CD. Until now I don't use any externals or plugins, so for Win I just take
the standalone.exe put it on my CD with an autorun.inf and that's it.

How do I create a autorun CD for Mac? Is there something like a autorun.inf
file on Mac?



No such thing. Autorun is considered a security risk, and therefore 
there is no mechanism for it. Mac users expect to open the cd and run 
the application manually.



And what do I have to put on the CD from the standalone building folders?
There are 2 files Info.plist and PkgInfo (one folder above the app), 4
Plugins folders with themes and 3 Revolution resource files
(Revolution.icns, Revolution rsrc, RevolutionDoc.icns) Do I just have to put
all these files and folders in same structure on CD, or don't I need these
additional files?



Yes, put the whole directory structure as it is on to the Mac. The 
parent folder and its contents are called a "package" which appears to 
the mac user as the application itself. The user double-clicks the 
package, which then runs the application as if it were an .exe.



I would be happy if someone could direct me in the right direction or point
me to any tutorial or example


Hope this helps

Martin Baxter
___
use-revolution mailing list
use-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: A daft idea about using a printerserver to import video . . .

2007-05-05 Thread Martin Baxter

Stephen Barncard wrote:

Look, I'm a pack rat. I have every computer and peripheral I ever owned 
since 1978. I'd love to find them all good homes. It just isn't going to 
happen. I'd rather worry about homeless cats and dogs.


Don't you have a freecycle group (www.freecycle.org) where you live 
Stephen? Here in Cambridge UK people on the freecycle mailinglist give 
away old Mac and PC stuff, such as you've described, constantly, and 
here at least, there's almost always a taker for pretty much anything, 
you might be surprised.


Martin

___
use-revolution mailing list
use-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: Embedded stacks in Windows

2007-05-05 Thread Martin Baxter

Bill Vlahos wrote:
I've noticed that under Windows, any included stacks show up as separate 
programs in the Task Manager. Is there a way to prevent this? My program 
should only appear as a single application to my users.


Bill Vlahos



Bill,

Stacks whose mode is "modeless" don't show up in the taskbar.

Martin Baxter
___
use-revolution mailing list
use-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: PPC Linux builds?

2007-05-04 Thread Martin Baxter

Luis wrote:

Hiya,

I assumed as much, I haven't seen the concept bandied about in Linux sites.
Still would like to know about PPC builds, or is this for the next 
revision of the engine?


Cheers,

Luis.


Luis,

"Way back when", there used to be a separate engine for PPC Linux, but 
it was dropped after version 2 (or thereabouts) as only a handful of 
people used it. That was back before Apple went to Intel, so it would be 
a big surprise to me if it were to make a comeback at this point.


Martin Baxter
___
use-revolution mailing list
use-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: Standalone Question

2007-05-03 Thread Martin Baxter

Bernard Devlin wrote:
Martin, I believe that is an inaccurate judgement.  Whilst I was never a 
MetaCard user,  I believe that the ScriptLimits existed in that product 
too.  Runrev must have had some licensing arrangement with Scott Raney - 
effectively, they were re-selling the engine, but wrapped in a different 
IDE.  Then they bought the engine.


Bernard


See the scriptlimits. This is Revolution's contribution to the
contemporary practice of limiting software functionality in order to
protect commercial interests. Basically it stops users doing what
Runtime did - using the product to create a competing product. Sorry.


Hi Bernard,

My memory is admittedly not the most trustworthy so I'm happy to be 
corrected if I misremember, but my recollection is that the 10 line 
scriptlimits in Metacard and early versions of Revolution only applied 
in the free version. Runtime of course dropped the free version but also 
applied the script limits to standalones made with the paid-for version.


Martin Baxter

___
use-revolution mailing list
use-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: Standalone Question

2007-05-03 Thread Martin Baxter

Hi Mike,

Mike Hughes wrote:
I have noticed an issue where I have a perfectly running Rev project and 
then when I build a standalone from it, parts of the script suddenly 
fail. For example, I seem to have trouble being able to "set the script" 
of a stack in a standalone. 


See the scriptlimits. This is Revolution's contribution to the 
contemporary practice of limiting software functionality in order to 
protect commercial interests. Basically it stops users doing what 
Runtime did - using the product to create a competing product. Sorry. 
Usually there are alternative approaches, albeit less convenient perhaps.


Similarly, it looks like I cannot copy 
images from one substack to another in a standalone. Both of these tasks 
are completely possible in a pre-built rev project. Any advice would be 
greatly appreciated. I'm sure I'm missing something.




I think you should be able to do this, but you would not be able to save 
the result, as a standalone cannot save itself, and therefore you cannot 
save its substacks either.


If you want to save a stack, it must be independent of the standalone. 
Many of us create standalones that consist only of the splash screen and 
minimal startup code, which is responsible for loading the external 
stacks that contain the application logic and (sometimes) data.


HTH

Martin Baxter
___
use-revolution mailing list
use-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: Location -3200,-3200

2007-05-01 Thread Martin Baxter

Jim Sims wrote:

I've had a PC  Rev 2.6.1 application go to location -3200,-3200
on a couple of occasions when it should be on screen.
I have no script that contains that and it has only happened
twice out of hundreds of times being used.

Anybody have any insight into why this might happen?

When a 'hide stack' happens does the stack get sent to that location?



Jim,

That can happen if the stack happens to be minimised when saved.

Martin Baxter
___
use-revolution mailing list
use-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: 3 button mice with Macs.

2007-04-30 Thread Martin Baxter

Tiemo Hollmann TB wrote:

hmmm, looks like RR has to be updatet. It would be a pitty, if Apple user
can't use the right mouse button for the future.
Tiemo


Tiemo

I've never had a problem with it. All my Macs have used a 3 button mouse 
for years now and RR recognises right-clicks as such on all of them. 
However, in some cases the user may need to install and configure mouse 
driver software in order for this to work. Logitech for instance 
supplies MouseWare. Even if this is not installed however, 
ctrl-left-click should normally achieve the same thing.


I've never tried mouse(3) though so maybe there is some special issue there.

Generally I would use:

on mousedown pButton
  if pButton = 3 then

Martin Baxter
___
use-revolution mailing list
use-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: Windows shutdownrequest

2007-04-26 Thread Martin Baxter

J. Landman Gay wrote:
If a user chooses Exit by right-clicking on a stack in the Windows task 
bar, is a shutdownrequest message sent? My app isn't acting like it and 
I can't tell if it's my scripts or a problem with messaging.




Hi Jacque,

I believe it gets closestackrequest, as if the title bar close box had 
been clicked.


Here on my XP the popup right-click command in the task bar is actually 
called "close" not "exit".


Martin Baxter
___
use-revolution mailing list
use-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: Cleaning up stack URLs

2007-04-24 Thread Martin Baxter

Devin Asay wrote:
I'm working on a stack that launches stacks from the web with 'go stack 
URL'.


I know there are certain characters that are illegal or unsafe in URL 
strings. (See http://tools.ietf.org/html/rfc1738) These include space, 
quote and a number of others. Most web browsers automatically escape 
these characters for you, so, e.g., a space is converted to '%20' before 
the browser sends the request to the server.


I'm about to start writing a function that checks a potential stack URL 
for illegal and unsafe characters and converts them to escape sequences, 
but I don't want to reinvent the wheel if such a thing already exists.


Am I right that there is no equivalent functionality built into Rev? I 
know about URLEncode(), of course, but that serves a different 
purpose--formatting strings for POSTing, rather than formatting strings 
for retrieving files from a server (a GET request?) Am I understanding 
this correctly?




I think you are right Devin, unfortunately. Anyway, you can't give the 
whole url to urlencode as it will also encode the slashes and colons 
etc. etc.


Looking at my php manual, I find php has 2 functions:
urlencode()
rawurlencode()

and the difference is described as the treatment of space: + in 
urlencode, %20 in rawurlencode


This is a surmise, but I think that RR urlencode is the same as php's 
identically named function. If so, a shortcut might be to replace the 
spaces yourself before applying urlencode() which should deal with any 
remaining problem characters


something like (untested)

put "http://www.whatever.com/"; into tdomainpart
put "exciting content/big file.html" into tpath
replace space with "%20" in tpath
set itemdelimiter to "/"
put empty into t_assemble
repeat with i = 1 to the number of items in tpath
  put urlencode(item i of tpath) into item i of tencodedpath
end repeat

put tdomainpart & tencodedpart into tencodedurl


A related issue is, are there characters that are disallowed as 
filenames for rev stackfiles? I can't find any such list anywhere. I 
suppose this would be determined by the host OS?




That's what I would expect. I would avoid naming a rev stack beginning 
with a tilde though, because of the temp file made when saving.


Martin Baxter
___
use-revolution mailing list
use-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: About OSx

2007-04-17 Thread Martin Baxter

Joe Lewis Wilkins wrote:
While we're talking about OSs, I'd like to toss out some ideas I had 
back in the Windows 95 days, when it became pretty obvious that the 
computer world was about to travel down a very rocky road. Of course, 
this was prior to the advent of the Internet as we know it today.


I wanted someone to implement an OS that came in stages.

One, a very basic one that got the computer up and running, but did 
little else. No frills. It would have only the most basic features. One 
would boot up using this if you were planning to focus on text editing. 
Of course, this was back in the days of the floppy disk and no hard 
drives to speak of. And speed didn't even exist.


You could then add features and capabilities by opening additional 
modules if you planned to do other things. Not just one, but several.


The biggest advantage of something like this was cost. The basic boot up 
module would have a shareware level cost. As would the additional ones. 
I figured that someone must see this as a method and that it would 
eventually be done. It wasn't. I still think it is a great concept. In 
fact, since I know so little about the Open Source field, that may be 
what people are doing. In Linux Search me.


Joe Wilkins



Ahem,

Sorry Joe, but you're too late, Microsoft apparently has applied for a 
patent on it.


<http://www.groklaw.net/article.php?story=2007012808444146>

Martin Baxter
___
use-revolution mailing list
use-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: Print question

2007-04-12 Thread Martin Baxter

Devin Asay wrote:

Folks,

Charles sent me a screenshot of what he's seeing off list. See it at 
http://asay.byu.edu/fld.png. It appears to be highlighted text, or 
possibly a field background color that happens to be set the the exact 
color of the OS X default highlight color.


I'm surprised 'select empty' doesn't fix this.

Devin

On Apr 11, 2007, at 9:37 PM, Charles Szasz wrote:


Jeanne

I have tried setting the field's showBorder to false but the blue 
background is still there. Does lockscreen affect using select empty? 
I used lockscreen just before printing. I have tried using select 
empty at several places in the script but with the same result.



Charles Szasz
[EMAIL PROTECTED]



could it be that the backgroundcolor of the actual characters is set?

as in set the backgroundcolor of word 1 of field "whatever" ?

That might perhaps account for the failure to clear it by clearing the 
field background colour or selecting empty


Martin Baxter

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


Re: Work around for Beep not working on RunRev 2.7.x+

2007-04-05 Thread Martin Baxter

J. Landman Gay wrote:
problem, but it doesn't mention Mac OS or Linux. I think Rev's beep 
command would probably work just as you expect on a native OS 9 machine. 
(Maybe someone with a native OS 9 Mac could take a look?)




The last version of RR for OS9 is 2.6.1, and here on my 233MHz beige G3 
multiple beeping works fine. The final 2 beeps seem  to always have a 
shorter interval between them than the earlier ones.


Martin Baxter
___
use-revolution mailing list
use-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: Loading Enterprise on a PC...

2007-04-04 Thread Martin Baxter

Jim Carwardine wrote:

Should have tried it first... I put the .rev on the end of my file name and
the system recognized it as a rev file but got this message when I tried to
open it both from inside rev and by double clicking on the file...

Revolution Engine for Win32 has encountered a problem
and needs to close.  We are sorry for the inconvenience.

Any ideas?  Jim




Hi again Jim,

First I would open Revolution in windows, suspend messages, and then try
again to open the stack through the "open stack" menu command.

If the stack then opens OK I would suspect the problem is caused by
something in a script that runs when the stack opens. Comment stuff
out to try and trace what it is.

On the other hand, if Revolution still crashes, I would first suspect
that the stack file may have got damaged in copying between filesystems.
In that case I'd go back to the original file, make sure that has a .rev
file extension and .zip or .gz it, copy it across again, decompress it
at the destination of course and and try it again, to see if
that makes a difference.

Martin Baxter


___
use-revolution mailing list
use-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: Loading Enterprise on a PC...

2007-04-03 Thread Martin Baxter

Jim Carwardine wrote:

Hi Folks... I just downloaded Enterprise to my PC Parallels window.  Then I
copied a stack to the Parallels Shared folder.  When I try and open it on
the PC side, I can see the stack sitting in the shared folder, but I can't
double click it and open it in Rev.  I can't see it if I choose File/Open
from inside Rev... Is there something I've missed?  Jim


does the stack's filename end with .rev ?

Martin Baxter
___
use-revolution mailing list
use-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: Yet Another Question

2007-04-02 Thread Martin Baxter

Simon HARPER wrote:

Sorry to keep hassling the list!

OK so I'm creating a series of notes - now I understand that normally 
I'd just make a new card for each. However how do I handle it if each 
notes is 2 cards (ie I use 2 tabs)?



Cheers
Si.


Simon,

In a way you answer your own question, it sounds to me like you would 
put a tab button on the card, with 2 tabs. Then have two groups, one for 
each set of data, which are alternately shown and hidden by clicking the 
tabs.


If you expect to have a large-ish number of notes, it could become 
inefficient to store them in a stack. Duplicating cards containing many 
controls will eventually bloat the stack size, so you would likely need 
to think about backgrounded groups to avoid this.


When I do this sort of thing though, I typically would make only one 
card, having two groups, and a tabbed button to toggle the groups on and 
off. The actual data would be held externally, or at least separately 
from the display interface, maybe in text files or whatever is 
appropriate. Then just fetched and displayed on demand.


Martin Baxter

___
use-revolution mailing list
use-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: trying to replace perl cgi with rev

2007-03-29 Thread Martin Baxter

J. Landman Gay wrote:

wayne durden wrote:

I swear sometimes I believe I am net more productive saving the script 
one
line at a time for any change and ftp'ing it up and testing, no matter 
how

small the change.


Actually, I do that a lot. :)

For those on a Mac, I highly recommend BBEdit and Fetch for cgi work. 
Fetch allows you to edit a file directly on the server; it opens the 
file with BBEdit and when you save your changes in BBEdit, they become 
live immediately. It avoids the whole download/edit/re-upload cycle. 
There may be other FTP programs that interact with BBEdit the same way, 
I just happen to own Fetch.


If there are similar programs for Windows, maybe someone knows and will 
tell us.




UltraEdit is one, - has built in ftp, sftp, ssh ...

<http://www.ultraedit.com/index.php?name=UE_MoreFeatures>

Martin Baxter
___
use-revolution mailing list
use-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: Newbie Question

2007-03-29 Thread Martin Baxter

J. Landman Gay wrote:

Martin Baxter wrote:

Last I checked (admittedly quite a while ago) this was not true on 
Linux, just on Mac and Win. perhaps this has changed?
Anybody currently working on Linux know if RR can nowadays properly 
open mac or win text files and translate line-endings without scripted 
assistance?


There are certain instances where line endings are not translated. For 
example, if you open a file for binary read, or use the "binfile" form 
of the URL container, the original endings remain the same. When you had 
problems, were you using either of these methods?




This is opening the files as text - i.e. using file:. With binfile: data 
is unaffected on any platform as expected.


I determined, by testing, that on Linux (and I would assume - other 
Unixes as well) there appears to be an assumption that any text files 
you import already have LF line endings, so no conversion is done. On 
Mac and Windows the native line endings (for either platform) are 
automagically translated.


The logic behind this seems to be that on Mac and Win the native text 
file line endings need converting to the internal format, but on Linux 
they don't, as native files already are LF terminated. I concluded that 
the fact that you can move text files between mac and win without 
worrying about line endings may be an accident of the implementation 
rather than a deliberate intention.


Since I was writing an app to run on Mac & Win & Linux at the time, I 
got around this by re-writing my file I/O to always use binfile: and to 
manage the line endings myself by script.


But this was a surprise when I discovered it. My text file data had to 
be portable between the different platform versions and I had assumed, 
on the basis of Mac and Win experience, that RR would take care of this 
in the same way in Linux (i.e. would convert win and mac files when 
importing them). But when I actually moved a project from Win to Linux 
it turned up full of unexpected ascii 13s, which is when I investigated 
this.


This was a couple of years back now I suppose, version 2.1.2 I think. I 
haven't tried newer versions of RR on Linux. So although I suspect it's 
still the same, I don't really know.


Martin
___
use-revolution mailing list
use-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: Newbie Question

2007-03-29 Thread Martin Baxter

Devin Asay wrote:
Here are some of the "aha!" moments 
that helped me figure out Xtalk scripting.




Excellent post Devin,

IMO It should be distributed with all new and demo license keys

One minor picky point


Internally, all line delimiters are ASCII 10 (LF), but Rev automatically
translates to and from the OS native line delimiter when reading and writing
text files.


Last I checked (admittedly quite a while ago) this was not true on 
Linux, just on Mac and Win. perhaps this has changed?
Anybody currently working on Linux know if RR can nowadays properly open 
mac or win text files and translate line-endings without scripted 
assistance?


Martin Baxter
___
use-revolution mailing list
use-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: Warnings: (was) Moving a File

2007-03-07 Thread Martin Baxter

Mark Wieder wrote:

Dave-

Wednesday, March 7, 2007, 1:27:26 AM, you wrote:


Caution: Being near an H Bomb Explosion can cause slight discomfort!


I just bought a new French press coffee pot this weekend, and one of
the warnings inscribed on it is "children and hot liquids should be
kept apart"...



It's nice to see a product warning that has a measured and human tone.

Compare with the box of matches in my kitchen...

STORE IN A DRY PLACE
KEEP AWAY FROM CHILDREN

Storing in a dry place is a good idea in most cases I would imagine, but 
only a small minority of children are too dangerous to approach.


Martin Baxter
___
use-revolution mailing list
use-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: Transcript Language Module for UltraEdit

2007-03-03 Thread Martin Baxter

Alex Shaw wrote:

Hi

Does anyone have a copy of Xavier's old Transcript module for ultraedit 
or setup one themselves?


regards
alex



Sent offlist. Xavier still lurks here and posts occasionally, and he may 
perhaps have a newer version.


Martin Baxter
___
use-revolution mailing list
use-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: Vista "Gotchas" You Should Know About

2007-02-24 Thread Martin Baxter

Richard Gaskin wrote:

Martin Baxter wrote:
I don't know about the chances of this actually succeeding but 
Microsoft is clearly attempting to do something about that. See:


<http://www.microsoft.com/windows/products/windowsvista/editions/starter/default.mspx> 



LOL - that site says it all.  Not in content, but in form:  using 
Firefox on my Mac, that site looks like hell with text colors in the 
header all wrong, columns out of alignment, fonts at awkward sizes.


It looks like Microsoft is now designing their site to work only with 
Microsoft Internet Exploder.  Their historic obsession with trying to 
hijack open standards is eating away at their own effectiveness.


Good luck, Mr. Gates.  80% of the market, and falling



Actually it looked all right to me using windows firefox, but I was 
quite amused that the link to vista home actually served the page about 
ultimate. Hee hee. Multiuser multitasking industrial strength now with 
added human failings.


I call it Exploder too, fancy that, what a surprising 
coincidence. In fact I love to rename application shortcuts, I 
think it promotes mental health if done irreverently enough. For 
instance I was actually looking at the Microsoft site with Fireofax not 
firefox, and I'm composing this email in the Thunderbox email client. I 
edit my images in TofuShop, and do my Windows screen-captures using Snog-It.


Martin Baxter

[P.S.) for definition of "snog" see:
<http://www.urbandictionary.com/define.php?term=snog>
___
use-revolution mailing list
use-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: Something that Drives me *CRAZY*

2007-02-23 Thread Martin Baxter

Devin Asay wrote:


On Feb 23, 2007, at 1:57 PM, Bob Warren wrote:


Dave wrote:


I've been suffering in silence about this for ages!


Has anyone else been driven crazy by the way in which the IDE selects  
and then moves objects? What I mean is that it's way too easy to move  
an object just by selecting it. e.g. you select it with a mouse down  
and accidently move the mouse and then the objects shifts a couple of  
pixels. I think the mouse should be "de-bounced", e.g. any movement  
within a short period should be ignored, or better still it shouldn't  
move the object until it's been selected by a Mouse Down and a Mouse  
Up, then to move it you Mouse Down, or maybe you should only be able  
to move it by dragging a certain area.


Anyone agree???

_

Perhaps I'm missing something here, but doesn't the "Lock size and 
position" option in the control's properties solve this problem? Or 
would it be equally annoying to you to have to set this property for 
all your controls? If so, I would suggest putting forward the idea of 
a global property/switch to lock all controls.


Bob


For me it's mostly annoying during the time after I've put controls onto 
a card but before I've got them finally positioned. Once they're where I 
want them, I lock their positions and it's not a problem anymore. If 
there is a way "screen out" inadvertent moves associated with mouse 
clicks, I'm all for it.


Devin


If you can train yourself to select objects with a right-click instead 
of a left-click, the issue should go away as a right click doesn't drag. 
I have to admit I can't manage to retrain myself to do that, as it's not 
necessary in most other software. Course if you choose to use a 
one-button mouse, then you might not consider that an option anyway.


I have found that today's optical mice can benefit from being slowed 
down and having any sensitivity enhancements turned off. If you have 
such a mouse set up badly, even tiny movements can get interpreted as a 
drag.


Martin Baxter
___
use-revolution mailing list
use-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: Vista "Gotchas" You Should Know About

2007-02-23 Thread Martin Baxter

Bob Warren wrote:

Jim Ault wrote:

 >Developers who realize that Rev can still go forward as a cross-plat 
dev tool with a small learning curve.


Developers who realize that this is YAFITR
(yet another fork in the road)
and that this is probably a Linux conspiracy to gain market share  :-)
Besides, how many third world countries will be able to invest in Vista and
run it on older equipment.  How about the education market around the world
and the US?  Paying top dollar for equipment and operating systems/software
is out of reach.



Bob,

I don't know about the chances of this actually succeeding but Microsoft 
is clearly attempting to do something about that. See:


<http://www.microsoft.com/windows/products/windowsvista/editions/starter/default.mspx>

(first removing line wraps of course.)

Martin Baxter
___
use-revolution mailing list
use-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: Buttonclick deselects text

2007-02-12 Thread Martin Baxter

Devin Asay wrote:


On Feb 10, 2007, at 5:38 PM, Kresten Bjerg wrote:


Hi
I have  buttons, which, on mouseup,  shall use bits of user-selectedtext
from a textfield. But it seems that the clicking of some  buttons
deselects the text before it can be caught. I guess this is a trivial
problem,but : what is the trick to postpone the deselection ?
I shall be grateful for advice
Kresten Bjerg


The advice you've gotten is good, but it does appear that there is 
inconsistent behavior between Mac OS X and Windows. See 
http://quality.runrev.com/qacenter/show_bug.cgi?id=4015 .


Is this a Rev problem or a difference in the way the operating systems 
work?


Devin



The latter, I would say. On Macintosh the default is that buttons don't 
get focus, on Windows they do. I dimly recall hearing that OSX has a 
preference you can set to change this behaviour so buttons *do* get 
focus. But if so, I don't know where it is.


Martin Baxter
___
use-revolution mailing list
use-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: Built-in patterns

2007-02-10 Thread Martin Baxter

J. sandman Gay wrote:

Devin Asay wrote:


On Feb 8, 2007, at 11:06 PM, J. Landman Gay wrote:

I've got a graphic with its foregroundpattern set to 9, one of the 
built-in patterns in the IDE. I always thought these were part of the 
engine. But when I build a standalone, there's problems.


On OS X, the graphic draws pure white. On Windows, it crashes the 
whole app the moment I make the graphic visible.


It looks like the patterns are not being included in the standalone. 
Anyone have experience with this? Am I going to have to hunt down the 
pattern and include a copy in my stack? The standalone builder 
doesn't have an option to copy them over, and to be honest, I always 
thought that was unnecessary.


Jacque,

I could swear that an earlier version of the Standalone Builder 
allowed you to include the standard image and pattern libraries. I 
posed a question about this a few months ago, but didn't get any 
response. I think it's needed, because if you use images or patterns 
from the "standard" or even *shudder* Metcard libraries ;-) they 
disappear in the standalone.


If this isn't done already, I'll submit a feature enhancement to 
QCzilla. Anybody know anything about this?


I didn't see anything in bugzilla about it, but if you do submit I'd 
suggest doing it as a bug rather than as an enhancement request. Just 
the fact that missing patterns crash Windows is enough to qualify it as 
a bug, but even if that didn't happen, it is something people expect as 
part of the standalone building process. If patterns aren't included 
automatically, there should at least be an option to include them in the 
SB just as you can include cursors now.




I'd just like to reiterate that there used to be such an option in the 
distribution builder. I still have 2.1.2 installed and have checked 
this. In the inclusions pane there was a check box labelled: "image and 
pattern libraries" which allowed you to select any combination of the 
following for inclusion: standard icons, meta card icons, default 
patterns and meta card patterns.


Apparently this got lost along the way.

Martin Baxter
___
use-revolution mailing list
use-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?] HTML email is evil - or, why we get so much spam

2006-11-24 Thread Martin Baxter

Jeffrey Reynolds wrote:
ps Have other folks experienced a really large rise in spam in the last 
couple of months? i have had a bit of an faster than normal rise 
slipping through the filters and junk bins filling up a lot faster along 
with many clients mail systems doing some hiccups which look to be 
attributable to spam clogs. just curious.


Yes I have, and some of my clients have complained to me about it too. 
(I think they suspect it's somehow my fault, since I provide their 
mailboxes).


This recent article from the Guardian:

<http://technology.guardian.co.uk/weekly/story/0,,1942262,00.html>

may perhaps help to explain some of the reasons why.

Martin Baxter

___
use-revolution mailing list
use-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: iconifyStack sends me to the Milky Way

2006-11-23 Thread Martin Baxter

Mark Powell wrote:

I want to *close* a minimized stack and go to a second stack at a
controlled location.  Details...

I have a window with various elements, one of which is a button that
performs dragDrop tasks.  I want to give users the option to 'collapse'
this window to show only the dragDrop button (i.e. resulting in a
smaller drag-and-drop well).  I currently accomplish this by an
in-window button that closes the stack and goes to a substack that is a
reduced version of the first.  It works exactly as I want.  


I would also like to have the minimize button in the titlebar mimic the
same thing.

However, when I trap the iconifyStack message and exectute the same
instruction set, Windows OS overrides my loc settings and puts the
destination window at a loc of -31775,-31683.  It also does not respect
the closeStack handler for the originating stack, leaving it open in the
taskbar.
  
Number one, why the inter-galactic coordinates?  Number two, how do I

close the first stack?  Number three, any better way of accomplishing
this?

Mark


Mark,

Sounds to me that you are making a lot of work for yourself.

I don't really understand why you are keen to subvert the normal
behaviour of minimise. The OS is only doing what the user surely expects
- Hiding the window off-screen at very distant co-ordinates and making it
recallable via the taskbar.

Since it is the OS, not Revolution, that reacts to the minimise event,
I'd expect it would be frustrating to try to circumvent it. Your best
bet in that case might be to have no title bar (decorations empty) and
instead construct a fake title bar of your own (using graphics) that
implement the behaviour you prefer. But you'll have to implement your
own window drag, close etc. as needed.

When I want to collapse a window I just programatically change its size
so that the components I want to hide are no longer visible. Generally I
would store the expanded / collapsed sizes in a custom property of the
stack, and have a small button of my own to grow/shrink the window.

In your case you might also need to have your script resize or
reposition some controls in the window, but this is quite easy to
accomplish, especially if there are only one or two of them.

Martin Baxter

___
use-revolution mailing list
use-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: Clipboard Anomally [BUG]?

2006-11-10 Thread Martin Baxter

J. Landman Gay wrote:

Chipp Walters wrote:


Actually, I find copy/paste clipboard issues always occur when launching
Rev. Rev seems to always start with a clear clipboard on XP. I don't have
the same problem with copy/paste text in other apps.


I restarted WinXP, copied some text in Notepad, closed Notepad, reopened 
Notepad, and pasted. It worked. Then I relaunched Revolution, made a new 
stack with a field, and pasted. And that worked too. So it isn't 
consistent. Today's test seems to show that Rev doesn't automatically 
clear the clipboard.


I wish I could pin down when it fails, because I have a standalone with 
a registration dialog that users paste a serial number into. If they 
copy the serial from an email and launch my app, it only pastes 
sporadically. If the dialog is already open when they flip over to email 
to copy, it pastes every time.




I dunno either, but some time ago when I was experimenting with a linux 
version of my app, I found that keyboard shortcuts for menu items in 
general failed on that platform, so I included a commandkey handler in 
the card script, and that worked reliably. Just thought I'd mention it.


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


  1   2   3   4   >