Re: RLE images

2014-07-14 Thread Thierry Douez
2014-07-15 1:06 GMT+02:00 J. Landman Gay

> If anyone has definitive knowledge, please say. Otherwise I'll go with this.


might be you are looking for paintCompression.

Thierry

___
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: [OT] SWIFT

2014-07-14 Thread Mark Wilcox
http://swift-lang.org/main/ 
This is the wrong Swift.

Yes, Apple gave their new programming language the same name as an existing one.

Mark
___
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: [OT] SWIFT

2014-07-14 Thread Kay C Lan
On Tue, Jul 15, 2014 at 8:28 AM, kee nethery  wrote:
> Swift is going to have an amazingly fast adoption rate.
>
Apparently so...

"Swift is flexible: its being used in many fields of science,
engineering, and business. Read the case studies. "

Which comes from:

http://swift-lang.org/main/

Other bits I find intriguing:

"The Swift parallel scripting language. Fast easy parallel scripting -
on multicores, clusters, clouds and supercomputers"

"Try Swift code examples right from your browser."

I mean they are already talKing about the Next Generation Swift:

"Swift/T runs millions of tasks per second on supercomputers."

___
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: Security hole?

2014-07-14 Thread stephen barncard
On Mon, Jul 14, 2014 at 7:28 PM, Peter Haworth  wrote:

> I guess it's not actually showing any code but feels like it should act the
> same as trying to get the script of a password protected stack.
>

not unless you don't want to run the scripts...

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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


Security hole?

2014-07-14 Thread Peter Haworth
I can't decide if this is a problem or not but the revAvailableHandlers
function happily returns information about handlers in a password protected
stack without requiring the password.

I guess it's not actually showing any code but feels like it should act the
same as trying to get the script of a password protected stack.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 
___
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: [OT] SWIFT

2014-07-14 Thread kee nethery
Swift is going to have an amazingly fast adoption rate. 

People learned Objective-C to write Apple apps. It’s not really usable for 
anything else. All those people using Objective-C will switch to Swift for 
several reasons; it is easier to learn (it has a playground), it is designed to 
prevent common programming errors, and you can keep your old code in 
Objective-C and write your new code in Swift and keep moving your app forward. 
Everyone using Objective-C will convert to Swift and that conversion is going 
to occur really rapidly.

Livecode is still a great development environment. The adoption of Swift is 
going to be … swift.

Kee


On Jul 14, 2014, at 1:45 PM, stephen barncard  
wrote:

> Apple is touting this like the second coming
> 
> but... haven't we been doing this for a while in Revolution/RunRev/Livecode
> ?
> 
> typeless
> just in time compiling
> prefab blocks
> easier than Obj C
> VERY FAST
> " it lets you write code on one side of your computer screen and see the
> results appear on the other side. In other words, you can watch your
> program run as you write it."
> 
> wow. But it might not be cross platform.
> 
> 
> 
> http://www.wired.com/2014/07/apple-swift/?mbid=social_fb
> *--*
> *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
> ___
> 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: [OT] SWIFT

2014-07-14 Thread Jerry Jensen

On Jul 14, 2014, at 4:10 PM, stephen barncard  
wrote:

> On Mon, Jul 14, 2014 at 1:56 PM, Jerry Jensen  wrote:
> 
>> I've been looking at Swift. Its very unlike LC. Its syntax is huge, very
>> powerful and feature-ridden.
> 
> 
> Available to ordinary MacOS Developers (currently unpaid) ?

The book is free in the iBooks store:
https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11
Prepare for overload.
.JJ


___
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: [OT] SWIFT

2014-07-14 Thread stephen barncard
On Mon, Jul 14, 2014 at 1:58 PM, Richmond 
wrote:

> Surely the sensible way to assess Swift is NOT to read silly articles, but
> to download the language and
> give it a try:
>
> https://developer.apple.com/swift/
>

Downloading. thanks for the feedback.

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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: [OT] SWIFT

2014-07-14 Thread stephen barncard
On Mon, Jul 14, 2014 at 1:56 PM, Jerry Jensen  wrote:

> I've been looking at Swift. Its very unlike LC. Its syntax is huge, very
> powerful and feature-ridden.


Available to ordinary MacOS Developers (currently unpaid) ?

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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: RLE images

