Re: Sqlite and performances in LiveCode

2012-03-04 Thread Pete
I think the acid test here is to use sqlite3 vs Livecode, since sqlite3 is
the official command line tool for sqlite and likely to be more efficient
than any other browsing tool.  I tested a select * from a table with about
48,000 records in it, using a datagrid versus an LC screen that invoked
sqlite3, passing it all the necessary parameters, reading the output and
displayed it in a scrolling field.  I did not do any coded timings but
retrieving and displaying the records in an LC datagrid took around 3-4
times longer than in sqlite3.  The datagrid was using the
dgNumberOfRecords/GetDataForLine techniques outlined in the datagrid manual
and there was no data formatting involved.

The crazy thing about this is that, using those techniques, I believe the
datagrid loads only enough database rows to fill the number of rows that
are visible in the datagrid, adding more rows as the user scrolls.  So the
comparison is really between selecting and displaying all 48,000 rows in
sqlite3 vs selecting 48,000 rows and displaying only 11 rows (the number of
rows in my datagrid).

It's pretty clear that using a datagrid to display large datasets is not a
good idea if you want to maximize performance unless you really need the
the functionality that a datagrid provides.

On the other hand, the original post seemed to indicate that, even though
the elapsed time using a datagrid was several times longer than the SQLabs
tool, it was still less than a second.  While it's interesting to figure
out why that should be, I'd guess that a response time of less than a
second is acceptable from a user's perspective.

Pete

On Sun, Mar 4, 2012 at 10:22 PM, Kay C Lan  wrote:

> No, it's not the same one.
>
> Looking at the SQLabs site, SQLabs "developed from scratch a brand new
> ListBox that is able to display an infinite number of rows and columns in
> just few milliseconds. This is a fundamental base control for the app."
> They've been optemising their product since 2003, it would be surprising if
> you can match them on your first try.
>
> I did a few tests with FireFox's SQLite Manager and for 50,000 records
> (11MB) it took 504ms to display in a field that could display ALL records.
>
> Testing with LC I could extract the same records in 409ms but to display
> them all in a field took it out to 917ms. By reducing the number of records
> displayed to the size of the field, it took 410ms. Clearly LC fields are
> the limiting factor here.
>
> I then noticed that in FireFox, although all the rows could be scrolled
> down to the bottom, the columns were all truncated. So I then changed my LC
> field to a 'Basic table object', set the 'Maximum editable columns' to
> match exactly the number of columns I had, and then set the tab stops so
> only a small portion of data of each column was displayed - similar to how
> FireFox truncated it's columns. In this way I was able to display ALL the
> rows in 491 ms.
>
> This may not be as fast as SQLabs, but I think they maybe the speed kings.
> Compared to another SQLite tool I was able to get LC to perform just as
> fast, if  not a little faster.
>
> HTH
>
>
> On Sun, Mar 4, 2012 at 7:12 PM, Jérôme Rosat  wrote:
>
> > I don't know if SQLiteManager for Firefox is the same one I use (from
> > SQLabs) but it display all the records in one time (I can scroll all the
> > list).
> >
> > But thank you for the suggestion, If necessary I'm going to display only
> a
> > part of the records with a next button, even if I don't like very much
> this
> > approach.
> >
> >
> > Le 4 mars 2012 à 03:37, Kay C Lan a écrit :
> >
> >
> > > If the 'SQLiteManager' you refer to is the same one I use with FireFox,
> > in
> > > my case it only displays 100 records at a time, you have to click the
> > Next
> > > button to see more - so this is a performance trick you can do with LC.
> > > Instead of extracting 15 records in one go, and displaying it in a
> > > field in one go( which will take a long time) only extract 100 records
> > > (which will take significantly less time) and have a Next button, just
> > like
> > > SQLIte Manager, to retrieve the next 100 records.
> > >
> > > If I'm right, the the fact that LC only took 4.4 times longer to
> display
> > > 1500 times more records would suggest that you'll be able to do a lot
> > > better with LC
> > >
> > > HTH
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___
> use-livecode mailing list
> use-livecode@lis

Re: Sqlite and performances in LiveCode

2012-03-04 Thread Kay C Lan
No, it's not the same one.

