Cryptograhy

2014-08-05 Thread JB
I was testing base64 and the Pack function
written by Richard Gaskin and after packing
and unpacking the data appears the same
but does not properly write to a file.

For instance I have a image that I read as a binary
and put the info in a field.  Then I base64Encode it
and put the date into a field.  I am able to take the
encoded data and use base64Decode which will
decode it to its original form and I am able to write
that data to a file and I have the original image.

When I use the Pack function it does the same thing
but adds a password if you want it and encrypts it.

After I unPack the date the date looks the same as
the original but when I write the date to a file I end
up with a corrupted file and cannot view the image.

Does anyone know why the file gets corrupted?  I
have the same problem when I use base64Encode
and convert the encoded ascii data to hex and back
to ascii then decode it.  The data looks the same but
I end up with a corrupted file.

-=>JB<=-

___
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: Cryptograhy

2014-08-05 Thread JB
Thanks for the quick response and info.

I am using this code to write the file

open file filePath for binary write
put fld id 1004 into theData
write theData to file filePath

and it writes the data properly if all
I do is base64encode/decode.  When
the encoded data is altered and then
put back to what appears to be the
same and decoded it ends up corrupted
after decoding it.

I can take a Hex file and convert it to
ascii or binary and back again and it
will write the image properly.  But when
I convert the ascii from base64encode
it ends up corrupted.  I have used regex
to remove NULLS and CRLF but that does
not solve the problem.

I can send you the code but the code that I
am testing at the moment is fwPack.  Are
you able to use the code to pack and unpack
a image and write it to disk?

thanks again,
-=>JB<=-


On Aug 5, 2014, at 6:47 PM, Richard Gaskin  wrote:

> JB wrote:
>> I was testing base64 and the Pack function
>> written by Richard Gaskin and after packing
>> and unpacking the data appears the same
>> but does not properly write to a file.
>> 
>> For instance I have a image that I read as a binary
>> and put the info in a field.  Then I base64Encode it
>> and put the date into a field.  I am able to take the
>> encoded data and use base64Decode which will
>> decode it to its original form and I am able to write
>> that data to a file and I have the original image.
>> 
>> When I use the Pack function it does the same thing
>> but adds a password if you want it and encrypts it.
>> 
>> After I unPack the date the date looks the same as
>> the original but when I write the date to a file I end
>> up with a corrupted file and cannot view the image.
>> 
>> Does anyone know why the file gets corrupted?  I
>> have the same problem when I use base64Encode
>> and convert the encoded ascii data to hex and back
>> to ascii then decode it.  The data looks the same but
>> I end up with a corrupted file.
> 
> fwPack/fwUnpack were written as quick workarounds for simple encryption long 
> before LC provided industrial-strength encryption.  While still useful in 
> some contexts (I use it often for simple masking), for true encryption I use 
> LC's built-in encrypt/decrypt commands.
> 
> As for how your files is corrupted it's hard to say without seeing the code, 
> but often what happens with seemingly corrupted files is that binary data is 
> being written without specifying a binary write form.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: Cryptograhy

2014-08-05 Thread JB
I just did a compare of both files and
there was nothing different at all.

Then your answer included a better
file open and write which included
url and special folder path.

Thank you very much for the help
Not to be mean but my initials are actually
JB not BJ.  I know I made a lot of mistakes
with the word data being date.

Thanks again for the help I appracieat if
very much.

John Balgenorth


On Aug 5, 2014, at 8:07 PM, Richard Gaskin  wrote:

> BJ wrote:
> 
> > Are you able to use the code to pack and unpack
> > a image and write it to disk?
> 
> Running this code here and selecting a JPEG file it seems to work well:
> 
> on mouseUp
>   answer file "Select a file:"
>   if it is empty then exit to top
>   put url ("binfile:"& it ) into tData
>   put fwPack(tData, "bob") into tData
>   put fwUnpack(tData, "bob") into tData
>   put tData into url ("binfile:"& \
> specialFolderPath("desktop")&"/testfile.jpg")
> end mouseUp
> 
> 
> I wasn't able to follow your description:  since fwPack already uses base64, 
> what else are you doing in your code that would require you to use base64 
> separately?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for Desktop, Mobile, and Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: Cryptograhy

2014-08-05 Thread JB
Not a problem.  I can’t even begin to tell
you how much this has helped me.  I am
working on a project that I wanted to use
base64 on instead of accessing a line tool
command and as you can see I was having
problems.  Your code fixed it and now I do
not need to use the command line.

John Balgenorth


On Aug 5, 2014, at 8:57 PM, Richard Gaskin  wrote:

> Glad that worked out.
> 
> Apologies for the typo; I was on an experimental system with all manner of 
> oddities to contend with ( beyond my normal bad spelling ),
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for Desktop, Mobile, and Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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


ListMagic

2014-08-07 Thread JB
I have ListMagic which I purchased many
years ago and now for some reason it is
a trial version.

It was registered and when I asked LiveCode
they said they are not able to retrieve lost keys.

I finally found the key and now I need to know
how to properly register it.

Will someone please tell me where to paste the
registration key into ListMagic.

thank you,
John Balgenorth

___
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: ListMagic

2014-08-07 Thread JB
Hi Matthias,

Thanks for the help.

I finally found you can enter the registration key
by clicking on the Presentation tab in ListMagic
and scrolling to the bottom of the page where
there is a button to enter it.

After entering the key it registered for me without
any problems.

Your fix is still important to know since I registered
it many years ago and I probably have the folder
already.  You would think the Installation tab would
be a good place to find information related to the
installation of the full version.

thank you,
John Balgenorth


On Aug 7, 2014, at 2:12 PM, Matthias Rebbe | M-R-D 
 wrote:

> Hi John,
> 
> i am not sure if this still works, but some years ago i posted a solution for 
> that problem.
> 
> <--
> You need a special  folder structure to get the registration working. This 
> folder structure was used with Revolution prior 4.5 i think.
> 
> Just create the following folder structure.  has to replaced 
> with your user name.
> 
> Mac OS X
> /Users//Library/Application Support/Runtime 
> Revolution/Revolution Enterprise/Cache/Misc
> 
> Windows XP
> C:\Documents and Settings\\Application Data\Runtime 
> Revolution\Revolution Enterprise\Cache\Misc
> 
> Windows 7 
> C:\Users\\AppData\Roaming\Runtime Revolution\Revolution 
> Enterprise\Cache\Misc
> 
> If this folder structure exists, then ListMagic can successful register. If 
> registration was successful there is a file "revTest" in the folder misc.
> 
> That´s it.
> -->
> 
> HTH,
> 
> Matthias
> 
> Am 07.08.2014 um 22:32 schrieb JB :
> 
>> I have ListMagic which I purchased many
>> years ago and now for some reason it is
>> a trial version.
>> 
>> It was registered and when I asked LiveCode
>> they said they are not able to retrieve lost keys.
>> 
>> I finally found the key and now I need to know
>> how to properly register it.
>> 
>> Will someone please tell me where to paste the
>> registration key into ListMagic.
>> 
>> thank you,
>> John Balgenorth
>> 
>> ___
>> 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: ListMagic

2014-08-07 Thread JB
Hi William,

Thank you for the good advice and info.

I think you have learned the hard way and
will consider it very much because I have
learned the hard way too.

I do like ListMagic and might still use it now
that I finally registered it again.

But I am going to try to use mostly LiveCode
and the tools they provide since they are more
likely to make sure it works.

As for them not being able to retrieve lost keys it
is because they did not sell ListMagic and do not
control their products.

All of these problems are actually a plus for using
LiveCode tools to do the job.

Thank you,
John Balgenorth


On Aug 7, 2014, at 2:13 PM, william humphrey  wrote:

> John
> 
> I used to use ListMagic which I thought was wonderful at the time
> (still do) but I had so much trouble with the keys and registering it
> and making it unlocked that I finally stripped it out of everyone of
> my stacks and replaced it mostly with the DataGrid which can do almost
> everything ListMagic does and does not have the problem of that locked
> stack.
> 
> In fact I learned from this never to buy any sort of add-on from the
> LiveCode store or anywhere else that makes you add a locked stack to
> your programs.
> 
> Bill
> 
> On Thu, Aug 7, 2014 at 4:32 PM, JB  wrote:
>> I have ListMagic which I purchased many
>> years ago and now for some reason it is
>> a trial version.
>> 
>> It was registered and when I asked LiveCode
>> they said they are not able to retrieve lost keys.
>> 
>> I finally found the key and now I need to know
>> how to properly register it.
>> 
>> Will someone please tell me where to paste the
>> registration key into ListMagic.
>> 
>> thank you,
>> John Balgenorth
>> 
>> ___
>> 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
> 
> 
> 
> -- 
> http://www.bluewatermaritime.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


Standard Library

2014-08-09 Thread JB
Revolution Standard Library was put together by
Richard Gaskin and Ken Ray and provides a lot
of useful handlers.

Is the code allowed to be used in a commercial
program royalty free and if so what would be the
proper information to list in the product showing
it is being used and plus the proper credits.

Has the library been updated recently and if so
where can it be downloaded?

John Balgenorth

___
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: Standard Library

2014-08-09 Thread JB
When I am asking about using the code I
do not mean using all of the code I only
mean using small parts of it which would
be what appears it is made for.

John Balgenorth


On Aug 9, 2014, at 5:09 PM, JB  wrote:

> Revolution Standard Library was put together by
> Richard Gaskin and Ken Ray and provides a lot
> of useful handlers.
> 
> Is the code allowed to be used in a commercial
> program royalty free and if so what would be the
> proper information to list in the product showing
> it is being used and plus the proper credits.
> 
> Has the library been updated recently and if so
> where can it be downloaded?
> 
> John Balgenorth
> 
> ___
> 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: Standard Library

2014-08-09 Thread JB
Hi Richard,

Thanks for the fast reply.

I was searching for a way to get file info so I could
display things like the size and creation date and
after using google I saw a post that you answered
and you provided the handler to do it.  Eventually
I somehow ended up finding a download but I do
not remember where.  I do know that I downloade
it many years ago so I already had it.

As I mentioned the part I was interested in mainly
was file info so I did not need to use the default
folder to get the info.

Concerning the framework or handlers I definitely
would prefer to use handlers and then I can use
what I want and not use globals.

It seems to me a lot of people probably will eventually
find a need for one or more of these handlers and the
more made available the better off the community will
be.

My use will be simple at this time and will not really be
a modification.  I am going to be using ListMagic to put
the name of a file the user will enter and I wanted to
have the file listed in the same way the finder shows it.

One of the things I am interested in seeing more handlers
and examples is regex.  It seems to be a very powerful
tool with very few LiveCode examples.

Another good idea would be the command line examples.
I was able to get a command line to do what I wanted but
this took many hours and needed s special way of writing
it.  Phil Davis has some examples that show how to access
the manual in the terminal but those examples do not work
with using the command line that I wanted which was xxd.

A question about using command lines is can they be used
in a commercial product and is there any possible reason a
command line that is being used in LiveCode today won’t be
able to be used for some reason or another in the future.  If
so this can cause a complete failure of a good program and
is risky business to say the least.  As for xxd the manual list
the person who wrote it and he states anyone can use it free
of charge but if you make money he would like you to share.
I do not think he wants a royalty on a continuous basis but he
would appreciate a little bit of money.

thanks again,
John Balgenorth


On Aug 9, 2014, at 5:37 PM, Richard Gaskin  wrote:

> JB wrote:
> 
>> Revolution Standard Library was put together by
>> Richard Gaskin and Ken Ray and provides a lot
>> of useful handlers.
> 
> May I ask which ones you found useful?  It might just motivate me to resume 
> the project.
> 
>> Is the code allowed to be used in a commercial
>> program royalty free and if so what would be the
>> proper information to list in the product showing
>> it is being used and plus the proper credits.
> 
> If I recall correctly the intention was to release it under the MIT license - 
> MIT is very permissive, and GPL-compatible; commercial work definitely 
> allowed, as are proprietary modifications (though it would be cool if you 
> chose to enhance anything there and shared it back so we can update the 
> master).
> 
> May I ask where you stumbled across it?  If we still have that posted online 
> we should definitely put a proper license on it.
> 
>> Has the library been updated recently and if so
>> where can it be downloaded?
> 
> We haven't updated it in a very long time. Both of us have been too busy with 
> client projects, and to be honest it was one of those ideas that seemed 
> simple enough when we got started, but the more we planned it out the more it 
> became clear that to be truly useful it needed to break from its original 
> goal as a library into more of a framework.  Frameworks can be useful, but 
> they tend to require a MUCH steeper learning curve to use, so we weren't sure 
> how many people would be interested.
> 
> For example, a lot of the stuff we were doing became dependent on a global 
> array called gAppInfo, which made all sorts of other things much simpler to 
> sort out (prefs subfolder names, the app name, version info, and more could 
> be stored there for one-stop shopping for other handlers and even other 
> interoperable tools).  But that meant that you had to be sure to initialize 
> that global at the beginning of your app's code.
> 
> I like to think of a good library as a collection of discrete handlers, in 
> which you can call anything you need but only when you need it, and you only 
> need to learn the one you want to use.
> 
> Once we start down the road of requiring users to learn all sorts of other 
> things to use any of it at all, which worked out fine for Ken and I since for 
> whatever odd reason we wound up adopting almost completely parallel 
> architectural habits anyway.  But for others to use, it seemed like it would 
> get an ever smaller potential audience the deeper we went with it, so we've 
> just been working on our own stuff since.
> 
> In 

Re: Standard Library

2014-08-09 Thread JB
Thanks for the info about regex.  I bookmarked
the website and will be using your advice.  I am
pretty new to regex and even though I’ve spent
a lot of time researching it you have helped me
tremendously.

John Balgenorth


On Aug 9, 2014, at 8:15 PM, Kay C Lan  wrote:

> On Sun, Aug 10, 2014 at 9:08 AM, JB  wrote:
>> One of the things I am interested in seeing more handlers
>> and examples is regex.  It seems to be a very powerful
>> tool with very few LiveCode examples.
> 
> The matchChunk and matchText functions are pretty straight forward to
> use, it's building the regex that can be difficult if you don't live
> with it regularly. If what you really need is examples of regex then I
> highly recommend this online regex builder:
> 
> http://regex101.com/#pcre
> 
> The thing I like about it is that you can choose the 'Flavor' of regex
> it uses, so unlike other online regex builders that use Javascript,
> you can choose the same library that Livecode uses: PCRE. So if it
> works on this site it should work in LC.
> 
> Even better, if you click on the Community tab at the top of the page
> it will present you with a list of 100s and 100s of community provided
> examples of regex, explains what they do, and it's as simple as copy
> and paste into your matchChunk or matchText function to test in LC.
> 
> I will warn you though of one gotcha that is easy to trip on if you're
> an occasional user of regex + LC. The standard matchText function
> looks like this:
> 
> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar)
> 
> so any matches within () will be placed in your variable place holder.
> 
> In regex the | character is used as OR
> 
> so you might be looking for lowercase jpg file names, but you want
> just the name, not the extension:
> 
> ([a-z]+)\.jpg  will work, but not if you also have some with a jpeg extension.
> 
> ([a-z]+.jpeg will work for those, so these could be combined with the
> | identifier:
> 
> ([a-z]+)\.jpg|([a-z]+)\.jpeg
> 
> Now I appreciate the regex experts will point out there is a much
> better way to solve this problem than using |, but the point of this
> is, if you use | in your regex, and place it in matchText or
> matchChunk, you no longer have a single placeholder, so your matchText
> function has to be amended accordingly:
> 
> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile)
> 
> It is easy, when copying regex off such sites listed above, or
> building your own, and you know you are only finding x number of data
> bites, to assume that that is how many capture variables you need, but
> if OR is used, then you can easily end up needing double or triple the
> number of variables.
> 
> Rule of thumb, always count the number of capturing () in the regex
> and ensure you have the same number of allocated capturing variables.
> 
> HTH
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


Externals

2014-08-10 Thread JB
Is it possible to use SuperCard externals
in LiveCode?

-=>JB<=-

___
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


externalPackages

2014-08-10 Thread JB
I built a external using the external examples
and have created the stack and installed the
external.  Everything works and now I want to
see the externalPackages of my stack.

I created a button and put the following script into it.

on mouseUp
put the externalPackages of stack "rnahelloTest" into fld id 1004
end mouseUp

What happens is it sets my field to empty.
I was thinking that since I have installed
the external properly and the stack is able
to use it properly it would list my external.

How do I use the externalPackages?

John Balgenorth
___
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


Getting File Type

2014-08-10 Thread JB
The Standard library would not give me the
file type when I tried it so here is a handler
I wrote that will give the file type.

on mouseUp
   answer files "Select the file you want the type info"
   put the longFilePath of line 1 of it into filePath
   put number of chars in filePath into n
   put "false" into geType
   put empty into theType
   repeat for n times
  if geType = "false" then put char n of filePath before theType
  put n - 1 into n
  if char n of filePath = "." then put "true" into gType
  if gType = "true" then exit repeat
   end repeat
   --put theType into fld id 1098
   ask "File Type" with theType
end mouseUp

I am sure someone can write it better but it works.

John Balgenorth
___
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


getting File Name

2014-08-10 Thread JB
Here is a handler I wrote that will return the file name.

on mouseUp
  answer files "Select the file you want the Name of:"
   put the longFilePath of line 1 of it into filePath
   set the itemDelimiter to tab
   put number of chars in filePath into n
   repeat for n times
  if char n of filePath = ":" then put "/" before fileName
  else put char n of filePath before fileName
  if char n - 1 of filePath = "/" then exit repeat
  put n - 1 into n
   end repeat
   ask "File Name" with fileName
end mouseUp

John Balgenorth

___
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: getting File Name

2014-08-10 Thread JB
Hi Scott,

I am using a Mac and it allows a / in the
name.  If a / is in the name I think that if
you simply get the last item it would not
give you the full name.

John Balgenorth


On Aug 10, 2014, at 11:15 PM, Scott Rossi  wrote:

> Hi John:
> 
> Does the following also do what you want?
> 
> 
> answer file "Select a file:"
> set itemDel to "/"
> ask "File Name" with last item of it
> 
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 8/10/14 10:00 PM, "JB"  wrote:
> 
>> Here is a handler I wrote that will return the file name.
>> 
>> on mouseUp
>> answer files "Select the file you want the Name of:"
>>  put the longFilePath of line 1 of it into filePath
>>  set the itemDelimiter to tab
>>  put number of chars in filePath into n
>>  repeat for n times
>> if char n of filePath = ":" then put "/" before fileName
>> else put char n of filePath before fileName
>> if char n - 1 of filePath = "/" then exit repeat
>> put n - 1 into n
>>  end repeat
>>  ask "File Name" with fileName
>> end mouseUp
>> 
>> John Balgenorth
>> 
>> ___
>> 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


Installing Externals

2014-08-11 Thread JB
Trevor at Blue Mango wrote a excellent article
about installing externals.  In it he said

Open the Externals.txt file (1), creating it if necessary.
You need to add one line to this file that tells Revolution
about your external. The line contains 2 items. The 1st
item is the name of your external as it appears in the
externalPackages property (2). In this example I'm using
the EnhancedQT external so that name is EnhancedQT.
The 2nd item is the name of the external file 

The problem I am having is with the name of the first item
which is the name of the external as it appears in the
externalPackages property.

