Re: Simulate key pressed (arrow key)

2012-08-15 Thread Roger Eller
You need a rawKeyDown handler to determine what keycodes are sent by the
arrow keys.  I put this in the card script, then pressed the up arrow.

on rawKeyDown theKeyNumber
put theKeyNumber
pass rawKeyDown
end rawKeyDown

It returned 65362.  Then I made a button containing:

on mouseUp
rawKeyDown 65362
end mouseUp

You will need to handle what happens in the rawKeyDown script if
theKeyNumber is 65362, etc.

~Roger


On Wed, Aug 15, 2012 at 12:49 AM, Magicgate Software - Skip Kimpel <
s...@magicgate.com> wrote:

> How do I simulate a key pressed... in particular, an arrow key?
>
> 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: word counts - what is going on?

2012-08-15 Thread Michael Kann
Jim,

Sounds like a good project. If you haven't discovered it yourself I'll just 
mention one of my alltime favorite scripts. It outputs a frequency list of 
words in a text file. Something like:

on mouseUp

repeat for each word w in fileContent
add 1 to wordCount[w]
end repeat

put keys(wordCount) into keyWords
sort keyWords

repeat for each line l in keyWords
put l & tab & wordCount[l] & return after displayResult
end repeat

put displayResult into field "result"

end mouseUp

I think it came from Richard Gaskin, or perhaps the Almighty Himself (Scott 
Raney).

Good luck, 
Mike

--- On Tue, 8/14/12, James Hale  wrote:

From: James Hale 
Subject: Re: word counts - what is going on?
To: use-livecode@lists.runrev.com
Date: Tuesday, August 14, 2012, 10:39 PM

Well,

lots of suggestions and attempts at humour. Nice.

The problem with using the word chunk boils down to not being able to get 
quoted text seen as multiple words as in selecting a word within the quoted 
block using the word chunk command to say hilite it.
Certainly I could replace the quotes with curly quotes etc but as the source 
text is open (i.e. not within my control) I have no idea if that would cause 
some unforeseen problem with the text presentation itself.

As mentioned I decided to process the text by character and fully control word 
boundaries myself. Doing this resulted in the following timings.

0.022096+7.497033 secs for 488872 words

The down side being that I actually ended up with some 500326 'words' in my 
array.
The extra words being the components of quoted strings as well as a number of 
dotted strings being broken up (e.g. web addresses etc)
The upshot being the time penalty was only about 5 secs extra.
A good result all things considered. (this process only needs take place once.)
The script provides an array entry with the word itself, its line number within 
the text, the character position from the start of the text, the character 
position from the start of the line as well as the length of the word itself.

On 15/08/2012, at 2:37 AM, Michael Kann  wrote:

> Can you give us the skinny on what you are trying to do? What do you want 
> your output to look like?
> Mike

The purpose being this is an application that will read an ebook (epub 
currently), display it, allow searching and annotations (with hierarchical 
tagging) for purposes of studying texts.

This current issue was concerned with enabling boolean and proximity searches 
on the text.

Boolean searches can be done with straight Livecode scripting without much 
trouble although once there are 3 or 4 terms the search can slow down a bit. 
However apart from speed issues I wanted to provide a display of the number of 
hits for each term as well as the number of hits for the boolean combination as 
the terms are entered into the search block.
for example:

Search Term       Hits          Hits Boolean
        "text"              45          
                                                     27
       "book"           123          
 
So this tells me there were 45 hits for "text", 123 hits for "book" and 27 hits 
where "text" and "book" appear within the same paragraph (line).
I am thinking the best way to do this was to use SQL to do joins and counts 
which I am assuming should be fairly quick (I could be wrong here but I hope 
not.)
The character positions provide both the proximity detail as well as easily 
showing the hits in context, for example:

     …the text was later supplied in book form to anyone th…..

I also realised that the FT module in sqlite could do all this but I couldn't 
guarantee that this would be available as not all installations of sqlite have 
this module compiled and I didn't want to go down the road of compiling and 
supplying it myself. My app is initially for Mac but will also be compiled for 
Windows once I get a working beta. I also plan to provide input for other text 
forms such as .txt, .html, .rtf and perhaps markdown, but early days yet.

Thanks again to everyone who has made suggestions.

James

ja...@thehales.id.au

Tel: +61 3 9386 2516    
Fax: +61 3 9386 1387




___
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

which Externals show up in the externalPackages?

2012-08-15 Thread Tiemo Hollmann TB
Hi,

Working with LC 4.6.4 on W7 and XP I am using three non rev externals. I put
them into the My LiveCode folder on C:\Users\myUser\Documents\My
LiveCode\Externals, and edited the externals.txt within the folder and
restarted LC. When testing my program in the IDE all three Externals seem to
work, BUT when asking for the externalPackages of stack "myMainStack" it is
empty.

After copying all three externals into the Runrev program\externals folder
at C:\Program Files\RunRev\LiveCode 4.6.4\Externals one of the three
externals shows up in the externalPackages.

And creating a runtime, selecting all three of them in the standalone
application settings, copying all three of them into the externals folder of
my runtime environment, again only one of them shows up in the
externalPackages.

Why doesn't any of them shows up, when using only the My LiveCode\Externals
folder and why does only one of them shows up on the other way?

Thanks for any explanation

Tiemo

 

 

___
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: which Externals show up in the externalPackages?

2012-08-15 Thread Mark Schonewille
Tiemo,

Try: put the externalPackages of stack "Home"

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.

On 15 aug 2012, at 15:21, Tiemo Hollmann TB wrote:

> Hi,
> 
> Working with LC 4.6.4 on W7 and XP I am using three non rev externals. I put
> them into the My LiveCode folder on C:\Users\myUser\Documents\My
> LiveCode\Externals, and edited the externals.txt within the folder and
> restarted LC. When testing my program in the IDE all three Externals seem to
> work, BUT when asking for the externalPackages of stack "myMainStack" it is
> empty.
> 
> After copying all three externals into the Runrev program\externals folder
> at C:\Program Files\RunRev\LiveCode 4.6.4\Externals one of the three
> externals shows up in the externalPackages.
> 
> And creating a runtime, selecting all three of them in the standalone
> application settings, copying all three of them into the externals folder of
> my runtime environment, again only one of them shows up in the
> externalPackages.
> 
> Why doesn't any of them shows up, when using only the My LiveCode\Externals
> folder and why does only one of them shows up on the other way?
> 
> Thanks for any explanation
> 
> Tiemo


___
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


AW: which Externals show up in the externalPackages?

2012-08-15 Thread Tiemo Hollmann TB
That looks much better! - I will go on testing
Tiemo

> -Ursprüngliche Nachricht-
> Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
> boun...@lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Mittwoch, 15. August 2012 15:28
> An: How to use LiveCode
> Betreff: Re: which Externals show up in the externalPackages?
> 
> Tiemo,
> 
> Try: put the externalPackages of stack "Home"
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc.
> Contact me http://qery.us/du
> 
> The Economy-x-Talk office is closed from 30 August until 4 September 2012.
> 
> On 15 aug 2012, at 15:21, Tiemo Hollmann TB wrote:
> 
> > Hi,
> >
> > Working with LC 4.6.4 on W7 and XP I am using three non rev externals.
> > I put them into the My LiveCode folder on C:\Users\myUser\Documents\My
> > LiveCode\Externals, and edited the externals.txt within the folder and
> > restarted LC. When testing my program in the IDE all three Externals
> > seem to work, BUT when asking for the externalPackages of stack
> > "myMainStack" it is empty.
> >
> > After copying all three externals into the Runrev program\externals
> > folder at C:\Program Files\RunRev\LiveCode 4.6.4\Externals one of the
> > three externals shows up in the externalPackages.
> >
> > And creating a runtime, selecting all three of them in the standalone
> > application settings, copying all three of them into the externals
> > folder of my runtime environment, again only one of them shows up in
> > the externalPackages.
> >
> > Why doesn't any of them shows up, when using only the My
> > LiveCode\Externals folder and why does only one of them shows up on the
> other way?
> >
> > Thanks for any explanation
> >
> > Tiemo
> 
> 
> ___
> 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: [ANN] DatePicker for LiveCode

2012-08-15 Thread william humphrey
Nice. In addition to local language and copying what is in the system can
you also tell it to always use a particular format for the return of date?
Say the SQL date -mm-dd
___
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


AW: which Externals show up in the externalPackages?

2012-08-15 Thread Tiemo Hollmann TB
Sorry, only half the way.
In the IDE there is a stack home with all the externals, but the runtime
doesn't have a home and when asking for the externals in "myMainstack" in
the standalone there doesn't show up all externals.

Is it straight forward to differentiate between the development environment
and standalone where to ask for the externals?
And what does an external force to show up at all in the externalPackages of
"myMainstack"?
Tiemo

> -Ursprüngliche Nachricht-
> Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
> boun...@lists.runrev.com] Im Auftrag von Tiemo Hollmann TB
> Gesendet: Mittwoch, 15. August 2012 15:37
> An: 'How to use LiveCode'
> Betreff: AW: which Externals show up in the externalPackages?
> 
> That looks much better! - I will go on testing Tiemo
> 
> > -Ursprüngliche Nachricht-
> > Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-
> > boun...@lists.runrev.com] Im Auftrag von Mark Schonewille
> > Gesendet: Mittwoch, 15. August 2012 15:28
> > An: How to use LiveCode
> > Betreff: Re: which Externals show up in the externalPackages?
> >
> > Tiemo,
> >
> > Try: put the externalPackages of stack "Home"
> >
> > --
> > Best regards,
> >
> > Mark Schonewille
> >
> > Economy-x-Talk Consulting and Software Engineering
> > Homepage: http://economy-x-talk.com
> > Twitter: http://twitter.com/xtalkprogrammer
> > KvK: 50277553
> >
> > Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc.
> > Contact me http://qery.us/du
> >
> > The Economy-x-Talk office is closed from 30 August until 4 September
> 2012.
> >
> > On 15 aug 2012, at 15:21, Tiemo Hollmann TB wrote:
> >
> > > Hi,
> > >
> > > Working with LC 4.6.4 on W7 and XP I am using three non rev externals.
> > > I put them into the My LiveCode folder on
> > > C:\Users\myUser\Documents\My LiveCode\Externals, and edited the
> > > externals.txt within the folder and restarted LC. When testing my
> > > program in the IDE all three Externals seem to work, BUT when asking
> > > for the externalPackages of stack "myMainStack" it is empty.
> > >
> > > After copying all three externals into the Runrev program\externals
> > > folder at C:\Program Files\RunRev\LiveCode 4.6.4\Externals one of
> > > the three externals shows up in the externalPackages.
> > >
> > > And creating a runtime, selecting all three of them in the
> > > standalone application settings, copying all three of them into the
> > > externals folder of my runtime environment, again only one of them
> > > shows up in the externalPackages.
> > >
> > > Why doesn't any of them shows up, when using only the My
> > > LiveCode\Externals folder and why does only one of them shows up on
> > > the
> > other way?
> > >
> > > Thanks for any explanation
> > >
> > > Tiemo
> >
> >
> > ___
> > 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: word counts - what is going on?

2012-08-15 Thread Richard Gaskin

Michael Kann wrote:


Sounds like a good project. If you haven't discovered it yourself I'll just 
mention one of my alltime favorite scripts. It outputs a frequency list of 
words in a text file. Something like:

on mouseUp
repeat for each word w in fileContent
add 1 to wordCount[w]
end repeat
put keys(wordCount) into keyWords
sort keyWords
repeat for each line l in keyWords
put l & tab & wordCount[l] & return after displayResult
end repeat
put displayResult into field "result"
end mouseUp

I think it came from Richard Gaskin, or perhaps the Almighty Himself (Scott 
Raney).


I picked it up from Dr. Raney.  It was included as one of the Sample 
Scripts in the original MetaCard Help.


LiveCode includes it too:  in the LiveCode Resource Center see the 
example titled "Listing all the Unique Words in a Piece of Text".


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: [ANN] DatePicker for LiveCode

2012-08-15 Thread Andrew Ctech
Yup. Several date formats are available and you can even set your own
custom formats. Really a lovely tool. Thanks Hugh!

On Wed, Aug 15, 2012 at 8:44 AM, william humphrey <
b...@bluewatermaritime.com> wrote:

> Nice. In addition to local language and copying what is in the system can
> you also tell it to always use a particular format for the return of date?
> Say the SQL date -mm-dd
> ___
> 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
>



-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
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: The Story of Steve Jobs - An Inspiration or a Cautionary Tale

2012-08-15 Thread Andrew Ctech
Thank you, Peter.

On Wed, Aug 15, 2012 at 12:07 AM, Peter M. Brigham  wrote:

> On Aug 14, 2012, at 2:28 PM, Bob Sneidar wrote:
>
> > I know. I feel like I am the cheated one because I work. But (and at the
> risk of inviting someone's ire) any politician who tries to fix this will
> find HIMSELF on welfare and out of a job pretty soon. Crazy, huh?
>
> There are other ways of looking at this issue, but I won't get into a
> substantive response. This is not the place for such discussions. I
> personally would prefer that members of this list refrain from political
> jabs.
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
>
>
> ___
> 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
>



-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
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: Word chunk includes punctuation

2012-08-15 Thread Jim Hurley
> 
> Message: 27
> Date: Tue, 14 Aug 2012 14:41:48 -0500
> From: "J. Landman Gay" 
> To: How to use LiveCode 
> Subject: Re: Word chunk includes punctuation
> Message-ID: <502aa9fc.3000...@hyperactivesw.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 8/14/12 12:47 AM, Scott Morrow wrote:
>> Mark,
>> not even a token effort?
>> 
>> --
>> Scott Morrow
>> 
>> On Aug 13, 2012, at 9:41 PM, Mark Wieder wrote:
>> 
>>> Jim-
>>> 
>>> Monday, August 13, 2012, 5:31:07 PM, you wrote:
>>> 
 So, how many words could a word chunk chunk, if a word chunk could chunk 
 words?
>>> 
>>> groan.
>>> 
> 
> All right. Jim, Scott, go sit in the corner with Colin. Mark can just 
> think about sitting in the corner.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 


Augh mom! We were just have'n fun.

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: Word chunk includes punctuation

2012-08-15 Thread Jim Hurley
I haven't really followed this issue, but that has never stopped me in the past.

Just diving in I tried:put the number of words in tText into msg box

No matter what I put into tText by way of quotes or tabs or punctuation, I 
always seem to get what I expect.

It would be nice if someone would post a line or two of text, the 
quintessential challenge, to demonstrate where the problems lie.

Jim Hurley
___
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: Word chunk includes punctuation

2012-08-15 Thread Peter M. Brigham
On Aug 15, 2012, at 7:23 AM, Jim Hurley wrote:

> Just diving in I tried:put the number of words in tText into msg box
> 
> No matter what I put into tText by way of quotes or tabs or punctuation, I 
> always seem to get what I expect.
> 
> It would be nice if someone would post a line or two of text, the 
> quintessential challenge, to demonstrate where the problems lie.

If I put the following into a field:
   How many "words are in this field?"
and then try
   put the number of words of fld "f"
I get
   3
That is not what *I* would expect. There was a discussion last year on this 
list of the pros and cons of maintaining the HC convention of regarding 
anything in quotes as a single word. I still don't think it makes sense. In my 
universe the answer is 7.

-- Peter

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


___
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: AW: which Externals show up in the externalPackages?

2012-08-15 Thread Mark Schonewille
Hi Tiemo,

In standalones, there is a stack "revExternalsLibrary" of your mainstack, which 
has all externals attached to it. AFAIK this only applies to the default 
externals. You need to attach customer externals to your own mainstack. No, I 
don't think this is straighforward.

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.

On 15 aug 2012, at 15:54, Tiemo Hollmann TB wrote:

> Sorry, only half the way.
> In the IDE there is a stack home with all the externals, but the runtime
> doesn't have a home and when asking for the externals in "myMainstack" in
> the standalone there doesn't show up all externals.
> 
> Is it straight forward to differentiate between the development environment
> and standalone where to ask for the externals?
> And what does an external force to show up at all in the externalPackages of
> "myMainstack"?
> Tiemo


___
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: HC 25 years old today

2012-08-15 Thread kee nethery
His name is Clarus. I have a button on my jean jacket with his picture that … 
can be rotated to the appropriate orientation.
Kee

On Aug 14, 2012, at 7:48 PM, J. Landman Gay  wrote:

> On 8/14/12 6:44 PM, Scott Rossi wrote:
>> For the folks that gotta have more cowbell, er, Hypercard:
>> 
>> http://www.youtube.com/watch?v=oTtQ0l0ukvQ
> 
> Remember the dogcow? Miss that critter.

___
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: Word chunk includes punctuation

2012-08-15 Thread Richard Gaskin

Peter M. Brigham wrote:
> If I put the following into a field:
>How many "words are in this field?"
> and then try
>put the number of words of fld "f"
> I get
>3
> That is not what *I* would expect. There was a discussion last year
> on this list of the pros and cons of maintaining the HC convention of
> regarding anything in quotes as a single word. I still don't think it
> makes sense. In my universe the answer is 7.

But your universe wasn't designed by Apple, and Apple's universe has a 
dent in it. ;)


There are more than a few oddities the HyperTalk designers implemented, 
and when the MetaCard engine was born in '92 it made good sense to 
support them.  20 years later the relevance of HT compatibility may be 
dismissible, but now that we have 20 years of 
MetaTalk/Transcript/RevTalk/LiveCode lying around, it wouldn't be 
realistic to expect that to change.


For myself, when I need an actual word count and run up against quotes, 
I just do this before getting the number of words:


   replace quote with space in tMyText

If LiveCode is lucky enough to be around in another 20 years we can 
expect that many more users to have shaken their heads in disbelief that 
this is necessary.


But most if not all languages have some gotchas which are accidents of 
its history, and LiveCode is no exception.


So as with any other language: we try something, it doesn't work as 
expected, we learn how to deal with it, add a line of code, and move on.


Maybe somewhere down the road we can see LiveCode2, an optional which 
could be activated with a flip of a global property to make for a more 
sensible set of syntax for the sanity of newcomers.


In the meantime we are where we are, and warts and all it's not a bad 
place to be.


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: AW: which Externals show up in the externalPackages?

2012-08-15 Thread Richard Gaskin

Mark Schonewille wrote:

> In standalones, there is a stack "revExternalsLibrary" of your
> mainstack, which has all externals attached to it. AFAIK this
> only applies to the default externals. You need to attach
> customer externals to your own mainstack. No, I don't think
> this is straighforward.

Agreed, esp. given the level of care that must be taken with loading 
your own externals (I was about to post a list of gripes with that, but 
it would be one of my longer posts and most of mine are already so long 
that no one reads them so I'll spare the bandwidth).


I believe this is another area SuperCard got right:  you import an 
external into your stack file (what that tool calls a "project" file), 
and that's it.  You never need to think about them again.  From that 
point forward they're immediately and always available to your scripts.


One simple move, zero lines of code.  Simplicity.  Nice.

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: HC 25 years old today

2012-08-15 Thread Colin Holgate
One of my pals while I was at Apple (he got me started on juggling) wrote a 
tech note about the dogcow:

http://www.macfreek.nl/humour/tn31.html



___
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: revxxx messages in plugins

2012-08-15 Thread Richard Gaskin

Peter Haworth wrote:


The problem is, I'm probably going to need a front script anyway because
plugins don't get revxxx messages for all the events I need to know about
(e.g., the creation/deletion of a control).  Not sure why the revxxx
messages are quite so selective.

I'm also running into issues with some of the revxxx messages. revNewTool
doesn't happen and revPreOpenStack happens not only when a stack is opened
but also when it is closed ( I have no idea why that would happen).


Frontscripts are fine.  In fact, I generally recommend them over 
anything provided by the IDE, because engine stuff is both more 
efficient and less subject to change.


There seems to be a design philosophy at play with some of the IDE 
decisions in which they want to make it as user-friendly as a 
conventional productivity app.  Noble as that goal may be, this is a 
development tool; it not only plays by very different rules given its 
radically different nature, but its audience is comprised entirely of 
people with above-average IQs (probably almost exclusively 120 and 
above), as is necessary for effective use of any programming language.


So rather than invent layer upon layer of sugary things to try to make 
life easier for programmers, spend the time instead on just teaching 
them to use the engine effectively.


Besides, such layers add their own complexity which not only introduces 
a greater likelihood of potential bugs, but are themselves things that 
must be learned and accommodated.  (Not to mention the time RunRev has 
to spend writing and maintaining them relative to a few lines in the docs).


Frontscripts are powerful, they are unlimited in number in the IDE, and 
while it's almost always a good idea to pass all messages a frontscript 
traps, that one rule is easy to learn.


Know the engine.
Trust the engine.
Use the engine.

:)

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
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: Word chunk includes punctuation

2012-08-15 Thread Peter M. Brigham

On Aug 15, 2012, at 8:24 AM, Richard Gaskin wrote:

> Peter M. Brigham wrote:
> > If I put the following into a field:
> >How many "words are in this field?"
> > and then try
> >put the number of words of fld "f"
> > I get
> >3
> > That is not what *I* would expect. There was a discussion last year
> > on this list of the pros and cons of maintaining the HC convention of
> > regarding anything in quotes as a single word. I still don't think it
> > makes sense. In my universe the answer is 7.
> 
> But your universe wasn't designed by Apple, and Apple's universe has a dent 
> in it. ;)
> 
> There are more than a few oddities the HyperTalk designers implemented, and 
> when the MetaCard engine was born in '92 it made good sense to support them.  
> 20 years later the relevance of HT compatibility may be dismissible, but now 
> that we have 20 years of MetaTalk/Transcript/RevTalk/LiveCode lying around, 
> it wouldn't be realistic to expect that to change.
> 
> For myself, when I need an actual word count and run up against quotes, I 
> just do this before getting the number of words:
> 
>   replace quote with space in tMyText
> 
> If LiveCode is lucky enough to be around in another 20 years we can expect 
> that many more users to have shaken their heads in disbelief that this is 
> necessary.
> 
> But most if not all languages have some gotchas which are accidents of its 
> history, and LiveCode is no exception.
> 
> So as with any other language: we try something, it doesn't work as expected, 
> we learn how to deal with it, add a line of code, and move on.
> 
> Maybe somewhere down the road we can see LiveCode2, an optional which could 
> be activated with a flip of a global property to make for a more sensible set 
> of syntax for the sanity of newcomers.
> 
> In the meantime we are where we are, and warts and all it's not a bad place 
> to be.

Oh, I agree with that wholeheartedly. In the scheme of things it's a minor 
complaint. My griping does not negate the fact that I love so much about LC 
overall. And it's possible to work around a lot of these gotchas given the 
versatility of the language. That's why God made utility libraries!

-- Peter

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


___
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: AW: which Externals show up in the externalPackages?

2012-08-15 Thread J. Landman Gay

On 8/15/12 10:29 AM, Richard Gaskin wrote:


I believe this is another area SuperCard got right:  you import an
external into your stack file (what that tool calls a "project" file),
and that's it.  You never need to think about them again.  From that
point forward they're immediately and always available to your scripts.

One simple move, zero lines of code.  Simplicity.  Nice.


One thing Apple did do right, HC did the same thing. One import, instant 
availability everywhere.


--
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: word counts - what is going on?

2012-08-15 Thread James Hale

On 15/08/2012, at 11:36 PM, Peter Haworth  wrote:

>  The sqlite library
> supplied with Livecode includes fts3 and fts4.

Really?
Well that gives me something to think about.
(ah the cobwebs are clearing and I seem to remember mention of this in a 
Livecode 4 point something release note.
Thanks for the reminder Peter.

J. Landman Gay  wrote:

> Some random thoughts:

Was doing something similar but this still can't get round the limitation of 
LC's word chunk definition, at least not with elegance. 
Although word chunks appear initially to be of use in this situation, I have 
come to think the character chunk is considerably more versatile.
This way I have total control over word definition and am tying it down to 
character position rather than word chunk definition.

Michael Kann  wrote:

> I'll just mention one of my alltime favorite scripts.


Yes it is a favourite of mine too. But again it is subject to my idea of a word 
and LC's not matching.


Being reminded of the enabling of the FTS3 and FTS4 modules in the supplied 
library I will indeed check it out.

Thanks again for all your help.

James

ja...@thehales.id.au

Tel: +61 3 9386 2516
Fax: +61 3 9386 1387





___
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: HC 25 years old today

2012-08-15 Thread Bob Sneidar
You can't have too much cowbell!


On Aug 14, 2012, at 4:44 PM, Scott Rossi wrote:

> For the folks that gotta have more cowbell, er, Hypercard:
> 
> http://www.youtube.com/watch?v=oTtQ0l0ukvQ
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> 
> ___
> 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: HC 25 years old today

2012-08-15 Thread Bob Sneidar
At lease the Macalope is still with us.

On Aug 14, 2012, at 7:48 PM, J. Landman Gay wrote:

> On 8/14/12 6:44 PM, Scott Rossi wrote:
>> For the folks that gotta have more cowbell, er, Hypercard:
>> 
>> http://www.youtube.com/watch?v=oTtQ0l0ukvQ
> 
> Remember the dogcow? Miss that critter.
> 
> -- 
> 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


___
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: revxxx messages in plugins

2012-08-15 Thread Peter Haworth
Good to hear.  I always get concerned that I might be going in the wrong
direction when I discover a new way of doing something that duplicates an
existing method.  I already have fornt scripts in place so will stick with
them.
Pete
lcSQL Software 



On Wed, Aug 15, 2012 at 8:59 AM, Richard Gaskin
wrote:

> Frontscripts are fine.  In fact, I generally recommend them over anything
> provided by the IDE, because engine stuff is both more efficient and less
> subject to change.
___
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: HC 25 years old today

2012-08-15 Thread Bob Sneidar
I love that things like this are still "out there" (in any sense you like) on 
the Internet. 

Bob


On Aug 15, 2012, at 8:36 AM, Colin Holgate wrote:

> One of my pals while I was at Apple (he got me started on juggling) wrote a 
> tech note about the dogcow:
> 
> http://www.macfreek.nl/humour/tn31.html
> 
> 
> 
> ___
> 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: AW: which Externals show up in the externalPackages?

2012-08-15 Thread Mark Schonewille
Jacque,

It depends on what you mean by "instant". I believe one still had to start 
using the stack containing the external resources if one wanted to call the 
external from another stack.

--
Best regards,

Mark Schonewille

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

Economy-x-Talk is looking for an amateur painter/cartoonist/poet etc. Contact 
me http://qery.us/du

The Economy-x-Talk office is closed from 30 August until 4 September 2012.

On 15 aug 2012, at 18:06, J. Landman Gay wrote:

> One thing Apple did do right, HC did the same thing. One import, instant 
> availability everywhere.


___
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: Word chunk includes punctuation

2012-08-15 Thread Bob Sneidar
I don't expect anything I author to actually work! And yet sometimes it does. I 
suppose it all balances out. ;-)

On Aug 15, 2012, at 7:33 AM, Peter M. Brigham wrote:

> If I put the following into a field:
>   How many "words are in this field?"
> and then try
>   put the number of words of fld "f"
> I get
>   3
> That is not what *I* would expect. There was a discussion last year on this 
> list of the pros and cons of maintaining the HC convention of regarding 
> anything in quotes as a single word. I still don't think it makes sense. In 
> my universe the answer is 7.
> 
> -- Peter


___
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: revxxx messages in plugins

2012-08-15 Thread Bob Sneidar
I've been told my IQ is probably as high as my age, so I guess I'm almost half 
smart! 

On Aug 15, 2012, at 8:59 AM, Richard Gaskin wrote:

> Noble as that goal may be, this is a development tool; it not only plays by 
> very different rules given its radically different nature, but its audience 
> is comprised entirely of people with above-average IQs (probably almost 
> exclusively 120 and above), as is necessary for effective use of any 
> programming language.


___
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: word counts - what is going on?

2012-08-15 Thread Peter Haworth
Here's a link to the FTS module description on the home page:

http://www.sqlite.org/fts3.html

An interesting stat in there is that to search over half a million
documents and return those that contained the word "linux" took 0.03
seconds.  Aside form the timing, the database searched was a record of all
emails sent and received by Enron employees!

Pete
lcSQL Software 



On Wed, Aug 15, 2012 at 9:17 AM, James Hale  wrote:

> Being reminded of the enabling of the FTS3 and FTS4 modules in the
> supplied library I will indeed check it out.
___
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: HC 25 years old today

2012-08-15 Thread stephen barncard
The wonderful dog-cow sound is available online as an aiff, along with the
other 8-bit favorites like hip, chi-toy and clink-clank:

http://www.macupdate.com/app/mac/19079/mac-os-classic-sound-pack/

all going into my sounds folder.


On Tue, Aug 14, 2012 at 7:56 PM, Jerry Jensen  wrote:

> On Aug 14, 2012, at 7:48 PM, J. Landman Gay wrote:
>
> > On 8/14/12 6:44 PM, Scott Rossi wrote:
> >> For the folks that gotta have more cowbell, er, Hypercard:
> >>
> >> http://www.youtube.com/watch?v=oTtQ0l0ukvQ
> >
> > Remember the dogcow? Miss that critter.
>
> Moof!
>
>
>
> ___
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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: HC 25 years old today

2012-08-15 Thread Bob Sneidar
Thanks for that. I really want to make a few of these work on my iPhone. 

Bob


On Aug 15, 2012, at 10:53 AM, stephen barncard wrote:

> The wonderful dog-cow sound is available online as an aiff, along with the
> other 8-bit favorites like hip, chi-toy and clink-clank:
> 
> http://www.macupdate.com/app/mac/19079/mac-os-classic-sound-pack/


___
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: HC 25 years old today

2012-08-15 Thread stephen barncard
m4a, low complexity AAC should work everywhere and sound better than mp3s

On Wed, Aug 15, 2012 at 11:05 AM, Bob Sneidar  wrote:

> Thanks for that. I really want to make a few of these work on my iPhone.
>
> Bob
>
>
> On Aug 15, 2012, at 10:53 AM, stephen barncard wrote:
>
> > The wonderful dog-cow sound is available online as an aiff, along with
> the
> > other 8-bit favorites like hip, chi-toy and clink-clank:
> >
> > http://www.macupdate.com/app/mac/19079/mac-os-classic-sound-pack/
>
>
> ___
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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: Serial Port Access

2012-08-15 Thread Bob Sneidar
Hi all. 

I noticed Sarah's stack has for parity, "None, Odd, Even". I am dealing with an 
old phone system that uses "space" but there is also "mark". What is the 
significance of this, and does parity even matter? I have the stack set to even 
now, and have had it set to none and I still seem to get the data just fine, 
but I want to make sure. 

Bob


On Aug 10, 2012, at 6:03 PM, stephen barncard wrote:

> Sarah's serial stack
> 
> go URL "http://www.troz.net/rev/stacks/SerialTest.rev";


___
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: Serial Port Access

2012-08-15 Thread stephen barncard
Serial ports are an inexact science, especially with imbedded systems. Just
jiggle the handle until it works and be glad when it does.  Probably the
designers of the phone system did away with parity checks and handshaking
because they had trouble implementing it and is not needed for control
applications and short runs. Handshaking makes speeds greater than 9600
baud possible

On Wed, Aug 15, 2012 at 11:20 AM, Bob Sneidar  wrote:

> Hi all.
>
> I noticed Sarah's stack has for parity, "None, Odd, Even". I am dealing
> with an old phone system that uses "space" but there is also "mark". What
> is the significance of this, and does parity even matter? I have the stack
> set to even now, and have had it set to none and I still seem to get the
> data just fine, but I want to make sure.
>
> Bob
>
>
> On Aug 10, 2012, at 6:03 PM, stephen barncard wrote:
>
> > Sarah's serial stack
> >
> > go URL "http://www.troz.net/rev/stacks/SerialTest.rev";
>
>
> ___
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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: Serial Port Access

2012-08-15 Thread stephen barncard
Serial ports are an inexact science, especially with imbedded systems. Just
jiggle the handle until it works and be happy when it does.  Probably the
designers of the phone system did away with parity checks and handshaking
because they had trouble implementing it and is not needed for control
applications and short runs. Handshaking makes speeds greater than 9600
baud possible

On Wed, Aug 15, 2012 at 11:20 AM, Bob Sneidar  wrote:

> Hi all.
>
> I noticed Sarah's stack has for parity, "None, Odd, Even". I am dealing
> with an old phone system that uses "space" but there is also "mark". What
> is the significance of this, and does parity even matter? I have the stack
> set to even now, and have had it set to none and I still seem to get the
> data just fine, but I want to make sure.
>
> Bob
>
>
> On Aug 10, 2012, at 6:03 PM, stephen barncard wrote:
>
> > Sarah's serial stack
> >
> > go URL "http://www.troz.net/rev/stacks/SerialTest.rev";
>
>
> ___
> 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
>



-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  
___
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: Serial Port Access

2012-08-15 Thread Jerry Jensen
Mark and space are the two possible levels of a single bit. Mark corresponds to 
a logical 1 and in RS-232 is a *negative* voltage. Space is a logical 0, a 
positive voltage. Parity is an extra bit tacked onto a word as rudimentary 
error checking. 7 bits even parity uses the extra bit to make the number of 
ones in the word be even. Likewise, odd parity sets the parity bit to make the 
number of ones in the word be odd. Most commonly these days is 8 bits, no 
parity. Note the ASCII is 7 bits, so the 8th bit, which might or might not be a 
parity bit, is often ignored.

There are a lot of Marks around here. Smart ones too! I'm usually one of the 
spaces. Think positive!

.Jerry

On Aug 15, 2012, at 11:20 AM, Bob Sneidar wrote:

> Hi all. 
> 
> I noticed Sarah's stack has for parity, "None, Odd, Even". I am dealing with 
> an old phone system that uses "space" but there is also "mark". What is the 
> significance of this, and does parity even matter? I have the stack set to 
> even now, and have had it set to none and I still seem to get the data just 
> fine, but I want to make sure. 
> 
> Bob
> 
> 
> On Aug 10, 2012, at 6:03 PM, stephen barncard wrote:
> 
>> Sarah's serial stack
>> 
>> go URL "http://www.troz.net/rev/stacks/SerialTest.rev";
> 
> 
> ___
> 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: Serial Port Access

2012-08-15 Thread Bob Sneidar
Thanks Stephen and Jerry, that helps. I just don't want to implement something 
and then find out I am getting bad data, or else incomplete data. 

Bob


On Aug 15, 2012, at 11:47 AM, Jerry Jensen wrote:

> Mark and space are the two possible levels of a single bit. Mark corresponds 
> to a logical 1 and in RS-232 is a *negative* voltage. Space is a logical 0, a 
> positive voltage. Parity is an extra bit tacked onto a word as rudimentary 
> error checking. 7 bits even parity uses the extra bit to make the number of 
> ones in the word be even. Likewise, odd parity sets the parity bit to make 
> the number of ones in the word be odd. Most commonly these days is 8 bits, no 
> parity. Note the ASCII is 7 bits, so the 8th bit, which might or might not be 
> a parity bit, is often ignored.
> 
> There are a lot of Marks around here. Smart ones too! I'm usually one of the 
> spaces. Think positive!
> 
> .Jerry
> 
> On Aug 15, 2012, at 11:20 AM, Bob Sneidar wrote:
> 
>> Hi all. 
>> 
>> I noticed Sarah's stack has for parity, "None, Odd, Even". I am dealing with 
>> an old phone system that uses "space" but there is also "mark". What is the 
>> significance of this, and does parity even matter? I have the stack set to 
>> even now, and have had it set to none and I still seem to get the data just 
>> fine, but I want to make sure. 
>> 
>> Bob
>> 
>> 
>> On Aug 10, 2012, at 6:03 PM, stephen barncard wrote:
>> 
>>> Sarah's serial stack
>>> 
>>> go URL "http://www.troz.net/rev/stacks/SerialTest.rev";
>> 
>> 
>> ___
>> 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: How to switch two popovers ?

2012-08-15 Thread Jérôme Rosat
Thomas,

Thank you for your answer. I studied several applications for iPad, such Things 
or Calendar. In Calendar, to add a new event, a popover appears to enter the 
title of the event. If you want to change the start and end time, you must 
point to the corresponding button. At that time, the "view" is pushed to the 
left with a new "view". Simultaneously the title of the new "view" appears. 
Briefly, this behavior is complex. And tools available in LiveCode to recreate 
this behavior seem not very suitable. This is why I was wondering if anyone had 
found a solution, because personally I have not enough skill to recreate this 
behavior.

Jerome

Le 15 août 2012 à 04:08, Thomas McGrath III <3mcgr...@comcast.net> a écrit :

> Jerome,
> 
> If it is a small amount of data I would use a group and hide and show it. If 
> it is much more than I would go the next card. There are actually two 
> different things going on. One is should this be done in a popover and if so 
> than it should follow standard popover behavior if not than should this be a 
> card or group that then has it's own popovers for the sub data with a back 
> button. I would study a few apps on the iPad and see which behavior works 
> best for the type of data you are wanting to display and then duplicate that 
> behavior in LC.
> 
> Just some thoughts,
> 
> Thomas J McGrath III
> 3mcgr...@comcast.net
> 
> Lazy River Software
> http://lazyriver.on-rev.com
> 
> 
> 
> 
> 
> On Aug 14, 2012, at 12:39 PM, Jérôme Rosat  wrote:
> 
>> Hi all,
>> 
>> I'm developing an application for iPad for my own use. For selecting data, I 
>> want to use a "popover" view and a second "popover" view for the sub data.
>> 
>> I imagine creating two groups, one for each popover.
>> 
>> What is the best practice to switch a "popover" view to another:
>> - Use two cards, each card containing a popover (group) ?
>> - Display the second group simultaneously hiding the first ?
>> - Move within a group, both groups from the right to the left ?
>> - Another solution ?
>> 
>> Thank you in advance for your suggestions.
>> 
>> Jerome
>> 
>> ___
>> 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: The Story of Steve Jobs - An Inspiration or a Cautionary Tale

2012-08-15 Thread Björnke von Gierke
> I personally would prefer that members of this list refrain from political 
> jabs.
> 
> -- Peter


You're my hero!


___
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


Stack file file type

2012-08-15 Thread Peter Haworth
I've been using RSTK as the file type filter for opening LC stack files but
some stack files are greyed out.  They are files created with older
versions of LC (4.5.2).  Was another file type used in older versions?  I
had a program (FileType) that used to give me this info but it no longer
runs as of Lion.

The code I'm using is:

*answer* file "Select stackfile to open" with *filter* "RSTK" titled "Open
Stack File"


Thanks,



Pete
lcSQL Software 
___
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: Stack file file type

2012-08-15 Thread J. Landman Gay

On 8/15/12 8:19 PM, Peter Haworth wrote:

I've been using RSTK as the file type filter for opening LC stack files but
some stack files are greyed out.  They are files created with older
versions of LC (4.5.2).  Was another file type used in older versions?  I
had a program (FileType) that used to give me this info but it no longer
runs as of Lion.

The code I'm using is:

*answer* file "Select stackfile to open" with *filter* "RSTK" titled "Open
Stack File"


That's always been the file type (except in MetaCard it was MSTK) but 
the files may have lost their file types entirely. Lion doesn't use file 
types.


You could try using "answer file with type" instead, which looks at both 
file types and extensions (and works on Windows too.) It's got its own 
entry in the dictionary.


--
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: How to switch two popovers ?

2012-08-15 Thread Thomas McGrath III
Jerome,

I just created a very crude example. It is just to prove that nested scrolling 
groups could be put into other scrolling groups and that the nested could be 
restrained to vertical scrolling and the main group could be restrained to 
horizontal scrolling. This works.

Here is the link: 
https://www.dropbox.com/s/ds1lpbhfctyvuji/NestedPopOver.livecode

Now to make this work for you I would put a UINavBar at the top inside of the 
main group to script scroll left to right and back again. Then I would further 
the nested scrolling group script to make scrolling work from within the text 
field as well as the back ground (try passing mousedown maybe). (check out the 
options field which does that on its own.) Then I would make a separate little 
popover arrow that set itself to the side of the main scrolling group and 
positioned itself where ever the main car is clicked.

I didn't want to do it all for you but rather just show you how it can be done.

HTHs

Thomas J McGrath III
3mcgr...@comcast.net

Lazy River Software
http://lazyriver.on-rev.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: Stack file file type

2012-08-15 Thread Peter Haworth
Thanks Jacque, didn;t know about the loss of file types in Lion - I wonder
why Apple did that?

Anyway, answer file with type "Livecode Stack|rev,livecode|RSTK" fixed it.

Pete
lcSQL Software 



On Wed, Aug 15, 2012 at 7:11 PM, J. Landman Gay wrote:

> Lion doesn't use file types.
>
> You could try using "answer file with type" instead, which looks at both
> file types and extensions (and works on Windows too.) It's got its own
> entry in the dictionary.
>
___
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 to switch two popovers ?

2012-08-15 Thread Thomas McGrath III
Jerome,

ALthough the popover part needs a lot of work esthetically I did put in the 
code to scroll the field left and right in the button at the top and I put in 
code in the fields to allow scrolling while mousedown and yet edit text while 
mouse up in them. 

I don't know what you plan on putting in the popover but this should be a great 
start for you. ALso, keep in mind this won't be easy to script iOS native text 
fields and or native controls because they would have to move with the 
scrolling of the group etc. 

Let me know if you expand upon this.

Thomas J McGrath III
3mcgr...@comcast.net

Lazy River Software
http://lazyriver.on-rev.com


On Aug 15, 2012, at 10:25 PM, Thomas McGrath III <3mcgr...@comcast.net> wrote:

> Jerome,
> 
> I just created a very crude example. It is just to prove that nested 
> scrolling groups could be put into other scrolling groups and that the nested 
> could be restrained to vertical scrolling and the main group could be 
> restrained to horizontal scrolling. This works.
> 
> Here is the link: 
> https://www.dropbox.com/s/ds1lpbhfctyvuji/NestedPopOver.livecode
> 
> Now to make this work for you I would put a UINavBar at the top inside of the 
> main group to script scroll left to right and back again. Then I would 
> further the nested scrolling group script to make scrolling work from within 
> the text field as well as the back ground (try passing mousedown maybe). 
> (check out the options field which does that on its own.) Then I would make a 
> separate little popover arrow that set itself to the side of the main 
> scrolling group and positioned itself where ever the main car is clicked.
> 
> I didn't want to do it all for you but rather just show you how it can be 
> done.
> 
> HTHs
> 
> Thomas J McGrath III
> 3mcgr...@comcast.net
> 
> Lazy River Software
> http://lazyriver.on-rev.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: The Story of Steve Jobs - An Inspiration or a Cautionary Tale

2012-08-15 Thread Chipp Walters
Oh, thank God for Bjorke and Pete. Congrats on your strong committment to
civility and thanks to you both we don't have to face any uncomfortable
comments.

I'd have hated to actually have to actually ignore a comment which I didn't
agree with. You guys both all in their place. Way to go! Both heros for
sure!


On Wednesday, August 15, 2012, Björnke von Gierke wrote:

> > I personally would prefer that members of this list refrain from
> political jabs.
> >
> > -- Peter
>
>
> You're my hero!
>
>
> ___
> 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
>


-- 
Chipp Walters
CEO, Altuit, Inc.
___
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: [ANN] DatePicker for LiveCode

2012-08-15 Thread FlexibleLearning
Certainly you can. In addition to the 7 built-in 'standard' formats, you can
define your own 'custom' date format as an arbitrary 8th format including
any literal text if you wish for all chosen dates. The built-in sql format
is -mm-dd.

www.FlexibleLearning.com/datepicker


Hugh Senior
FLCo


william humphrey wrote:

Nice. In addition to local language and copying what is in the system can
you also tell it to always use a particular format for the return of date?
Say the SQL date -mm-dd


___
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