Looking at the SQLabs site, SQLabs "developed from scratch a brand new
ListBox that is able to display an infinite number of rows and columns in
just few milliseconds. This is a fundamental base control for the app."
They've been optemising their product since 2003, it would be surprising if
you can match them on your first try.

I did a few tests with FireFox's SQLite Manager and for 50,000 records
(11MB) it took 504ms to display in a field that could display ALL records.

Testing with LC I could extract the same records in 409ms but to display
them all in a field took it out to 917ms. By reducing the number of records
displayed to the size of the field, it took 410ms. Clearly LC fields are
the limiting factor here.

I then noticed that in FireFox, although all the rows could be scrolled
down to the bottom, the columns were all truncated. So I then changed my LC
field to a 'Basic table object', set the 'Maximum editable columns' to
match exactly the number of columns I had, and then set the tab stops so
only a small portion of data of each column was displayed - similar to how
FireFox truncated it's columns. In this way I was able to display ALL the
rows in 491 ms.

This may not be as fast as SQLabs, but I think they maybe the speed kings.
Compared to another SQLite tool I was able to get LC to perform just as
fast, if  not a little faster.

HTH


On Sun, Mar 4, 2012 at 7:12 PM, Jérôme Rosat  wrote:

> I don't know if SQLiteManager for Firefox is the same one I use (from
> SQLabs) but it display all the records in one time (I can scroll all the
> list).
>
> But thank you for the suggestion, If necessary I'm going to display only a
> part of the records with a next button, even if I don't like very much this
> approach.
>
>
> Le 4 mars 2012 à 03:37, Kay C Lan a écrit :
>
>
> > If the 'SQLiteManager' you refer to is the same one I use with FireFox,
> in
> > my case it only displays 100 records at a time, you have to click the
> Next
> > button to see more - so this is a performance trick you can do with LC.
> > Instead of extracting 15 records in one go, and displaying it in a
> > field in one go( which will take a long time) only extract 100 records
> > (which will take significantly less time) and have a Next button, just
> like
> > SQLIte Manager, to retrieve the next 100 records.
> >
> > If I'm right, the the fact that LC only took 4.4 times longer to display
> > 1500 times more records would suggest that you'll be able to do a lot
> > better with LC
> >
> > HTH
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Jpeg meta data

2012-03-04 Thread Alejandro Tejada
Check these stacks from UDI: getEXIF

http://homepage.mac.com/udi/stack/getExif11.hqx
http://homepage.mac.com/udi/stack/getExif12.hqx
http://homepage.mac.com/udi/stack/getExif13.hqx

If you are using Windows, you could use UUDeview
to extract the stacks from these HQX files:
http://www.miken.com/uud/

Al


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Jpeg-meta-data-tp798p4445222.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Jpeg meta data

2012-03-04 Thread Alejandro Tejada
Check these command-line utilities that you could
use from LiveCode: jHead and ExifTools

http://runtime-revolution.278305.n4.nabble.com/OT-Free-EXIF-command-line-utility-td293858.html

Chipp Walters wrote:
>[OT] Free EXIF command line utility
> I noticed this today: 
> http://www.sentex.net/~mwandel/jhead/
> Looks like they have a command line utility available to read and edit 
> EXIF (digital photo headers) and you can ship it with your product for
> free. 
> Mac OSX, Windows and Linux version available. 

http://runtime-revolution.278305.n4.nabble.com/Cleaning-Exif-Data-from-an-image-td3491102.html#a3491716

Warren Samples wrote:
> Exiftool is available for all platforms as a gui and cli tool,
> for those interested. As a cli tool, it can be 
> use with Livecode's 'shell()' to return exif data
> as well as write/edit/delete it.

http://www.sno.phy.queensu.ca/~phil/exiftool/

Have a nice week!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Jpeg-meta-data-tp798p4445166.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Jpeg meta data

2012-03-04 Thread Alejandro Tejada
Hi Michael,


Michael Doub wrote
> 
> Is there a livecode library that allows editing of a jpeg image meta data?
> 

Some years ago, Alex Tweedly wrote the stack "Exif Lib"
http://www.tweedly.org/showpage.lc?page=EXIFLib

If you use Nabble to search this mail list, you would find
many more messages threads about the same topic:

http://runtime-revolution.278305.n4.nabble.com/template/NamlServlet.jtp?macro=search_page&node=278306&query=exif