In the lesson that name is EnhancedQT.  But the name of
the second item is the file name which in this case is
EnhancedQT.Bundle.

So both items togethor make the single line to add which is

EnhancedQT,EnhancedQT.Bundle.

That is pretty easy but the problem is the first item is not
always named the same as the file name.  It could have
been anything other than EnhancedQT.  If it was always
the name of the file name without the .Bundle this would
solve all the problems.

How do you get the name of the first item if you do not
know what it is.  You could try the name of the file and
not include the .Bundle and in this case you would get
lucky and it would work.

John Balgenorth

___
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: Execution of a "long" script

2014-08-11 Thread JB
What if you are dong large scripts that tale many hours and the
user decodes to do things that will slow it down.  Whwn you are
using Time Machine you can trust that it will keep working and
not cause a crash.  At least I have never had it crash.

Can you trust this large script will not crash or should you inform
the user the chances of a crash will increase if they use other
memory intensive applications.  Is there a way to prevent it?

John Balgenorth


On Aug 11, 2014, at 3:16 AM, FlexibleLearning.com  
wrote:

>> Hi list
>> I'm about to launch a script on LC 6.5.2 on Mac to process a large xml
> file,
>> and the execution will take several hours at least.
>> I am wondering : if I use other apps like a browser or a mailer after
>> starting
>> the script, or if I return to the Finder or navigate through various apps
> in
>> the dock, what happens to my script ? Is it slowed down or even stalled
> while
>> I use other apps, does it still run as a background task, or... ?
>> 
>> Thanks
>> jbv
> 
> The OS handles multi-tasking based on the process priority. I would
> therefore expect the script to run more slowly if other memory-intensive
> activities take place.
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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: Execution of a "long" script

2014-08-11 Thread JB
Why do you waste your time
attacking me?

You have no clue what I am even
writing or if my program was going
to fall in the category of using long
scripts.

My question for you since you will be
a user is when are you going to pay?
You won’t be getting a complimentary
copy.

John Balgenorth


On Aug 11, 2014, at 6:03 AM, j...@souslelogo.com wrote:

> John,
> The will be only one user : me. So I'll do my best to not disturb LC
> when the script is running, like let it run at night...
> jbv
> 
>> 
>> Can you trust this large script will not crash or should you inform
>> the user the chances of a crash will increase if they use other
>> memory intensive applications.  Is there a way to prevent it?
>> 
>> John Balgenorth
>> 
>> 
> 
> 
> 
> ___
> 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: Execution of a "long" script

2014-08-11 Thread JB
Thanks Richard!

I was concerned about it after the question was brought up
because there is a chance someone will select a lot of files
to process and I have never tested LiveCode with scripts
that take a long time.

I was glad the question was asked because it made me take
into consideration of a possible crash from any reason and I
will be sure to keep track of the work done so it can start up
where it crashed and not worry about repeating the work.

Once again you have provided me very good information and
the comfort in knowing it has been tested for extremely long
tasks.  Knowing that means a lot to me.

John Balgenorth


On Aug 11, 2014, at 7:49 AM, Richard Gaskin  wrote:

> JB wrote:
> 
> > Can you trust this large script will not crash or should you inform
> > the user the chances of a crash will increase if they use other
> > memory intensive applications.  Is there a way to prevent it?
> 
> Any time LiveCode crashes it's a bug that should be reported.  Even with 
> low-memory conditions, the app should dip into swap rather than crash. This 
> may not always be practical depending on the nature of the task, but it's an 
> ideal worth pursuing.  The only errors that should ever occur in LC are ones 
> related to our own scripting mistakes.
> 
> Apps reflect a wide range of behaviors in low-memory conditions, and most 
> apps contain in them somewhere some sort of bug that will cause them to 
> crash.  Undesirable, but it happens.
> 
> When the issue is exposed by low-memory conditions, the issue is compounded 
> by the likelihood that there isn't even enough memory to invoke the normal 
> error handling, so that rather than simply stopping execution with a warning 
> the app may simply crash instead.
> 
> All that said, thanks to the community's rigorous testing and the engine 
> team's ardent pursuit of good memory management, many of us have apps that 
> have run for many hours or even days without a hiccup (I have one here where 
> normal uptime is measured in weeks, usually only interrupted because I 
> rebooted the machine for some other reason unrelated to my app).
> 
> LiveCode isn't completely bug-free (if it were it might be the first in 
> computing history), but AFAIK at this time there are no known memory leaks.  
> The engine team tends to jump on those quickly, so when discovered they 
> usually don't live very long.
> 
> I would encourage you to pursue any sort of task with LC you like, and if you 
> encounter issues to report them.
> 
> For very long tasks it can be helpful to introduce means by which the apps 
> surrenders time to the OS to attend to other things, either by breaking the 
> task up into chunks and calling those chunks with "send", or by using "wait 0 
> with messages".  This will help ensure the OS can do its job with memory 
> shuffling and other things it needs to do to keep up with LiveCode.
> 
> And FWIW, on some Mac systems I've seen surprisingly poor throttling at the 
> OS level, in which some processes have been allowed to run to the point that 
> it overheats the CPU.  Most modern motherboards contain temperature monitors 
> that shut the machine down before the heat can damage components (even the 
> super-cheap mobo I got from Biostar recently for $59 has this), but one of my 
> Mac laptops went through three motherboards as a result of overheating.  A 
> single date point like one Mac isn't enough to suggest that this is endemic 
> or epidemic to Macs, and if it were we'd have read about it in the Apple 
> support forums more frequently.  Just something to keep in mind which may 
> potentially affect any system, providing good motivation for periodically 
> freeing up clock cycles to let the system at least do the things it needs to 
> do for monitoring.
> 
> After all, if a task is going to take several hours, what's a little extra 
> time introduced by sharing the CPU?
> 
> There are other things to consider as well:  sometimes a long task is just a 
> long task, but often there are means to reduce the processing time through 
> seemingly-small refinements in the code.  Using "repeat for each..." instead 
> of "repeat with i = 1 to ..." is a common example, but there may be others 
> which also provide an order-of-magnitude speed boost.
> 
> And for really long tasks there are ways of spreading the work across 
> multiple computers on your LAN with a sort of MapReduce.  A bit of work to 
> set up and certainly carries a lot of overhead, but for a task that takes the 
> better part of a day it may be worth the effort to explore.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, 

Re: Execution of a "long" script

2014-08-11 Thread JB
That is some really good information.

thanks,
John Balgenorth


On Aug 11, 2014, at 11:18 AM, kee nethery  wrote:

> I have a bunch of long running scripts. I structure them so that they pause 
> between cycles. By that I mean, if I am processing a bunch of files, I might 
> have a field where I list all the files and then I trigger a script that 
> processes the first unprocessed file in the list. When there are no 
> unprocessed files, it halts because it is done.
> 
> When a file is processed, I mark it in the list and then the very next thing 
> I do is send a message in (for example) 5 seconds, to run that script again. 
> For that 5 seconds nothing happens and presumably “things” reset to an idle 
> state before going after the next file. It keeps doing this until all the 
> files are processed.
> 
> I have scripts that essentially run for weeks at a time.
> 
> The one feature I add into all my scripts is a safe exit from whatever it is 
> doing. Within all my loops I have:
> 
> if optionkey is down then
>   exit repeat
> end if
> 
> I put these all throughout my code so that if I need to halt, it does so 
> safely. In the file example, perhaps in a beginning section I just exit out 
> of the script. Perhaps in a section after an hour of processing, I let it 
> finish and then don’t trigger the send message in 5 seconds to do it again.
> 
> Finally, In long running scripts I find it is essential to provide a visual 
> indication of where the script is. I try to have something in the interface 
> change more frequently than once a minute so that I know it is still running 
> and not lost in some loop. Plus, if it stays with some indicator for a really 
> long period of time, I know that is where I need to add a debug statement and 
> figure out why it is taking so long there.
> 
> Kee Nethery
> ___
> 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: Standard Library

2014-08-11 Thread JB
That is nice to know!

I was thinking I would speed up the
longer text processing.  You just did
me a favor and save me a lot of time
plus made it easier and faster by not
using regex for text processing.

I still appreciate the info others gave
because I know I will use regex from
time to time.

John Balgenorth


On Aug 11, 2014, at 5:22 AM, Peter M. Brigham  wrote:

> I have very occasionally tried regex and can see that it is very powerful, 
> but to me it's also extremely opaque and I've never climbed far up the rather 
> steep learning curve. Partly this is because I've found that essentially all 
> of the stuff I would need regex for is do-able in native LC, whose string 
> manipulation capabilities are marvelous -- and much more intuitive for me. 
> Plus, LC is much faster than regex when chewing through very large data sets, 
> as long as you remember to "repeat for each…"
> 
> My two cents.
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> Just wondering... when someone asks you, 'A penny for your thoughts'
> and you put your two cents in, what happens to the other penny?
> 
> 
> On Aug 9, 2014, at 11:29 PM, JB wrote:
> 
>> Thanks for the info about regex.  I bookmarked
>> the website and will be using your advice.  I am
>> pretty new to regex and even though I’ve spent
>> a lot of time researching it you have helped me
>> tremendously.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 9, 2014, at 8:15 PM, Kay C Lan  wrote:
>> 
>>> On Sun, Aug 10, 2014 at 9:08 AM, JB  wrote:
>>>> One of the things I am interested in seeing more handlers
>>>> and examples is regex.  It seems to be a very powerful
>>>> tool with very few LiveCode examples.
>>> 
>>> The matchChunk and matchText functions are pretty straight forward to
>>> use, it's building the regex that can be difficult if you don't live
>>> with it regularly. If what you really need is examples of regex then I
>>> highly recommend this online regex builder:
>>> 
>>> http://regex101.com/#pcre
>>> 
>>> The thing I like about it is that you can choose the 'Flavor' of regex
>>> it uses, so unlike other online regex builders that use Javascript,
>>> you can choose the same library that Livecode uses: PCRE. So if it
>>> works on this site it should work in LC.
>>> 
>>> Even better, if you click on the Community tab at the top of the page
>>> it will present you with a list of 100s and 100s of community provided
>>> examples of regex, explains what they do, and it's as simple as copy
>>> and paste into your matchChunk or matchText function to test in LC.
>>> 
>>> I will warn you though of one gotcha that is easy to trip on if you're
>>> an occasional user of regex + LC. The standard matchText function
>>> looks like this:
>>> 
>>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar)
>>> 
>>> so any matches within () will be placed in your variable place holder.
>>> 
>>> In regex the | character is used as OR
>>> 
>>> so you might be looking for lowercase jpg file names, but you want
>>> just the name, not the extension:
>>> 
>>> ([a-z]+)\.jpg  will work, but not if you also have some with a jpeg 
>>> extension.
>>> 
>>> ([a-z]+.jpeg will work for those, so these could be combined with the
>>> | identifier:
>>> 
>>> ([a-z]+)\.jpg|([a-z]+)\.jpeg
>>> 
>>> Now I appreciate the regex experts will point out there is a much
>>> better way to solve this problem than using |, but the point of this
>>> is, if you use | in your regex, and place it in matchText or
>>> matchChunk, you no longer have a single placeholder, so your matchText
>>> function has to be amended accordingly:
>>> 
>>> matchText(yourDataVar,"([a-z]+)\.jpg|([a-z]+)\.jpeg",myJpgFile,myJpegFile)
>>> 
>>> It is easy, when copying regex off such sites listed above, or
>>> building your own, and you know you are only finding x number of data
>>> bites, to assume that that is how many capture variables you need, but
>>> if OR is used, then you can easily end up needing double or triple the
>>> number of variables.
>>> 
>>> Rule of thumb, always count the number of capturing () in the regex
>>> and ensure you have the same number of allocated capturing variables.
>>> 
>>> HTH

Re: Standard Library

2014-08-11 Thread JB
I was interested in using a if then replace combination
but it seems it might be better done in LiveCode using
repeat for each.  If the speed is not considerably faster
with regex it is not worth the trouble.  The ability to read
my code like I am used to is more important than a small
increase in speed.

John Balgenorth


On Aug 11, 2014, at 8:03 PM, Alain Farmer  wrote:

> Regex is GREAT! 
> 
> I use it a LOT.
> Anyone need any help to grasp how it works ?
> 
> 
> 
> On Monday, August 11, 2014 10:14:28 PM, JB  wrote:
> 
> 
> 
> That is nice to know!
> 
> I was thinking I would speed up the
> longer text processing.  You just did
> me a favor and save me a lot of time
> plus made it easier and faster by not
> using regex for text processing.
> 
> I still appreciate the info others gave
> because I know I will use regex from
> time to time.
> 
> John Balgenorth
> 
> 
> On Aug 11, 2014, at 5:22 AM, Peter M. Brigham  wrote:
> 
>> I have very occasionally tried regex and can see that it is very powerful, 
>> but to me it's also extremely opaque and I've never climbed far up the 
>> rather steep learning curve. Partly this is because I've found that 
>> essentially all of the stuff I would need regex for is do-able in native LC, 
>> whose string manipulation capabilities are marvelous -- and much more 
>> intuitive for me. Plus, LC is much faster than regex when chewing through 
>> very large data sets, as long as you remember to "repeat for each…"
>> 
>> My two cents.
>> 
>> -- Peter
>> 
>> Peter M. Brigham
>> pmb...@gmail.com
>> http://home.comcast.net/~pmbrig
>> 
>> Just wondering... when someone asks you, 'A penny for your thoughts'
>> and you put your two cents in, what happens to the other penny?
>> 
>> 
>> On Aug 9, 2014, at 11:29 PM, JB wrote:
>> 
>>> Thanks for the info about regex.  I bookmarked
>>> the website and will be using your advice.  I am
>>> pretty new to regex and even though I’ve spent
>>> a lot of time researching it you have helped me
>>> tremendously.
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Aug 9, 2014, at 8:15 PM, Kay C Lan  wrote:
>>> 
>>>> On Sun, Aug 10, 2014 at 9:08 AM, JB  wrote:
>>>>> One of the things I am interested in seeing more handlers
>>>>> and examples is regex.  It seems to be a very powerful
>>>>> tool with very few LiveCode examples.
>>>> 
>>>> The matchChunk and matchText functions are pretty straight forward to
>>>> use, it's building the regex that can be difficult if you don't live
>>>> with it regularly. If what you really need is examples of regex then I
>>>> highly recommend this online regex builder:
>>>> 
>>>> http://regex101.com/#pcre
>>>> 
>>>> The thing I like about it is that you can choose the 'Flavor' of regex
>>>> it uses, so unlike other online regex builders that use Javascript,
>>>> you can choose the same library that Livecode uses: PCRE. So if it
>>>> works on this site it should work in LC.
>>>> 
>>>> Even better, if you click on the Community tab at the top of the page
>>>> it will present you with a list of 100s and 100s of community provided
>>>> examples of regex, explains what they do, and it's as simple as copy
>>>> and paste into your matchChunk or matchText function to test in LC.
>>>> 
>>>> I will warn you though of one gotcha that is easy to trip on if you're
>>>> an occasional user of regex + LC. The standard matchText function
>>>> looks like this:
>>>> 
>>>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar)
>>>> 
>>>> so any matches within () will be placed in your variable place holder.
>>>> 
>>>> In regex the | character is used as OR
>>>> 
>>>> so you might be looking for lowercase jpg file names, but you want
>>>> just the name, not the extension:
>>>> 
>>>> ([a-z]+)\.jpg  will work, but not if you also have some with a jpeg 
>>>> extension.
>>>> 
>>>> ([a-z]+.jpeg will work for those, so these could be combined with the
>>>> | identifier:
>>>> 
>>>> ([a-z]+)\.jpg|([a-z]+)\.jpeg
>>>> 
>>>> Now I appreciate the regex experts will point out there is a much
>>>> better way to solve thi

Re: Standard Library

2014-08-11 Thread JB
It would take a tutorial and one would be
worth reading.

John Balgenorth


On Aug 11, 2014, at 8:27 PM, Richard Gaskin  wrote:

> Alain Farmer wrote:
> 
> > Regex is GREAT!
> >
> > I use it a LOT.
> > Anyone need any help to grasp how it works ?
> 
> Funny you should ask that - there was a request recently in the forums for a 
> RegEx tutorial:
> 
> 
> 
> Such a tutorial would be a great addition to the Lessons at LiveCode.com.
> 
> -- 
> 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
> 


___
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: Installing Externals

2014-08-12 Thread JB
Thank you for both replies Trevor.
It is some valuable information.  I
was wondering where the name
came from because even on the
external I wrote I could not figure
out how the name was created.

John Balgenorth


On Aug 12, 2014, at 9:51 AM, Trevor DeVore  wrote:

> On Mon, Aug 11, 2014 at 6:30 AM, JB  wrote:
> 
>> 
>> How do you get the name of the first item if you do not
>> know what it is.  You could try the name of the file and
>> not include the .Bundle and in this case you would get
>> lucky and it would work.
>> 
> 
> The external developer should provide you with that information. If you are
> the external developer  then it is the value defined by the following in
> the external source:
> 
> EXTERNAL_BEGIN_DECLARATIONS("EnhancedQT")
> 
> The only other option is to assign the external file to the externals
> property of a stack, get the engine to load the external (using technique I
> mentioned in other thread), and then check the externalpackages property of
> the stack.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.com-www.clarify-it.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: Standard Library

2014-08-12 Thread JB
I see it is powerful and has a good value.  I  use it for some things
already but when it gets to more complex if then else replace code
it is still too complicated for me.

John Balgenorth


On Aug 12, 2014, at 10:11 AM, Peter Haworth  wrote:

> I've taken to using regex for input data validation, for example, email
> addresses, SSN, telephone numbers, URL,even stripping leading/trailing
> spaces.  There are various regex libraries online where people have
> contributed expressions for those purposes.
> 
> I just like the fact that one line of code is all it takes versus however
> many repeat loop lines it takes.  I've never checked out the relative speed
> of regex vs native LC script but for short amounts of data like that, it
> doesn't really matter.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Mon, Aug 11, 2014 at 5:22 AM, Peter M. Brigham  wrote:
> 
>> I have very occasionally tried regex and can see that it is very powerful,
>> but to me it's also extremely opaque and I've never climbed far up the
>> rather steep learning curve. Partly this is because I've found that
>> essentially all of the stuff I would need regex for is do-able in native
>> LC, whose string manipulation capabilities are marvelous -- and much more
>> intuitive for me. Plus, LC is much faster than regex when chewing through
>> very large data sets, as long as you remember to "repeat for each…"
>> 
>> My two cents.
>> 
>> -- Peter
>> 
>> Peter M. Brigham
>> pmb...@gmail.com
>> http://home.comcast.net/~pmbrig
>> 
>> Just wondering... when someone asks you, 'A penny for your thoughts'
>> and you put your two cents in, what happens to the other penny?
>> 
>> 
>> On Aug 9, 2014, at 11:29 PM, JB wrote:
>> 
>>> Thanks for the info about regex.  I bookmarked
>>> the website and will be using your advice.  I am
>>> pretty new to regex and even though I’ve spent
>>> a lot of time researching it you have helped me
>>> tremendously.
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Aug 9, 2014, at 8:15 PM, Kay C Lan  wrote:
>>> 
>>>> On Sun, Aug 10, 2014 at 9:08 AM, JB  wrote:
>>>>> One of the things I am interested in seeing more handlers
>>>>> and examples is regex.  It seems to be a very powerful
>>>>> tool with very few LiveCode examples.
>>>> 
>>>> The matchChunk and matchText functions are pretty straight forward to
>>>> use, it's building the regex that can be difficult if you don't live
>>>> with it regularly. If what you really need is examples of regex then I
>>>> highly recommend this online regex builder:
>>>> 
>>>> http://regex101.com/#pcre
>>>> 
>>>> The thing I like about it is that you can choose the 'Flavor' of regex
>>>> it uses, so unlike other online regex builders that use Javascript,
>>>> you can choose the same library that Livecode uses: PCRE. So if it
>>>> works on this site it should work in LC.
>>>> 
>>>> Even better, if you click on the Community tab at the top of the page
>>>> it will present you with a list of 100s and 100s of community provided
>>>> examples of regex, explains what they do, and it's as simple as copy
>>>> and paste into your matchChunk or matchText function to test in LC.
>>>> 
>>>> I will warn you though of one gotcha that is easy to trip on if you're
>>>> an occasional user of regex + LC. The standard matchText function
>>>> looks like this:
>>>> 
>>>> matchTex(yourDataVar,"regex(capturethis)expression",yourCapturedVar)
>>>> 
>>>> so any matches within () will be placed in your variable place holder.
>>>> 
>>>> In regex the | character is used as OR
>>>> 
>>>> so you might be looking for lowercase jpg file names, but you want
>>>> just the name, not the extension:
>>>> 
>>>> ([a-z]+)\.jpg  will work, but not if you also have some with a jpeg
>> extension.
>>>> 
>>>> ([a-z]+.jpeg will work for those, so these could be combined with the
>>>> | identifier:
>>>> 
>>>> ([a-z]+)\.jpg|([a-z]+)\.jpeg
>>>> 
>&

Re: externalPackages

2014-08-13 Thread JB
Hi Richard,

Since you come from a SuperCard background could
you answer a question for me?

I am a registered owner of SuperCard 4.6 and SuperEdit 4.6.
The Xtend section allows you to export externals.  I contacted
SuperCard Support and they said I could use the SuperCard
externals in other programs that use externals as long as I
abide by the EULA.  That is not a problem.

I exported a external and tried to use it in Revolution and could
not get it to work.  The next thing I was going to try is to make a
empty external for LiveCode naming it the same as the external
I want to use and from SuperCard install it into the resource by
changing the type from .bundle to .txt and then change the type
back to .bundle.  I have done that without making the empty
external so I have not actually tried it yet.  Is that the proper
way to install a SuperCard external in Rev or is it not possible
at all to use them in Rev?

thanks,
John Balgenorth


On Aug 13, 2014, at 11:43 AM, Richard Gaskin  wrote:

> Trevor DeVore wrote:
> > If the externals property is pointing to the property external file on
> > disk, you can make sure the "destroyWindow" property of the stack is
> > set to true, close the stack, and then open it again. This will
> > attempt to reload the external.
> 
> That's a helpful tip and I appreciate it, but it also reminds me why I sorely 
> dislike using externals in LiveCode.
> 
> Coming from a SuperCard background, I'm accustomed to a simpler world where 
> we just import the external file and never have to think about it again - 
> from that moment on it's as good as a library, with its handlers always 
> available whenever the stack is running.
> 
> The whole loading thang with LC is, IMNSHO, rather FUBAR when compared to any 
> other xTalk.
> 
> Of all the things that excite me about the Open Language initiative, it's the 
> hope that I can write most of the things I used to use externals for in code 
> that's far simpler and robust to initialize. ;)
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: externalPackages

2014-08-13 Thread JB
Thanks for the info.

I don’t really need any of them I was just trying
to use them if it was possible.  Your information
shows it is not possible and therefore I won’t
waste my time on it.

I am surprised that as long as LiveCode has been
around there are not more externals available.  If
you have developed externals for LiveCode why
not sell them like was done for HyperCard?  That
would be better than the Standard Library at least
for your pocket book and might encourage others
to earn a few dollars too.  It would be kind of like
fast food marketing.  Usually when you find one
fast food place others are in the general area and
might even be across the street or next door.  They
have found that having fast food places by each
other does not take business away from the first
fast food place to be located there and instead it
actually increases the business for all fast food
places in the area.  Just a thought since I have not
seen anyone marketing externals for LiveCode.

John Balgenorth


On Aug 13, 2014, at 1:02 PM, Richard Gaskin  wrote:

> JB wrote:
>> Since you come from a SuperCard background could
>> you answer a question for me?
>> 
>> I am a registered owner of SuperCard 4.6 and SuperEdit 4.6.
>> The Xtend section allows you to export externals.  I contacted
>> SuperCard Support and they said I could use the SuperCard
>> externals in other programs that use externals as long as I
>> abide by the EULA.  That is not a problem.
>> 
>> I exported a external and tried to use it in Revolution and could
>> not get it to work.  The next thing I was going to try is to make a
>> empty external for LiveCode naming it the same as the external
>> I want to use and from SuperCard install it into the resource by
>> changing the type from .bundle to .txt and then change the type
>> back to .bundle.  I have done that without making the empty
>> external so I have not actually tried it yet.  Is that the proper
>> way to install a SuperCard external in Rev or is it not possible
>> at all to use them in Rev?
> 
> I'm very familiar with SC externals indeed: I started Fourth World in 1994 
> primarily as a vendor of SuperCard add-ons, with a catalog of externals 
> written by myself and many others, including one of the current co-owners of 
> SC, Mark Lucas.
> 
> Even back in those days, not all externals could be used across the various 
> apps that supported the HyperCard externals interface.   The SuperCard 
> Internals Toolbox, for example, included many APIs not found in HyperCard, so 
> many of the best SC externals couldn't run in HC (or OMO, or Microphone, or 
> any of the other apps that supported the original HC externals interface).
> 
> The migration from 68x to PPC compounded the compatibility issue, as has the 
> move from PPC to Intel.  Today, even SC itself can only run a subset of all 
> the externals ever written for it; I don't think anything I'd ever published 
> can be run with SC today.
> 
> With LC, the externals API is very different, so even if you had an 
> Intel-compatible external and only needed to run it on Mac, it would still 
> need to be recompiled to use the LiveCode externals APIs.
> 
> Fortunately, at least for the work I do, aside from the database externals 
> included with LC I rarely use any at all.  Most of the things I'd written 
> externals for in SC are included in LiveCode itself.
> 
> Which externals from Xtend do you need?
> 
> I'll bet there are LiveCode equivalents for most of them, or easily written 
> using LiveCode itself.
> 
> --
> 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
> 


___
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: externalPackages

2014-08-13 Thread JB
I see your point.

Changing the subject a little bit you mentioned
LiveCode is going to improve things so you can
actually do more external type code from within
LiveCode.  Are they going to be using Apples new
programming language Swift at all?

John Balgenorth


On Aug 13, 2014, at 2:10 PM, Richard Gaskin  wrote:

> JB wrote:
> 
>> I am surprised that as long as LiveCode has been
>> around there are not more externals available.  If
>> you have developed externals for LiveCode why
>> not sell them like was done for HyperCard?
> 
> I don't need 'em.  As I wrote earlier:
> 
>  ...aside from the database externals included with LC I
>  rarely use any at all.  Most of the things I'd written
>  externals for in SC are included in LiveCode itself.
> 
> For example, here's a list of externals I used to sell in a collection for 
> SuperCard called scX, with their built-in LiveCode equivalents:
> 
> - AskColor
>  LiveCode: answer color
> 
> - CalendarField
>  LiveCode: we have no one-liner for making an ASCII
>  calendar layout, but it can be obtained in a one-line
>  call to the shell on OS X and Linux, and with LC's
>  weekdayNames and other features takes only a few minutes
>  to write - but who needs an ASCII calendar?  I originally
>  wrote that because I needed one for an app and doing it in
>  script was slow - that's very rarely a problem in LC.
> 
> - Camera
>  LiveCode: export snapshot
> 
> - ClipToPICTRes
>  LiveCode:  LC supports many resource fork operations,
>  but since that fork is marked for deprecation there's
>  little point in using them, and being Mac-specific they
>  offer nothing for the other 90% of the computing world.
> 
> - CmdPeriod
>  LiveCode: commandKeyDown
> 
> - DragThisWindow
>  LiveCode: mouseMove
> 
> - DrawIcon
>  LiveCode: see note on resource fork above.
> 
> - GetFolder
>  LiveCode: answer folder (much more flexible in LC)
> 
> - GetIndString
>  LiveCode: see note on resource fork above.
> 
> - GetVersion
>  LiveCode: see note on resource fork above, thought it's
>  worth noting that I now store version info in custom
>  properties, which can be used for the sorts of things
>  we used to use the old Mac res fork for, but are much
>  more flexible, more robust, and available on all platforms.
> 
> - GrowThisWindow
>  LiveCode: mouseMove
> 
> - InjectPPAT
>  LiveCode: backgroundPattern property
> 
> - IntersectRect
>  LiveCode: within
> 
> - LineMatch
>  LiveCode: lineOffset
> 
> - ListFonts
>  LiveCode: the fontnames
> 
> - ListRes
>  LiveCode: getResources
> 
> - MonitorRects
>  LiveCode: the working screenRects
> 
> - MoveFile
>  LiveCode: rename file
> 
> - NewFolder
>  LiveCode: create folder
> 
> - PixelColor
>  LiveCode: screenMouseLoc with mouseColor
> 
> - PopList
>  LiveCode: popup
> 
> - RestartMac
>  LiveCode:  one-line call to shell
> 
> - SetColorCursor
>  LiveCode: all cursors can be color
> 
> - ShowProgress
>  LiveCode: built-in progress object
> 
> - ShutDownMac
>  LiveCode: one-line call to shell
> 
> - SnapDragon
>  LiveCode: built-in grid property
> 
> - xFileType
>  LiveCode: the detailed files
> 
> - xPrefs
>  LiveCode: specialFolderPath
> 
> Even the externals others wrote that I published for SC are easily done in 
> native LiveCode, from arrays to lists to statistical functions, 
> text-to-speech, and much more - easier to work with right in the scripting 
> language, and unlike externals can be used on multiple platforms.
> 
> 
> > Just a thought since I have not seen anyone marketing externals
> > for LiveCode.
> 
> Check out the LiveCode Market Place:
> <https://livecode.com/store/marketplace/>
> 
> There are several dozen add-on packages there, and many more throughout the 
> community.
> 
> It's just that with LiveCode's very broad capabilities, relatively few 
> add-ons are externals per so, with many add-ons being libraries, custom 
> controls, and other forms.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: externalPackages

2014-08-13 Thread JB
I just watched the widget video and it
sounds really great.  The video like all
of their videos was well done too.

It sounds like Kevin wants more people
developing externals and that is good.

Balgenorth


On Aug 13, 2014, at 3:25 PM, Richard Gaskin  wrote:

> JB wrote:
> 
> > Changing the subject a little bit you mentioned
> > LiveCode is going to improve things so you can
> > actually do more external type code from within
> > LiveCode.  Are they going to be using Apples new
> > programming language Swift at all?
> 
> I don't think so.  Swift is a very interesting language (made by the same 
> super-genius who made the ground-breaking LLVM), but as far as I can tell 
> Apple intends to make it available only for use on their own platforms.  So 
> for an omni-platform tool like LiveCode, Swift is a non-starter.
> 
> Instead, the new language for widgets in LiveCode will be...LiveCode! :)
> 
> New extensions to the LiveCode language are in development to allow us to not 
> only make custom controls that behave more like built-in controls, but also 
> directly talk to the OS APIs - see this video from Kevin with a sneak preview 
> of what they're working on:
> 
> <http://livecode.com/blog/2014/07/08/the-next-generation-widgets-themes/>
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: externalPackages

2014-08-13 Thread JB
This will be a fantastic  improvement.

John Balgenorth


On Aug 13, 2014, at 3:46 PM, Björnke von Gierke  wrote:

> Richard is wrong. The goal is to be able to use any language, including 
> anything that is available for the separate OS-es. However, there'll be a 
> meta-LC like language, that is not quite LC, but similar-ish, which will 
> allow to write externals too. The Idea is that it's similar enough for more 
> people to delve in and do Externals then with the current undocumented, not 
> available on all platforms, never-really-cared-for mess. Delivery date is 
> "somewhen".
> 
> 
> On 14 Aug 2014, at 00:25, Richard Gaskin  wrote:
> 
>> JB wrote:
>> 
>>> Changing the subject a little bit you mentioned
>>> LiveCode is going to improve things so you can
>>> actually do more external type code from within
>>> LiveCode.  Are they going to be using Apples new
>>> programming language Swift at all?
>> 
>> I don't think so.  Swift is a very interesting language (made by the same 
>> super-genius who made the ground-breaking LLVM), but as far as I can tell 
>> Apple intends to make it available only for use on their own platforms.  So 
>> for an omni-platform tool like LiveCode, Swift is a non-starter.
>> 
>> Instead, the new language for widgets in LiveCode will be...LiveCode! :)
>> 
>> New extensions to the LiveCode language are in development to allow us to 
>> not only make custom controls that behave more like built-in controls, but 
>> also directly talk to the OS APIs - see this video from Kevin with a sneak 
>> preview of what they're working on:
>> 
>> <http://livecode.com/blog/2014/07/08/the-next-generation-widgets-themes/>
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.comhttp://www.FourthWorld.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


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


ListMagic highlight color

2014-08-18 Thread JB
I have a handler that when I double click a line
it gives me the option to delete the line.  I can
either cancel or delete the line and update the
list.

The problem is it changes my blue line selection
to gray and I want to have it selected blue again.
How do I update the selected line color to the
original line color ListMagic installed for lines?

John Balgenorth

___
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: ListMagic highlight color

2014-08-18 Thread JB
The problem comes from using the answer dialog within
the script. After using it the field will not select the proper
color on the lines.

A simple fix is to not use the answer dialog from within
the list magic field.

John Balgenorth


On Aug 18, 2014, at 6:57 AM, JB  wrote:

> I have a handler that when I double click a line
> it gives me the option to delete the line.  I can
> either cancel or delete the line and update the
> list.
> 
> The problem is it changes my blue line selection
> to gray and I want to have it selected blue again.
> How do I update the selected line color to the
> original line color ListMagic installed for lines?
> 
> John Balgenorth
> 
> ___
> 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: Church bell app?

2014-08-22 Thread JB
A good Heavy Duty 15 amp home timer.

Intermatic-DT620-Indoor-Digital-Plug-In

Don’t use the manual switch with a heavy
load.  It seems to shorten the life.

John Balgenorth


On Aug 22, 2014, at 1:58 AM, Kay C Lan  wrote:

> On Tue, Aug 19, 2014 at 9:13 PM, Dr. Hawkins  wrote:
>> 
>> It plays from a selection of pre-recorded music (and I think it can add
>> more).
>> 
>> The very simple solutions won't work; it needs to, for example, go off
>> every day at 6.
>> 
> Used early model MacMini via eBay - $50-$100
> 
> Used AKAI LPK25 Midi Controller Interface Keyboard via eBay = $30
> 
> Garageband - Free.
> 
> Start it up, select a 'Keyboard' project, from there you can select
> 'Mallets' which include both Aurora and Church Bells.
> 
> Have some talented person play away to their hearts content - should
> be able to record several thousand hours of continuous music on an
> average old Mac HD.
> 
> Save best renditions from Garageband to mp3
> 
> Start iCal (if your unlucky and have a new Mac it might have Calendar
> installed in which case UPGRADE it by installing an earlier version of
> OS X like Snow Leopard that comes with the much more useful iCal) and
> create an Event 'Ring Church Bells' at 6:15 and have it repeat every
> day*. Set it's alarm to 15** mins before and have it "Open file"
> selecting the church bell mp3 file of your choice***.
> 
> If possible plug the headphone jack straight into the amp Aux inputs -
> need a 3.5mm to RCA adapter cable. A couple of dollars at RadioShack.
> If this isn't possible, a 1st generation Airport Express with AirPlay
> (eBay <$40) will allow you to wirelessly stream the music from the Mac
> to the Amplifier.
> 
> If power consumption is a problem a basic home timer could be set to
> turn the amp on from 5:45 to 6:15.
> 
> * Obviously you are not limited to a once a day event. You can create
> alarms for every hour, 1/2 hour, or whatever.
> 
> ** You will need to set the Mac to start and autostart iTunes each day
> at 5:55 and make sure the Mac is not set to go to sleep inside 15min
> of inactivity, otherwise, if iTunes isn't already running there will
> be a noticeable delay waiting for iTunes to start or the computer to
> wake up.
> 
> *** You could create 7 different events, one for each day, repeated
> weekly, and choose a different mp3 file for each day of the week. You
> could create special alarms for specific holidays and seasons and play
> specific files appropriate for those events.
> 
> Discounting the time spent in bidding wars on eBay, it should take
> about an hour to set up.
> 
> ___
> 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: Window manager plugin?

2014-08-22 Thread JB
Hi Mark,

Will that let you position the ask and answer dialogs?

John Balgenorth


On Aug 22, 2014, at 5:14 PM, Mark Schonewille 
 wrote:

> Hi Charles,
> 
> I made a plug-in (donationware) which makes sure that windows open inside a 
> visible screen rect and not off-screen. I could extend it and make it 
> remember window positions.
> 
> --
> 
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> 
> Download Color Converter at http://www.color-converter.com
> 
> Op 23-aug-2014, om 2:04 heeft Charles E Buchwald het volgende geschreven:
> 
>> Hi List Folks,
>> 
>> I've been thinking about making a plugin that manages window positions or 
>> window layouts. If you are familiar with Adobe applications like 
>> Illustrator, Photoshop or InDesign, then you may have an idea of what I 
>> mean. Or perhaps you have used system-level utilities like Moom, Divvy, 
>> Shiftit, GridMove or WindowTidy.
>> 
>> The idea is that you can save the position of one or more of your windows, 
>> including IDE palettes and so on, as a named set. Then you can switch back 
>> to those positions when you select that set again.
>> 
>> So, for example, one might have a window layout for working on iPhone apps 
>> and another for tablet apps... or one for a dual monitor setup vs. a single 
>> monitor setup... or for working on server scripts... or all of the above. I 
>> switch back and forth between my laptop on its own, and my laptop open and 
>> next to a second monitor, so this would be really useful.
>> 
>> Firstly: does anyone know of an existing LC plugin like this?
>> 
>> And of course: is anyone else interested in a plugin like this?
>> 
>> Cheers,
>> - Charles
> 
> 
> 
> ___
> 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: Window manager plugin?

2014-08-23 Thread JB
Hi Scott,

I put the script in my stack script and it continued to
show the answer dialog in the center of the screen.
So I replaced llc with “112,110” and  nothing changed.

Then I added "put the openStacks" into the mouseUp
handler where the answer dialog is called from.  If it
is at the very beginning of the handler it puts the open
stacks in the message box.  But if it is before or after
the answer script nothing is put in the message
box.

John Balgenorth


On Aug 23, 2014, at 8:54 AM, Scott Rossi  wrote:

> 
>>> 
>>> Will that let you position the ask and answer dialogs?
>>> 
>>> John Balgenorth
>>> 
>>> 
> 
> 
> 
> Here's one way to position ask/answer dialogs on desktop:
> 
> [ in your stack script ]
> 
> on suspendStack
>   if "ask dialog" is among the lines of the openStacks then
>  set the loc of stack "ask dialog" to the loc of me
>   end if
> end suspendStack
> 
> 
> on suspendStack
>   if "answer dialog" is among the lines of the openStacks then
>  set the loc of stack "answer dialog" to the loc of me
>   end if
> end suspendStack
> 
> 
> 
> ( can replace "loc of me" with any desired screenLoc )
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI 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: Window manager plugin?

2014-08-23 Thread JB
Thanks for the info, Richard.

John Balgenorth


On Aug 23, 2014, at 9:59 AM, Richard Gaskin  wrote:

> Scott Rossi wrote:
> 
>> Here's one way to position ask/answer dialogs on desktop:
>> 
>> [ in your stack script ]
>> 
>> on suspendStack
>>   if "ask dialog" is among the lines of the openStacks then
>>  set the loc of stack "ask dialog" to the loc of me
>>   end if
>> end suspendStack
>> 
>> 
>> on suspendStack
>>   if "answer dialog" is among the lines of the openStacks then
>>  set the loc of stack "answer dialog" to the loc of me
>>   end if
>> end suspendStack
>> 
>> ( can replace "loc of me" with any desired screenLoc )
> 
> On Windows and Linux centering to the topstack is already the default 
> behavior.
> 
> On OS X, if an alert applies application-wide the HIG suggest the standard 
> alert location (horizontally centered, 2/5 of the way down from the top 
> vertically).
> 
> When you need an answer dialog to apply to a single window, you can get both 
> enhanced behavior and window-specific location using the "as sheet" modifier:
> 
>  answer "Something" as sheet
> 
> Not only will this use OS X's recommended sheet appearance, but on all 
> platforms the alert box will be modal only to the stack over which is 
> appears, allowing the user to continue to interact with other windows.
> 
> That said, from time to time we're asked to do things outside of the HIG 
> recommendations, and there's a request for being able to set the loc of the 
> ask and answer dialogs in the RQCC:
> 
> 
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: Window manager plugin?

2014-08-23 Thread JB
Thanks Scott.

I cannot believe how dumb I am somedays.
The problem was I pasted the code as it was
in my openStack handler and after looking at
it I see they both call the same thing.

Your latest version fixed it.

thank again.

John Balgenorth


On Aug 23, 2014, at 10:07 AM, Scott Rossi  wrote:

> I should have clarified that I listed two scripts: one for answer, one for
> ask.  But the script is working here for all versions of LC, Mac and Win,
> including v7.  Not sure what to tell you.  Did you try the script in a
> new, empty stack?
> 
> Something like this would be better to be all-inclusive:
> 
> on suspendStack
>   put the openStacks into theList
>   if "answer dialog" is among the lines of theList then set the loc of
> stack "answer dialog" to loc of me
>   if "ask dialog" is among the lines of theList then set the loc of stack
> "ask dialog" to loc of me
> end suspendStack
> 
> 
> Historically, there has been no "approved" way to position the dialogs
> that I know of.  This method was suggested a long time ago (can't recall
> by who) but it works for me.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 8/23/14 9:25 AM, "JB"  wrote:
> 
>> Hi Scott,
>> 
>> I put the script in my stack script and it continued to
>> show the answer dialog in the center of the screen.
>> So I replaced llc with ³112,110² and  nothing changed.
>> 
>> Then I added "put the openStacks" into the mouseUp
>> handler where the answer dialog is called from.  If it
>> is at the very beginning of the handler it puts the open
>> stacks in the message box.  But if it is before or after
>> the answer script nothing is put in the message
>> box.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 23, 2014, at 8:54 AM, Scott Rossi  wrote:
>> 
>>> 
>>>>> 
>>>>> Will that let you position the ask and answer dialogs?
>>>>> 
>>>>> John Balgenorth
>>>>> 
>>>>> 
>>> 
>>> 
>>> 
>>> Here's one way to position ask/answer dialogs on desktop:
>>> 
>>> [ in your stack script ]
>>> 
>>> on suspendStack
>>>  if "ask dialog" is among the lines of the openStacks then
>>> set the loc of stack "ask dialog" to the loc of me
>>>  end if
>>> end suspendStack
>>> 
>>> 
>>> on suspendStack
>>>  if "answer dialog" is among the lines of the openStacks then
>>> set the loc of stack "answer dialog" to the loc of me
>>>  end if
>>> end suspendStack
>>> 
>>> 
>>> 
>>> ( can replace "loc of me" with any desired screenLoc )
>>> 
>>> 
>>> Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI 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
> 
> 
> 
> ___
> 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: Window manager plugin?

2014-08-23 Thread JB
Thanks, Jacque.

It is nice to have some more code examples.  I was
able to get it to work okay but if I use answer warning
the warning icon does not show.  Is there a way to
get it to show up with this code?

John Balgenorth


On Aug 23, 2014, at 11:06 AM, J. Landman Gay  wrote:

> On 8/23/2014, 12:07 PM, Scott Rossi wrote:
>> I should have clarified that I listed two scripts: one for answer, one for
>> ask.  But the script is working here for all versions of LC, Mac and Win,
>> including v7.  Not sure what to tell you.  Did you try the script in a
>> new, empty stack?
>> 
>> Something like this would be better to be all-inclusive:
>> 
>> on suspendStack
>>put the openStacks into theList
>>if "answer dialog" is among the lines of theList then set the loc of
>> stack "answer dialog" to loc of me
>>if "ask dialog" is among the lines of theList then set the loc of stack
>> "ask dialog" to loc of me
>> end suspendStack
> 
> I needed this once, and tried this suggestion but I couldn't get it to work 
> either. I'm not sure why. I settled on this hack:
> 
> on answerWithLoc pString,pBtn1,pBtn2
>  set the vis of stack "answer dialog" to false
>  answer pString with pBtn1 and pBtn2
>  set the loc of stack "answer dialog" to the loc of this stack
>  set the vis of stack "answer dialog" to true
> end answerWithLoc
> 
> -- 
> 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: Window manager plugin?

2014-08-23 Thread JB
That works good!

Very nice, thank you.

John Balgenorth


On Aug 23, 2014, at 12:39 PM, J. Landman Gay  wrote:

> If I change the "answer" line to this it works:
> 
> answer warning pString with pBtn1 and pBtn2
> 
> If you want a more flexible handler that answers with regular, warning, or 
> info icons, then you'd need to pass that in a parameter and branch the 
> handler depending on the type. I wasn't able to get it to compile with this:
> 
> answer pType pString with pBtn1 and pBtn2
> 
> so you'd need to do:
> 
> on answerWithLoc pType,pString,pBtn1,pBtn2
>  set the vis of stack "answer dialog" to false
>  switch pType
>case "warning"
>  answer warning pString with pBtn1 and pBtn2
>  break
>case "info"
>  answer info pString with pBtn1 and pBtn2
>  break
>default
>  answer pString with pBtn1 and pBtn2
>  end switch
>  set the loc of stack "answer dialog" to the loc of this stack
>  set the vis of stack "answer dialog" to true
> end answerWithLoc
> 
> 
> On 8/23/2014, 1:21 PM, JB wrote:
>> Thanks, Jacque.
>> 
>> It is nice to have some more code examples.  I was
>> able to get it to work okay but if I use answer warning
>> the warning icon does not show.  Is there a way to
>> get it to show up with this code?
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 23, 2014, at 11:06 AM, J. Landman Gay  
>> wrote:
>> 
>>> On 8/23/2014, 12:07 PM, Scott Rossi wrote:
>>>> I should have clarified that I listed two scripts: one for answer, one for
>>>> ask.  But the script is working here for all versions of LC, Mac and Win,
>>>> including v7.  Not sure what to tell you.  Did you try the script in a
>>>> new, empty stack?
>>>> 
>>>> Something like this would be better to be all-inclusive:
>>>> 
>>>> on suspendStack
>>>>put the openStacks into theList
>>>>if "answer dialog" is among the lines of theList then set the loc of
>>>> stack "answer dialog" to loc of me
>>>>if "ask dialog" is among the lines of theList then set the loc of stack
>>>> "ask dialog" to loc of me
>>>> end suspendStack
>>> 
>>> I needed this once, and tried this suggestion but I couldn't get it to work 
>>> either. I'm not sure why. I settled on this hack:
>>> 
>>> on answerWithLoc pString,pBtn1,pBtn2
>>>  set the vis of stack "answer dialog" to false
>>>  answer pString with pBtn1 and pBtn2
>>>  set the loc of stack "answer dialog" to the loc of this stack
>>>  set the vis of stack "answer dialog" to true
>>> end answerWithLoc
>>> 
>>> --
>>> 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
>> 
> 
> 
> -- 
> 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: Church bell app?

2014-08-23 Thread JB
America and society have changed drastically in the
last 10 years.

People are organized and many times they steal from
you are damage something you own simply because
they want to destroy you.  Aa a group they are like a
bunch of termites.  They each do their part no matter
lhow small it is because they know that even if they
each steal or somehow cost you a dollar if a hundred
of them do it to you a month you have lost one hundred
dollars.  They don’t stop at a hundred dollars and just
all keep attacking you in many different ways.

John Balgenorth


On Aug 23, 2014, at 4:39 PM, Dr. Hawkins  wrote:

> On Sat, Aug 23, 2014 at 3:51 PM, stephen barncard <
> stephenrevoluti...@barncard.com> wrote:
> 
>> so tempting to steal or lose. Interface is more difficult.
>> 
> 
> My initial reaction is that if someone is breaking into a byzantine church,
> electronics will be *way* low on their priority list.  The icons alone will
> be worth far more than the building . . .
> 
> But I suppose an ipod would be a target of opportunity & temptation.
> -- 
> 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


delete end chars

2014-08-24 Thread JB
If I have a certain amount of characters
and I want to check the end of another
line of characters to see if they are there
and if so then delete them what is the
fastest way to do delete the characters
at the end of the specified line?

___
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: delete end chars

2014-08-24 Thread JB
Hi,

Thanks for the reply.

I am saying if I have “ABC” in one string and the other string
has “KCFAJFCABC” then I want to delete the “ABC” from
the end of the second string leaving “KCFAJFC”.

John Balgenorth


On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:

> Hi.
> 
> 
> Are you saying that if you have "ABCD" and somewhere else you have: "AXFRZC" 
> that you want to delete the "C" from the first string?
> 
> 
> Whatever you want, the chunking and text control within LC is more than 
> adequate to do the job, and will be fun do execute as well. But is this what 
> you meant?
> 
> 
> Craig Newman
> 
> 
> 
> -Original Message-
> From: JB 
> To: How to use LiveCode 
> Sent: Sun, Aug 24, 2014 10:16 am
> Subject: delete end chars
> 
> 
> If I have a certain amount of characters
> and I want to check the end of another
> line of characters to see if they are there
> and if so then delete them what is the
> fastest way to do delete the characters
> at the end of the specified line?
> 
> ___
> 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: delete end chars

2014-08-24 Thread JB
Hi Richmond,

Wouldn’t that just delete the last char?  I need to
check for all characters in the first string to see if
they all exist in the same order of the last chars
of the second string.  I know I could use a repeat
to see if the characters all exist and then if they
do I could use a repeat that many times to delete
the last character.  I was thinking there might be
a faster or at least smaller way to write the code.
Would a regex be better and if so how do you
write the regex properly?

John Balgenorth


On Aug 24, 2014, at 8:14 AM, Richmond  wrote:

> On 24/08/14 17:12, JB wrote:
>> If I have a certain amount of characters
>> and I want to check the end of another
>> line of characters to see if they are there
>> and if so then delete them what is the
>> fastest way to do delete the characters
>> at the end of the specified line?
>> 
>> 
> 
> delete last char of XYZ [where 'XYZ" is a string]
> 
> delete last char of fld "XYZ"
> 
> 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: delete end chars

2014-08-24 Thread JB
That works good!

thank you,
John Balgenorth


On Aug 24, 2014, at 8:21 AM, Colin Holgate  wrote:

> on mouseUp
>   put fld 1 into f1
>   put fld 2 into f2
>   put offset(f1,f2) into offamount
>   if offamount = the number of chars in f2 - the number of chars in f1 + 1 
> then
>  put char 1 to offamount - 1 of f2 into fld 2
>   end if
> end mouseUp

___
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: delete end chars

2014-08-24 Thread JB
That works really good too!

thank you,
John Balgenorth


On Aug 24, 2014, at 8:38 AM, Peter M. Brigham  wrote:

> function zapAtEndOfLine tStr, tContainer
>   put cr after tContainer
>   replace tStr & cr with cr in tContainer
>   return char 1 to -2 of tContainer
> end zapAtEndOfLine
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> 
> On Aug 24, 2014, at 11:12 AM, JB wrote:
> 
>> Hi,
>> 
>> Thanks for the reply.
>> 
>> I am saying if I have “ABC” in one string and the other string
>> has “KCFAJFCABC” then I want to delete the “ABC” from
>> the end of the second string leaving “KCFAJFC”.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:
>> 
>>> Hi.
>>> 
>>> 
>>> Are you saying that if you have "ABCD" and somewhere else you have: 
>>> "AXFRZC" that you want to delete the "C" from the first string?
>>> 
>>> 
>>> Whatever you want, the chunking and text control within LC is more than 
>>> adequate to do the job, and will be fun do execute as well. But is this 
>>> what you meant?
>>> 
>>> 
>>> Craig Newman
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: JB 
>>> To: How to use LiveCode 
>>> Sent: Sun, Aug 24, 2014 10:16 am
>>> Subject: delete end chars
>>> 
>>> 
>>> If I have a certain amount of characters
>>> and I want to check the end of another
>>> line of characters to see if they are there
>>> and if so then delete them what is the
>>> fastest way to do delete the characters
>>> at the end of the specified line?
>>> 
>>> ___
>>> 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
> 
> 
> ___
> 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: delete end chars

2014-08-24 Thread JB
Hi Richmond,

That seems to leave me with the string I want to delete.
Even so thank you for the code.

John Balgenorth


On Aug 24, 2014, at 8:46 AM, Richmond  wrote:

> on mouseUp
>   put fld "TEXXT" into TEXXT
>   put the number of chars in TEXXT into CHNMB
>   repeat CHNMB times
>  if the last char of TEXXT is "A" then
> delete the last char of TEXXT
>  end if
>   if the last char of TEXXT is "B" then
> delete the last char of TEXXT
>  end if
>   if the last char of TEXXT is "C" then
> delete the last char of TEXXT
>  end if
>  put TEXXT into fld "TEXXT"
>   end repeat
> end mouseUp

___
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: delete end chars

2014-08-24 Thread JB
Thank you very much!

John Balgenorth


On Aug 24, 2014, at 9:01 AM, Richmond  wrote:

> On 24/08/14 18:54, JB wrote:
>> Hi Richmond,
>> 
>> That seems to leave me with the string I want to delete.
>> Even so thank you for the code.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 24, 2014, at 8:46 AM, Richmond  wrote:
>> 
>>> on mouseUp
>>>   put fld "TEXXT" into TEXXT
>>>   put the number of chars in TEXXT into CHNMB
>>>   repeat CHNMB times
>>>  if the last char of TEXXT is "A" then
>>> delete the last char of TEXXT
>>>  end if
>>>   if the last char of TEXXT is "B" then
>>> delete the last char of TEXXT
>>>  end if
>>>   if the last char of TEXXT is "C" then
>>> delete the last char of TEXXT
>>>  end if
>>>  put TEXXT into fld "TEXXT"
>>>   end repeat
>>> end mouseUp
>> 
> 
> I thought you wanted to 'snip' specific letters off the end of a chain of 
> letter.
> 
> Iff that is what you wanted, that script will 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


Re: delete end chars

2014-08-24 Thread JB
Thank you for the reply and code.

I can’t seem to get it to work right.
The only thing I could make it do is
if ABC is string1 and ABC us string2
it will delete string2 but if chars are
before the ABC in string2 nothing is
deleted.

Even so it is good code and I might
need to use it sometime.

John Balgenorth


On Aug 24, 2014, at 9:28 AM, Peter Haworth  wrote:

> if tString1 ends with tString2 then
>   delete char (the length of tString1 - the length of tString2 +1 ) to -1
> of tString1
> end if
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Sun, Aug 24, 2014 at 8:12 AM, JB  wrote:
> 
>> Hi,
>> 
>> Thanks for the reply.
>> 
>> I am saying if I have “ABC” in one string and the other string
>> has “KCFAJFCABC” then I want to delete the “ABC” from
>> the end of the second string leaving “KCFAJFC”.
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:
>> 
>>> Hi.
>>> 
>>> 
>>> Are you saying that if you have "ABCD" and somewhere else you have:
>> "AXFRZC" that you want to delete the "C" from the first string?
>>> 
>>> 
>>> Whatever you want, the chunking and text control within LC is more than
>> adequate to do the job, and will be fun do execute as well. But is this
>> what you meant?
>>> 
>>> 
>>> Craig Newman
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: JB 
>>> To: How to use LiveCode 
>>> Sent: Sun, Aug 24, 2014 10:16 am
>>> Subject: delete end chars
>>> 
>>> 
>>> If I have a certain amount of characters
>>> and I want to check the end of another
>>> line of characters to see if they are there
>>> and if so then delete them what is the
>>> fastest way to do delete the characters
>>> at the end of the specified line?
>>> 
>>> ___
>>> 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
>> 
> ___
> 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: delete end chars

2014-08-24 Thread JB
I got that one to work.  Thank you.

John Balgenorth


On Aug 24, 2014, at 9:42 AM, Scott Rossi  wrote:

> Pete beat me to the punch.
> 
> if text of fld 1 ends with text of fld 2 then \
> delete char -(length(fld 2)) to -1 of fld 1
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 8/24/14 9:28 AM, "Peter Haworth"  wrote:
> 
>> if tString1 ends with tString2 then
>>  delete char (the length of tString1 - the length of tString2 +1 ) to -1
>> of tString1
>> end if
>> 
>> Pete
>> lcSQL Software <http://www.lcsql.com>
>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>> 
>> 
>> On Sun, Aug 24, 2014 at 8:12 AM, JB  wrote:
>> 
>>> Hi,
>>> 
>>> Thanks for the reply.
>>> 
>>> I am saying if I have ³ABC² in one string and the other string
>>> has ³KCFAJFCABC² then I want to delete the ³ABC² from
>>> the end of the second string leaving ³KCFAJFC².
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:
>>> 
>>>> Hi.
>>>> 
>>>> 
>>>> Are you saying that if you have "ABCD" and somewhere else you have:
>>> "AXFRZC" that you want to delete the "C" from the first string?
>>>> 
>>>> 
>>>> Whatever you want, the chunking and text control within LC is more
>>> than
>>> adequate to do the job, and will be fun do execute as well. But is this
>>> what you meant?
>>>> 
>>>> 
>>>> Craig Newman
>>>> 
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: JB 
>>>> To: How to use LiveCode 
>>>> Sent: Sun, Aug 24, 2014 10:16 am
>>>> Subject: delete end chars
>>>> 
>>>> 
>>>> If I have a certain amount of characters
>>>> and I want to check the end of another
>>>> line of characters to see if they are there
>>>> and if so then delete them what is the
>>>> fastest way to do delete the characters
>>>> at the end of the specified line?
>>>> 
>>>> ___
>>>> 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
>>> 
>> ___
>> 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: delete end chars

2014-08-24 Thread JB
Thank you very much!

I was able to get the first one to work
but for some reason and it could be
me I could not get the second one
to work.

thanks again

John Balgenorth


On Aug 24, 2014, at 10:19 AM, Peter Haworth  wrote:

> Couple of other ways using regex.
> 
> get matchText(tString1,"(.*)" & tString2 & "$",tString1)
> 
> Or
> 
> if matchChunk(tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd) then
>   delete char tStart to tEnd of tString1
> end if
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Sun, Aug 24, 2014 at 9:28 AM, Peter Haworth  wrote:
> 
>> if tString1 ends with tString2 then
>>   delete char (the length of tString1 - the length of tString2 +1 ) to -1
>> of tString1
>> end if
>> 
>> Pete
>> lcSQL Software <http://www.lcsql.com>
>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>> 
>> 
>> On Sun, Aug 24, 2014 at 8:12 AM, JB  wrote:
>> 
>>> Hi,
>>> 
>>> Thanks for the reply.
>>> 
>>> I am saying if I have “ABC” in one string and the other string
>>> has “KCFAJFCABC” then I want to delete the “ABC” from
>>> the end of the second string leaving “KCFAJFC”.
>>> 
>>> John Balgenorth
>>> 
>>> 
>>> On Aug 24, 2014, at 8:09 AM, dunb...@aol.com wrote:
>>> 
>>>> Hi.
>>>> 
>>>> 
>>>> Are you saying that if you have "ABCD" and somewhere else you have:
>>> "AXFRZC" that you want to delete the "C" from the first string?
>>>> 
>>>> 
>>>> Whatever you want, the chunking and text control within LC is more than
>>> adequate to do the job, and will be fun do execute as well. But is this
>>> what you meant?
>>>> 
>>>> 
>>>> Craig Newman
>>>> 
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: JB 
>>>> To: How to use LiveCode 
>>>> Sent: Sun, Aug 24, 2014 10:16 am
>>>> Subject: delete end chars
>>>> 
>>>> 
>>>> If I have a certain amount of characters
>>>> and I want to check the end of another
>>>> line of characters to see if they are there
>>>> and if so then delete them what is the
>>>> fastest way to do delete the characters
>>>> at the end of the specified line?
>>>> 
>>>> ___
>>>> 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
>>> 
>> 
>> 
> ___
> 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: delete end chars

2014-08-24 Thread JB
I still can’t get it to work for some reason.  And the
first regex one ends up leaving me the letters that
I wanted to delete instead of leaving the other part.

After getting the others to work in a new stack I tried
them in the script I needed it for and the only one that
would work is the one Colin Holgate wrote.

It seems the ones that used “the text” int the script might
need to refer to a field and not a variable so I re wrote the
script to use a field and it still did not work.  I think it might
be due to the place in the script I needed it is nested deep\
in some repeat commands.

Once again thank you and everyone else for the help.

John Balgenorth


On Aug 24, 2014, at 12:35 PM, Peter Haworth  wrote:

> On Sun, Aug 24, 2014 at 10:35 AM, JB  wrote:
> 
>> (tString1,"(.*)" & tString2 & "$",tString1,tStart,tEnd)
> 
> 
> My apologies, should have tested it first!  It should be:
> 
> if matchChunk(tString1,".*(" & tString2 & ")$",tStart,tEnd) then
>   delete char tStart to tEnd of tString1
> end if
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.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: delete end chars

2014-08-24 Thread JB
You are right.  Thank you!

What happened is the variables were all
listed right in my code for the searching
and replacing and then I put the wrong
variable into the field I wanted to change.

thanks again.

John Balgenorth


On Aug 24, 2014, at 3:07 PM, Peter Haworth  wrote:

> On Sun, Aug 24, 2014 at 1:43 PM, JB  wrote:
> 
>> I still can’t get it to work for some reason.  And the
>> first regex one ends up leaving me the letters that
>> I wanted to delete instead of leaving the other part.
>> 
> 
> Strange.  They both work fine here.  Maybe the variables are the wrong way
> round?  tString1 is the one containing the string to be searched and
> tString2 is the string to be searched for ("ABC" in your example)
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.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: delete end chars

2014-08-25 Thread JB
You brought a lot to the table.  Test code is nice
ti have and I thank you for it.

I was thinking Peter’s would be faster and I wanted
to use it.  I got it working in a new stack with the code
the others wrote and saved it all.  They akk work in the
new stack but don’t work properly in the stack that need
it for.

The script has a few repeats in it and where I need it is
about as deep as you can get.  I have found when you
get real deep in repeats certain things don; work.  Like
if you compound your script into a single line which  is
good if it is deep in a repeat the engine can’t understand
the complex script.

thanks again!

John Balgenorth


On Aug 24, 2014, at 8:09 PM, Kay C Lan  wrote:

> Not bringing much to the table other than to say that if you are
> looking into large amounts of data, and need to do this millions of
> time, and therefore speed is of interest, Peter's grep solution is
> ever so slightly faster than Colin's. There isn't much in it and both
> scale well. If you'd like to test, create a new stack, one button  and
> in the btn copy the below script which is one mouseUp handler and one
> Function fRandomInRange.
> 
> The script will ask you how long you want your test string to be and
> how many times to you want to repeat the search. The default values of
> a string 100 chars long searched a million times (repeated 4 times)
> takes just over a second so don't be worried about starting with the
> default values. The search is repeated 4 times, 1st it does Colin's
> search, then it does Peter's search and just in case there is some
> kind of advantage/disadvantage regarding being first, I do Peter's
> search again and end off with Colin's.
> 
> When run the message box should end up with something like this:
> 
> For a random string of 100 chars long.
> Searched 100 times.
> Colin's 1st run: 362 ms
> Peter's 1st run: 349 ms
> Output Identical
> Peter's 2nd run: 351 ms
> Output Identical
> Colin's 2nd run: 356 ms
> Output Identical
> 
> BE MINDFUL OF LINE WRAPS
> 
> on mouseUp
>   ask "How many characters do you want in your random string" with
> 100 titled "Enter a Number"
>   put it - 3 into tAnswer
>   put "For a random string of " & tAnswer + 3 & " chars long." & cr into msg
>   repeat tAnswer times
>  --generates a number between 32 & 90 and turns it into an ASCII char
>  put numToChar(fRandomInRange(32,90)) after tData
>   end repeat
>   --so we know that the data contains the string to be found
>   put "ABC" after tData
>   put "ABC" into tFind
>   ask "How many times do you want to repeat the search" with 100
> titled "Enter a Number"
>   put it into tAnswer
>   put "Searched " & tAnswer & " times." & cr after msg
>   put the millisec into tStart
>   --Colin's 1st
>   repeat tAnswer times
>  put offset(tFind,tSearch) into tOffset
>  if (tOffset = the number of chars in tSearch - the number of
> chars in tFine + 1) then
> put char 1 to tOffset - 1 of tSearch into tFound
> put tFound into tColin1st
>  end if
>   end repeat
>   put the millisec into tEnd
>   put "Colin's 1st run: " & tEnd - tStart & " ms" & cr after msg
>   put the millisec into tStart
>   --Peter's 1st run
>   repeat tAnswer times
>  if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then
> put tFound into tPeter1st
>  end if
>   end repeat
>   put the millisec into tEnd
>   put "Peter's 1st run: " & tEnd - tStart & " ms" & cr after msg
>   if (tColin1st = tPeter1st) then
>  put "Output Identical" & cr after msg
>   else
>  put "ERROR!" & cr after msg
>   end if
>   put the millisec into tStart
>   --Peter's Again
>   repeat tAnswer times
>  if (matchText(tSearch,"(.*)" & tFind & "$",tFound)) then
> put tFound into tPeter2nd
>  end if
>   end repeat
>   put the millisec into tEnd
>   put "Peter's 2nd run: " & tEnd - tStart & " ms" & cr after msg
>   if (tPeter2nd = tPeter1st) then
>  put "Output Identical" & cr after msg
>   else
>  put "ERROR!" & cr after msg
>   end if
>   put the millisec into tStart
>   --Colin's 2nd run
>   repeat tAnswer times
>  put offset(tFind,tSearch) into tOffset
>  if (tOffset = the number of chars in tSearch - the number of
> chars in tFine + 1) then
> put char 1 to tOffset - 1 of tSearch into tFound
> put tFound into tColin2nd
>  end if
>   end repeat
>   put the millisec into tEnd
>   put "Colin's 2nd run: " & tEnd - tStart & " ms" & cr after msg
>   if (tPeter2nd = tColin2nd) then
>  put "Output Identical" after msg
>   else
>  put "ERROR!" after msg
>   end if
> end mouseUp
> 
> 
> 
> FUNCTION fRandomInRange pLower, pUpper
>   return random(pUpper - pLower + 1) + pLower -1
> end fRandomInRange
> 
> ___
> 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

Open App/file

2014-08-25 Thread JB
Is there a way to send a double click to
a file or application if I have the file path?
Or any other code that would allow me to
open a file or application?  I do not mean
I want a binary read/write I just want the
file or app to open like it does when I click
on it in the finder.

John Balgenorth

___
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: Open App/file

2014-08-25 Thread JB
Thank you!

I was looking in the dictionary for open and couldn’t find it.  This will
do the job.  Thanks.

John Balgenorth


On Aug 25, 2014, at 2:13 PM, Colin Holgate  wrote:

> launch [document path] with [application path] should work, shouldn’t it?
> 
> Read the Dictionary entry for other variations.
> ___
> 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: Window manager plugin?

2014-08-26 Thread JB
Thank you very much, Mark!!

That is really nice!

John Balgenorth


On Aug 25, 2014, at 12:49 PM, Mark Schonewille 
 wrote:

> John,
> 
> Here's my complete solution:
> 
> on mouseUp
> put item 1 of the screenLoc & comma &  round(item 2 of the screenLoc / 3) 
> into myLoc
> askAt "Hello","Write something",myLoc
> if it is not empty then
>  answerAt "You wrote:" && the result,myLoc,"Yep","Nope"
> end if
> put the result
> end mouseUp
> 
> on answerAt theMessage,theLoc
> put "answer information" && quote & theMessage & quote && "with" & space 
> into myScript
> if the paramCount is 2 then
>  put quote & "OK" & quote after myScript
> else
>  put quote & param(3) & quote after myScript
>  repeat with x = 4 to the paramCount
>   put space & "or" && quote & param(x) & quote after myScript
>  end repeat
> end if
> set the loc of the templateStack to theLoc
> set the vis of the templateStack to false
> create stack "Place Holder"
> set the defaultStack to "Place Holder"
> do myScript
> delete stack "Place Holder"
> return it
> end answerAt
> 
> on askAt theMessage,theDefault,theLoc
> put "ask question" && quote & theMessage & quote && "with" && quote & 
> theDefault & quote into myScript
> set the loc of the templateStack to theLoc
> set the vis of the templateStack to false
> create stack "Place Holder"
> set the defaultStack to "Place Holder"
> do myScript
> delete stack "Place Holder"
> return it
> end askAt
> 
> The advantage of this approach is that it only depends on the ask and answer 
> stacks and still works if the lockMessages has been set to true. It would 
> need some adjustments if you want to use unicode or HTML.
> 
> --
> 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 8/23/2014 13:07, Mark Schonewille wrote:
>> Hi John,
>> 
>> No, but that should be easy. There are several ways to do this. For example, 
>> create an invisible stack, set its location to the location where you want 
>> the answer dialog. Set the defaultStack to this stack and execute the ask or 
>> answer command. There may be more elegant ways.
>> 
>> set the topleft of the templateStack to 0,32
>> set the vis of the templateStack to false
>> create stack "place holder"
>> set the defaultStack to it
>> answer "bla"
>> put it into myAnswer
>> delete stack Place Holder"
>> 
>> This should work on windows and probably also on Mac, but on Mac I almost 
>> always use ask/answer as sheet.
>> 
>> --
>> Kind regards,
>> 
>> Mark Schonewille
>> Economy-x-Talk
>> Http://economy-x-talk.com
>> 
>> Share the clipboard of your computer over a local network with Clipboard 
>> Link http://clipboardlink.economy-x-talk.com
>> 
>> 
>> Op 23 aug. 2014 om 02:50 heeft JB  het volgende 
>> geschreven:
>> 
>>> Hi Mark,
>>> 
>>> Will that let you position the ask and answer dialogs?
>>> 
>>> John Balgenorth
>>> 
>>> 
> 
> 
> ___
> 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


delete lines

2014-08-27 Thread JB
I am using the files to list all of the files in a
folder.  This also list all of the hidden files &
they begin with a dot “.”.

What is the fastest way to delete all lines in
a variable that begin with a dot?

John Balgenorth


___
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: delete lines

2014-08-27 Thread JB
Hi Mark.

Thank you so very much!
I really appreciate it a lot.

John Balgenorth


On Aug 27, 2014, at 2:07 PM, Mark Schonewille 
 wrote:

> Hi John,
> 
> filter myVar without ".*"
> 
> 
> --
> 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 8/27/2014 22:58, JB wrote:
>> I am using the files to list all of the files in a
>> folder.  This also list all of the hidden files &
>> they begin with a dot “.”.
>> 
>> What is the fastest way to delete all lines in
>> a variable that begin with a dot?
>> 
>> John Balgenorth
>> 
> 
> 
> ___
> 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


join columns

2014-08-28 Thread JB
Richard Gaskin wrote a function to get a column
from a list.

function GetCol pData, pCol --Richard Gaskin
set the itemdel to tab
put empty into tReturnList
repeat for each line tLine in pData
put item pCol of tLine &cr after tReturnList
end repeat
delete last char of tReturnList -- trailing CR
return tReturnList
end GetCol

Does anyone know how to convert this so you can
join the selected columns back together in any
order you want?

John Balgenorth
___
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: join columns

2014-08-28 Thread JB
Thanks a whole bunch, Phil !!!

John Balgenorth


On Aug 28, 2014, at 12:10 PM, Phil Davis  wrote:

> If pData is a CR-delimited list where each line contains tab-delimited items, 
> why not use 'split by column'?
> 
> -- example: switch positions of columns 2 and 4
> 
>   split pData by column
>   put pData[4] into tTemp2
>   put pData[2] into pData[4]
>   put tTemp2 into pData[2]
> 
> 
> -- then put it back together as a list:
> 
>   combine pData by column
> 
> That should do it.
> 
> Phil Davis
> 
> 
> 
> On 8/28/14, 11:54 AM, JB wrote:
>> Richard Gaskin wrote a function to get a column
>> from a list.
>> 
>> function GetCol pData, pCol --Richard Gaskin
>> set the itemdel to tab
>> put empty into tReturnList
>> repeat for each line tLine in pData
>> put item pCol of tLine &cr after tReturnList
>> end repeat
>> delete last char of tReturnList -- trailing CR
>> return tReturnList
>> end GetCol
>> 
>> Does anyone know how to convert this so you can
>> join the selected columns back together in any
>> order you want?
>> 
>> John Balgenorth
>> ___
>> 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: join columns

2014-08-28 Thread JB
That is what I thought but once again thank yu
for the info and the clarification.  It helps a lot!

John Balgenorth


On Aug 28, 2014, at 12:17 PM, Phil Davis  wrote:

> Before doing the 'split', you could set the columnDelimiter to whatever char 
> is used as the item delimiter. In other words, you aren't limited to tabs as 
> your column delimiter.
> 
> Phil
> 
> 
> On 8/28/14, 12:10 PM, Phil Davis wrote:
>> If pData is a CR-delimited list where each line contains tab-delimited 
>> items, why not use 'split by column'?
>> 
>> -- example: switch positions of columns 2 and 4
>> 
>>   split pData by column
>>   put pData[4] into tTemp2
>>   put pData[2] into pData[4]
>>   put tTemp2 into pData[2]
>> 
>> 
>> -- then put it back together as a list:
>> 
>>   combine pData by column
>> 
>> That should do it.
>> 
>> Phil Davis
>> 
>> 
>> 
>> On 8/28/14, 11:54 AM, JB wrote:
>>> Richard Gaskin wrote a function to get a column
>>> from a list.
>>> 
>>> function GetCol pData, pCol --Richard Gaskin
>>> set the itemdel to tab
>>> put empty into tReturnList
>>> repeat for each line tLine in pData
>>> put item pCol of tLine &cr after tReturnList
>>> end repeat
>>> delete last char of tReturnList -- trailing CR
>>> return tReturnList
>>> end GetCol
>>> 
>>> Does anyone know how to convert this so you can
>>> join the selected columns back together in any
>>> order you want?
>>> 
>>> John Balgenorth
>>> ___
>>> 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: join columns

2014-08-28 Thread JB
Thank you, Alain!  This example will
help me out.

John Balgenoth


On Aug 28, 2014, at 12:24 PM, Alain Farmer  wrote:

> Correction:
> 
> function insertAsColumn colNumber, dataToInsert, intoThisTable
> --
> if the number of lines of dataToInsert is not the number of lines of 
> intoThisTable
> then die "Error: Lists have different lengths."
> --
> set the itemdel to tab
> repeat for each line x in dataToInsert
> get line x of dataToInsert
> put it & tab before item colNumber of line x of intoThisTable
> end
> repeat
> return intoThisTable
> --
> end insertAsColumn
> 
> on die dyingMessage
> answer dyingMessage
> exit to top
> end die
> 
> 
> 
> 
> On , Alain Farmer  wrote:
> 
> 
> 
> on insertAsColumn colNumber, dataToInsert, intoThisTable
> --
> if the number of lines of dataToInsert is not the number of lines of 
> intoThisTable
> then die "Error: Lists have different lengths."
> --
> set the itemdel to tab
> repeat for each line x in dataToInsert
> get line x of dataToInsert
> put it & tab before item colNumber of line x of intoThisTable
> end
> repeat
> return intoThisTable
> --
> insertAsColumn
> 
> on die dyingMessage
> answer dyingMessage
> exit to top
> end die
> 
> 
> 
> On Thursday, August 28, 2014 2:59:04 PM, JB  wrote:
> 
> 
> 
> Richard Gaskin wrote a function to get a column
> from a list.
> 
> function GetCol pData, pCol --Richard Gaskin
> set the itemdel to tab
> put empty into tReturnList
> repeat for each line tLine in pData
> put item pCol of tLine &cr after tReturnList
> end repeat
> delete last char of tReturnList -- trailing CR
> return tReturnList
> end GetCol
> 
> Does anyone know how to convert this so you can
> join the selected columns back together in any
> order you want?
> 
> John
> Balgenorth
> ___
> 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: join columns

2014-08-28 Thread JB
Hi Phil,

I am having trouble with the proper way
to write the combine pData by column.

I can split the columns and reverse them
like you show but how do you write the
code to combine them?  It looks to me
from the dictionary the column needs
to be a number but what line do I need
to put them on?

John Balgenorth


On Aug 28, 2014, at 12:10 PM, Phil Davis  wrote:

> If pData is a CR-delimited list where each line contains tab-delimited items, 
> why not use 'split by column'?
> 
> -- example: switch positions of columns 2 and 4
> 
>   split pData by column
>   put pData[4] into tTemp2
>   put pData[2] into pData[4]
>   put tTemp2 into pData[2]
> 
> 
> -- then put it back together as a list:
> 
>   combine pData by column
> 
> That should do it.
> 
> Phil Davis
> 
> 
> 
> On 8/28/14, 11:54 AM, JB wrote:
>> Richard Gaskin wrote a function to get a column
>> from a list.
>> 
>> function GetCol pData, pCol --Richard Gaskin
>> set the itemdel to tab
>> put empty into tReturnList
>> repeat for each line tLine in pData
>> put item pCol of tLine &cr after tReturnList
>> end repeat
>> delete last char of tReturnList -- trailing CR
>> return tReturnList
>> end GetCol
>> 
>> Does anyone know how to convert this so you can
>> join the selected columns back together in any
>> order you want?
>> 
>> John Balgenorth
>> ___
>> 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: join columns

2014-08-28 Thread JB
Hi Alain,

I am having trouble getting it to insert the column.
Here is the code I am using to access your function.

local dataToInsert, intoThisTable

on mouseUp
   put fld id 1056 into pData
   split pData by column
 put pData[4] into dataToInsert
   put insertAsColumn (3, dataToInsert, intoThisTable) into newTable
   put newTable into fld id 4738
end mouseUp

It puts the dataToInsert into id 4738.
What am I doing wrong here?

John Balgenorth


On Aug 28, 2014, at 2:11 PM, Alain Farmer  wrote:

> Improved it again :
> 
> function insertAsColumn colNumber, dataToInsert, intoThisTable
> --
> if dataToInsert is empty then
> answer "insert empty column ?" with "cancel" or "insert"
> if it is "cancel" then exit to top
> end if
> --
> if intoThisTable is empty then return dataToInsert
> --
> if the number of lines of dataToInsert is not the number of lines of 
> intoThisTable
> then die "Error: Lists have different lengths."
> --
> set the itemdel to tab
> put the number of items of line 1 of intoThisTable into lastCol
> if (colNumber < 1) or (colNumber > lastCol) then
> ask "colNumber must be an integer between 1 and" && lastCol with 1
> if the result is "cancel" then exit to top
> if (it is empty) or (it is not a number)
> then die "colNumber must be an integer between 1 and" && lastCol
> end if
> --
> if colNumber is lastCol then
> repeat for each line x in dataToInsert
> get line x of dataToInsert
> put tab & it after line x of intoThisTable
> end repeat
> else
> repeat for each line x in dataToInsert
> get line x of dataToInsert
> put it & tab before item colNumber of line x of intoThisTable
> end repeat
> end if
> --
> return intoThisTable
> --
> end insertAsColumn
> 
> on die dyingMessage
> answer dyingMessage
> exit to top
> end die
> 
> 
> 
> On Thursday, August 28, 2014 4:04:10 PM, Magicgate Software - Skip Kimpel 
>  wrote:
> 
> 
> 
> Haha. I like the paranoid version :)
> 
> SKIP
> 
> 
> On Thu, Aug 28, 2014 at 3:53 PM, Alain Farmer 
> wrote:
> 
>> Here is the paranoid version :
>> 
>> function insertAsColumn colNumber, dataToInsert, intoThisTable
>>  --
>>  if dataToInsert is empty then
>>  answer "insert empty column ?" with "cancel" or "insert"
>>  if it is "cancel" then exit to top
>>  end if
>>  --
>>  if intoThisTable is empty then return dataToInsert
>>  --
>>  if the number of lines of dataToInsert is not the number of lines of
>> intoThisTable
>>  then die "Error: Lists have different lengths."
>>  --
>>  set the itemdel to tab
>>  put the number of items of line 1 of intoThisTable into lastCol
>>  if (colNumber < 1) or (colNumber > lastCol) then
>>  ask "colNumber must be an integer between 1 and" && lastCol with 1
>>  if the result is "cancel" then exit to top
>>  if (it is empty) or (it is not a number)
>>  then die "colNumber must be an integer between 1 and" && lastCol
>>  end if
>>  --
>>  repeat for each line x in dataToInsert
>>  get line x of dataToInsert
>>  put it & tab before item colNumber of line x of intoThisTable
>>  end repeat
>>  return intoThisTable
>>  --
>> end insertAsColumn
>> 
>> on die dyingMessage
>>  answer dyingMessage
>>  exit to top
>> end die
>> 
>> 
>> 
>> On Thursday, August 28, 2014 3:31:30 PM, JB  wrote:
>> 
>> 
>> 
>> Thank you, Alain!  This example will
>> help me out.
>> 
>> John Balgenoth
>> 
>> 
>> On Aug 28, 2014, at 12:24 PM, Alain Farmer  wrote:
>> 
>>> Correction:
>>> 
>>> function insertAsColumn colNumber, dataToInsert, intoThisTable
>>>  --
>>>  if the number of lines of dataToInsert is not the number of lines of
>> intoThisTable
>>>  then die "Error: Lists have different lengths."
>>>  --
>>>  set the itemdel to tab
>>>  repeat for each line x in dataToInsert
>>>  get line x of dataToInsert
>>>  put it & tab before item colNum