2014-07-14 Thread J. Landman Gay

On 7/14/2014, 4:24 PM, Richmond wrote:


"Open the paint tools in RR and use the eraser to click each image,
then, immediately click undo: this converts all images into internal
bitmap format. However this means that the files grow to about twice
their original size."

So . . .  presumably if that still goes on the way to check is:

find out an imported image's size,

do the 'thing' with the eraser,

find out the imported image's size again:

if it has doubled then it is probably now RLE.


Good suggestion, it doesn't double but it grows by about 1/3. So it 
appears images are saved into the stack in the original format.


If anyone has definitive knowledge, please say. Otherwise I'll go with this.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Datagrid column of data with trailing spaces

2014-07-14 Thread Skip Kimpel
Aha You hit in something It IS coming from a SQL database Eliminate 
the problem before it gets into a datagrid.  Let me play with that.

In any case you were ALL very helpful... As always.

Very much appreciated.

SKIP

> On Jul 14, 2014, at 5:47 PM, Peter Haworth  wrote:
> 
> One other thought.  Is the data coming for an SQL database?  If so then
> this will do it for you:
> 
> SELECT rtrim() FROM..
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> 
> 
> On Mon, Jul 14, 2014 at 1:56 PM, Magicgate Software - Skip Kimpel <
> s...@magicgate.com> wrote:
> 
>> Good afternoon,
>> 
>> I have a datagrid and column 1 has trailing spaces in the data items that I
>> need to get rid of.  The number of trailing spaces is never
>> consistent.  Once again, I think regex will be my friend / worst enemy :)
>> 
>> Suggestions on how to do this effectively?
>> 
>> Thanks in advance for your input,
>> 
>> SKIP
>> ___
>> 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: Datagrid column of data with trailing spaces

2014-07-14 Thread Phil Davis
Good deal! I'm sure Peter's solution works as well - I just don't know 
regex well enough to be effective with it.


Phil


On 7/14/14, 2:38 PM, Magicgate Software - Skip Kimpel wrote:

Phil,

That did it!  I had already started to test the previous code you sent and
it wasn't working as expected. Your modified code works perfectly.

Thank you!

SKIP


On Mon, Jul 14, 2014 at 5:30 PM, Phil Davis  wrote:


Oops. I should read your problem description better before I try to solve
it.

put the dgText of grp "dgTryAgain" into tText
split tText by column
repeat for each line tLine in tText[1]
 put word 1 to -1 of tLine & CR after tNewCol
end repeat
delete last char of tNewCol
put tNewCol into tText[1]
combine tText by column
set the dgText of grp "dgTryAgain" to tText

That should do it.
Phil



On 7/14/14, 2:21 PM, Phil Davis wrote:


put the dgText of grp "dgGrid" into tText
repeat for each line tLine in tText
 put word 1 to -1 of tLine & CR after tNewText
end repeat
delete last char of tNewText
set the dgText of grp "dgGrid" to tNewText

:-)
Phil Davis


On 7/14/14, 1:56 PM, Magicgate Software - Skip Kimpel wrote:


Good afternoon,

I have a datagrid and column 1 has trailing spaces in the data items
that I
need to get rid of.  The number of trailing spaces is never
consistent.  Once again, I think regex will be my friend / worst enemy :)

Suggestions on how to do this effectively?

Thanks in advance for your input,

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



--
Phil Davis


___
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



--
Phil Davis


___
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: Datagrid column of data with trailing spaces

2014-07-14 Thread Peter Haworth
One other thought.  Is the data coming for an SQL database?  If so then
this will do it for you:

SELECT rtrim() FROM..

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Mon, Jul 14, 2014 at 1:56 PM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> Good afternoon,
>
> I have a datagrid and column 1 has trailing spaces in the data items that I
> need to get rid of.  The number of trailing spaces is never
> consistent.  Once again, I think regex will be my friend / worst enemy :)
>
> Suggestions on how to do this effectively?
>
> Thanks in advance for your input,
>
> SKIP
> ___
> 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: Datagrid column of data with trailing spaces

2014-07-14 Thread Peter Haworth
Yes indeed Skip, regex is the way to go :-)

matchText(theColumn,"^(.*?)\s*$",tOutput)  should put the text minus
trailing spaces into the tOutput variable.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 