Have a nice week!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Jpeg-meta-data-tp798p4445145.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: How can I get string width?

2012-03-04 Thread Alejandro Tejada
Hi Mr. Yoshino,


Takashi Yoshino wrote
> 
> How can I get string width?
> 

Iwas ready to answer, when I noticed the message
from Devin Asay:

> Try the formattedWidth of [chunk]. For example: 
> put the formattedWidth of word 2 to 5 of fld 1 into stringWidth 

Hopefully this property works fine with double-byte languages.

Just for curiosity, Mr. Yoshino, Which of these softwares
from Yoshino Lab was created using LiveCode?

http://www.wakayama-u.ac.jp/~yoshino/lab/software/index.html

Have a nice week!

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/How-can-I-get-string-width-tp971p4445141.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: "can't find handler" error in script that worked before

2012-03-04 Thread Sieg Lindstrom
Thanks, Kay. This was running in the IDE. I tried starting the IDE, then 
opening the stack. Still didn't work OK.

Then I tried saving as a standalone and that revealed the apparent problem, 
which was two lines of code in another handler in the stack script. This 
handler also ran OK previously under RunRev.

The two lines were these; not contiguous in the script.

put "; . {}" into findString

put "; . {w, w, w}" into findString

Seems the compiler didn't like the semi-colons (keyword) at the front of the 
literal.

FYI, two interesting things about this:

1) there were other put commands in the script in which a semi-colon led a 
literal, and they compiled OK.

2) Eventually, simply retyping the lines solved the problem.

Sieg Lindstrom

On Mar 3, 2012, at 9:29 PM, Kay C Lan wrote:

> Is this in a standalone or a stack you are running in the IDE.
> 
> There is a know problem with the start-up sequence of 5.0.2 that effects
> some stacks when run in the IDE. To figure if this is effecting you, start
> the IDE, then open your stack and see if it works OK. If it does, then this
> was the problem. If so you just can't open your stack by double clicking
> it. Hopefullly this will be resolved in the next update.
> 
> HTH
> 
> On Sun, Mar 4, 2012 at 12:10 PM, Sieg Lindstrom 
> wrote:
> 
>> My second post tonight while I'm thinking of it. I have an app that ran
>> flawlessly under RunRev. Now, using LiveCode 5.0.2, a handler in a button
>> script  that calls another handler in the stack script returns a "can't
>> find handler" error.
>> 
>> It was easy to fix by moving the "unfindable" handler into the button
>> script, but shouldn't a button be able to call a handler in the stack
>> script? It worked before, hasn't been modified and all variables are
>> properly made global. 
>> 
>> Thanks.
>> 
>> Sieg Lindstrom

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


Re: How can I get string width?

2012-03-04 Thread Monte Goulding
Do you mean the number of characters?

put the number of characters of X

or 

put length(X)

Or do you mean the width in a field to take into account the font etc?

put the formattedWidth of field X

Cheers

Monte

On 05/03/2012, at 1:42 PM, 吉野 孝 wrote:

> Hi, Experts!
> 
> How can I get string width?
> 
> I would like to string width…
> 
> _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
> Takashi Yoshino 
> http://www.wakayama-u.ac.jp/~yoshino/lab/
> Tel: +81-73-457-8441
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: How can I get string width?

2012-03-04 Thread Devin Asay

On Mar 4, 2012, at 7:42 PM, 吉野 孝 wrote:

> Hi, Experts!
> 
> How can I get string width?
> 
> I would like to string width…

Try the formattedWidth of [chunk]. For example:

  put the formattedWidth of word 2 to 5 of fld 1 into stringWidth

Hope this helps.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


How can I get string width?

2012-03-04 Thread 吉野 孝
Hi, Experts!

How can I get string width?

I would like to string width…

_.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ 
Takashi Yoshino 
http://www.wakayama-u.ac.jp/~yoshino/lab/
Tel: +81-73-457-8441


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


Jpeg meta data

2012-03-04 Thread mikedoub
Is there a livecode library that allows editing of a jpeg image meta data?

  Thanks
   -= Mike
 
Sent from my BlackBerry device on the Rogers Wireless Network

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


Re: Copying and pasting text into a word processing document

2012-03-04 Thread dunbarx
Sorry, the clipBoardData is a property, of course:



on mouseup
get the clipBoardData
 if the hilite of the target then set the clipBoardData to it & return & the 
short name of the target  --"name" option

if the hilite of the target then set the clipBoardData to it & return &  the 
yourProp of the target  --"name" option
-- this does not handle unchecking. Does this matter? A somewhat larger issue.
end mouseUp



-Original Message-
From: dunbarx 
To: use-livecode 
Sent: Sun, Mar 4, 2012 4:55 pm
Subject: Re: Copying and pasting text into a word processing document


Charles.


I don't know how your data is set up. Do you have fields associated with each 
checkBox? Is the name of the checkBox the actual statement? Or perhaps a 
property of each checkBox holds the statement?


Anyway, if you have a few checkBox buttons, each with a behavior or maybe a 
mouseUp handler in the card:


on mouseup
 if the hilite of the target then put the short name of the target after the 
clipBoardData --"name" option
 if the hilite of the target then put the yourProp of the  target after the 
clipBoardData --"property" option
-- this does not handle unchecking. Does this matter? A somewhat larger issue.
end mouseUp


And in another button:


on mouseUp
open file "yourFile"
write the clipboardData to file "yourFile"
close file "yourFile"
end mouseup


Craig










-Original Message-
From: Charles Szasz 
To: use-livecode 
Sent: Sun, Mar 4, 2012 2:47 pm
Subject: Copying and pasting text into a word processing document


I have completed a number of projects with Rev but none has every involved 
creating an app that copies text to a clipboard to paste into a word processing 
document. 

I want to code an small utility app where the user selects statements by 
checking a checkbox for each statement so that it is put into the clipboard 
where the user can then paste them into a word document. I do not want to 
reinvent the wheel to code this. Any suggestions on how to do this?  By the 
way, 

I am using Rev 4.0. 

Charles Szasz
csz...@mac.com





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

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

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


Re: Copying and pasting text into a word processing document

2012-03-04 Thread dunbarx
Charles.


I don't know how your data is set up. Do you have fields associated with each 
checkBox? Is the name of the checkBox the actual statement? Or perhaps a 
property of each checkBox holds the statement?


Anyway, if you have a few checkBox buttons, each with a behavior or maybe a 
mouseUp handler in the card:


on mouseup
 if the hilite of the target then put the short name of the target after the 
clipBoardData --"name" option
 if the hilite of the target then put the yourProp of the  target after the 
clipBoardData --"property" option
-- this does not handle unchecking. Does this matter? A somewhat larger issue.
end mouseUp


And in another button:


on mouseUp
open file "yourFile"
write the clipboardData to file "yourFile"
close file "yourFile"
end mouseup


Craig










-Original Message-
From: Charles Szasz 
To: use-livecode 
Sent: Sun, Mar 4, 2012 2:47 pm
Subject: Copying and pasting text into a word processing document


I have completed a number of projects with Rev but none has every involved 
creating an app that copies text to a clipboard to paste into a word processing 
document. 

I want to code an small utility app where the user selects statements by 
checking a checkbox for each statement so that it is put into the clipboard 
where the user can then paste them into a word document. I do not want to 
reinvent the wheel to code this. Any suggestions on how to do this?  By the 
way, 
I am using Rev 4.0. 

Charles Szasz
csz...@mac.com





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

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


Re: Copying and pasting text into a word processing document

2012-03-04 Thread Colin Holgate
The function to do that is:

set the clipboardData["text"] to "whatever text you want"


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


Re: Data Grid Templates 1330583110740

2012-03-04 Thread Peter M. Brigham, MD
Impossible to understand this out of context.

-- Peter

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

On Mar 4, 2012, at 2:04 PM, Cal Horner wrote:

> Hi Bob
> 
> No, nothing as sophisticated as that.
> 
> Check the second paragraph of my first posting. It was vanilla LC 5.0.2.
> 
> Cal
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Copying and pasting text into a word processing document

2012-03-04 Thread Charles Szasz
I have completed a number of projects with Rev but none has every involved 
creating an app that copies text to a clipboard to paste into a word processing 
document. 

I want to code an small utility app where the user selects statements by 
checking a checkbox for each statement so that it is put into the clipboard 
where the user can then paste them into a word document. I do not want to 
reinvent the wheel to code this. Any suggestions on how to do this?  By the 
way, I am using Rev 4.0. 

