Re: Stress-testing SQLite -- degradation on big selections

2010-10-29 Thread Ruslan Zasukhin
On 10/30/10 4:10 AM, "Richard Gaskin"  wrote:

Hi Richard,
Hi Mark,

> Mark Stuart wrote:
> 
>> on Fri Oct 29 19:17:40 CDT 2010, Richard Gaskin wrote:
 
>> Thanks in advance for sharing your experiences with large data sets if
>> SQLite.
>> <<
>> 
>> Hi Richard,
>> How many tables and how many columns per table (on average) are you
>> talking about?
> 
> Probably just a single table, with about 20 columns.

Okay this answers my question.

So now I can tell you Richard, ONLY because of columnar format,
Valentina DB can do some operations 20 times faster of any ROW-based DB.

And if multiply this to other features of Valentina you can become
With Valentina 20 *4 * 2 = 100-200 times faster.


>> If not, then that's not so much a problem.
> 
> Good to hear.

Very not true :)

When you talk about speed and time, all is relative.
You need talk about ABSOLUTE numbers instead.
   
For one person/project/app 10 sec for search is very fast,
For another this is incredibly slow.

Richard, when you say, I NEED SPEED, you must say:
  I want query in 100 sec or in 0.01 sec

Only having this info, people can advice you.

 
>> What's the potential return record set count on a typical filter?
> 
> It'll vary, and in my own tests that seems to be the only bottleneck
> with SQLit; queries that return little data are ultra speedy, but once
> we get into large amounts of return data I see the hit.

Exactly Richard. 

This is named "degradation of DB" on grow of

A) records number in table(s)
B) records number in the RESULT

Yet from 1996 year, when I did my first benches of Valentina against
 FileMaker, 4D, Access, mySQL, ...

And this very first thing I have found also.

Most dbs if not all, have powerful degradation when recs number grow.

Also exists some special N related to RAM of computer. Below this N dbs go
yet more or less nice. After N degradation can go by jump x10 worse.

With Valentina this N was much higher in the same RAM, because of much more
compact db format for data. And after N it was very good yet.


For example, if for most dbs difference in time between 50 and 500,000 recs
in result is huge, for Valentina it is almost flat.


 
>> I'd be happy to do some stress testing if you can give me some details.
> 
> Thanks.  Don't knock yourself out; I'll be continuing with my own tests
> here, but if this sort of thing passes for entertainment in your house
> then of course I'd be grateful for any details you turn up.
> 
> --
>   Richard Gaskin
>   Fourth World
>   LiveCode training and consulting: http://www.fourthworld.com
>   Webzine for LiveCode developers: http://www.LiveCodeJournal.com
>   LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

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

[I feel the need: the need for speed]


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


Re: [OT] G3 and USB 2

2010-10-29 Thread Richmond

On 10/30/2010 05:28 AM, -=>JB<=- wrote:

I forgot to mention also have the drive turned on.  In other words every
time you want to mount the drive have the computer shut down make
sure the drives are plugged in and turned on then boot the computer.

-=>JB<=-


On Oct 29, 2010, at 6:22 PM, -=>JB wrote:



Ah; could be the problem; end of plug-n-pray . . .  :)


Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-


On Oct 29, 2010, at 12:30 PM, Richmond wrote:


So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-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


___
use-revolution mailing list
use-revolution@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] G3 and USB 2

2010-10-29 Thread Richmond

On 10/30/2010 04:22 AM, -=>JB<=- wrote:

Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-



That is exactly what I did.


On Oct 29, 2010, at 12:30 PM, Richmond wrote:


So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
 not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-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: Stress-testing SQLite -- millions records? Use Valentina DB

2010-10-29 Thread Ruslan Zasukhin
On 10/30/10 3:17 AM, "Richard Gaskin"  wrote:

Hi Richard,

> I have a need coming up for a data store that can robustly handle at
> least a million records, ideally up to five million, where each record
> may be as large as 5k.
> 
> I don't need relationality, so for me SQLite is an option but only an
> option; I'm happy to consider other options as well. (Yes, it has to be
> SQLite rather than MySQL, because it needs to work embedded with a
> commercial application).

Valentina DB is faster 100 times of SqlLite, mySQL

And can be perfectly embedded into commercial application because it is
royalty free.

 
> Have any of you done stress testing on SQLite to that degree?
> 
> I've tried finding even anecdotal data on the web for SQLite limits, and
> while I can find citations of theoretical limits I haven't come across
> real-world usage stories of data sets that large.
> 
> Should I be confident in SQLite as a storage solution for that?  Should
> I be scared?

SCARED :)
 