On Mon, Jul 14, 2014 at 1:56 PM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> Good afternoon,
>
> I have a datagrid and column 1 has trailing spaces in the data items that I
> need to get rid of.  The number of trailing spaces is never
> consistent.  Once again, I think regex will be my friend / worst enemy :)
>
> Suggestions on how to do this effectively?
>
> Thanks in advance for your input,
>
> SKIP
> ___
> 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: Datagrid column of data with trailing spaces

2014-07-14 Thread Magicgate Software - Skip Kimpel
Phil,

That did it!  I had already started to test the previous code you sent and
it wasn't working as expected. Your modified code works perfectly.

Thank you!

SKIP


On Mon, Jul 14, 2014 at 5:30 PM, Phil Davis  wrote:

> Oops. I should read your problem description better before I try to solve
> it.
>
> put the dgText of grp "dgTryAgain" into tText
> split tText by column
> repeat for each line tLine in tText[1]
> put word 1 to -1 of tLine & CR after tNewCol
> end repeat
> delete last char of tNewCol
> put tNewCol into tText[1]
> combine tText by column
> set the dgText of grp "dgTryAgain" to tText
>
> That should do it.
> Phil
>
>
>
> On 7/14/14, 2:21 PM, Phil Davis wrote:
>
>> put the dgText of grp "dgGrid" into tText
>> repeat for each line tLine in tText
>> put word 1 to -1 of tLine & CR after tNewText
>> end repeat
>> delete last char of tNewText
>> set the dgText of grp "dgGrid" to tNewText
>>
>> :-)
>> Phil Davis
>>
>>
>> On 7/14/14, 1:56 PM, Magicgate Software - Skip Kimpel wrote:
>>
>>> Good afternoon,
>>>
>>> I have a datagrid and column 1 has trailing spaces in the data items
>>> that I
>>> need to get rid of.  The number of trailing spaces is never
>>> consistent.  Once again, I think regex will be my friend / worst enemy :)
>>>
>>> Suggestions on how to do this effectively?
>>>
>>> Thanks in advance for your input,
>>>
>>> SKIP
>>> ___
>>> 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
>>>
>>>
>>
> --
> Phil Davis
>
>
> ___
> 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: [OT] SWIFT

2014-07-14 Thread Erik Beugelaar
I always get tired of this kind of announcements concering 'new halleluja" 
program languages... the only real language ever born was C and to be more 
specific: plain C. Even C++ with only new so called OO (just another notation 
of writing seperation of data and methods just as Swift now with another 
syntax) was never invented without C... The rest is history. One exception I 
want to make is for LISP. Mother of all 'human like writing' of software 
development tools.

 Richmond  wrote:

>On 14/07/14 23:45, stephen barncard wrote:
>> Apple is touting this like the second coming
>>
>> but... haven't we been doing this for a while in Revolution/RunRev/Livecode
>> ?
>>
>> typeless
>> just in time compiling
>> prefab blocks
>> easier than Obj C
>> VERY FAST
>> " it lets you write code on one side of your computer screen and see the
>> results appear on the other side. In other words, you can watch your
>> program run as you write it."
>>
>> wow. But it might not be cross platform.
>>
>>
>
>‘People will jump to this new language because it’s so much easier to 
>code in. They have to use either Objective-C or Swift, and most people 
>will go for Swift.’
>
>This is, of course, a silly trick: "either Objective-C or Swift"; let's 
>quietly ignore Livecode, Supercard
>and a whole slew of other languages:
>
>There are NOT only 2 object oriented/based computer languages.
>
>What a lot of hype based on a bit of false logic!
>
>"it's so much easier to code in." easier than WHAT? Bl**dy silly; no 
>point of comparison.
>
>‘A lot of people were really put off by Objective-C and its unusual 
>syntax. Swift, with its more regular syntax, standard syntax, can really 
>help with getting those people interested.’
>
>"9 out of 10 housewives surveyed wash their husbands underpants with 
>new, whiter, Swift."
>
>These statements have absolutely no objective value whatsoever; only of 
>any use if they can
>reel in the suckers who cannot tell valid statistics from cobblers.
>
>---
>
>Swift may be jolly good, and so on; but that article stinks of all the 
>cheap journalistic tricks in the book.
>
>
>
>"Coders still need good reasons to make the switch from Objective-C to 
>Swift."
>
>Really? What about the thousands, millions of coders who either have 
>never used Objective-C,
>or have already 'switched' to another programming language?
>
>-
>
>Surely the sensible way to assess Swift is NOT to read silly articles, 
>but to download the language and
>give it a try:
>
>https://developer.apple.com/swift/
>
>There goes next weekend!
>
>Richmond.
>
>___
>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: Datagrid column of data with trailing spaces