Re: join columns

2014-08-28 Thread JB
That was wrong.  It should be,  But it does
not give me a whole table.

on mouseUp
  put fld id 1056 into intoThisTable
  split intoThisTable by column
put intoThisTable[4] into dataToInsert
  put insertAsColumn (3, dataToInsert, intoThisTable) into newTable
  put newTable into fld id 4738
end mouseUp
On Aug 28, 2014, at 2:49 PM, JB  wrote:

> on mouseUp
>   put fld id 1056 into pData
>   split pData by column
> put pData[4] into dataToInsert
>   put insertAsColumn (3, dataToInsert, intoThisTable) into newTable
>   put newTable into fld id 4738
> end mouseUp

___
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: join columns

2014-08-28 Thread JB
Hi Phil,

Thank you so many times!!!

It does work.  I was thinking i needed to add more to it
and never tried it like it was.

This is my first time with arrays.  So I was looking around
for infö and in the process came up with a good lesson on
arrays.

http://revolution.byu.edu/arrays/introToArrays.php

Thanks again!

John Balgenorth

On Aug 28, 2014, at 3:43 PM, Phil Davis  wrote:

> Hi John,
> 
> It should work if you just say "combine pData by column" and nothing more. At 
> least it does here - just tested it. It restructures the pData array back 
> into its original list format, but with items moved to their new positions.
> 
> Phil
> 
> 
> On 8/28/14, 2:27 PM, JB wrote:
>> Hi Phil,
>> 
>> I am having trouble with the proper way
>> to write the combine pData by column.
>> 
>> I can split the columns and reverse them
>> like you show but how do you write the
>> code to combine them?  It looks to me
>> from the dictionary the column needs
>> to be a number but what line do I need
>> to put them on?
>> 
>> John Balgenorth
>> 
>> 
>> On Aug 28, 2014, at 12:10 PM, Phil Davis  wrote:
>> 
>>> If pData is a CR-delimited list where each line contains tab-delimited 
>>> items, why not use 'split by column'?
>>> 
>>> -- example: switch positions of columns 2 and 4
>>> 
>>>   split pData by column
>>>   put pData[4] into tTemp2
>>>   put pData[2] into pData[4]
>>>   put tTemp2 into pData[2]
>>> 
>>> 
>>> -- then put it back together as a list:
>>> 
>>>   combine pData by column
>>> 
>>> That should do it.
>>> 
>>> Phil Davis
>>> 
>>> 
>>> 
>>> On 8/28/14, 11:54 AM, JB wrote:
>>>> Richard Gaskin wrote a function to get a column
>>>> from a list.
>>>> 
>>>> function GetCol pData, pCol --Richard Gaskin
>>>> set the itemdel to tab
>>>> put empty into tReturnList
>>>> repeat for each line tLine in pData
>>>> put item pCol of tLine &cr after tReturnList
>>>> end repeat
>>>> delete last char of tReturnList -- trailing CR
>>>> return tReturnList
>>>> end GetCol
>>>> 
>>>> Does anyone know how to convert this so you can
>>>> join the selected columns back together in any
>>>> order you want?
>>>> 
>>>> John Balgenorth
>>>> ___
>>>> 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
> 


___
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: join columns

2014-08-28 Thread JB
Your sample has opened the door to arrays for me.
I love arrays now that I know how to use them.

thanks a lot!

John Balgenorth


On Aug 28, 2014, at 5:51 PM, Phil Davis  wrote:

> Arrays are great for many uses! I'm glad you got it to work. The BYU lessons 
> are a good place to learn a lot.
> 
> Phil
> 
> 
> On 8/28/14, 3:47 PM, JB wrote:
>> Hi Phil,
>> 
>> Thank you so many times!!!
>> 
>> It does work.  I was thinking i needed to add more to it
>> and never tried it like it was.
>> 
>> This is my first time with arrays.  So I was looking around
>> for infö and in the process came up with a good lesson on
>> arrays.
>> 
>> http://revolution.byu.edu/arrays/introToArrays.php
>> 
>> Thanks again!
>> 
>> John Balgenorth
>> 
>> On Aug 28, 2014, at 3:43 PM, Phil Davis  wrote:
>> 
>>> Hi John,
>>> 
>>> It should work if you just say "combine pData by column" and nothing more. 
>>> At least it does here - just tested it. It restructures the pData array 
>>> back into its original list format, but with items moved to their new 
>>> positions.
>>> 
>>> Phil
>>> 
>>> 
>>> On 8/28/14, 2:27 PM, JB wrote:
>>>> Hi Phil,
>>>> 
>>>> I am having trouble with the proper way
>>>> to write the combine pData by column.
>>>> 
>>>> I can split the columns and reverse them
>>>> like you show but how do you write the
>>>> code to combine them?  It looks to me
>>>> from the dictionary the column needs
>>>> to be a number but what line do I need
>>>> to put them on?
>>>> 
>>>> John Balgenorth
>>>> 
>>>> 
>>>> On Aug 28, 2014, at 12:10 PM, Phil Davis  wrote:
>>>> 
>>>>> If pData is a CR-delimited list where each line contains tab-delimited 
>>>>> items, why not use 'split by column'?
>>>>> 
>>>>> -- example: switch positions of columns 2 and 4
>>>>> 
>>>>>   split pData by column
>>>>>   put pData[4] into tTemp2
>>>>>   put pData[2] into pData[4]
>>>>>   put tTemp2 into pData[2]
>>>>> 
>>>>> 
>>>>> -- then put it back together as a list:
>>>>> 
>>>>>   combine pData by column
>>>>> 
>>>>> That should do it.
>>>>> 
>>>>> Phil Davis
>>>>> 
>>>>> 
>>>>> 
>>>>> On 8/28/14, 11:54 AM, JB wrote:
>>>>>> Richard Gaskin wrote a function to get a column
>>>>>> from a list.
>>>>>> 
>>>>>> function GetCol pData, pCol --Richard Gaskin
>>>>>> set the itemdel to tab
>>>>>> put empty into tReturnList
>>>>>> repeat for each line tLine in pData
>>>>>> put item pCol of tLine &cr after tReturnList
>>>>>> end repeat
>>>>>> delete last char of tReturnList -- trailing CR
>>>>>> return tReturnList
>>>>>> end GetCol
>>>>>> 
>>>>>> Does anyone know how to convert this so you can
>>>>>> join the selected columns back together in any
>>>>>> order you want?
>>>>>> 
>>>>>> John Balgenorth
>>>>>> ___
>>>>>> 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
>>> 
>> 
>> ___
>> 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: Delete columns... How?

2014-08-29 Thread JB
Thank you!  That is something I
needed very much today.

John Balgenorth


On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com  
wrote:

> Related problem to 'join columns': How to delete a column of data?
> 
> This fails...
> 
> on mouseUp
>  get fld 1
>  split it by column
>  delete local it[2]
>  combine it by column
>  put it into fld 2
> end mouseUp
> 
> It seems that 'combine by column' requires the same number of array keys as
> the original data set.
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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: Delete columns... How?

2014-08-29 Thread JB
My eyes are not working.  I now see
you said it fails.

John Balgenorth


On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com  
wrote:

> Related problem to 'join columns': How to delete a column of data?
> 
> This fails...
> 
> on mouseUp
>  get fld 1
>  split it by column
>  delete local it[2]
>  combine it by column
>  put it into fld 2
> end mouseUp
> 
> It seems that 'combine by column' requires the same number of array keys as
> the original data set.
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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: Delete columns... How?

2014-08-29 Thread JB
I am sure someone else
can do it better but this works.

on mouseUp
   put fld id 1056 into pData
   set the itemdel to tab
   split pData by column
 put pData[4] into tType
 put pData[3] into tSize
 put "size = empty" into tSize
 put pData[2] into tModDate
 put empty into tModDate —THIS COLUMN DELETED
 put pData[1] into tName
 put tModDate into pData[3]
 put tType into pData[1]
 put tSize into pData[4]
   put tName into pData[2]
   
   combine pData by column
   put pData into fld id 1056
end mouseUp

John Balgenorth


On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com  
wrote:

> Related problem to 'join columns': How to delete a column of data?
> 
> This fails...
> 
> on mouseUp
>  get fld 1
>  split it by column
>  delete local it[2]
>  combine it by column
>  put it into fld 2
> end mouseUp
> 
> It seems that 'combine by column' requires the same number of array keys as
> the original data set.
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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: Delete columns... How?

2014-08-29 Thread JB
I knew someone had a better way.

thank you.

John Balgenorth


On Aug 29, 2014, at 9:06 AM, Peter Haworth  wrote:

> Sometimes I dream of:
> 
> delete column 3 of line 1 to -1 of tVar
> 
> Pete
> lcSQL Software 
> Home of lcStackBrowser  and
> SQLiteAdmin 
> 
> 
> On Fri, Aug 29, 2014 at 2:33 AM, FlexibleLearning.com <
> ad...@flexiblelearning.com> wrote:
> 
>> Related problem to 'join columns': How to delete a column of data?
>> 
>> This fails...
>> 
>> on mouseUp
>>  get fld 1
>>  split it by column
>>  delete local it[2]
>>  combine it by column
>>  put it into fld 2
>> end mouseUp
>> 
>> It seems that 'combine by column' requires the same number of array keys as
>> the original data set.
>> 
>> Hugh Senior
>> FLCo
>> 
>> 
>> 
>> ___
>> 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: Delete columns... How?

2014-08-29 Thread JB
On this the column to delete would
need to be joined at the end.

John Balgenorth

On Aug 29, 2014, at 9:02 AM, JB  wrote:

> I am sure someone else
> can do it better but this works.
> 
> on mouseUp
>   put fld id 1056 into pData
>   set the itemdel to tab
>   split pData by column
> put pData[4] into tType
> put pData[3] into tSize
> put "size = empty" into tSize
> put pData[2] into tModDate
> put empty into tModDate —THIS COLUMN DELETED
> put pData[1] into tName
> put tModDate into pData[3]
> put tType into pData[1]
> put tSize into pData[4]
>   put tName into pData[2]
> 
>   combine pData by column
>   put pData into fld id 1056
> end mouseUp
> 
> John Balgenorth
> 
> 
> On Aug 29, 2014, at 2:33 AM, FlexibleLearning.com 
>  wrote:
> 
>> Related problem to 'join columns': How to delete a column of data?
>> 
>> This fails...
>> 
>> on mouseUp
>> get fld 1
>> split it by column
>> delete local it[2]
>> combine it by column
>> put it into fld 2
>> end mouseUp
>> 
>> It seems that 'combine by column' requires the same number of array keys as
>> the original data set.
>> 
>> Hugh Senior
>> FLCo
>> 
>> 
>> 
>> ___
>> 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: [OT] Spies under the bed.

2014-08-31 Thread JB
It sounds to me like the spies came out from
under the bed and are now in your bed.

Booz, Allen, Hamilton

They are in control of everything and in bed with
every politician and government agency.  They
are bank managers and corporate managers in
every private, industrial and government agency.
They are involved deeply in the DOJ, SEC, FBI
NSA, Homeland Security and anything else you
can think of and even things you cannot think of.

They are attorneys, prosecutors and judges so if
they want to destroy you even your own attorney
will help lose the case.  They control the news in
America.

In other words get used to it because unless they
are stopped nothing will change.  They control the
politicians in America so who ever wins a election
will be serving them and not the people.  it is what
is in their best interest that counts.  They are part
of the military industrial complex that Eisenhower
warned US about in his departure speech.

They are a global company.

John Balgenorth



On Aug 31, 2014, at 8:33 AM, Richmond  wrote:

> I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I 
> have never used
> in any e-mail ever before or since.
> 
> Within 72 hours my gmail inbox is filling up with e-mail spam based on that 
> phrase.
> 
> This is NOT meant as an indictment of Heather!
> 
> But what is does show is that any e-mail that contains any "interesting" 
> information
> gets harvested by spy-bots or whatever quicker than you can say 
> "numToCodepoint".
> 
> 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: [OT] Spies under the bed.

2014-08-31 Thread JB
Hi Richard,

Don’t worry about it too much.  They
will tell you they love you.  This is all
being done for your own good.  They
care about you & want to protect you
from all sorts of things.

The only reason the spies came out
from under your bed and are now in
your bed is because they love you &
care about you.

In other words you are about to get
screwed.  Do not resist it will only
make it worse.

John Balgenorth


On Aug 31, 2014, at 9:22 AM, JB  wrote:

> It sounds to me like the spies came out from
> under the bed and are now in your bed.
> 
> Booz, Allen, Hamilton
> 
> They are in control of everything and in bed with
> every politician and government agency.  They
> are bank managers and corporate managers in
> every private, industrial and government agency.
> They are involved deeply in the DOJ, SEC, FBI
> NSA, Homeland Security and anything else you
> can think of and even things you cannot think of.
> 
> They are attorneys, prosecutors and judges so if
> they want to destroy you even your own attorney
> will help lose the case.  They control the news in
> America.
> 
> In other words get used to it because unless they
> are stopped nothing will change.  They control the
> politicians in America so who ever wins a election
> will be serving them and not the people.  it is what
> is in their best interest that counts.  They are part
> of the military industrial complex that Eisenhower
> warned US about in his departure speech.
> 
> They are a global company.
> 
> John Balgenorth
> 
> 
> 
> On Aug 31, 2014, at 8:33 AM, Richmond  wrote:
> 
>> I wrote an e-mail to Heather, the list Mum, in which I used a phrase which I 
>> have never used
>> in any e-mail ever before or since.
>> 
>> Within 72 hours my gmail inbox is filling up with e-mail spam based on that 
>> phrase.
>> 
>> This is NOT meant as an indictment of Heather!
>> 
>> But what is does show is that any e-mail that contains any "interesting" 
>> information
>> gets harvested by spy-bots or whatever quicker than you can say 
>> "numToCodepoint".
>> 
>> 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
> 


___
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


Filtering FIle Types

2014-09-01 Thread JB
If I have folder with thousands of files
I can use the Files and get a list of the
file names and it will end with the type
preceded by a dot such as .jpg.

I can set the item delimiter to “.” and do
a repeat to get the last item of each line
and I will have a list of all file types and
the name/line they are associated with.

If I want to filter the list to only include a
certain list of file types I can do a repeat
and check the type for each file name &
then provide a list of types to check such
as “png,db,gif.text” and say if if “jpg” is in
the list then do whatever like include or do
not include this file in the list.

What is the fastest way to filter a list of files
if you know the name and type of the file?
Would a regex be good for this?

John Balgenorth
___
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: Filtering FIle Types

2014-09-01 Thread JB
I have not tried it yet but if it works
the problem is I might want to use
a variety of file types so the repeat
would filter one line at a time and
then you check for that type in the
list of types you will allow.

The way you provided would need it
to allow a list of types or I would need
to keep filtering so there might be a
faster way but I am not sure.

Thank you for the reply and code advice.

John Balgenorth


On Sep 1, 2014, at 1:24 PM, Martin Koob  wrote:

> 
> I think you can use the filter command with a wildcard and your extension. 
> Put your folder path into tMyFolderPath then:
> 
> set the folder to tMyFolderPath
> put the files into theFiles
> filter theFiles with "*.jpg"
> 
> Martin
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Filtering-FIle-Types-tp4682777p4682778.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
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: Filtering FIle Types

2014-09-02 Thread JB
Thank you for the reply and code.

If I call it for every type I want then
I will need to splice it back together
with the other types I filtered after I
am done calling for each type.

I guess there comes a point when I
have added a certain amount of types
it will be faster to do one line at a time.

Thank you for the code!

John Balgenorth


On Sep 2, 2014, at 5:17 AM, Peter M. Brigham  wrote:

> you can use the following:
> 
> function filterByType pFileList, pType
>   -- assuming pType is of the form "jpg" or "png"
>   filter pFileList by ("*." & pType)
>   return pFileList
> end filterByType
> 
> and call it repeatedly for whatever file types you want.
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> 
> On Sep 1, 2014, at 4:28 PM, JB wrote:
> 
>> I have not tried it yet but if it works
>> the problem is I might want to use
>> a variety of file types so the repeat
>> would filter one line at a time and
>> then you check for that type in the
>> list of types you will allow.
>> 
>> The way you provided would need it
>> to allow a list of types or I would need
>> to keep filtering so there might be a
>> faster way but I am not sure.
>> 
>> Thank you for the reply and code advice.
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 1, 2014, at 1:24 PM, Martin Koob  wrote:
>> 
>>> 
>>> I think you can use the filter command with a wildcard and your extension. 
>>> Put your folder path into tMyFolderPath then:
>>> 
>>> set the folder to tMyFolderPath
>>> put the files into theFiles
>>> filter theFiles with "*.jpg"
>>> 
>>> Martin
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: 
>>> http://runtime-revolution.278305.n4.nabble.com/Filtering-FIle-Types-tp4682777p4682778.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> 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: Filtering FIle Types

2014-09-02 Thread JB
Thank you.

Is there a regex that will work
with Revolution?

John Balgenorth


On Sep 2, 2014, at 8:18 AM, Peter Haworth  wrote:

> Thew new syntax for the filter command (don;t recall which version it was
> introduced but it works in 6.6.2) lets you filter with a regular
> expression, so the following will do it in one filter command, no need to
> repeat for each line:
> 
> filter lines of tFiles with regex pattern ".*\.jpg|png"
> 
> Just replace the "jpg|png" with a list of the file types you are looking
> for separated by the "|" character
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 
> 
> On Mon, Sep 1, 2014 at 1:28 PM, JB  wrote:
> 
>> I have not tried it yet but if it works
>> the problem is I might want to use
>> a variety of file types so the repeat
>> would filter one line at a time and
>> then you check for that type in the
>> list of types you will allow.
>> 
>> The way you provided would need it
>> to allow a list of types or I would need
>> to keep filtering so there might be a
>> faster way but I am not sure.
>> 
>> Thank you for the reply and code advice.
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 1, 2014, at 1:24 PM, Martin Koob  wrote:
>> 
>>> 
>>> I think you can use the filter command with a wildcard and your
>> extension.
>>> Put your folder path into tMyFolderPath then:
>>> 
>>> set the folder to tMyFolderPath
>>> put the files into theFiles
>>> filter theFiles with "*.jpg"
>>> 
>>> Martin
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/Filtering-FIle-Types-tp4682777p4682778.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> ___
>> 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: Filtering FIle Types

2014-09-02 Thread JB
That looks like what i need!!

Thank you very much!

John Balgenorth


On Sep 2, 2014, at 10:50 AM, Peter M. Brigham  wrote:

> Here's an expanded version -- feed it a list of filetypes and get them all at 
> once:
> 
> function filterByType pFileList, pTypeList
>   -- assuming pTypeList is of the form "jpg,png,gif" (for instance)
>   repeat for each item t in pTypeList
>  put pFileList into workingList
>  filter workingList by ("*." & t)
>  put workingList & cr after outList
>   end repeat
>   return char 1 to -2 of outList
> end filterByType
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> 
> On Sep 2, 2014, at 1:14 PM, JB wrote:
> 
>> Thank you for the reply and code.
>> 
>> If I call it for every type I want then
>> I will need to splice it back together
>> with the other types I filtered after I
>> am done calling for each type.
>> 
>> I guess there comes a point when I
>> have added a certain amount of types
>> it will be faster to do one line at a time.
>> 
>> Thank you for the code!
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 2, 2014, at 5:17 AM, Peter M. Brigham  wrote:
>> 
>>> you can use the following:
>>> 
>>> function filterByType pFileList, pType
>>> -- assuming pType is of the form "jpg" or "png"
>>> filter pFileList by ("*." & pType)
>>> return pFileList
>>> end filterByType
>>> 
>>> and call it repeatedly for whatever file types you want.
>>> 
>>> -- Peter
>>> 
>>> Peter M. Brigham
>>> pmb...@gmail.com
>>> http://home.comcast.net/~pmbrig
>>> 
>>> 
>>> On Sep 1, 2014, at 4:28 PM, JB wrote:
>>> 
>>>> I have not tried it yet but if it works
>>>> the problem is I might want to use
>>>> a variety of file types so the repeat
>>>> would filter one line at a time and
>>>> then you check for that type in the
>>>> list of types you will allow.
>>>> 
>>>> The way you provided would need it
>>>> to allow a list of types or I would need
>>>> to keep filtering so there might be a
>>>> faster way but I am not sure.
>>>> 
>>>> Thank you for the reply and code advice.
>>>> 
>>>> John Balgenorth
>>>> 
>>>> 
>>>> On Sep 1, 2014, at 1:24 PM, Martin Koob  wrote:
>>>> 
>>>>> 
>>>>> I think you can use the filter command with a wildcard and your 
>>>>> extension. 
>>>>> Put your folder path into tMyFolderPath then:
>>>>> 
>>>>> set the folder to tMyFolderPath
>>>>> put the files into theFiles
>>>>> filter theFiles with "*.jpg"
>>>>> 
>>>>> Martin
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> View this message in context: 
>>>>> http://runtime-revolution.278305.n4.nabble.com/Filtering-FIle-Types-tp4682777p4682778.html
>>>>> Sent from the Revolution - User mailing list archive at Nabble.com.
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-livecode@lists.runrev.com
>>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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
> 
> 
> ___
> 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: Filtering FIle Types

2014-09-02 Thread JB
You posted

>> Thew new syntax for the filter command (don;t recall which version it was
>> introduced but it works in 6.6.2)

Maybe that is why I get an error when I even put
the script into my button.

It works on LiveCode 6.6.2 and higher not Revolution.
Not to be critical of LiveCode I just happen to be working
or a project in the last version of Revolution Enterprise.

John  Balgenorth

\
On Sep 2, 2014, at 12:12 PM, Peter Haworth  wrote:

>>> Thew new syntax for the filter command (don;t recall which version it was
>>> introduced but it works in 6.6.2)

___
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: Delete columns of data

2014-09-04 Thread JB
That is fast but here are a few problems I
am having.

It looks to me like you can only delete one
column and then you use it again to delete
another column.

I am getting a list of the detailed files which
is a comma separated list of 11 items and I
only want to end up with 4 columns.  When
I use it again it looks like I need to calculate
the column I deleted to know which columns
I still need to delete.  Not major issue.  The
bigger problem is this scenario.  I deleted a
bunch of columns from a list of a little over
30,000 files and it worked but then I use the
open to select another folder of files and it
only had around 305 files but for some reason
it appears the memory is not cleared because
the cursor spins and won’t take me to the other
folder.  I use Force Quit and it list Revolution as
not responding.  It does not look like this is code
limited to newer versions of LiveCode so I don’t
understand why Revolution would quit responding.

John Balgenorth


On Sep 2, 2014, at 11:13 AM, FlexibleLearning.com  
wrote:

> This takes 2ms to remove 4 columns from a 100x100 data table...
> 
> on mouseUp
>  --| Syntax: deleteColumns ,
>  --| data: Specifies the data to parse
>  --| cols: A comma separated list of columns to be removed
>  deleteColumns fld "Input","5,10,15,20"
>  -- Specify what to do with 'the result'...
>  put the result into fld "Output"
> end mouseUp
> 
> -- A single variable approach
> on deleteColumns pData,pColsToDelete
>  split pData by column
>  put item 2 of extents(pData) into tMax
>  repeat with n=1 to tMax
>if n is NOT among the items of pColsToDelete then
>  add 1 to x
>  put pData[n] into pData[x]
>end if
>  end repeat
>  repeat with n=x+1 to tMax
>delete local pData[n]
>  end repeat
>  combine pData by column
>  return pData
> end deleteColumns
> 
> 
> An enhancement request has been submitted to allow non-sequential keys to be
> combined. Meanwhile, this does it.
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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


Swift externals

2014-09-05 Thread JB
It sounds like Apples new programming language
Swift is going to be used in LiveCode.  Swift looks
similar to a scripting language.

Does anyone know when the official release of Swift
is and will it be possible to incorporate it into older
versions like Revolution?  It looks like Swift would be
a good way to write externals instead of Xcode 2.4
which is outdated.

John Balgenorth

___
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: Delete columns of data

2014-09-05 Thread JB
All 3 of you have posted some fantastic code!

Thank you, Hugh, Peter and Mike.  I can use it
to solve some problems.

John Balgenorth



On Sep 5, 2014, at 4:09 PM, Peter M. Brigham  wrote:

> Great!
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> On Sep 5, 2014, at 1:51 PM, Michael Doub wrote:
> 
>> Here is an even more general version:
>> 
>> function deleteColumns pData,pColsToDelete,pDelim
>>  -- delete specified columns from a table
>>  -- Syntax: deleteColumns ,[,]
>>  -- data: Specifies the data to parse.
>>  -- cols: A comma separated list of columns or column ranges to be 
>> removed,
>>  -- for example "2,5,7"
>>  -- or a column range: "3-5"
>>  -- or a combination "2,4-5,7,9-11,"
>>  -- delim: Optional column separator for example "," or "|"
>>  -- if unspecified, defaults to tab.
>>  -- based on a handler by Hugh Senior and Peter M. Brigham, Use-LC list
>> 
>>  -- requires getItem()
>> 
>>  if pColsToDelete = empty then return pData
>>  repeat for each item pCol in pColsToDelete
>> if "-" is in pCol then 
>>put getItem(pCol,1,"-") into firstColNbr
>>put getItem(pCol,2,"-") into lastColNbr
>>repeat with i = firstColNbr to lastColNbr
>>   put i & comma after pColsToDeleteExpanded
>>end repeat
>> else
>>put pCol & comma after pColsToDeleteExpanded
>> end if
>>  end repeat
>>  put char 1 to -2 of pColsToDeleteExpanded into pColsToDelete
>>  if pDelim = empty then put tab into pDelim
>>  set the columnDelimiter to pDelim
>>  split pData by column
>>  put item 2 of extents(pData) into tMax
>>  repeat with n=1 to tMax
>> if n is NOT among the items of pColsToDelete then
>>add 1 to x
>>put pData[n] into pData[x]
>> end if
>>  end repeat
>>  repeat with n=x+1 to tMax
>> delete local pData[n]
>>  end repeat
>>  combine pData by column
>>  return pData
>> end deleteColumns
>> 
>> function getItem tList,tIndex,tDelim
>>  -- returns item # tIndex of tList, given itemdelimiter = tDelim
>>  -- could just "get item tIndex of tList" in the calling handler but
>>  --then have to set and restore the itemDelimiter, so this is less hassle
>>  -- defaults to tDelim = comma
>> 
>>  if tDelim = empty then put comma into tDelim
>>  set the itemdelimiter to tDelim
>>  return item tIndex of tList
>> end getItem
>> 
>> 
>> 
>> On Sep 5, 2014, at 10:58 AM, Peter M. Brigham  wrote:
>> 
>>> Peter M. Brigham
>> 
>> ___
>> 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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
Hi Hugh,

Thank you again for the code.

When I first mentioned I tested your code I said that
for some reason it was causing me problems and I
would need to force quit the program,

A few days before that I replied to Richmond’s post
about spies under his bed.

My home page was Google and now it is Yahoo.  I
was attacked by MacKeeper and I personally think
it was done from Google and with their permission.
I also suspect they share the same management &
they are Booz, Allen, Hamilton.  I have been in a war
with them for over 20 years now and I continue  to
expose their criminal activity and abuse of power.

The reason why I sometimes have trouble with what
seem to be small things like not seeing the code did
allow more than one column to be deleted is because
I am being poisoned in my own home in such large
amounts I can hardly see plus it causes problems with
thinking and lowers the ability to learn,

The recent attack from MacKeeper prevented me from
accessing my bank account and when I would to to a
web site their ad would appear instead.

I believe the problem caused my computer memory to
over load and that is why I would need to force quit the
program.

I have posted this to let you know since I did mention
the problems happen when I used your code.

John Balgenorth


On Sep 6, 2014, at 2:44 AM, FlexibleLearning.com  
wrote:

> Peter:  Thank you for adding column ranges.
> Mike: Thank you for the column extraction handler.
> 
> I believe this summarises our efforts to date. It includes column ranges and
> the ability to either delete or extract columns of data from a table. I
> accept that optimisation has been compromised in favour of code brevity when
> extracting columns, but the time overhead is negligible. 
> 
> function manageColumns pData,pCols,pAction,pDelim
>  -- Purpose: To delete or extract specified columns from a table
>  -- Syntax: manageColumns ,,[,]
>  -- data: Specifies the data to parse
>  -- cols: A comma separated list of columns or column ranges to be
> removed or extracted
>  -- for example "2,5,7"
>  -- or a column range: "3-5"
>  -- or a combination "2,4-5,7,9-11,"
>  -- action: Either "delete" or "extract"
>  -- delim: Optional column separator for example "," or "|"
>  -- if unspecified, defaults to TAB
>  -- By: Hugh Senior, based on handlers by Michael Doub, based on a handler
> by Peter M. Brigham, based on a handler by Hugh Senior, Use-LC list
> 
>  if pCols ="" then return pData
>  if pDelim <>"" then set the columnDelimiter to pDelim
>  repeat for each item tCol in pCols
>if "-" is in tCol then
>  set the itemDel to "-"
>  repeat with i = item 1 of tCol to item -1 of tCol
>put i & comma after pColsExpanded
>  end repeat
>  set the itemDel to comma
>else
>  put tCol & comma after pColsExpanded
>end if
>  end repeat
>  put char 1 to -2 of pColsExpanded into pCols
>  split pData by column
>  put item 2 of extents(pData) into tMax
>  repeat with n=1 to tMax
>if pAction="delete" then get (n is NOT among the items of pCols)
>else get (n is among the items of pCols)
>if it then
>  add 1 to x
>  put pData[n] into pData[x]
>end if
>  end repeat
>  repeat with n=x+1 to tMax
>delete local pData[n]
>  end repeat
>  combine pData by column
>  return pData
> end manageColumns
> 
> 
> 
> Hugh Senior
> FLCo
> 
> 
> 
> ___
> 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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
I would like to clarify the part about the attack from MacKeeper
preventing me from accessing my bank account.  I mentioned
that I was also taken to MacKeeper instead of the websites I
wanted to go to.

The attempt to go to other websites was done from my home
page which was Google.

The attempt to access my bank account was done from my
banks web site which is Bank of America.  I would click the
button to sign in and instead of taking me to the next sign in
step I would see advertisements preventing me from logging
into my account.  I called my local bank and they gave me a
phone number to call.  The woman I spoke with at my bank &
the number I called were very nice.  The woman at the number
I called tried for a long time to help me log in and she could not
get me logged in so she gave me the number of their tech crew
and also transferred me to them.  After quite a while and many
different attempts he got me logged in to my account.  He was
not jerking me around and wasting my time and accomplished
getting me logged in.  I have used Bank of America for many
years and they did not personally attack me or waste my time.
Even so I suspect they share the same management and it is
corrupt management who intentionally left the door open for
the abuse and attack by MacKeeper.  That does not mean it
was Bank of America just because they employ BAH.

John Balgenorth


On Sep 6, 2014, at 1:43 PM, JB  wrote:

> Hi Hugh,
> 
> Thank you again for the code.
> 
> When I first mentioned I tested your code I said that
> for some reason it was causing me problems and I
> would need to force quit the program,
> 
> A few days before that I replied to Richmond’s post
> about spies under his bed.
> 
> My home page was Google and now it is Yahoo.  I
> was attacked by MacKeeper and I personally think
> it was done from Google and with their permission.
> I also suspect they share the same management &
> they are Booz, Allen, Hamilton.  I have been in a war
> with them for over 20 years now and I continue  to
> expose their criminal activity and abuse of power.
> 
> The reason why I sometimes have trouble with what
> seem to be small things like not seeing the code did
> allow more than one column to be deleted is because
> I am being poisoned in my own home in such large
> amounts I can hardly see plus it causes problems with
> thinking and lowers the ability to learn,
> 
> The recent attack from MacKeeper prevented me from
> accessing my bank account and when I would to to a
> web site their ad would appear instead.
> 
> I believe the problem caused my computer memory to
> over load and that is why I would need to force quit the
> program.
> 
> I have posted this to let you know since I did mention
> the problems happen when I used your code.
> 
> John Balgenorth
> 
> 
> On Sep 6, 2014, at 2:44 AM, FlexibleLearning.com  
> wrote:
> 
>> Peter:  Thank you for adding column ranges.
>> Mike: Thank you for the column extraction handler.
>> 
>> I believe this summarises our efforts to date. It includes column ranges and
>> the ability to either delete or extract columns of data from a table. I
>> accept that optimisation has been compromised in favour of code brevity when
>> extracting columns, but the time overhead is negligible. 
>> 
>> function manageColumns pData,pCols,pAction,pDelim
>> -- Purpose: To delete or extract specified columns from a table
>> -- Syntax: manageColumns ,,[,]
>> -- data: Specifies the data to parse
>> -- cols: A comma separated list of columns or column ranges to be
>> removed or extracted
>> -- for example "2,5,7"
>> -- or a column range: "3-5"
>> -- or a combination "2,4-5,7,9-11,"
>> -- action: Either "delete" or "extract"
>> -- delim: Optional column separator for example "," or "|"
>> -- if unspecified, defaults to TAB
>> -- By: Hugh Senior, based on handlers by Michael Doub, based on a handler
>> by Peter M. Brigham, based on a handler by Hugh Senior, Use-LC list
>> 
>> if pCols ="" then return pData
>> if pDelim <>"" then set the columnDelimiter to pDelim
>> repeat for each item tCol in pCols
>>   if "-" is in tCol then
>> set the itemDel to "-"
>> repeat with i = item 1 of tCol to item -1 of tCol
>>   put i & comma after pColsExpanded
>> end repeat
>> set the itemDel to comma
>>   else
>> put tCol & comma after pColsExpanded
>>   end if
>> end repeat
>> put char 1 to -2 of pColsExpanded 

Re: How To: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
I suspect MacKeeper is the culprit and
they are causing the problem to get me
and other to purchase MacKeeper.  It is
similar to the mafial coming into a store
and telling them we have noticed some
problems in the area and for a fee we
will insure you don’t have problems.  If
you pay they protect you if not they will
prove to you the problems exist.

The web site does not look false to me &
in the url it included MacKeeper campaign
in the name.

MacKeeper attacks are not new and you can
google them to see this is not the first year.  If
MacKeeper did not benefit from attacks they
would have made sure years ago people who
use their name maliciously were prosecuted or
at least exposed and stopped.

Considering authorizes ignoring the issue you
need to consider Booz, Allen, Hamilton control
the DOJ, NSA, CIA, FBI the news media and
many other things along with the politicians.

Maybe you are not being attacked and simply
believe in the tooth fairy and Santa Claus.  I am
closely involved with the abuse and I have sent
the news media thousands of emails over many
years exposing abuse.  That does not make the
reporters evil or out to get me.  They report what
they are told to report and if they attempt to report
this it will not be aired and they will not have a job.

The attacks on me are vicious and last summer my
two phone lines were disconnected for failure to pay.
One of the lines I had for over 30 years.  The problem
started in the end of June when I paid my bill on time
and they refused the payment from Discover card.  I
was not told the payment was refused so as far as I
knew it was paid.  In the last week of July both phone
lines and my internet all stopped. I am not allowed to
have a phone in my own hame now.  At the worst if I
was late on my payment for a month it would wrong to
disconnect my phone lines that fast and not even give
me a warning, especially since I have been a customer
for over 30 years with the same phone number.  I wes
without phone service for 10 weeks and I wrote them a
lot of letters and made sure they were paid in full.

John Balgenorth


On Sep 6, 2014, at 8:45 PM, J. Landman Gay  wrote:

> On 9/6/2014, 6:53 PM, JB wrote:
>> I would like to clarify the part about the attack from MacKeeper
>> preventing me from accessing my bank account.  I mentioned
>> that I was also taken to MacKeeper instead of the websites I
>> wanted to go to.
>> 
>> The attempt to go to other websites was done from my home
>> page which was Google.
>> 
>> The attempt to access my bank account was done from my
>> banks web site which is Bank of America.  I would click the
>> button to sign in and instead of taking me to the next sign in
>> step I would see advertisements preventing me from logging
>> into my account.
> 
> This sounds much like a DNS changer trojan. It redirects your internet 
> browsing to other fake sites, usually to scrape your passwords and login 
> data. Neither Google or your bank would be the culprit; instead something 
> would have changed the DNS settings on your computer.
> 
> MacKeeper is probaby not the problem. It's gotten a bad rap from some users 
> but authorities say it's legitimate and does what it's supposed to. 
> MacDefender, however, is malware and is sometimes confused with MacKeeper. 
> There is other similar malware out there too. If you have kept up with system 
> updates, OS X has a built-in security scan that eliminates MacDefender, but 
> you may have contracted something else.
> 
> The main point here is that the web sites you visited aren't the problem. The 
> problem is more likely on your computer, and it sounds like something is 
> redirecting your web browsing to other look-alike sites.
> 
> -- 
> 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: How To: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
If my DNS was changed the bank would not recognize me
and they would never have let me log in without explaining
why I have a different DNS and would tell me that was the
problem.  They are not idiots and don’t allow people to use
my account with another DNS and that includes me.

John Balgenorth


On Sep 6, 2014, at 9:25 PM, Jerry Jensen  wrote:

> On Sep 6, 2014, at 8:45 PM, J. Landman Gay  wrote:
> 
>> On 9/6/2014, 6:53 PM, JB wrote:
>>> I would like to clarify the part about the attack from MacKeeper
>>> preventing me from accessing my bank account.  I mentioned
>>> that I was also taken to MacKeeper instead of the websites I
>>> wanted to go to.
>>> 
>>> The attempt to go to other websites was done from my home
>>> page which was Google.
>>> 
>>> The attempt to access my bank account was done from my
>>> banks web site which is Bank of America.  I would click the
>>> button to sign in and instead of taking me to the next sign in
>>> step I would see advertisements preventing me from logging
>>> into my account.
>> 
>> This sounds much like a DNS changer trojan. It redirects your internet 
>> browsing to other fake sites, usually to scrape your passwords and login 
>> data. Neither Google or your bank would be the culprit; instead something 
>> would have changed the DNS settings on your computer.
>> 
>> MacKeeper is probaby not the problem. It's gotten a bad rap from some users 
>> but authorities say it's legitimate and does what it's supposed to. 
>> MacDefender, however, is malware and is sometimes confused with MacKeeper. 
>> There is other similar malware out there too. If you have kept up with 
>> system updates, OS X has a built-in security scan that eliminates 
>> MacDefender, but you may have contracted something else.
>> 
>> The main point here is that the web sites you visited aren't the problem. 
>> The problem is more likely on your computer, and it sounds like something is 
>> redirecting your web browsing to other look-alike sites.
> 
> I concur with Jacque about this likely being a DNS changer trojan. I have 
> seen a few cases where somebody was tricked into installing something 
> masquerading as something else. Typically something like "if you want to see 
> this, you have to install this new codec" or something like that. 
> 
> You should check with your ISP to see if the DNS server numbers on your 
> computer are the ones they supply. The cases I saw were not. On a mac, they 
> can be seen in the "Network" pane of "System Preferences". Click the 
> "Advanced" button, then the "DNS" tab at the top.
> 
> Jerry
> 
> 
> 
> ___
> 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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
B of A did not have MacKeeper ads.  I can assure you that
they were told about the abuse during the time they finally
got me logged in.

If you can prove what they have not I am sure they would
like to know about it.  Post the evidence.

John Balgenorth


On Sep 6, 2014, at 9:36 PM, Jerry Jensen  wrote:

> On Sep 6, 2014, at 9:26 PM, JB  wrote:
> 
>> If my DNS was changed the bank would not recognize me
>> and they would never have let me log in without explaining
>> why I have a different DNS and would tell me that was the
>> problem.  They are not idiots and don’t allow people to use
>> my account with another DNS and that includes me.
> 
> You wrote earlier:
> -
> The web site does not look false to me &
> in the url it included MacKeeper campaign
> in the name.
> -
> 
> If MacKeeper was in the URL, it was a fake site. Nothing to do with B of A 
> except the fake site probably used a bunch of their graphics. B of A would 
> like to hear about this, and may go after the perps.
> 
> Jerry
> 
> 
> ___
> 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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
I am glad you are done.

B of A had me go to the web site with
them of the phone and we still had the
problems.  I was not at a fake site.

Post some good evidence.  I am not going
to tell you anything else B of A and I talked
about.

John Balgenorth


On Sep 6, 2014, at 9:57 PM, Jerry Jensen  wrote:

> 
> On Sep 6, 2014, at 9:38 PM, JB  wrote:
> 
>> B of A did not have MacKeeper ads.  I can assure you that
>> they were told about the abuse during the time they finally
>> got me logged in.
>> 
>> If you can prove what they have not I am sure they would
>> like to know about it.  Post the evidence.
> 
> I agree, B of A did not have MacKeeper ads. The URL used to get the ads was 
> not a real B of A URL. Thats what B of A wants to hear about. By the way, if 
> you typed your password into the fake site, the perps have it now.
> 
> OK, I'm done.
> 
> 
> ___
> 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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
I was not thinking correctly and you are right
about DNS but it goes back to the same issue
of why do you think B of A techs would not be
aware of this and have me change my password.

Unless you have done their job I do not think you
have the knowledge they have.

So it does not matter if I know DNS or ISP because
B of A wants to protect me and would make sure I
was protected if I like it or not or if I understand it.

These post to suggest B of A do not know how to do
their job by suggesting I am wrong are ridiculous.

Provide some evidence and I will give it to B of A if it is
something we did not already discuss.

John Balgenorth


On Sep 6, 2014, at 10:09 PM, Peter W A Wood  wrote:

> 
> On 7 Sep 2014, at 12:26, JB  wrote:
> 
>> If my DNS was changed the bank would not recognize me
>> and they would never have let me log in without explaining
>> why I have a different DNS and would tell me that was the
>> problem.  They are not idiots and don’t allow people to use
>> my account with another DNS and that includes me.
> 
> 
> DNS stands for Domain Name System. You can read about it on Wikipedia - 
> http://en.wikipedia.org/wiki/Domain_Name_System . Your browser uses a DNS 
> Server to translate a URL into an IP Address (you can also look those up on 
> Wikipedia). Your bank has no idea which DNS Server your computer uses, it 
> does know your IP Address.
> 
> If some malware has changed the settings in your computer so that your 
> browser accesses a rogue DNS Server instead of a genuine one, you will not be 
> connected to the sites that you expected.
> 
> I would change my passwords if I were you.
> 
> Regards
> 
> 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
> 


___
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: Manage columns of data (was Re: How To: Delete columns of data)

2014-09-06 Thread JB
I really do appreciate your help, Jacque.

The technician had me go to the site with
him on the phone line talking to me and 
had me enter my info.  He knows if I am at
the site and asked me everything I saw.

As for stealing my info he would be aware
if I had been compromised very fast.  His
questions would give him the evidence he
needed to promptly tell me to change my
password.

I was not at a fake BofA site unless I was
talking to fake BofA employees.  And if I
was why spend so much time with me and
then solve the problem?

The techs at BofA know my password already.
And I will tell you they know everything about
me logging in.  They know if I am using another
web browser or another phone to log in.  If I did
log in and anything unusual was detected it will
automatically block me.  If there was anything to
suggest I had ever been on a fake site they would
force me to change my password and take action.

Thanks for the help but you are wrong about me
being at a fake site.

John Balgenorth


On Sep 6, 2014, at 11:00 PM, J. Landman Gay  wrote:

> On 9/7/2014, 12:12 AM, JB wrote:
>> I was not thinking correctly and you are right
>> about DNS but it goes back to the same issue
>> of why do you think B of A techs would not be
>> aware of this and have me change my password.
> 
> A DNS spoof is outside of their control, and they wouldn't know you are 
> trying to connect through a modified server. When you spoke with them, I'm 
> sure they assumed you had a clean connection. It's similar to dialing a wrong 
> phone number; the person you intended to call will never know you're trying 
> to reach them.
> 
> DNS translates web addresses containing words into web addresses containing 
> only numbers. Your computer stores some DNS entries which tell your Mac where 
> to get those translataions, and other servers between you and the rest of the 
> net can also modify DNS on every hop. If your computer, or one of the servers 
> in between your computer and the bank, has been modified, your request can be 
> re-routed to a fake site. The fake site will look virtually identical to the 
> real one in many ways. Usually they copy the images and layout of the real 
> site. In your case, the fake site included ads that were not on the real 
> site, which would be a tip-off. You said the URL had been changed too; that's 
> a red flag that you'd been re-routed.
> 
> BofA has no way of knowing that a server somewhere has intercepted your 
> request. If the problem is on your own computer (which is what a trojan would 
> do,) then all requests to your bank (or any site that has been intercepted) 
> will be re-routed to a fake one. If the problem is on a server in between 
> your computer and the bank, then anyone who tries to connect to the bank 
> through that server will be re-routed. You should first check your own 
> computer to be sure it has the right DNS entries. Your service provider will 
> know what those are and can verify if yours are correct. If they are, then 
> the problem is, unfortunately, largely out of your control. Your service 
> provider can try to track where the problem is, and you should tell them 
> about it.
> 
> The bank would be unaware of any problems. There are millions of paths 
> through the internet from one point to another. In the cases where you did 
> connect to their site successfully, your request likely travelled through an 
> uninfected server. A browser request is not guaranteed to take the same path 
> each time it travels to a certain site.
> 
> The point is, somewhere along the line it sounds like you got re-routed to a 
> fake site. If you entered your bank credentials on that fake site, the 
> malware authors now have your password and login details. The bank won't know 
> anything about it because you never arrived there. But if our guess is right, 
> you should change your password immediately. When you do, make sure you are 
> at the real site. Look closely at the URL and verify it really belongs to 
> BofA.
> 
> This is kind of techy, but here is one explanation:
> 
> <http://www.networkworld.com/article/2277316/tech-primersow-dns-cache-poisoning-works/tech-primers/how-dns-cache-poisoning-works.html>
> 
> I tried to find one with the clearest explanation for the layman, but it is a 
> confusing topic. There is a lot going on between you and the rest of the net, 
> and without some basic info about how it works, it's pretty geeky.
> 
> -- 
> 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, uns

Externals in Objective-C

2014-09-11 Thread JB
n theory any language that can build shared libraries and allows you to link 
with the provided glue code
could be used. However, in practice, some languages will require extra 
glue-code in order to provide an
environment in which their code can run. For example, to access Objective-C you 
will need to ensure you
set up its memory/exception environment in C wrapper functions before calling 
any Objective-C code.

Does anyone have a  copy or example of a C wrapper functions for 
memory/exception environment?

I want to write a external using Objective-C instead of C++.  Does anyone have 
example code of how
to write a external for Revolution using Objective-C?  It appears that even 
Swift might be able to be
used for writing externals in LiveCode and Revolution.  Does anyone have some 
example code that
will allow the writing of externals with objective-C or Swift?

John Balgenorth
___
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: Externals in Objective-C

2014-09-12 Thread JB
For anyone who is interested in writing objective-c externals
in LiveCode and Revolution here is a link to some code that
might work.  I am still pretty new to c++ and objective-c and
have not tried it yet.  If you get it working please post some
code.

c++ wrapper for objective-c link;

http://stackoverflow.com/questions/7132755/wrapping-objective-c-in-objective-c-c

John Balgenorth



On Sep 11, 2014, at 8:45 PM, JB  wrote:

> n theory any language that can build shared libraries and allows you to link 
> with the provided glue code
> could be used. However, in practice, some languages will require extra 
> glue-code in order to provide an
> environment in which their code can run. For example, to access Objective-C 
> you will need to ensure you
> set up its memory/exception environment in C wrapper functions before calling 
> any Objective-C code.
> 
> Does anyone have a  copy or example of a C wrapper functions for 
> memory/exception environment?
> 
> I want to write a external using Objective-C instead of C++.  Does anyone 
> have example code of how
> to write a external for Revolution using Objective-C?  It appears that even 
> Swift might be able to be
> used for writing externals in LiveCode and Revolution.  Does anyone have some 
> example code that
> will allow the writing of externals with objective-C or Swift?
> 
> John Balgenorth
> ___
> 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


Listing & Filtering files

2014-09-16 Thread JB
You want some of the best ways to list and filter files?
Here it is from the experts with a stack download to help.

http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1

John Balgenorth

___
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: Listing & Filtering files

2014-09-16 Thread JB
It says this is PART 1.

Does anyone know where Part 2 is?

John Balgenorth



On Sep 16, 2014, at 9:25 PM, JB  wrote:

> You want some of the best ways to list and filter files?
> Here it is from the experts with a stack download to help.
> 
> http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1
> 
> John Balgenorth
> 
> ___
> 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: Listing & Filtering files

2014-09-16 Thread JB
Thanks for the info on the link for part 2.
I am color blind on reds and greens and
after you pointing it out I see it.  Before
that it kind of disappears and makes it
easy to miss.

John Balgenorth


On Sep 16, 2014, at 9:54 PM, Paul Hibbert  wrote:

> http://lessons.runrev.com/m/4071/l/17080-files-and-folders-part-2
> 
> The link is in the top right corner of part 1. :-)
> 
> Paul
> 
> On Sep 16, 2014, at 9:30 PM, JB  wrote:
> 
>> It says this is PART 1.
>> 
>> Does anyone know where Part 2 is?
>> 
>> John Balgenorth
>> 
>> 
>> 
>> On Sep 16, 2014, at 9:25 PM, JB  wrote:
>> 
>>> You want some of the best ways to list and filter files?
>>> Here it is from the experts with a stack download to help.
>>> 
>>> http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1
>>> 
>>> John Balgenorth
>>> 
>>> ___
>>> 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
> 


___
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: Listing & Filtering files

2014-09-17 Thread JB
Thanks for the advice and info.

Since Richard Gaskin already pointed
out the problem and even told them it
is color blindness related I won’t bother
them.

What is more important is the release of
Swift and how they are working it into the
ability to program externals for LiveCode.

Hopefully they take the time to make the
externals people build work on the earlier
versions too.  This would profit LiveCode
and anyone who sells or uses them.

Keeping the door open for RR users is good
business.

John Balgenorth


On Sep 17, 2014, at 9:35 AM, Paul Hibbert  wrote:

> John,
> 
> It maybe useful for you to inform RR that their site is difficult for you to 
> navigate successfully, I'm sure you're not the only one who struggles with 
> the light colours, but your personal experience should help them make 
> informed decisions in future.
> 
> I know there were several complaints about the light green text on the LC 
> site when they first started using them, and they did darken the green 
> slightly. I think it was Richard Gaskin that pointed out that light green is 
> not a good choice for people with colour blindness.
> 
> I know it is possible to use a local css file to change the link colours, so 
> I tried this wondering if it may help, but it seems that because of the way 
> the LC lessons are formatted, the css changes don't have any effect on this 
> site, at least in Safari. You can use Firefox however, and it does allow you 
> to change the link colours in preferences, not too sure about IE though.
> 
> HTH
> 
> Paul
> 
> On Sep 16, 2014, at 9:59 PM, JB  wrote:
> 
>> Thanks for the info on the link for part 2.
>> I am color blind on reds and greens and
>> after you pointing it out I see it.  Before
>> that it kind of disappears and makes it
>> easy to miss.
>> 
>> John Balgenorth
>> 
>> 
>> On Sep 16, 2014, at 9:54 PM, Paul Hibbert  wrote:
>> 
>>> http://lessons.runrev.com/m/4071/l/17080-files-and-folders-part-2
>>> 
>>> The link is in the top right corner of part 1. :-)
>>> 
>>> Paul
>>> 
>>> On Sep 16, 2014, at 9:30 PM, JB  wrote:
>>> 
>>>> It says this is PART 1.
>>>> 
>>>> Does anyone know where Part 2 is?
>>>> 
>>>> John Balgenorth
>>>> 
>>>> 
>>>> 
>>>> On Sep 16, 2014, at 9:25 PM, JB  wrote:
>>>> 
>>>>> You want some of the best ways to list and filter files?
>>>>> Here it is from the experts with a stack download to help.
>>>>> 
>>>>> http://lessons.runrev.com/s/lessons/m/4071/l/16635-file-and-folders-part-1
>>>>> 
>>>>> John Balgenorth
>>>>> 
>>>>> ___
>>>>> 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
>>> 
>> 
>> 
>> ___
>> 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


Progress Bar

2014-09-17 Thread JB
How do I set the end value of a progress
bar by code instead of the inspector?

John Balgenorth

___
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: Progress Bar

2014-09-17 Thread JB
It does not really matter.  I realize the best
way is to set the end value at 100 and use
the percent value of how much has been
processed since there are limits on how
large the end value number can even be.

John Balgenorth


On Sep 17, 2014, at 10:03 PM, JB  wrote:

> How do I set the end value of a progress
> bar by code instead of the inspector?
> 
> John Balgenorth
> 
> ___
> 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


  1   2   3   4   5   6   7   >