Charles Szasz
csz...@mac.com





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


Re: Data Grid Templates 1330583110740

2012-03-04 Thread Cal Horner
Hi Bob

No, nothing as sophisticated as that.

Check the second paragraph of my first posting. It was vanilla LC 5.0.2.

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


Re: Enlarge with sample

2012-03-04 Thread Alejandro Tejada
Does exists a list of recommended
layout styles for resizable programs?

Or at least a guide of Do's and Dont's...

Al

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Enlarge-with-sample-tp4443249p014.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Spinning object animation

2012-03-04 Thread Alejandro Tejada
Hi Ken,

Excellent script! :-D
Many Thanks for sharing this gem.
Works better and faster than
my first script.

Your comment about the
frame order of the spinning vase
is correct too.

It was really easy to reorder
the frames using gimp.

Many thanks again!

Al


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Spinning-object-animation-tp4442898p4443973.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Directories on iOS?

2012-03-04 Thread Ken Corey

Hi Colin & Thomas,

Thanks for writing on a Sunday afternoon!

Yes, this was it exactly.

On 04/03/2012 17:09, Colin Holgate wrote:

specialFolderPath("engine")
use:
specialFolderPath("Documents")


My code now gets a little bit farther...and then crashed with one of 
those cryptic errors about 'revZip'.


Ah, yes, I didn't have the revZip checkbox ticked for .zipping.

All good now.

Thanks guys!

-Ken

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


Re: Directories on iOS?

2012-03-04 Thread Colin Holgate
You can't write into the application engine directory, but you can write into 
the application document directory. Instead of using:

specialFolderPath("engine")

use:

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


Re: Directories on iOS?

2012-03-04 Thread Thomas McGrath III
There are a few reserved names for folders and places where you can put them. A 
little code could help figure this one out.

-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net

On Mar 4, 2012, at 11:35 AM, Ken Corey wrote:

> Hi All,
> 
> I found a /hugely/ useful error message just now.
> 
> My app is called "WriteOn.app", at least for the moment.
> 
> Hi All,
> 
> I'm hoping someone can help.
> 
> I called 'create folder' with the path to my app on my iPad:
> /var/mobile/Applications/706ECCCF-DC1D-42F1-B71E-F3D96610DAEF/WriteOn.app/Downloaded
> 
> The error in 'the result' is "can't create that directory". Just lovely. 
> Might as well put the "engine" light on my iPad. It would tell me as much.
> 
> Can anyone shed a tiny bit more light on that error message?
> It /shouldn't/ be permissions, because it's within my app's sandbox.
> It can't be space, as I've got 2.4GB remaining.
> It shouldn't be rights, as the standalone downloads to the iPad just fine and 
> is attempting to run when this error happens.
> I don't have AFAICT any other app using the same signature (but that 
> shouldn't matter anyway, should it)?
> 
> Are there any other reasons why one can't create a folder on iOS from within 
> LiveCode?
> 
> Thanks,
> 
> -Ken
> kcorey
> Â
> Posts: 59
> Joined: Fri Nov 25, 2011 5:06 pm
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Directories on iOS?

2012-03-04 Thread Ken Corey

Hi All,

I found a /hugely/ useful error message just now.

My app is called "WriteOn.app", at least for the moment.

Hi All,

I'm hoping someone can help.

I called 'create folder' with the path to my app on my iPad:
/var/mobile/Applications/706ECCCF-DC1D-42F1-B71E-F3D96610DAEF/WriteOn.app/Downloaded

The error in 'the result' is "can't create that directory". Just lovely. 
Might as well put the "engine" light on my iPad. It would tell me as much.


Can anyone shed a tiny bit more light on that error message?
It /shouldn't/ be permissions, because it's within my app's sandbox.
It can't be space, as I've got 2.4GB remaining.
It shouldn't be rights, as the standalone downloads to the iPad just 
fine and is attempting to run when this error happens.
I don't have AFAICT any other app using the same signature (but that 
shouldn't matter anyway, should it)?


Are there any other reasons why one can't create a folder on iOS from 
within LiveCode?


Thanks,

-Ken
kcorey
Â
Posts: 59
Joined: Fri Nov 25, 2011 5:06 pm


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


Re: Enlarge with sample

2012-03-04 Thread Paul Hibbert
See 'resizeable' in the dictionary for a full explanation, you can set the 
property in any script, (preOpenStack makes sense) with…

set the resizable of this stack to true

…or use the checkbox in the 'size & position' pane of the stack inspector.

Whichever setting you use for the stack should translate to the standalone, you 
should see the same re-size handle in the lower right corner on a Mac or see 
the same re-size cursors when you mouse over the window extremities on Windows.

If it's not working for you, check that you have the Geometry script library 
included or use the automatic search for required inclusions under File > 
Standalone Application Settings.

I'm not sure that the Geometry script library affects the standalone window 
re-sizeing, but it certainly affects the controls on the cards.

HTH

Paul

On 4 Mar 2012, at 10:21, Richmond wrote:

> Almost every day I get these marvellous e-mail messages from well-wishers 
> that spur me onto new ideas
> with Livecode!
> 
> Well, for want of anything else to do, I have been trying to enlarge . . .
> 
> . . . a standalone, after it has been built as a standalone:
> 
> While a stack is a stack one can drag the lower-right-hand corner if 
> resizeable is set to true, and the stack will resize.
> 
> Now, at the risk of looking very inexperienced, how can one set a standalone 
> so the end-user can resize that stack?
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Spinning object animation

2012-03-04 Thread Ken Corey
The frames of the vase are in the opposite order of the globe. 
Rearrange the frames in the opposite order (I did it in GIMP in < 1 
minute).  For the vase, frame 2 becomes frame 12, frame 3 becomes 11, 
4->10, 5->9, 6->8.  It's just swapping the two frames.


Also, the movement felt wrong to me.  If you started moving towards the 
right, but now are moving back towards the left, shouldn't the item you 
appear to have grabbed also be moving towards the left?  Something like 
this:


on mouseMove x,y
   if tMouse = 1  then
  put trunc((tLoc-x)/5) into tDiff

  put (tImageFrame + tDiff) mod (the framecount of img 1) \
into tCFrame

  if tCFrame<0 then
 add the framecount of img 1 to tCFrame
  end if
  set the currentframe of img 1 to tCFrame
   end if
end mouseMove

-Ken

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


Re: Sqlite and performances in LiveCode

2012-03-04 Thread Jérôme Rosat
I don't know if SQLiteManager for Firefox is the same one I use (from SQLabs) 
but it display all the records in one time (I can scroll all the list).

But thank you for the suggestion, If necessary I'm going to display only a part 
of the records with a next button, even if I don't like very much this approach.


Le 4 mars 2012 à 03:37, Kay C Lan a écrit :


> If the 'SQLiteManager' you refer to is the same one I use with FireFox, in
> my case it only displays 100 records at a time, you have to click the Next
> button to see more - so this is a performance trick you can do with LC.
> Instead of extracting 15 records in one go, and displaying it in a
> field in one go( which will take a long time) only extract 100 records
> (which will take significantly less time) and have a Next button, just like
> SQLIte Manager, to retrieve the next 100 records.
> 
> If I'm right, the the fact that LC only took 4.4 times longer to display
> 1500 times more records would suggest that you'll be able to do a lot
> better with LC
> 
> HTH
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sqlite and performances in LiveCode

2012-03-04 Thread Jérôme Rosat
No, in LiveCode, it takes 138 milliseconds more to display the result. In 
SQLiteManager, I don't now how many time it takes to display the result. But 
visually, it takes about 1 second to query and display the records in LiveCode 
and it is nearly instantaneous in SQLiteManager.


Le 4 mars 2012 à 01:28, Gerry Orkin a écrit :

> It could be the difference in the time taken to display the returned records? 
> 
> Gerry
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Enlarge with sample

2012-03-04 Thread Richmond
Almost every day I get these marvellous e-mail messages from 
well-wishers that spur me onto new ideas

with Livecode!

Well, for want of anything else to do, I have been trying to enlarge . . .

. . . a standalone, after it has been built as a standalone:

While a stack is a stack one can drag the lower-right-hand corner if 
resizeable is set to true, and the stack will resize.


Now, at the risk of looking very inexperienced, how can one set a 
standalone so the end-user can resize that stack?


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