2014-07-14 Thread Phil Davis
Oops. I should read your problem description better before I try to 
solve it.


put the dgText of grp "dgTryAgain" into tText
split tText by column
repeat for each line tLine in tText[1]
put word 1 to -1 of tLine & CR after tNewCol
end repeat
delete last char of tNewCol
put tNewCol into tText[1]
combine tText by column
set the dgText of grp "dgTryAgain" to tText

That should do it.
Phil


On 7/14/14, 2:21 PM, Phil Davis wrote:

put the dgText of grp "dgGrid" into tText
repeat for each line tLine in tText
put word 1 to -1 of tLine & CR after tNewText
end repeat
delete last char of tNewText
set the dgText of grp "dgGrid" to tNewText

:-)
Phil Davis


On 7/14/14, 1:56 PM, Magicgate Software - Skip Kimpel wrote:

Good afternoon,

I have a datagrid and column 1 has trailing spaces in the data items 
that I

need to get rid of.  The number of trailing spaces is never
consistent.  Once again, I think regex will be my friend / worst 
enemy :)


Suggestions on how to do this effectively?

Thanks in advance for your input,

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





--
Phil Davis


___
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: RLE images

2014-07-14 Thread J. Landman Gay

On 7/14/2014, 4:06 PM, Richmond wrote:

On 14/07/14 23:42, J. Landman Gay wrote:

It used to be that any image imported into a stack, regardless of the
original format, was converted to RLE. Is that still the case, or are
they now saved as the original jpg, png, etc. ?



Well?

If there is a way to tell what format an embedded image in a stack is in
one could work this out.


I only need to know if the conversion is still happening. My client is 
going through hoops converting all their images to jpg to save space in 
the stack. If everything is being converted to RLE anyway then it 
doesn't matter what they send me, it's all ending up the same way 
internally, so they don't need to bother.


But I think this changed a while ago, and if so, then we need to import 
jpgs. But I can't remember.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: RLE images

2014-07-14 Thread Richmond

On 14/07/14 23:42, J. Landman Gay wrote:
It used to be that any image imported into a stack, regardless of the 
original format, was converted to RLE. Is that still the case, or are 
they now saved as the original jpg, png, etc. ?



http://lists.runrev.com/pipermail/use-livecode/2003-June/017402.html

part of which runs:

"Open the paint tools in RR and use the eraser to click each image, 
then, immediately click undo: this converts all images into internal 
bitmap format. However this means that the files grow to about twice 
their original size."


So . . .  presumably if that still goes on the way to check is:

find out an imported image's size,

do the 'thing' with the eraser,

find out the imported image's size again:

if it has doubled then it is probably now RLE.

However; the conversion to RLE format was NOT automatic, and only 
necessary for display on Macintosh systems; presumably Os 9, 10.1, 10.2 
and 10.3.


At the moment imported images seem to display on Mac OS systems (10.5, 
10.5, 10.7, et al)

without any eveidence of internal conversion.

Richmond.

___
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: Datagrid column of data with trailing spaces

2014-07-14 Thread Phil Davis

put the dgText of grp "dgGrid" into tText
repeat for each line tLine in tText
put word 1 to -1 of tLine & CR after tNewText
end repeat
delete last char of tNewText
set the dgText of grp "dgGrid" to tNewText

:-)
Phil Davis


On 7/14/14, 1:56 PM, Magicgate Software - Skip Kimpel wrote:

Good afternoon,

I have a datagrid and column 1 has trailing spaces in the data items that I
need to get rid of.  The number of trailing spaces is never
consistent.  Once again, I think regex will be my friend / worst enemy :)

Suggestions on how to do this effectively?

Thanks in advance for your input,

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



--
Phil Davis


___
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: Datagrid column of data with trailing spaces

2014-07-14 Thread J. Landman Gay