> Thanks in advance for sharing your experiences with large data sets if
> SQLite.

You need Valentina DB.

Okay you need 5K for each record.
How many fields?

Let me remind that Valentina has columnar format.
This is huge advantage.

Also Valentina can give you not only SQL way but NON-SQL way,
Which can be additionally 10-20 times faster!

--
I can tell you store, that Valentina was tested for AOL Europe by their dev
team. Against Berkly,  mySQL, postgre, and other dbs. SqlLite even was not
in game of course.

Task was so simple. Table has 2 fields {URL, PictureBannerAd }

So when somebody ask for a WEB page, it needs find banner to be shown.

As they told, e.g. Berkly have give 100 faults per time (min our hour I not
remember now).  Other dbs also. Fault means that banner was not found  by DB
in time less of timeout.

Valentina have give them zero faults.


Let me underline this very important feature NON-SQL-ness of Valentina.
As well as very powerful SQL.

Today is very modern stream talk about how SQL DBs are bad, and how cool are
NON-SQL with Key-Value.  Guys, be happy, Valentina is perfect for both
tasks. :-)

If talk about details, in V4REV API (and most others Valentina ADKs) you can
use not SQL way to do searches and sortngs using
   VField_FindValue()
   VField_FindRange()
   VField_FindLike()

And other similar search methods.  They are really FASTEST POSIBLE way.
 

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

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

[I feel the need: the need for speed]


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


Re: Stress-testing SQLite

2010-10-29 Thread Kee Nethery
many of the data stores for the major apple apps use sqlite. it's a petty 
robust single user data store. 
kee nethery


On Oct 29, 2010, at 5:32 PM, Mark Stuart wrote:

> on Fri Oct 29 19:17:40 CDT 2010, Richard Gaskin wrote:
>>> 
> Thanks in advance for sharing your experiences with large data sets if 
> SQLite.
> <<
> 
> Hi Richard,
> How many tables and how many columns per table (on average) are you
> talking about?
> That can make a big difference to the performance if there are JOINS
> involved.
> 
> If not, then that's not so much a problem.
> 
> Will the user always apply a WHERE filter to the data?
> What's the potential return record set count on a typical filter?
> 
> I'd be happy to do some stress testing if you can give me some details.
> 
> Regards,
> Mark Stuart
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




-
I check email roughly 2 to 3 times per day. 
Kagi main office: +1 (510) 550-1336



___
use-revolution mailing list
use-revolution@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] G3 and USB 2

2010-10-29 Thread -=>JB<=-
Another important thing to remember is some drives like the LeCie drives
can be very touchy.  Do not use them to run programs or do much work is
the best way to prevent crashes so just use it for a back up drive.  And to
unmount the drive you might be safest shutting down the computer then
turning off the drive and rebooting your computer again instead of using
the normal unmount option.  I figured it out the hard way but your drive
may not give you the same problems I had.  And when I say I learned
the hard way I had to recover the drive which was more learning and
it does not always work recovering files.

-=>JB<=-



On Oct 29, 2010, at 7:28 PM, -=>JB wrote:

> I forgot to mention also have the drive turned on.  In other words every
> time you want to mount the drive have the computer shut down make
> sure the drives are plugged in and turned on then boot the computer.
> 
> -=>JB<=-
> 
> 
> On Oct 29, 2010, at 6:22 PM, -=>JB wrote:
> 
>> Have tried shutting down the computer and rebooting with them
>> still plugged in?  If not that will probably mount them but it will
>> be the same everytime.
>> 
>> -=>JB<=-
>> 
>> 
>> On Oct 29, 2010, at 12:30 PM, Richmond wrote:
>> 
>>> So; having got a generic USB 2.0 PCI card recognised in my
>>> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
>>> 
>>> 1. It works very well with my faithful Belkin Nostromo.
>>> 
>>> 2. When I plug 2 external USB 2 hard-drives into it they are
>>>   not recognised AND nor is the Nostromo.
>>> 
>>> Queer or what?
>>> ___
>>> use-revolution mailing list
>>> use-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
> 

___
use-revolution mailing list
use-revolution@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] G3 and USB 2

2010-10-29 Thread -=>JB<=-
I forgot to mention also have the drive turned on.  In other words every
time you want to mount the drive have the computer shut down make
sure the drives are plugged in and turned on then boot the computer.

-=>JB<=-


On Oct 29, 2010, at 6:22 PM, -=>JB wrote:

> Have tried shutting down the computer and rebooting with them
> still plugged in?  If not that will probably mount them but it will
> be the same everytime.
> 
> -=>JB<=-
> 
> 
> On Oct 29, 2010, at 12:30 PM, Richmond wrote:
> 
>> So; having got a generic USB 2.0 PCI card recognised in my
>> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
>> 
>> 1. It works very well with my faithful Belkin Nostromo.
>> 
>> 2. When I plug 2 external USB 2 hard-drives into it they are
>>not recognised AND nor is the Nostromo.
>> 
>> Queer or what?
>> ___
>> use-revolution mailing list
>> use-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: Stress-testing SQLite

2010-10-29 Thread Monte Goulding
32TB db limit according to this:

http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems#Limits

Maybe use limit and offset to page through query results though.

Cheers

Monte

Sent from my iPad

On 30/10/2010, at 11:17 AM, Richard Gaskin  wrote:

> I have a need coming up for a data store that can robustly handle at least a 
> million records, ideally up to five million, where each record may be as 
> large as 5k.
> 
> I don't need relationality, so for me SQLite is an option but only an option; 
> I'm happy to consider other options as well. (Yes, it has to be SQLite rather 
> than MySQL, because it needs to work embedded with a commercial application).
> 
> Have any of you done stress testing on SQLite to that degree?
> 
> I've tried finding even anecdotal data on the web for SQLite limits, and 
> while I can find citations of theoretical limits I haven't come across 
> real-world usage stories of data sets that large.
> 
> Should I be confident in SQLite as a storage solution for that?  Should I be 
> scared?
> 
> Thanks in advance for sharing your experiences with large data sets if SQLite.
> 
> --
> Richard Gaskin
> Fourth World
> LiveCode training and consulting: http://www.fourthworld.com
> Webzine for LiveCode developers: http://www.LiveCodeJournal.com
> LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Stress-testing SQLite

2010-10-29 Thread Sivakatirswami

 On 10/29/10 3:10 PM, Richard Gaskin wrote:


It'll vary, and in my own tests that seems to be the only bottleneck 
with SQLit; queries that return little data are ultra speedy, but once 
we get into large amounts of return data I see the hit.


Just a reminder, which you probably don't need at all, but I had this 
same experience with PostGreSQL recently, but probably for different 
reasons:


but FWIW...

I was using and old example SQL stack... small data returns were fast, 
but a lot of data (select * from table whatever.. i.e. "everything")  
from a PostGreSQL database  adding it to a display field. It took 
forever...


Then I remembered "Dont' Do That!"

When I got all the data in a variable and just posted to the field once, 
it was "like 20 times faster."


skts



___
use-revolution mailing list
use-revolution@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] G3 and USB 2

2010-10-29 Thread -=>JB<=-
Have tried shutting down the computer and rebooting with them
still plugged in?  If not that will probably mount them but it will
be the same everytime.

-=>JB<=-


On Oct 29, 2010, at 12:30 PM, Richmond wrote:

> So; having got a generic USB 2.0 PCI card recognised in my
> Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:
> 
> 1. It works very well with my faithful Belkin Nostromo.
> 
> 2. When I plug 2 external USB 2 hard-drives into it they are
> not recognised AND nor is the Nostromo.
> 
> Queer or what?
> ___
> use-revolution mailing list
> use-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: Stress-testing SQLite

2010-10-29 Thread Richard Gaskin

Mark Stuart wrote:


on Fri Oct 29 19:17:40 CDT 2010, Richard Gaskin wrote:



Thanks in advance for sharing your experiences with large data sets if
SQLite.
<<

Hi Richard,
How many tables and how many columns per table (on average) are you
talking about?


Probably just a single table, with about 20 columns.


That can make a big difference to the performance if there are JOINS
involved.


None - all flat.  I'd even considered rolling my own data storage for 
this one, but the indexing is more work that I'd care to do if I can use 
an off-the-shelf solution.



If not, then that's not so much a problem.


Good to hear.


Will the user always apply a WHERE filter to the data?


For the most part, yes.  I'll have about three or maybe four indexes, 
and most of the time the searches will be using those.  I may have the 
odd case of a substring search, but the performance hit is anticipated.



What's the potential return record set count on a typical filter?


It'll vary, and in my own tests that seems to be the only bottleneck 
with SQLit; queries that return little data are ultra speedy, but once 
we get into large amounts of return data I see the hit.



I'd be happy to do some stress testing if you can give me some details.


Thanks.  Don't knock yourself out; I'll be continuing with my own tests 
here, but if this sort of thing passes for entertainment in your house 
then of course I'd be grateful for any details you turn up.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: This probably reflects my complete ignorance, but...

2010-10-29 Thread Alejandro Tejada

Hi John,

Check the card script of these stacks:

http://andregarzia.on-rev.com/alejandro/stacks/newPentoolScript_v02.zip
http://andregarzia.on-rev.com/alejandro/stacks/CurvedDrawingPen_v01.zip

Use these scripts as you like, but notice that instead of
using a line created by the user, i would provide the user
with two round graphics joined by a line, hopefully better
that this: ;-)

http://andregarzia.on-rev.com/alejandro/stacks/BezierLine1_1.zip

Have a nice weekend!

Al
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/This-probably-reflects-my-complete-ignorance-but-tp3018542p3019924.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Stress-testing SQLite

2010-10-29 Thread Mark Stuart
on Fri Oct 29 19:17:40 CDT 2010, Richard Gaskin wrote:
>>
Thanks in advance for sharing your experiences with large data sets if 
SQLite.
<<

Hi Richard,
How many tables and how many columns per table (on average) are you
talking about?
That can make a big difference to the performance if there are JOINS
involved.

If not, then that's not so much a problem.

Will the user always apply a WHERE filter to the data?
What's the potential return record set count on a typical filter?

I'd be happy to do some stress testing if you can give me some details.

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


Stress-testing SQLite

2010-10-29 Thread Richard Gaskin
I have a need coming up for a data store that can robustly handle at 
least a million records, ideally up to five million, where each record 
may be as large as 5k.


I don't need relationality, so for me SQLite is an option but only an 
option; I'm happy to consider other options as well. (Yes, it has to be 
SQLite rather than MySQL, because it needs to work embedded with a 
commercial application).


Have any of you done stress testing on SQLite to that degree?

I've tried finding even anecdotal data on the web for SQLite limits, and 
while I can find citations of theoretical limits I haven't come across 
real-world usage stories of data sets that large.


Should I be confident in SQLite as a storage solution for that?  Should 
I be scared?


Thanks in advance for sharing your experiences with large data sets if 
SQLite.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: "Best practice" for creating a custom control

2010-10-29 Thread Mark Schonewille
Hi Jerome,

You might want to have a look at the scripts of the password field, available 
at http://qurl.tk/jo

--
Best regards,

Mark Schonewille

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

Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce 
Create installers for Mac and Windows on *every* Rev-compatible platform. No 
additional software needed.

On 30 okt 2010, at 01:14, Jérôme Rosat wrote:

> Hello everybody,
> 
> I'm looking for a kind of "best practice" for creating custom controls. For 
> example, how to access the data of the custom control ? Do we have to use 
> custom properties or a setProp or getProp handlers  or both ? Is it 
> preferable to use a prefix for naming a command ? And for custom properties, 
> do we have to use a set of properties ? With a "standard name" ? Etc.
> 
> Thank you for you help.
> 
> Jerome

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


"Best practice" for creating a custom control

2010-10-29 Thread Jérôme Rosat
Hello everybody,

I'm looking for a kind of "best practice" for creating custom controls. For 
example, how to access the data of the custom control ? Do we have to use 
custom properties or a setProp or getProp handlers  or both ? Is it preferable 
to use a prefix for naming a command ? And for custom properties, do we have to 
use a set of properties ? With a "standard name" ? Etc.

Thank you for you help.

Jerome
___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread Monte Goulding
If you don't want to use a lookup table then pulling out these entities using 
repeat while matchchunk and in the loop setting the htmltext of a second field 
and doing chartonum on the text of the field would work.

Cheers

Monte

Sent from my iPad

On 30/10/2010, at 1:53 AM, Chris Sheffield  wrote:

> Got a small problem and wondering if there's any way around it.
> 
> When getting the htmlText of a field, is there any way to make Rev/LiveCode 
> return the numeric html entities of special characters? So for example, if I 
> have a word in Spanish, like "día" (accented i), if I put that into a text 
> field and get the htmlText property of that field, is there any way to return 
> the string "día" instead of "día"? When setting the htmlText 
> property, either one works, but Rev always returns the latter.
> 
> Thoughts?
> 
> Thanks,
> Chris
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.com
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: html entities

2010-10-29 Thread Chris Sheffield
Yeah, looks like a lookup table of some kind is my best bet. Thanks for the 
suggestions.

Chris

On Oct 29, 2010, at 10:34 AM, J. Landman Gay wrote:

> On 10/29/10 11:11 AM, dunb...@aol.com wrote:
>> I should have been more clear. Use the ampersand and semicolon to locate
>> the original char in the source text. Convert that char with the charToNum
>> function.
> 
> Except that the htmltext doesn't return characters you can convert in these 
> cases, it returns constants that html recognizes, like "acute" and "mdash", 
> etc. Chris will need a lookup table, I 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

--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com

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


[OT] G3 and USB 2

2010-10-29 Thread Richmond

So; having got a generic USB 2.0 PCI card recognised in my
Back-to-the-Future G3 Mac I have started having a lot of 'fun' with it:

1. It works very well with my faithful Belkin Nostromo.

2. When I plug 2 external USB 2 hard-drives into it they are
 not recognised AND nor is the Nostromo.

Queer or what?
___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread DunbarX
Jacques.

I meant he could search for strings bracketed by an ampersand and a 
semicolon, with the complications as a bonus, of course.

Craig
In a message dated 10/29/10 12:34:30 PM, jac...@hyperactivesw.com writes:


> Except that the htmltext doesn't return characters you can convert in
> these cases, it returns constants that html recognizes, like "acute" and
> "mdash", etc. Chris will need a lookup table, I think.
> 
> 
___
use-revolution mailing list
use-revolution@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 siglum key explained.

2010-10-29 Thread Peter Brigham MD

See Wikipedia:

http://en.wikipedia.org/wiki/Keyboard_layout#QWERTY

The siglum at topleft seems to be found in Scandinavian countries and  
in Holland, at least in the QWERTY layout. The british version at  
least in this article, doesn't have any siglum key at all (must be an  
alt/option-key combination).


I never realized how much variation there is in these things.

-- Peter

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


On Oct 29, 2010, at 12:41 PM, Jim Sims wrote:



On Oct 29, 2010, at 6:31 PM, J. Landman Gay wrote:

I've never seen it that way. All my Mac keyboards have a tilde in  
that position. International differences, maybe?




Yup, my UK English has the siglum and a plus/minus in the upper left  
corner.