On 7/14/2014, 3:56 PM, Magicgate Software - Skip Kimpel wrote:

Good afternoon,

I have a datagrid and column 1 has trailing spaces in the data items that I
need to get rid of.  The number of trailing spaces is never
consistent.  Once again, I think regex will be my friend / worst enemy :)

Suggestions on how to do this effectively?


No regex needed:

 put word 1 to -1 of line x into...

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: RLE images

2014-07-14 Thread Richmond

On 14/07/14 23:42, J. Landman Gay wrote:
It used to be that any image imported into a stack, regardless of the 
original format, was converted to RLE. Is that still the case, or are 
they now saved as the original jpg, png, etc. ?




Whoops: it's 2006 all over again:

http://lists.runrev.com/pipermail/use-livecode/2006-October/088594.html

Richmond.

___
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: RLE images

2014-07-14 Thread Richmond

On 14/07/14 23:42, J. Landman Gay wrote:
It used to be that any image imported into a stack, regardless of the 
original format, was converted to RLE. Is that still the case, or are 
they now saved as the original jpg, png, etc. ?




Well?

If there is a way to tell what format an embedded image in a stack is in 
one could work this out.


Yup: I know that does not answer your question, and is pretty darn 
circular; but . . .


I remember posting a question about this in about 2002 (!!!) as I 
was then working on a
commercial project in Scotland for teaching High School kids a sort of 
dumbed-down Music
theory and history (the one who was the dumbest was me as the company 
didn't pay me any more
than 10% of what I had been promised). I remember that although I was 
converting
all my images into GIFs they were bloating when imported into 
Livecode/RR 2.0.1; and that was
explained to me on the Use-List because of the conversion into an 
internal format.


If RLE is what I think it is (Run-length encoding) then it is an 
antiquated Windows 3-ish sort of

bitmap which has gone the way of the dinosaurs everywhere else.

Richmond.

___
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: [OT] SWIFT

2014-07-14 Thread Richmond

On 14/07/14 23:45, stephen barncard wrote:

Apple is touting this like the second coming

but... haven't we been doing this for a while in Revolution/RunRev/Livecode
?

typeless
just in time compiling
prefab blocks
easier than Obj C
VERY FAST
" it lets you write code on one side of your computer screen and see the
results appear on the other side. In other words, you can watch your
program run as you write it."

wow. But it might not be cross platform.




‘People will jump to this new language because it’s so much easier to 
code in. They have to use either Objective-C or Swift, and most people 
will go for Swift.’


This is, of course, a silly trick: "either Objective-C or Swift"; let's 
quietly ignore Livecode, Supercard

and a whole slew of other languages:

There are NOT only 2 object oriented/based computer languages.

What a lot of hype based on a bit of false logic!

"it's so much easier to code in." easier than WHAT? Bl**dy silly; no 
point of comparison.


‘A lot of people were really put off by Objective-C and its unusual 
syntax. Swift, with its more regular syntax, standard syntax, can really 
help with getting those people interested.’


"9 out of 10 housewives surveyed wash their husbands underpants with 
new, whiter, Swift."


These statements have absolutely no objective value whatsoever; only of 
any use if they can

reel in the suckers who cannot tell valid statistics from cobblers.

---

Swift may be jolly good, and so on; but that article stinks of all the 
cheap journalistic tricks in the book.




"Coders still need good reasons to make the switch from Objective-C to 
Swift."


Really? What about the thousands, millions of coders who either have 
never used Objective-C,

or have already 'switched' to another programming language?

-

Surely the sensible way to assess Swift is NOT to read silly articles, 
but to download the language and

give it a try:

https://developer.apple.com/swift/

There goes next weekend!

Richmond.

___
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: [OT] SWIFT

2014-07-14 Thread Jerry Jensen
I've been looking at Swift. Its very unlike LC. Its syntax is huge, very 
powerful and feature-ridden.
Typeless: NOT. Its very strongly typed. Its smart about inferring types, but 
far from typeless.
Very Fast: probably so. LC is NOT fast at executing, except compared to 
Hypercard. LC IS faster at development.
Cross platform: NOT.

.Jerry

On Jul 14, 2014, at 1:45 PM, stephen barncard  
wrote:

> Apple is touting this like the second coming
> 
> but... haven't we been doing this for a while in Revolution/RunRev/Livecode
> ?
> 
> typeless
> just in time compiling
> prefab blocks
> easier than Obj C
> VERY FAST
> " it lets you write code on one side of your computer screen and see the
> results appear on the other side. In other words, you can watch your
> program run as you write it."
> 
> wow. But it might not be cross platform.
> 
> 
> 
> http://www.wired.com/2014/07/apple-swift/?mbid=social_fb
> *--*
> *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*



___
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


Datagrid column of data with trailing spaces

2014-07-14 Thread Magicgate Software - Skip Kimpel
Good afternoon,

I have a datagrid and column 1 has trailing spaces in the data items that I
need to get rid of.  The number of trailing spaces is never
consistent.  Once again, I think regex will be my friend / worst enemy :)

Suggestions on how to do this effectively?

Thanks in advance for your input,

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


[OT] SWIFT

2014-07-14 Thread stephen barncard
Apple is touting this like the second coming

but... haven't we been doing this for a while in Revolution/RunRev/Livecode
?

typeless
just in time compiling
prefab blocks
easier than Obj C
VERY FAST
" it lets you write code on one side of your computer screen and see the
results appear on the other side. In other words, you can watch your
program run as you write it."

wow. But it might not be cross platform.



http://www.wired.com/2014/07/apple-swift/?mbid=social_fb
*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
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


RLE images

2014-07-14 Thread J. Landman Gay
It used to be that any image imported into a stack, regardless of the 
original format, was converted to RLE. Is that still the case, or are 
they now saved as the original jpg, png, etc. ?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: RevOnline & User Comments in the Dictionary

2014-07-14 Thread Charles E Buchwald
Thanks for the update, Richard.

On 14 Jul 2014, at 11:44 AM, Richard Gaskin  wrote:

> Charles E Buchwald wrote:
> 
> > I know this is just one more complaint about how broken RevOnline
> > is... But it would be _really_ nice if it worked again.
> 
> There's a project in the IDE Contributors section of the forum for improving 
> RevOnline:
> 
> 
> One of the key elements there requires work from the core dev team at RunRev, 
> the backend system to handle registrations and other aspects of account 
> management.
> 
> Those apparently got disconnected during a server migration, but as I noted 
> in that forum on the 9th I've spoken with Kevin and Ben about this during our 
> Community Management meetings and they have someone actively working on that 
> now.
> 
> Hopefully we'll see that account management system restored soon, and with 
> that bottleneck out of the way the other downstream aspects should become 
> significantly improved.
> 
> --
> Richard Gaskin
> LiveCode Community Manager
> rich...@livecode.org

___
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: RevOnline & User Comments in the Dictionary

2014-07-14 Thread Richard Gaskin

Charles E Buchwald wrote:

> I know this is just one more complaint about how broken RevOnline
> is... But it would be _really_ nice if it worked again.

There's a project in the IDE Contributors section of the forum for 
improving RevOnline:



One of the key elements there requires work from the core dev team at 
RunRev, the backend system to handle registrations and other aspects of 
account management.


Those apparently got disconnected during a server migration, but as I 
noted in that forum on the 9th I've spoken with Kevin and Ben about this 
during our Community Management meetings and they have someone actively 
working on that now.


Hopefully we'll see that account management system restored soon, and 
with that bottleneck out of the way the other downstream aspects should 
become significantly improved.


--
 Richard Gaskin
 LiveCode Community Manager
 rich...@livecode.org


___
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


RevOnline & User Comments in the Dictionary

2014-07-14 Thread Charles E Buchwald
I know this is just one more complaint about how broken RevOnline is... But it 
would be _really_ nice if it worked again.

I just spent 45 minutes figuring out that when you use the revZip external, you 
sometimes have to enclose your variable names in quotes. As usual I searched 
the list archives, the forum and Google. As soon as I posted a question in 
StackOverflow I found the answer in an old forum post.

BUT, I'd love to add a quick comment in the dictionary entry for 
revZipAddItemWithData, and of course I can't log in to RevOnline, and that 
prohibits me from adding such a note. A note like that would have saved me an 
hour of time at least, maybe more. The dictionary is my main reference, so 
comments and corrections there are a big deal for the way I work. I can't be 
the only one.

OK, done with my whining

--
Charles E. Buchwald
CEO/Director General
Museografica Digital
http://digital.museografica.com

LC Developer Tools: http://buchwald.ca/developer-tools/

Email Notice: http://wp.me/P3aT4d-33

___
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: adding a concatenated field in an SQL query breaks LIKE

2014-07-14 Thread Peter Haworth
Another thought on this.  Checking for your string in a concatenated string
will yield false positives if some of the characters in your search string
occur at the end of one of the concatenated columns and the rest occur at
the start of the next concatenated column. You might be better off checking
each column individually.

Pete
lcSQL Software
On Jul 13, 2014 12:05 PM, "Dr. Hawkins"  wrote:

> On Sun, Jul 13, 2014 at 10:00 AM, Peter Haworth  wrote:
>
> > Still confused though.  There is no "$" wildcard available for the LIKE
> > operator, only "%" and "_"
> >
>
>
> That came from typing rather than pasting that line :)  The code that works
> has a %
>
>
>
> > One other possibility.  It seems the LIKE operator has problems with
> > non-ASCII characters - any chance asset includes some, perhaps accented
> > characters?
> >
>
> That *shouldn't* be possible.  And if so, I need a filter to prevent that
> from happening . . .
>
> However, given that the match works when breaking of the asset column to an
> OR, I doubt that reason, as it should bite there, too.  (Hmm, or should
> it?  maybe not.)
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> ___
> 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: OT: Opening stack from Dropbox--Now Fun with ellipses

2014-07-14 Thread Jim Hurley
Hi Scott,

Wonderful! Thanks. You are a fountain of knowledge.
I wonder why Dropbox differentiates stacks in this way.

But it certainly makes for a convenient way to share Livecode stacks.

I thought of Dropbox when the issue of drawing ellipses arose recently. (Thanks 
for straightening me out on the reason, Jacque.)

I scanned my files looking for ellipses and came across a stack I had forgotten 
about--and I still have no recollection of why I did it. The ravages of age.
At this point  I guess it could be classified as Fun With Ellipses. No a lot of 
fun, just a little. You have to have fun in the math.

Run this in your message box.

   go url "https://dl.dropbox.com/s/b6ytkgvdsqs55ec/EllipseInAbox.livecode"; 

Jim

> 
> Message: 17
> Date: Sun, 13 Jul 2014 13:00:03 -0700
> From: Scott Rossi 
> To: How to use LiveCode 
> Subject: Re: OT: Opening stack from Dropbox
> Message-ID: <9ca5f8c5-389b-4c47-9bbb-23493e700...@tactilemedia.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Try replacing the "www" of the shared link with "dl".
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
>> On Jul 13, 2014, at 12:32 PM, Jim Hurley  wrote:
>> 
>> Is it possible to do this in the message box:
>> 
>> go url "xxx"
>> 
>> where "xxx" is the shared link created in Dropbox using a control click  on 
>> the file.
>> 
>> And then have the stack open in Livecode?
>> 
>> I continually get the message: "No such card"
>> 
>> Thanks,
>> 
>> Jim


___
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: Pending messages

2014-07-14 Thread Richmond


On 07/14/2014 12:52 PM, John Craig wrote:
Just an option.  Looking at Richmond's example, it may be desirable to 
always finish with the button visible and the KNT field updated - ony 
Richmond knows for sure!


:D


Yes, of course. The button has to be visible.

Richmond.




On 14/07/2014 10:43, Mark Schonewille wrote:
Yes, I thought of that, John, but if you do that, the script may run 
for another 20 ticks after the Cancel button has been clicked on.


--
Best regards,

Mark Schonewille

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

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/14/2014 11:34, John Craig wrote:

Using Mark's example, another possible option is make the custom
property a condition for the repeat;

repeat until KK = 25 or the cClicked of btn "Cancel" is true
  set the vis of btn "B" to false
  wait 20 ticks with messages
  set the vis of btn "B" to true
  wait 20 ticks with messages
  put KK into fld "KNT"
  add 1 to KK
end repeat




___
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: Pending messages

2014-07-14 Thread John Craig
Just an option.  Looking at Richmond's example, it may be desirable to 
always finish with the button visible and the KNT field updated - ony 
Richmond knows for sure!


:D


On 14/07/2014 10:43, Mark Schonewille wrote:
Yes, I thought of that, John, but if you do that, the script may run 
for another 20 ticks after the Cancel button has been clicked on.


--
Best regards,

Mark Schonewille

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

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/14/2014 11:34, John Craig wrote:

Using Mark's example, another possible option is make the custom
property a condition for the repeat;

repeat until KK = 25 or the cClicked of btn "Cancel" is true
  set the vis of btn "B" to false
  wait 20 ticks with messages
  set the vis of btn "B" to true
  wait 20 ticks with messages
  put KK into fld "KNT"
  add 1 to KK
end repeat




___
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: Pending messages

2014-07-14 Thread Mark Schonewille
Yes, I thought of that, John, but if you do that, the script may run for 
another 20 ticks after the Cancel button has been clicked on.


--
Best regards,

Mark Schonewille

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

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/14/2014 11:34, John Craig wrote:

Using Mark's example, another possible option is make the custom
property a condition for the repeat;

repeat until KK = 25 or the cClicked of btn "Cancel" is true
  set the vis of btn "B" to false
  wait 20 ticks with messages
  set the vis of btn "B" to true
  wait 20 ticks with messages
  put KK into fld "KNT"
  add 1 to KK
end repeat




___
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: Pending messages

2014-07-14 Thread John Craig
Using Mark's example, another possible option is make the custom 
property a condition for the repeat;


repeat until KK = 25 or the cClicked of btn "Cancel" is true
 set the vis of btn "B" to false
 wait 20 ticks with messages
 set the vis of btn "B" to true
 wait 20 ticks with messages
 put KK into fld "KNT"
 add 1 to KK
end repeat


On 14/07/2014 10:01, Mark Schonewille wrote:

repeat until KK = 25
 if the cClicked of btn "Cancel" is true then exit repeat
 set the vis of btn "B" to false
 wait 20 ticks with messages
 if the cClicked of btn "Cancel" is true then exit repeat
 set the vis of btn "B" to true
 wait 20 ticks with messages
 if the cClicked of btn "Cancel" is true then exit repeat
 put KK into fld "KNT"
 add 1 to KK
   end repeat 



___
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: Pending messages

2014-07-14 Thread Mark Schonewille

Hi Richmond,

Use a property.

// btn B
on mouseUp
   put 1 into KK
   set the cCLicked of btn "Cancel" to false
   repeat until KK = 25
 if the cClicked of btn "Cancel" is true then exit repeat
 set the vis of btn "B" to false
 wait 20 ticks with messages
 if the cClicked of btn "Cancel" is true then exit repeat
 set the vis of btn "B" to true
 wait 20 ticks with messages
 if the cClicked of btn "Cancel" is true then exit repeat
 put KK into fld "KNT"
 add 1 to KK
   end repeat
end mouseUp

// btn Cancel
on mouseUp
  set the cClicked of me to true
end mouseUp

If button Cancel is a checkbox, you could also use the hilite instead of 
the cClicked of the button.


I don't know at which point you want to exit the repeat loop, so I put 
the exit command in all relevant places.


--
Best regards,

Mark Schonewille

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

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 7/14/2014 10:05, Richmond wrote:

So . . . here I am with a stack containing 2 buttons: 'B' and 'cancel',

and a field 'KNT':

Btn 'B' contains the script:

on mouseUp
put 1 into KK
repeat until KK = 25
set the vis of btn "B" to false
wait 20 ticks with messages
set the vis of btn "B" to true
wait 20 ticks with messages
put KK into fld "KNT"
add 1 to KK
end repeat
end mouseUp

I want to stop the action started by btn "B" using a script
in btn "cancel" but cannot work out how to do that.

Richmond.

___
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


Pending messages

2014-07-14 Thread Richmond

So . . . here I am with a stack containing 2 buttons: 'B' and 'cancel',

and a field 'KNT':

Btn 'B' contains the script:

on mouseUp
   put 1 into KK
   repeat until KK = 25
   set the vis of btn "B" to false
   wait 20 ticks with messages
   set the vis of btn "B" to true
   wait 20 ticks with messages
   put KK into fld "KNT"
   add 1 to KK
   end repeat
end mouseUp

I want to stop the action started by btn "B" using a script
in btn "cancel" but cannot work out how to do that.

Richmond.

___
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