There are UK, American, Universal (I think that's the name)  English  
keyboard versions.



sims





___
use-revolution mailing list
use-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: This probably reflects my complete ignorance, but...

2010-10-29 Thread J. Landman Gay

On 10/29/10 1:54 AM, Vokey, John wrote:


in the Metacard IDE, as soon as I script-select the line to allow the
user to draw the line so my code can get the rect, it switches the
IDE to edit mode, which means any subsequent clicks on buttons (to
indicate that the line has been drawn, etc.) put that button (or
whatever object) into edit mode, so the intent of the object is lost.
Suggestions?  Remember, they have to work within the Metacard IDE,
and I can't know ahead of time when the user has finished drawing or
adjusting the line.  Obviously, the Metacard IDE itself has solved
the problem (e.g., all of the IDE stacks remain in use not edit
modes), but I remain baffled.


The IDE doesn't matter, it works the same way in any IDE and is normal 
engine behavior. Both LiveCode and MetaCard manage this by making their 
IDE stacks into palettes or modeless windows. Those window styles always 
operate in browse mode.


It's been years since I played with this, but if nothing has changed, 
the engine still sends all mouse messages normally even in edit mode. 
However, both IDEs trap those messages in a frontscript in order to 
manage editing actions. You can get around that by temporarily removing 
the frontscript, waiting for a mouseEnter into a button, and then 
restoring the frontscript and going back into browse mode. But that can 
be tricky and prone to error, which is why it is much easier to just 
provide palettes for user interactions during editing operations. I 
haven't tried it lately so it may not work anyway.


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


App store audio blog discussion

2010-10-29 Thread jim sims

http://www.coreint.org/audio/CoreInt_34.mp3

Interesting discussion from well know developers
Daniel Jalkut is the founder of Red Sweater Software.
Manton Reece is the founder of Riverfold Software.

sims





___
use-revolution mailing list
use-revolution@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 siglum key explained.

2010-10-29 Thread Jim Sims

On Oct 29, 2010, at 6:31 PM, J. Landman Gay wrote:

> I've never seen it that way. All my Mac keyboards have a tilde in that 
> position. International differences, maybe?



Yup, my UK English has the siglum and a plus/minus in the upper left corner.

There are UK, American, Universal (I think that's the name)  English keyboard 
versions.


sims





___
use-revolution mailing list
use-revolution@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 siglum key explained.

2010-10-29 Thread Richmond

On 10/29/2010 07:31 PM, J. Landman Gay wrote:

On 10/29/10 10:59 AM, Richmond wrote:


Very funny; all the Mac keyboards I have have the siglum key in the
top-left corner.


I've never seen it that way. All my Mac keyboards have a tilde in that 
position. International differences, maybe?




http://andregarzia.on-rev.com/richmond/Siglum.png
___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread J. Landman Gay

On 10/29/10 11:11 AM, dunb...@aol.com wrote:

I should have been more clear. Use the ampersand and semicolon to locate
the original char in the source text. Convert that char with the charToNum
function.


Except that the htmltext doesn't return characters you can convert in 
these cases, it returns constants that html recognizes, like "acute" and 
"mdash", etc. Chris will need a lookup table, I 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: The siglum key explained.

2010-10-29 Thread J. Landman Gay

On 10/29/10 10:59 AM, Richmond wrote:


Very funny; all the Mac keyboards I have have the siglum key in the
top-left corner.


I've never seen it that way. All my Mac keyboards have a tilde in that 
position. International differences, maybe?


--
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: The siglum key explained.

2010-10-29 Thread DunbarX
Hmmm.

Must be a European thing?

Craig

In a message dated 10/29/10 11:59:15 AM, richmondmathew...@gmail.com 
writes:


> Very funny; all the Mac keyboards I have have the siglum key in the
> top-left corner.
> 
___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread DunbarX
I should have been more clear. Use the ampersand and semicolon to locate 
the original char in the source text. Convert that char with the charToNum 
function.

If your source text actually contains ampersands and semicolons, it is a 
bit more involved. The ampersand itself comes over as "&". So you can find 
this string and deal with it.

But the semicolon appears all by itself. Still, you can determine whether 
it is a standalone semicolon or a terminating tag by examining the chars 
precediing it. I would test extensively.

Another, maybe better, way would be to initially replace those two chars 
with something you never use (I like ASCII 240). Then run your gadget and 
restore them by replacing the resulting strings with "&" and ":".

Craig Newman


In a message dated 10/29/10 11:29:08 AM, dunb...@aol.com writes:


> But it would be simple to take the output and do a little massaging. An
> ampersand seems always to be inserted as a tag when the function 
> encounters a
> character with ASCII above 128, and a semicolon seems always to act as a
> terminating tag.
> 
> You can write a widget to find those characters, and convert them to ASCII
> with the charToNum function.
> 
> 
___
use-revolution mailing list
use-revolution@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 siglum key explained.

2010-10-29 Thread Richmond

On 10/29/2010 04:41 PM, dunb...@aol.com wrote:

Richmond.

On Mac keyboards? I have a tilde and a sort of mini backSlash (ASCII 57)

Like everyone else.

But I see what you meant, your odd char is used to reference or annotate
secondary sources in a text. It is a sigla, part of a siglum.

How much do you want for that keyboard?

Craig
___



Very funny; all the Mac keyboards I have have the siglum key in the 
top-left corner.

___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread stephen barncard
One could roll a special getprop handler that lives in the script of the
field (and / or controlled by a behavior for several fields ) that can
change the text (using replace or merge) to anything you want:

*instead of *
get the htmltext of fld xxx

*call your getprop property instead*
get the htmlConvertedEntitiesText of fld xxx

On 29 October 2010 07:53, Chris Sheffield  wrote:

> Got a small problem and wondering if there's any way around it.
>
> When getting the htmlText of a field, is there any way to make Rev/LiveCode
> return the numeric html entities of special characters? So for example, if I
> have a word in Spanish, like "día" (accented i), if I put that into a text
> field and get the htmlText property of that field, is there any way to
> return the string "día" instead of "día"? When setting the
> htmlText property, either one works, but Rev always returns the latter.
>
> Thoughts?
>
> Thanks,
> Chris
>
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
use-revolution mailing list
use-revolution@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 entities

2010-10-29 Thread DunbarX
I use HTML text not at all, but after looking at the dictionary, it seems 
there is no direct way to do this. I could be wrong.

But it would be simple to take the output and do a little massaging. An 
ampersand seems always to be inserted as a tag when the function encounters a 
character with ASCII above 128, and a semicolon seems always to act as a 
terminating tag.

You can write a widget to find those characters, and convert them to ASCII 
with the charToNum function.

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


Re: Photoshop Applescript fails , why?

2010-10-29 Thread Sivakatirswami

 On 10/28/10 5:36 PM, Terry Judd wrote:

What happens if you use system events to activate Photoshop first and then
tell Photoshop to do its action?

tell application "System events" to tell application "Adobe Photoshop CS5"
to activate
tell application "Adobe Photoshop CS5" to do action [action] from [set]

Terry...
using the QA center works! Mark replied that he thought there must be a 
bad character in the script... I have no idea why cutting and pasting 
from Script Editor.app would introduce  char that causes LiveCode to 
fail to compile the applescript... but a "hard wired" approach works:


 local tScript
  put merge("tell application [[quote]]Adobe Photoshop CS5[[quote]]") & 
return after tScript

  put merge("activate") & return after tScript
  put merge("do action [[quote]]merge leaves[[quote]] from 
[[quote]]Merge Leaves[[quote]]") & return after tScript

  put merge("end tell") & return after tScript
  do tScript as "applescript"

Case closed for now.

I opened a new thread for the next leg of this adventure: looping

Sivakatirswami

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


Re: This probably reflects my complete ignorance, but...

2010-10-29 Thread stephen barncard
Chip. That photo is hilarious. Was that some band promo fail or something?
Creepy. Perfect for your demo though.

On 29 October 2010 01:48, Chipp Walters  wrote:

> go URL ("http://www.widgetgadget.com/stuff/testLineDraw.rev";)
>



-- 



Stephen Barncard
San Francisco Ca. USA

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


html entities

2010-10-29 Thread Chris Sheffield
Got a small problem and wondering if there's any way around it.

When getting the htmlText of a field, is there any way to make Rev/LiveCode 
return the numeric html entities of special characters? So for example, if I 
have a word in Spanish, like "día" (accented i), if I put that into a text 
field and get the htmlText property of that field, is there any way to return 
the string "día" instead of "día"? When setting the htmlText 
property, either one works, but Rev always returns the latter.

Thoughts?

Thanks,
Chris

--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.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: The siglum key explained.

2010-10-29 Thread DunbarX
Richmond.

On Mac keyboards? I have a tilde and a sort of mini backSlash (ASCII 57)

Like everyone else.

But I see what you meant, your odd char is used to reference or annotate 
secondary sources in a text. It is a sigla, part of a siglum.

How much do you want for that keyboard?

Craig
___
use-revolution mailing list
use-revolution@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] My G3 and DVDs

2010-10-29 Thread Richmond

On 10/29/2010 03:15 PM, Shao Sean wrote:

Did you try PatchBurn ?

http://www.patchburn.de/
___


Thanks; I have already tried that; to no avail.
___
use-revolution mailing list
use-revolution@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] My G3 and DVDs

2010-10-29 Thread Shao Sean

Did you try PatchBurn ?

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


[OT] Re:The siglum key explained.

2010-10-29 Thread Jacques Hausser
I looked at "siglum", wondering if it has something to do with gollum or glum. 
Well, "Siglum" seems to be a generic denomination for special characters 
(*,#,§,&,@...).
On Mac's character wiever § is called "Section sign", what seems to be the 
normal name in english. It is highly used in legal writing to refer to sections 
of laws and so on.  in french § is usually called "paragraphe" but the nicest 
name is the one of the ampersand (&) : "esperluette".
Thanks to RunRev (and Richmond) I'm learning new things every day !

Jacques

Le 29 oct. 2010 à 08:26, Richmond Mathewson a écrit :

> On 10/28/10 11:21 PM, dunb...@aol.com wrote:
>> Richmond.
>> 
>> 
>> 
>> And what is the story with "siglum?
> 
> Well; on Mac keyboards the top-left key has a siglum: § on it, rather
> than a `; that key usually being to the left of the Z key.
> 
> Whether § should be classified seriously as one of the sigla is a bit
> of a moot point; I do know that it is often used to mark secondary
> footnotes in 18th and 19th century books. Why the thing is on a Mac
> keyboard I just don't know.
> 
> Richmond.
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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

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


Re: libURLDownloadToFile and LiveCode

2010-10-29 Thread Ludovic Thébault

Le 29 oct. 2010 à 10:38, Dave Cragg a écrit :
> 
> I'm not sure, but perhaps this has something to do with the new asynchronous 
> behavior of the hostNameToAddress function. It seems that urlStatus will now 
> return empty for a short period between issuing the load command and the 
> point after it has obtained the IP address of the host. (previously this 
> stage was done synchronously)
> 
> Are you checking for tStatus = empty in your switch? Does your switch control 
> do anything that stops the load continuing in that situation?

Yes !

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


Re: Auto-updating apps, and splash screens.

2010-10-29 Thread Thierry

Le 29 oct. 2010 à 11:59, Alex Tweedly a écrit :

> <.>
> and you're right, lots of good advice, looks like a good system, etc.
>  I was just hoping for some working example to start from.

Hi Alex,

Out of my cloudy memory, there is on RevOnline a stack called
Registration-Update, Registration and update,... or something like that.

Don't know if it is a useful one but as you want something to start :)

My 2 cents.

Thierry


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


Re: Auto-updating apps, and splash screens.

2010-10-29 Thread Alex Tweedly

 On 29/10/2010 05:40, stephen barncard wrote:

Search for "Magic Carpet" at Chipp's site.

I tried Magic Carpet when it was first announced, and it was a good 
backup/archive/version-control system, but I don't remember anything 
about auto-update, and there's nothing about auto-update in the web 
pages about Magic Carpet.


On 29/10/2010 05:10, Jim Sims wrote:

Alex - search the List archives for Chipp's updater, he has a few posts that 
outline what seems
to be a good system and gives some excellent advice.
I did (eventually) find that advice. It's well hidden because some other 
emails in the archive refer to it, but have the wrong link. It should be

http://lists.runrev.com/pipermail/use-revolution/2003-August/021626.html

and you're right, lots of good advice, looks like a good system, etc.  I 
was just hoping for some working example to start from.


Richard Gaskin has most of this in the auto-download used in RevNet, so 
I may try taking that and expanding it into auto-updater.Sounds like 
a project for a quiet evening 


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


[OT] My G3 and DVDs

2010-10-29 Thread Richmond

Back to the Future . . .

All works superbly except . . .

The Lightscribe DVD burner.

All DVD burning software gets stuck.

-

Flash the ROM,

Dance naked in the streets, (well, it is also
a kind of flashing)

Hack things ???

-

Any, reasonably sensible, ideas welcome.

sincerely, Richmond.


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


Re: Missing mouse clicks

2010-10-29 Thread Chipp Walters
Break it down to a simple stack and try and replicate the error. Chances are
you'll isolate the problem. If not, post the simple stack and I or someone
else can take a look at it.

On Thu, Oct 28, 2010 at 7:06 PM, Terry Judd  wrote:

> I¹ve got something weird going on where after creating a series of objects
> by script
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: This probably reflects my complete ignorance, but...

2010-10-29 Thread Chipp Walters
John,

It's easy, but not so straightforward to do this. Put this in your message
box and hit enter:

go URL ("http://www.widgetgadget.com/stuff/testLineDraw.rev";)


On Fri, Oct 29, 2010 at 1:54 AM, Vokey, John  wrote:

>
>
> So, I designed a simple stack to have the user *in the Metacard IDE* drag a
> line between the eyes to get the coordinates of the eyes in the photograph.
>  Again, simple.  BUT: in the Metacard IDE, as soon as I script-select the
> line to allow the user to draw the line so my code can get the rect, it
> switches the IDE to edit mode, which means any subsequent clicks on buttons
> (to indicate that the line has been drawn, etc.) put that button (or
> whatever object) into edit mode, so the intent of the object is lost.
>  Suggestions?  Remember, they have to work within the Metacard IDE, and I
> can't know ahead of time when the user has finished drawing or adjusting the
> line.  Obviously, the Metacard IDE itself has solved the problem (e.g., all
> of the IDE stacks remain in use not edit modes), but I remain baffled.
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: libURLDownloadToFile and LiveCode

2010-10-29 Thread Dave Cragg

On 29 Oct 2010, at 06:58, Ludovic Thébault wrote:

> Hello,
> 
> Under Revolution 4, this script work like a charm :
> 
> on mouseup
> ...
> libURLDownloadToFile theUrl, theDestUrl, "Downloaded"
> wait 0 milliseconds with messages
> ShowInfo theUrl
> 
> end mouseup
> 
> on ShowInfo pUrl
>local tStatus,tResult
>put URLStatus(pUrl) into tStatus 
>   switch
> case tStatus
>   
>   end switch
>   send "ShowInfo" && pUrl to me in 10 milliseconds
> end ShowInfo
>   
> 
> But with liveCode i've haven't the status and nothing seem to happen.
> 
> What is wrong ?

I'm not sure, but perhaps this has something to do with the new asynchronous 
behavior of the hostNameToAddress function. It seems that urlStatus will now 
return empty for a short period between issuing the load command and the point 
after it has obtained the IP address of the host. (previously this stage was 
done synchronously)

Are you checking for tStatus = empty in your switch? Does your switch control 
do anything that stops the load continuing in that situation?

As an alternative, you could try this (probably not reliable as a permanent 
solution, but it might confirm that this is the problem )  :


on mouseup
...
libURLDownloadToFile theUrl, theDestUrl, "Downloaded"
send "ShowInfo theUrl" to me in 100 milliseconds

end mouseup

If you want to track the status during the download, libUrlSetStatusCallback 
may be a better option.

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: revweb plug-in for linux

2010-10-29 Thread Peter Alcibiades

Thanks guys, food for thought.  This would probably do most of it, have him
able to write it in something he is comfortable with, but also centralize it
so as not to proliferate copies.  Should have thought of it.  Thanks.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/revweb-plug-in-for-linux-tp3016951p3018629.html
Sent from the Revolution - User mailing list archive at Nabble.com.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution