[ANN] Launcher X 0b02 - The Classic Replacement for the OSX Dock

2012-05-14 Thread Mark Schonewille
Hi,

I have always been thinking that the Dock is a very limited piece of software 
and that the old Launcher control panel, which was available in Mac OS 9, was 
actually more useful. The Launcher application could store as many links as you 
wanted and you could organise the links in whatever way you liked.

So... I used the weekend to create a Launcher app with Revolution. The beta 
version is available for download here http://qery.us/237 . Launcher X 0b02 is 
freeware and works on Intel Macs with Mac OS X 10.4.11 and later.

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
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: Serial Comms in 4.6.4

2012-05-14 Thread Camm
Dar,

It is the same as this I found below ,
If complied on 4.0.0 it works , If complied on later versions if fails to read.

Regards
Camm


On Nov 7, 2010, at 10:07 AM, J. Landman Gay wrote:

 On 11/7/10 9:18 AM, Larry Walker wrote:
 I am trying to read data from a serial port (using a USB-serial adaptor).
 
 Glad to see this here Larry. Just to fill everyone in, Larry and I have been 
 going around with this issue for about a week in the tech queue without 
 success (and I really appreciate his patience, he's been incredibly 
 reasonable about it.) I asked Mark Waddingham about the problem and he said 
 that basically the serial commands haven't been changed since their initial 
 implementation back in MetaCard, and that any device that represents itself 
 as a serial device should work with open file (but not necessarily with the 
 device name returned by the drivernames. Use modem: or printer: instead.) 
 He also said that they have never been reworked to support OS X; they were 
 originally written for OS 9 and have always continued to work in OS X, so the 
 code hasn't been examined.
 
 Eric's comment that it works in 4.0 and not in 4.5 is something I don't think 
 the team knows about. Since serial access hasn't changed in the engine, there 
 must be some other change that peripherally affects serial port access. If 
 that's so, then a bug report in the QCC would be in order.
 
 I hope either Sarah or Phil will see this, since they are the serial/USB 
 experts here. Maybe they have some comments to add or a workaround they've 
 discovered.
 


- Original Message -
From: Dar Scott d...@swcp.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, 13 May, 2012 8:17:45 PM
Subject: Re: Serial Comms in 4.6.4

I'm not sure what you mean.

Are you saying you upgraded to Windows 7 and LiveCode 4.6.4 at the same time?

I have heard that some people have had trouble with Windows 7 and serial ports. 
 Perhaps modems are especially an issue.

Do you see the port in the device manager?  Can you connect with HyperTerminal? 
 What error results do you get?  (You might have to create a version of your 
script that logs those.)

Have the scripts ever worked on this Windows 7 installation?

As you can probably tell, I'm leaning towards eliminating non-LiveCode issues 
and then looking at the script, but the script errors can give clues to both.

Dar



On May 13, 2012, at 4:23 AM, Camm wrote:

 Dar ,
 
 Windows 7
 
 All hardware has been checked okay.
 
 When using read from driver in scripts loaded into 4.6.4 or standalone from
 4.6.4 nothing is read ?
 
 The identical script loaded in pre-windows  7 Livecode releases work.
 
 Thanks
 Camm
 
 
 
 -Original Message-
 From: use-livecode-boun...@lists.runrev.com
 [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Dar Scott
 Sent: 13 May 2012 05:43
 To: How to use LiveCode
 Subject: Re: Serial Comms in 4.6.4
 
 Hi, Camm!
 
 I don't remember any changes.
 
 Maybe this can be tracked down.  What OS?  How does it fail?
 
 However, you might want to rule out other things.  I find the most common
 reason that a serial communications program suddenly fails is a cable issue.
 Usually the handshake lines don't make it trough or something else is wrong
 in the wiring.  Sometimes the USB-to-serial adaptor is an issue.  
 
 Dar
 
 On May 12, 2012, at 3:30 PM, Camm wrote:
 
 Has something changed in the use of open , close , read , write driver 
 and/or  SerialControlString string in version 4.6.4.
 
 
 
 I have a stack for serial comms that works fine if run in older 
 versions of Livecode , but fails to read in version 4.6.4
 
 Same script ??
 
 
 
 Regards
 
 Camm
 
 ---
 Dar Scott
 dba
 Dar Scott Consulting
 8637 Horacio Place NE
 Albuquerque, NM 87111
 
 Lab, home, office phone: +1 505 299 9497 For Skype and fax, please contact.
 d...@swcp.com
 
 Computer Programming and tinkering,
 often making LiveCode libraries and
 externals, sometimes writing associated
 microcontroller firmware.  
 ---
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1913 / Virus Database: 2425/4996 - Release Date: 05/13/12
 
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1913 / Virus Database: 2425/4996 - Release Date: 05/13/12
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1913 / Virus Database: 2425/4996 - Release Date: 05/13/12
 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 2012.0.1913 / Virus Database: 2425/4996 - Release Date: 05/13/12
 
 
 ___
 use-livecode 

Text Scroll Field - Livecode iOS

2012-05-14 Thread Rick Harrison
Hi there,

Has anyone gotten a text field to scroll properly
on the iPad with a swiping gesture?

I worked through the example provided below.
Things work fine in Livecode, but not correctly
in the simulator or on the iPad directly.  I can
see the scroll control moving but the text field
itself won't scroll.

Ideas and suggestions are most welcome.

http://lessons.runrev.com/s/lessons/m/4071/l/44421-how-to-create-a-scrolling-group-using-the-improved-graphics-architecture

Thanks,

Rick
___
use-livecode mailing list
use-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: Standalone problem

2012-05-14 Thread J. Landman Gay

On 5/13/12 11:50 PM, J. Landman Gay wrote:

You can only
load externals in a preOpenStack handler,


I had a thinko. It's startup I believe. They may both work, it's been 
a while so I'd need to check.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Text Scroll Field - Livecode iOS

2012-05-14 Thread Mark Schonewille
Hi Rick,

You're almost done. Handle the scrollerDidScroll message and use it to adjust 
the vScroll and hScroll of your field.

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 14 mei 2012, at 17:13, Rick Harrison wrote:

 Hi there,
 
 Has anyone gotten a text field to scroll properly
 on the iPad with a swiping gesture?
 
 I worked through the example provided below.
 Things work fine in Livecode, but not correctly
 in the simulator or on the iPad directly.  I can
 see the scroll control moving but the text field
 itself won't scroll.
 
 Ideas and suggestions are most welcome.
 
 http://lessons.runrev.com/s/lessons/m/4071/l/44421-how-to-create-a-scrolling-group-using-the-improved-graphics-architecture
 
 Thanks,
 
 Rick



___
use-livecode mailing list
use-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: Text Scroll Field - Livecode iOS

2012-05-14 Thread Ralph DiMola
Rick,

Scroll your field in the scrollerDidScroll handler


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net
-Original Message-
From: use-livecode-boun...@lists.runrev.com
[mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Rick Harrison
Sent: Monday, May 14, 2012 11:13 AM
To: How to use LiveCode
Subject: Text Scroll Field - Livecode  iOS

Hi there,

Has anyone gotten a text field to scroll properly on the iPad with a swiping
gesture?

I worked through the example provided below.
Things work fine in Livecode, but not correctly in the simulator or on the
iPad directly.  I can see the scroll control moving but the text field
itself won't scroll.

Ideas and suggestions are most welcome.

http://lessons.runrev.com/s/lessons/m/4071/l/44421-how-to-create-a-scrolling
-group-using-the-improved-graphics-architecture

Thanks,

Rick
___
use-livecode mailing list
use-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: Standalone problem

2012-05-14 Thread Klaus on-rev
Hi Craig,

please check my new answer in the forum!


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major.on-rev.com


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


Re: Getting a single column of a datagrid

2012-05-14 Thread Bob Sneidar
It came from Trevor that way. I had to clean it up as well. It works though. I 
used this technique to create my own kind of printKeys function. Instead of 
breaking out each key as a line in the text, and then the value as key:value, I 
create a single line for each key with a value, and then I bracket all the key 
names to distinguish them from the value. This has several advantages. I can 
now filter the result by any of the keys. I can also reconstruct the array 
after the filtering is done so I can effectively filter an array. Pretty handy 
at times. 

Let me know if you want those functions as well. 

Bob


On May 12, 2012, at 7:27 AM, Peter M. Brigham, MD wrote:

 Thanks, Bob. 
 
 BTW, don't know why but as you can see your LC scripts tend to have asterisks 
 bracketing keywords, not to mention extra blank lines. Are you pasting 
 formatted text that's getting mis-translated?
 
 I can clean this up and try it out, thanks again.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 On May 10, 2012, at 5:48 PM, Bob Sneidar wrote:
 
 *function* PrintArray @pArray, pDimension, pFullData
 
 *if* pDimension is empty *then* *put* 0 into pDimension
 
 
 
 *put* the keys of pArray into theKeys
 
 *sort* theKeys numeric
 
 
 
 *repeat* for each line theKey in theKeys
 
*if* pArray[theKey] is an array *then*
 
   *put* _printCharXTimes(space, pDimension * 5)  theKey  cr
 aftertheText
 
   *put* pArray[theKey] into theTempArray
 
   *put* PrintArray(theTempArray, pDimension + 1, pFullData) aftertheText
 
*else*
 
   *if* pFullData *then*
 
  *put* _printCharXTimes(space, pDimension * 5)   theKey  : 
 pArray[theKey]  cr after theText
 
   *else*
 
  *put* _printCharXTimes(space, pDimension * 5)   theKey  : 
 line 1 of pArray[theKey]  cr after theText
 
   *end* *if*
 
*end* *if*
 
 *end* *repeat*
 
 
 
 *return* theText
 
 *end* PrintArray
 
 
 
 *private* *function* _printCharXTimes pChar, pTimes
 
 *local* theStr
 
 
 
 *repeat* with i = 1 to pTimes
 
*put* pChar after theStr
 
 *end* *repeat*
 
 *return* theStr
 *end* _printCharXTimes
 
 
 
 ___
 use-livecode mailing list
 use-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: array mystery

2012-05-14 Thread Bob Sneidar
Yup that is pretty much what Trevor did. 

Bob


On May 12, 2012, at 9:10 AM, Peter M. Brigham, MD wrote:

 On May 10, 2012, at 5:49 PM, Bob Sneidar wrote:
 
 I just forwarded an email Trevor sent to the list some time ago with the 
 code in it. 
 
 Bob
 
 
 On May 10, 2012, at 2:34 PM, Peter M. Brigham, MD wrote:
 
 It was apparently part of Trevor's sqlYoga, supposedly made available now 
 as an opensource utility handler, but I can't find it. The Nabble archives 
 show an altPrintKeys() function but the output is not a readable display 
 of the structure of an array, it's designed for utility work in massaging 
 arrays. I'd like to get hold of the original printKeys() handler somewhere. 
 Where can I find it?
 
 In case anyone else wants it, I'm posting below a slightly modified version 
 of the function, renamed displayArray to distinguish it from the variants 
 that Bob has posted for utility work. This version simply allows you to look 
 at the contents of an array in outline form, which makes the structure of the 
 array quite clear on inspection.
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 --
 
 function displayArray @pArray, pFullData, pDimension
   -- displays an array as an outline-style list
   -- most useful for multidimensional arrays, to see the structure
   -- if an element of the array contains more than one line,
   --the first line only will be displayed (less confusing to look at)
   -- if you want to see the full data then pass pFullData = true
   -- pDimension is an internally used parameter
   -- pArray is referenced to avoid duplicating large arrays, but
   --the array is not altered by this function
 
   -- call it like this: put displayArray(tArray) into fld peruse
 
   -- requires spaces()
 
   if pDimension is empty then put 0 into pDimension
   if pFullData = empty then put false into pFullData
   put the keys of pArray into theKeys
   if line 1 of theKeys is a number then
  sort theKeys numeric
   else
  sort theKeys
   end if
   repeat for each line theKey in theKeys
  if pArray[theKey] is an array then
 put spaces(pDimension * 3)  theKey  cr after theText
 put pArray[theKey] into theTempArray
 put displayArray(theTempArray, pFullData, pDimension + 1) after 
 theText
  else
 if pFullData then
put spaces(pDimension * 3)  theKey  : \
pArray[theKey]  cr after theText
 else
put pArray[theKey] into tElement
if the number of lines of tElement  1 then
   put  ... into tTrailer
else
   put empty into tTrailer
end if
put spaces(pDimension * 3)  theKey  : \
(line 1 of tElement)  tTrailer  cr after theText
 end if
  end if
   end repeat
   return theText
 end displayArray
 
 function spaces n
   -- returns a string of n spaces
   put  into s
   repeat n
  put space after s
   end repeat
   return s
 end spaces
 
 
 ___
 use-livecode mailing list
 use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread Bob Sneidar
I respectfully disagree. Spotlight is designed to give up processor usage if 
something else needs it. If you get the beachball while spotlight is indexing, 
there is something wrong, and that is not normal. 

Bob


On May 11, 2012, at 8:55 PM, Kay C Lan wrote:

 Actually missed a big one off the list.
 
 Spotlight - which would show up as mdworker in Activity Monitor. If you've
 added a 'new' HD, internal or external and haven't set Spotlight to ignore
 it then Spotlight may take forever to process it and you will definitely
 end up with the beachball.


___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread Bob Sneidar
BINGO! Wipe and reinstall time. Sorry. Dev previews are notorious for this. A 
bunch of guys here used the RC1 of Tiger to upgrade their production machines, 
against my vehement objections. They all paid the terrible price. Well, the 
price is not so terrible, just a nuisance. 

Bob


On May 11, 2012, at 10:46 PM, stephen barncard wrote:

 yes thank you Kay, actually these are the first places I looked, the usual
 suspects. Something deeper might be going on, including the fact that I was
 using a developer preview when I first installed Lion, and it never let me
 upgrade beyond .0
 
 On Fri, May 11, 2012 at 8:55 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:
 
 Actually missed a big one off the list.
 
 Spotlight - which would show up as mdworker in Activity Monitor. If you've
 added a 'new' HD, internal or external and haven't set Spotlight to ignore
 it then Spotlight may take forever to process it and you will definitely
 end up with the beachball.
 
 New in this case would mean something like moving your 1.75TB of backups to
 a new 3TB drive. Spotlight will spend forever doing it's thing to the
 1.75TB already on the drive.
 
 I always add Backup/Archive HDs to Spotlight's Privacy list - but many
 times I forget with upgrades and it isn't until I'm left with an
 unresponsive system that I crack open AM and find the culprit.
 
 Also, what Sharing services have you set up. Is it possible someone is
 accessing iTunes, iPhoto or large files - you turned it on and forgot to
 turn it off? What about iCloud, are you snap happy and is iPhoto constantly
 updating your last 1000 photos to iCloud? Again, AM should help you pin
 point it.
 
 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
 
 
 
 
 -- 
 
 
 
 Stephen Barncard
 San Francisco Ca. USA
 
 more about sqb  http://www.google.com/profiles/sbarncar
 ___
 use-livecode mailing list
 use-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: Text Scroll Field - Livecode iOS

2012-05-14 Thread Rick Harrison
Hi Mark  Ralph,

Thanks that worked fine!

Cheers,

Rick

On May 14, 2012, at 11:24 AM, Mark Schonewille wrote:

 Hi Rick,
 
 You're almost done. Handle the scrollerDidScroll message and use it to adjust 
 the vScroll and hScroll of your field.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 We will have room for new projects after 1 June. Contact me now and be first 
 in line.
 
 On 14 mei 2012, at 17:13, Rick Harrison wrote:
 
 Hi there,
 
 Has anyone gotten a text field to scroll properly
 on the iPad with a swiping gesture?
 
 I worked through the example provided below.
 Things work fine in Livecode, but not correctly
 in the simulator or on the iPad directly.  I can
 see the scroll control moving but the text field
 itself won't scroll.
 
 Ideas and suggestions are most welcome.
 
 http://lessons.runrev.com/s/lessons/m/4071/l/44421-how-to-create-a-scrolling-group-using-the-improved-graphics-architecture
 
 Thanks,
 
 Rick
 
 
 
 ___
 use-livecode mailing list
 use-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] Blowing my mind about Linux

2012-05-14 Thread Bob Sneidar
That is because they had guns pointed at their back. 

Bob


On May 12, 2012, at 4:56 AM, Richmond wrote:

 You are quite right, and I apologise. I am well
 aware what happened; the people were slaughtered.
 
 However, an awful lot of the people who were slaughtered did not stop to 
 question when
 they were told to get on trains for resettlement camps in the East.


___
use-livecode mailing list
use-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: Auto-opening folders

2012-05-14 Thread Bob Sneidar
Not sure I like auto opening the folder, but I would like a way to open the 
folder from the app if I want to, sort of like Firefox does with downloads. 
Some kind of Open containing folder... thing. 

Bob


On May 12, 2012, at 11:45 PM, J. Landman Gay wrote:

 A quick poll:
 
 If an app creates a folder with files in it, do you like it if the app takes 
 you to the desktop and opens the folder? Or would you rather remain in the 
 app and open the folder later yourself?
 
 -- 
 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: When is the CONTROL key not a control key?

2012-05-14 Thread Bob Sneidar
I think you just violated Microsoft's Keyboard End Use policy. Expect to be 
contacted by their Icon Integrity Enforcement department soon. You should have 
just pulled the sticker off your mattress for heaven's sake! 

Bob


On May 13, 2012, at 10:46 AM, Richmond wrote:

 PPS: Yes, fanboy that I am my laptop's Special key has such a sticker.
 
 
 Oh; I just scraped off the initial sign with a pen-knife...  :)


___
use-livecode mailing list
use-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: Sort of a problem

2012-05-14 Thread Bob Sneidar
Can I come live there? It may be the only Conservative county left pretty soon! 

Bob


On May 12, 2012, at 8:17 PM, Jim Hurley wrote:

 Thanks Peter. But I live in a very conservative county. None of yer fancy 
 diagonals here. NW indeed!
 
 Actually it is the County election database, and a search reveals only N, E, 
 S, and W.
 
 I think I finally get the phrase by  of each. Live Code does pretty 
 much what I did, except I'm sure they don't use a bubble sort. 
 
 Jim
 
 
 
 
 Message: 2
 Date: Sat, 12 May 2012 12:22:38 -0400
 From: Peter M. Brigham, MD pmb...@gmail.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: Re: Sort of a problem
 Message-ID: 50a823d6-005e-47de-9a05-4b7ba094e...@gmail.com
 Content-Type: text/plain; charset=us-ascii
 
 If you have streets like SW 34th St you'll have a problem -- you should 
 probably adjust your pickStreet function:
 
 function pickStreet pName
  if word 1 of pName is among the words of N S E W NE NW SE SW then
 return word 2 to -1 of pName
  end if
  return pName
 end pickStreet
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Adjusting Edit Menu items

2012-05-14 Thread Peter Haworth
Thanks Jacque.  Yes, there was no perceptible performance hit by processing
all menus so all OK there.

I agree that the shortcut keys should be enabled/disabled in parallel with
their associated Edit menu items but I'm not seeing that behavior.

Here's what I did on a card with just one editable field.  I haven't
written any code to handle the command key shortcuts.

- made sure the cursor was in the field and the field was empty
- clicked the edit menu, everything was disabled
- typed some data into the field
- checked the Edit menu again - all still disabled
- selected some text in the field and pressed command-C to copy
- moved the cursor to a different place in the field and pressed command-V
- the copied text was pasted into the field

This was in the IDE (with my application's menu bar enabled), LC 5.0, OS X
10.6.8.  I haven't tried it in a standalone yet

Am I missing something?


Pete
lcSQL Software http://www.lcsql.com



On Sun, May 13, 2012 at 6:53 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 5/13/12 4:39 PM, Peter Haworth wrote:

  I discovered then that there's a problem with those group mouseDown
 handlers on a Mac - it's impossible to tell which menu was clicked because
 target and me both return the name of the menu group, not the menu
 that
 was clicked, so you end up adjusting menus when they don't need adjusting.
  To complicate matters more, on Windows, the target does return the menu
 button name.


 I just set everything. It's fast enough. I have one mousedown menu handler
 that adjusts twenty or more items and it's fine. You could try it and see
 how it goes.

 Menu buttons on OS X don't receive messages, which is why you aren't
 getting the info you want, and why the mousedown handler has to be in the
 group.


  If an Edit menu item is disabled, does it's Mac command key and Windows
 shortcut key equivalent still work?  If not, that would be an issue with
 this approach unless I watch for those keys as well as using a mouseDown
 handler.


 If a menu item is disabled, so is its command key. That seems reasonable
 to me. The command keys are just shortcuts to the menu items and should
 behave the same. You can work around it with a commandKeyDown handler in
 the card or stack. That will always fire, but it can interfere with the
 real menu shortcuts sometimes.

 Another way to handle it is to re-enable menu items the user might need at
 the end of a menupick handler. If the menus aren't pulled down, no one can
 tell if the items are enabled or not and their command keys will always
 work.


 --
 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-livecodehttp://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: Auto-opening folders

2012-05-14 Thread Mike Bonner
Can only test on windows but you can do launch document path/to/folder on
windows and it opens right up.

On Mon, May 14, 2012 at 10:15 AM, Bob Sneidar b...@twft.com wrote:

 Not sure I like auto opening the folder, but I would like a way to open
 the folder from the app if I want to, sort of like Firefox does with
 downloads. Some kind of Open containing folder... thing.


___
use-livecode mailing list
use-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: Adjusting Edit Menu items

2012-05-14 Thread Bob Sneidar
Actually, I was not aware you could disable system menu items. It may be that 
LC is greying out the items, but still handling the hot keys. I suppose there 
ought to be a way to prevent copying content in LC as a security precaution, 
say for copyrighted material as an example. 

Bob


On May 14, 2012, at 9:31 AM, Peter Haworth wrote:

 Thanks Jacque.  Yes, there was no perceptible performance hit by processing
 all menus so all OK there.
 
 I agree that the shortcut keys should be enabled/disabled in parallel with
 their associated Edit menu items but I'm not seeing that behavior.
 
 Here's what I did on a card with just one editable field.  I haven't
 written any code to handle the command key shortcuts.
 
 - made sure the cursor was in the field and the field was empty
 - clicked the edit menu, everything was disabled
 - typed some data into the field
 - checked the Edit menu again - all still disabled
 - selected some text in the field and pressed command-C to copy
 - moved the cursor to a different place in the field and pressed command-V
 - the copied text was pasted into the field
 
 This was in the IDE (with my application's menu bar enabled), LC 5.0, OS X
 10.6.8.  I haven't tried it in a standalone yet
 
 Am I missing something?
 
 
 Pete
 lcSQL Software http://www.lcsql.com
 
 
 
 On Sun, May 13, 2012 at 6:53 PM, J. Landman Gay 
 jac...@hyperactivesw.comwrote:
 
 On 5/13/12 4:39 PM, Peter Haworth wrote:
 
 I discovered then that there's a problem with those group mouseDown
 handlers on a Mac - it's impossible to tell which menu was clicked because
 target and me both return the name of the menu group, not the menu
 that
 was clicked, so you end up adjusting menus when they don't need adjusting.
 To complicate matters more, on Windows, the target does return the menu
 button name.
 
 
 I just set everything. It's fast enough. I have one mousedown menu handler
 that adjusts twenty or more items and it's fine. You could try it and see
 how it goes.
 
 Menu buttons on OS X don't receive messages, which is why you aren't
 getting the info you want, and why the mousedown handler has to be in the
 group.
 
 
 If an Edit menu item is disabled, does it's Mac command key and Windows
 shortcut key equivalent still work?  If not, that would be an issue with
 this approach unless I watch for those keys as well as using a mouseDown
 handler.
 
 
 If a menu item is disabled, so is its command key. That seems reasonable
 to me. The command keys are just shortcuts to the menu items and should
 behave the same. You can work around it with a commandKeyDown handler in
 the card or stack. That will always fire, but it can interfere with the
 real menu shortcuts sometimes.
 
 Another way to handle it is to re-enable menu items the user might need at
 the end of a menupick handler. If the menus aren't pulled down, no one can
 tell if the items are enabled or not and their command keys will always
 work.
 
 
 --
 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-livecodehttp://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: Auto-opening folders

2012-05-14 Thread Bob Sneidar
Works on Mac too, but the path to folder needs to begin with / as in 
/Volumes/BOOTCAMP/. 

Bob


On May 14, 2012, at 9:36 AM, Mike Bonner wrote:

 Can only test on windows but you can do launch document path/to/folder on
 windows and it opens right up.
 
 On Mon, May 14, 2012 at 10:15 AM, Bob Sneidar b...@twft.com wrote:
 
 Not sure I like auto opening the folder, but I would like a way to open
 the folder from the app if I want to, sort of like Firefox does with
 downloads. Some kind of Open containing folder... thing.
 
 
 ___
 use-livecode mailing list
 use-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: Auto-opening folders

2012-05-14 Thread Mike Bonner
Works for relative pathing too.  For example if the defaultfolder is still
set to the location of livecode you can launch document Runtime (or any
of the other folders from the current default location) and it works fine
for me on win. Even works with bizzarro pathing ../.. will open the
directory 2 levels above the defaultfolder

On Mon, May 14, 2012 at 10:59 AM, Bob Sneidar b...@twft.com wrote:

 Works on Mac too, but the path to folder needs to begin with / as in
 /Volumes/BOOTCAMP/.

 Bob


 On May 14, 2012, at 9:36 AM, Mike Bonner wrote:

  Can only test on windows but you can do launch document path/to/folder
 on
  windows and it opens right up.
 
  On Mon, May 14, 2012 at 10:15 AM, Bob Sneidar b...@twft.com wrote:
 
  Not sure I like auto opening the folder, but I would like a way to open
  the folder from the app if I want to, sort of like Firefox does with
  downloads. Some kind of Open containing folder... thing.
 
 
  ___
  use-livecode mailing list
  use-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: Auto-opening folders

2012-05-14 Thread Andre Garzia
Whenever faced with options like this, I'd rather have a preference
that I could set.

You will have both kinds of users, so why not give them the choice?

On Mon, May 14, 2012 at 1:59 PM, Bob Sneidar b...@twft.com wrote:
 Works on Mac too, but the path to folder needs to begin with / as in 
 /Volumes/BOOTCAMP/.

 Bob


 On May 14, 2012, at 9:36 AM, Mike Bonner wrote:

 Can only test on windows but you can do launch document path/to/folder on
 windows and it opens right up.

 On Mon, May 14, 2012 at 10:15 AM, Bob Sneidar b...@twft.com wrote:

 Not sure I like auto opening the folder, but I would like a way to open
 the folder from the app if I want to, sort of like Firefox does with
 downloads. Some kind of Open containing folder... thing.


 ___
 use-livecode mailing list
 use-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



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.

___
use-livecode mailing list
use-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] Blowing my mind about Linux

2012-05-14 Thread Richmond

On 05/14/2012 07:00 PM, Bob Sneidar wrote:

That is because they had guns pointed at their back.


Not in all cases. Like everything else, this was not quite as simplistic 
as some

would have it be.

Of course this in no way lessens the horror of what happened; I, at 
least, am not one of those fools
who want to make people believe that the Nazis did not slaughter 10 
million people; Jews, Homosexuals,
Seventh Day Adventists, Jehovah's Witnesses, Gypsies, Communists and 
more. Although, from time to time
I do get annoyed that everybody but the Jews in that list do somehow 
seem to get overlooked.




Bob


On May 12, 2012, at 4:56 AM, Richmond wrote:


You are quite right, and I apologise. I am well
aware what happened; the people were slaughtered.

However, an awful lot of the people who were slaughtered did not stop to 
question when
they were told to get on trains for resettlement camps in the East.


___
use-livecode mailing list
use-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: When is the CONTROL key not a control key?

2012-05-14 Thread Richmond

On 05/14/2012 07:21 PM, Bob Sneidar wrote:

I think you just violated Microsoft's Keyboard End Use policy. Expect to be 
contacted by their Icon Integrity Enforcement department soon. You should have 
just pulled the sticker off your mattress for heaven's sake!


If, like me, you lived in the parallel universe of second-hand goods you 
would realise that I have never owned a mattress

that has had a label!

LOL!


Bob


On May 13, 2012, at 10:46 AM, Richmond wrote:


PPS: Yes, fanboy that I am my laptop's Special key has such a sticker.


Oh; I just scraped off the initial sign with a pen-knife...  :)


___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread David C.
On Sun, May 13, 2012 at 8:11 AM, David C. davidoco...@gmail.com wrote:
 Hey folks,
 I have a very simple application in which one aspect of the app uses
 the QT player, always pointing to the same named MP3 file on my
 server.

 Yesterday, I went to visit a friend and gave him  a copy of the app to
 try out and every aspect of the application worked as intended except
 for the QT player. Where the controls would normally be located, there
 was nothing but a white empty space instead. Just to be sure there
 wasn't a problem with his QuickTime installation, I had him download
 and install the latest copy, yet we got the sames results.

 I tried the same application on my laptop (positioned right beside his
 and NOT being the machine I developed the application on) and it works
 flawlessly.

 The app was built on a Win 7 machine running LC 4.51, my friend's
 laptop is a Win 7 machine and the laptop I used to run the test beside
 his is a Win Vista machine. This is the first time I've used the
 Player control so I'm stumped.

 Is there some sort of QT external required or do you have any ideas
 what might be happening?

 --
 Best regards,
 David C.


Bump!
...overlooked, ignored or just no clues of what might be causing the problem?
I always brush my teeth before contacting the list and today I added
fresh cologne before sending this message. ;-)

Thanks,
David C.

___
use-livecode mailing list
use-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] Blowing my mind about Linux

2012-05-14 Thread Bob Sneidar
What is often overlooked as well is that many Christians were persecuted and 
slaughtered as well, especially those who helped Jews (and anyone else) escape 
Germany. 

Bob


On May 14, 2012, at 10:21 AM, Richmond wrote:

 On 05/14/2012 07:00 PM, Bob Sneidar wrote:
 That is because they had guns pointed at their back.
 
 Not in all cases. Like everything else, this was not quite as simplistic as 
 some
 would have it be.
 
 Of course this in no way lessens the horror of what happened; I, at least, am 
 not one of those fools
 who want to make people believe that the Nazis did not slaughter 10 million 
 people; Jews, Homosexuals,
 Seventh Day Adventists, Jehovah's Witnesses, Gypsies, Communists and more. 
 Although, from time to time
 I do get annoyed that everybody but the Jews in that list do somehow seem to 
 get overlooked.
 
 
 Bob
 
 
 On May 12, 2012, at 4:56 AM, Richmond wrote:
 
 You are quite right, and I apologise. I am well
 aware what happened; the people were slaughtered.
 
 However, an awful lot of the people who were slaughtered did not stop to 
 question when
 they were told to get on trains for resettlement camps in the East.
 
 ___
 use-livecode mailing list
 use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread stephen barncard
summary of my 'lost weekend':

1. I finally did a complete 10.7.4 re-install on Sunday.  Installing apple
store* Lion 10.7.4* on top of a previous installation worked better, but
still took over 4 minutes to completely boot up. Some applications will
still seem sluggish when starting up. No beachball though. It took about 9
hours to install. Most disturbing on this install is the progress
indicator, telling me 36 hours at first, but later settling into
alternating between 24 and 12. In other words, progress indicators don't
mean squat.

2. A 'fresh' install of 10.7.4 with migrated files will take less than a
minute to completely boot up. Things seem pretty normal now. It took 18
hours for this latest apple store version to install and move all the files
(via migration assistant).   I can imagine it would take a couple of days
if I had a filled 1TB disk and tried to do this.

3. A 'fresh' install of 10.7.4 without migrating my thousands of documents
and hundreds of applications is blindingly fast and boots faster than the
above.

other settings that may help avoid Mr. Beachball and delays:

Turn off the 'size' checkbox and 'show icon preview' in folder prefs, then
click use as defaults





On Mon, May 14, 2012 at 8:52 AM, Bob Sneidar b...@twft.com wrote:

 BINGO! Wipe and reinstall time. Sorry. Dev previews are notorious for
 this. A bunch of guys here used the RC1 of Tiger to upgrade their
 production machines, against my vehement objections. They all paid the
 terrible price. Well, the price is not so terrible, just a nuisance.

 Bob


 On May 11, 2012, at 10:46 PM, stephen barncard wrote:

  yes thank you Kay, actually these are the first places I looked, the
 usual
  suspects. Something deeper might be going on, including the fact that I
 was
  using a developer preview when I first installed Lion, and it never let
 me
  upgrade beyond .0
 
  On Fri, May 11, 2012 at 8:55 PM, Kay C Lan lan.kc.macm...@gmail.com
 wrote:
 
  Actually missed a big one off the list.
 
  Spotlight - which would show up as mdworker in Activity Monitor. If
 you've
  added a 'new' HD, internal or external and haven't set Spotlight to
 ignore
  it then Spotlight may take forever to process it and you will definitely
  end up with the beachball.
 
  New in this case would mean something like moving your 1.75TB of
 backups to
  a new 3TB drive. Spotlight will spend forever doing it's thing to the
  1.75TB already on the drive.
 
  I always add Backup/Archive HDs to Spotlight's Privacy list - but many
  times I forget with upgrades and it isn't until I'm left with an
  unresponsive system that I crack open AM and find the culprit.
 
  Also, what Sharing services have you set up. Is it possible someone is
  accessing iTunes, iPhoto or large files - you turned it on and forgot to
  turn it off? What about iCloud, are you snap happy and is iPhoto
 constantly
  updating your last 1000 photos to iCloud? Again, AM should help you pin
  point it.
 
  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
 
 
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  use-livecode mailing list
  use-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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread Mark Schonewille
David,

This is a tricky question, because there are too many factors playing a role 
here. Think of the URL of the MP3 file, the Windows firewall, the visibility of 
the stack window, the rect of the player, the moment when the filename property 
of the player is set, the moment when the stack window is made visible, the 
time needed to load the MP3 file, etc. I think you need to go back to his 
machine, install LiveCode on it and debug your stack step by step.

Just to be sure, what's the URL to the MP3 file?

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.
 
 
 Bump!
 ...overlooked, ignored or just no clues of what might be causing the problem?
 I always brush my teeth before contacting the list and today I added
 fresh cologne before sending this message. ;-)
 
 Thanks,
 David C.


___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread stephen barncard
my statements may have appeared contradictory in the previous message.

1. I did a apple store* Lion 10.7.4* on top of a previous installation on
Saturday. 9 hours
2. I did a fresh 10.7.4 re-install on Sunday. 18 hours

re-written:

summary of my 'lost weekend':

1.   Installing apple store* Lion 10.7.4* on top of a previous
installation worked better, but still took over 4 minutes to completely
boot up. Some applications will still seem sluggish when starting up. No
beachball though. It took about 9 hours to install. Most disturbing on this
install is the progress indicator, telling me 36 hours at first, but later
settling into alternating between 24 and 12. In other words, progress
indicators don't mean squat.

2.  I finally did a fresh 10.7.4 re-install on Sunday.
A 'fresh' install of 10.7.4 with migrated files will take less than a
minute to completely boot up. Things seem pretty normal now. It took 18
hours for this latest apple store version to install and move all the files
(via migration assistant).   I can imagine it would take a couple of days
if I had a filled 1TB disk and tried to do this.

3. A 'fresh' install of 10.7.4 without migrating my thousands of documents
and hundreds of applications is blindingly fast and boots faster than the
above.

other settings that may help avoid Mr. Beachball and delays:

Turn off the 'size' checkbox and 'show icon preview' in folder prefs, then
click use as defaults

Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread Bob Sneidar
Are you using USB? Is it on a USB bus with other drives that may be in use? 
That would suck up the already limited bandwidth on a USB chain. Firewire 800 
seems to take a couple hours or less for most of my migrations. 

Bob


On May 14, 2012, at 11:29 AM, stephen barncard wrote:

 my statements may have appeared contradictory in the previous message.
 
 1. I did a apple store* Lion 10.7.4* on top of a previous installation on
 Saturday. 9 hours
 2. I did a fresh 10.7.4 re-install on Sunday. 18 hours
 
 re-written:
 
 summary of my 'lost weekend':
 
 1.   Installing apple store* Lion 10.7.4* on top of a previous
 installation worked better, but still took over 4 minutes to completely
 boot up. Some applications will still seem sluggish when starting up. No
 beachball though. It took about 9 hours to install. Most disturbing on this
 install is the progress indicator, telling me 36 hours at first, but later
 settling into alternating between 24 and 12. In other words, progress
 indicators don't mean squat.
 
 2.  I finally did a fresh 10.7.4 re-install on Sunday.
 A 'fresh' install of 10.7.4 with migrated files will take less than a
 minute to completely boot up. Things seem pretty normal now. It took 18
 hours for this latest apple store version to install and move all the files
 (via migration assistant).   I can imagine it would take a couple of days
 if I had a filled 1TB disk and tried to do this.
 
 3. A 'fresh' install of 10.7.4 without migrating my thousands of documents
 and hundreds of applications is blindingly fast and boots faster than the
 above.
 
 other settings that may help avoid Mr. Beachball and delays:
 
 Turn off the 'size' checkbox and 'show icon preview' in folder prefs, then
 click use as defaults
 
 Stephen Barncard
 San Francisco Ca. USA
 
 more about sqb  http://www.google.com/profiles/sbarncar
 ___
 use-livecode mailing list
 use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread stephen barncard
No, I would never do that. I know USB was made for keyboards and dongles
and useless for big data movement. This was done on a new Mac Pro copying
between internal drives. (there are 4 possible on a Pro).

 The installers and migrators appear to be much slower than 'regular' file
copy.

I have a lot of files. Over a million.

On Mon, May 14, 2012 at 11:35 AM, Bob Sneidar b...@twft.com wrote:

 Are you using USB? Is it on a USB bus with other drives that may be in
 use? That would suck up the already limited bandwidth on a USB chain.
 Firewire 800 seems to take a couple hours or less for most of my migrations.

 Bob


 On May 14, 2012, at 11:29 AM, stephen barncard wrote:

  my statements may have appeared contradictory in the previous message.
 
  1. I did a apple store* Lion 10.7.4* on top of a previous installation
 on
  Saturday. 9 hours
  2. I did a fresh 10.7.4 re-install on Sunday. 18 hours
 
  re-written:
 
  summary of my 'lost weekend':
 
  1.   Installing apple store* Lion 10.7.4* on top of a previous
  installation worked better, but still took over 4 minutes to completely
  boot up. Some applications will still seem sluggish when starting up. No
  beachball though. It took about 9 hours to install. Most disturbing on
 this
  install is the progress indicator, telling me 36 hours at first, but
 later
  settling into alternating between 24 and 12. In other words, progress
  indicators don't mean squat.
 
  2.  I finally did a fresh 10.7.4 re-install on Sunday.
  A 'fresh' install of 10.7.4 with migrated files will take less than a
  minute to completely boot up. Things seem pretty normal now. It took 18
  hours for this latest apple store version to install and move all the
 files
  (via migration assistant).   I can imagine it would take a couple of days
  if I had a filled 1TB disk and tried to do this.
 
  3. A 'fresh' install of 10.7.4 without migrating my thousands of
 documents
  and hundreds of applications is blindingly fast and boots faster than the
  above.
 
  other settings that may help avoid Mr. Beachball and delays:
 
  Turn off the 'size' checkbox and 'show icon preview' in folder prefs,
 then
  click use as defaults
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  use-livecode mailing list
  use-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




-- 



Stephen Barncard
San Francisco Ca. USA

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


tilde after .rev in file name

2012-05-14 Thread Timothy Miller
Something bad happened to one of my stacks. I wasn't doing anything unusual. 
(Nor was the stack, or LiveCode. My wife might have been doing something 
unusual in the next room.)

I did have a number of applications running at the same time, and I only have 2 
GB of physical RAM. It might have been maxed. This could have caused a problem. 
Normally, I try to avoid running out of physical RAM.

I closed, quit, tried to re-open, got a corrupted message. Some version of 
the stack got saved, missing half of its megabytes. I shut down, re-booted, 
noticed that the file name had a tilde after it. Didn't know why. Had I bumped 
the keyboard and added the tilde inadvertently? (Seemed unlikely.)

I removed the tilde. The stack opens and runs okay now. I wrote a script that 
goes to each card, with screen and messages unlocked. It seems okay.

Two questions:

1-How did the tilde get there? Did liveCode do it, the OS, or my elbow?

2-Given the foregoing is it safe to continue using this stack and adding new 
content to it? (With some inconvenience, I could revert to an older backup of 
the same stack.)

Thanks in advance,

Tim
___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread Tim Jones
I actually stopped using migration back around Tiger because of how painfully 
slow it was.  I've found it quicker to reinstall my apps and just copy my 
documents over.

All of my film and music stuff are on a SAS array, so they don't come into the 
process.

Tim

On May 14, 2012, at 11:49 AM, stephen barncard wrote:

 No, I would never do that. I know USB was made for keyboards and dongles
 and useless for big data movement. This was done on a new Mac Pro copying
 between internal drives. (there are 4 possible on a Pro).
 
 The installers and migrators appear to be much slower than 'regular' file
 copy.
 
 I have a lot of files. Over a million.


___
use-livecode mailing list
use-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: tilde after .rev in file name

2012-05-14 Thread Colin Holgate
This long discussion may be of interest:

https://discussions.apple.com/thread/3707538?start=0tstart=0

(short version, as it were, is that this relates to a Lion 'versions'  feature)

___
use-livecode mailing list
use-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] Mac Beach Ball Party (or welcome to hell, here's your mac)

2012-05-14 Thread stephen barncard
I use MA because I want all settings and authorizations that are in the LIB
to go with it. It's kind of *all or nothing* with MA.

I'd rather keep all the system crap on a smaller SSD, but apple insists a
lot of stuff including apps live on the boot drive. I have over 100 raw
drives for big data that slip into several Newer Tech 'toasters' .

http://www.newertech.com/products/voyagerq.php

sqb

On Mon, May 14, 2012 at 11:53 AM, Tim Jones tolis...@me.com wrote:

 I actually stopped using migration back around Tiger because of how
 painfully slow it was.  I've found it quicker to reinstall my apps and just
 copy my documents over.

 All of my film and music stuff are on a SAS array, so they don't come into
 the process.

 Tim

 On May 14, 2012, at 11:49 AM, stephen barncard wrote:

  No, I would never do that. I know USB was made for keyboards and dongles
  and useless for big data movement. This was done on a new Mac Pro copying
  between internal drives. (there are 4 possible on a Pro).
 
  The installers and migrators appear to be much slower than 'regular' file
  copy.
 
  I have a lot of files. Over a million.


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




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-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: tilde after .rev in file name

2012-05-14 Thread Richmond

On 05/14/2012 09:52 PM, Timothy Miller wrote:

Something bad happened to one of my stacks. I wasn't doing anything unusual. 
(Nor was the stack, or LiveCode. My wife might have been doing something 
unusual in the next room.)

I did have a number of applications running at the same time, and I only have 2 
GB of physical RAM.


What on earth were you doing that needed so much RAM, apart from massive 
3D-graphic rendering  and/or movie-imports?


Or, put it another way; have you got such a resource-hungry operating 
system that it leaves you with hardly any RAM for

anything else?


  It might have been maxed. This could have caused a problem. Normally, I try 
to avoid running out of physical RAM.

I closed, quit, tried to re-open, got a corrupted message. Some version of 
the stack got saved, missing half of its megabytes. I shut down, re-booted, noticed that 
the file name had a tilde after it. Didn't know why. Had I bumped the keyboard and added 
the tilde inadvertently? (Seemed unlikely.)

I removed the tilde. The stack opens and runs okay now. I wrote a script that 
goes to each card, with screen and messages unlocked. It seems okay.

Two questions:

1-How did the tilde get there? Did liveCode do it, the OS, or my elbow?


As far as I know, when you save a stack, it saves as .rev~ and then 
replaces the previous one (ending .rev). This is very useful
in the sort of situation you have described, when your system crashes or 
starts playing silly bu**ers, because you can recover

your work from the .rev~ file.

Just for fun try this: open a fairly large stack, and save it into an 
open window on your desktop (i.e. so you can see it), then
modify the stack and resave it; and I think you will see, at one point, 
2 stacks: 'XXX.rev' and 'XXX.rev~' during the save process.




2-Given the foregoing is it safe to continue using this stack and adding new 
content to it? (With some inconvenience, I could revert to an older backup of 
the same stack.)


Consider the .rev~ file a backup and carry on.



Thanks in advance,

Tim
___
use-livecode mailing list
use-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: CSV again.

2012-05-14 Thread Peter Haworth
I've just been checking out Alex's new csv parser and it is indeed much
faster than the original, closer to 50% than 40% in my test case.

However, I've also run into a Livecode issue while doing all this.  This
has come up before in the context of what LC thinks is a line, there's a
similar issue/confusion/whatever with items.

Let's say you have a string 1,2,3,4,5,6 - LC thinks there are 6 items in
it, no problem

Now change the string to 1,2,3,4,5,6, (note the trailing comma) - LC
still thinks there are 6 items in that string.

So to LC, 1,2,3,4,5,6 and 1,2,3,4,5,6, are equivalent in terms of the
number of items in them.  In the context of parsing csv files, they
definitely are not.

Pete
lcSQL Software http://www.lcsql.com



On Mon, May 7, 2012 at 4:30 PM, Alex Tweedly a...@tweedly.net wrote:

 Some years ago, this list discussed the difficulties of parsing
 comma-separated-value file format; Richard Gaskin has a great article about
 it at 
 http://www.fourthworld.com/**embassy/articles/csv-must-die.**htmlhttp://www.fourthworld.com/embassy/articles/csv-must-die.html

 Following that discussion, I came up with some code to parse CSV in
 Livecode which was significantly faster than the straightforwards methods
 (quoted in the above article). At the time, I put that speed gain down to
 two factors

 1. a way of looking at the problem sideways that enables a different
 approach
 2. a 'clever' use of split + array access

 Recently the topic came up again, and I looked at the code again; I now
 realize that in fact the speed gain came entirely from the first of those
 two factors, and using split + arrays was not helpful. Livecode's chunk
 handling is (in this case) faster than using arrays (my only excuse is that
 I was new to Livecode, and so I was using techniques I was familiar with
 from other languages). So I revised the code to use chunk handling rather
 than split+arrays, and the resulting code runs about 40% faster, with the
 added benefit of being slightly easier to read and understand.  The only
 slightly mind-bending feature of the new code is the use of

set the lineDelimiter to quote
repeat for each line k in pData 

 I find it hard to think about lines that aren't actually lines :-)

 So - for anyone who needs or wants more speed, here's the code

  function CSV3Tab pData,pcoldelim
  local tNuData -- contains tabbed copy of data
  local tReturnPlaceholder -- replaces cr in field data to avoid line
  --   breaks which would be misread as records;
  --   replaced later during dislay
  local tEscapedQuotePlaceholder -- used for keeping track of quotes
  --   in data
  local tInQuotedText -- flag set while reading data between quotes
  local tInsideQuoted, k
  --
  put numtochar(11) into tReturnPlaceholder -- vertical tab as
  --   placeholder
  put numtochar(2)  into tEscapedQuotePlaceholder -- used to simplify
  --   distinction between quotes in data and those
  --   used in delimiters
  --
  if pcoldelim is empty then put comma into pcoldelim
  -- Normalize line endings:
  replace crlf with cr in pData  -- Win to UNIX
  replace numtochar(13) with cr in pData -- Mac to UNIX
  --
  -- Put placeholder in escaped quote (non-delimiter) chars:
  replace (\quote) with tEscapedQuotePlaceholder in pData
  replace quotequote with tEscapedQuotePlaceholder in pData
  --
  put space before pData   -- to avoid ambiguity of starting context
  put False into tInsideQuoted
  set the linedel to quote
  repeat for each line k in pData
if (tInsideQuoted) then
  replace cr with tReturnPlaceholder in k
  put k after tNuData
  put False into tInsideQuoted
else
  replace pcoldelim with numtochar(29) in k
  put k after tNuData
  put true into tInsideQuoted
end if
  end repeat
  --
  delete char 1 of tNuData -- remove the leading space
  replace tEscapedQuotePlaceholder with quote in tNuData
  return tNuData
 end CSV3Tab


 -- Alex.

 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://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: Problem with QT Player

2012-05-14 Thread David C.
On Mon, May 14, 2012 at 1:10 PM, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 David,

 This is a tricky question, because there are too many factors playing a role 
 here. Think of the URL of the MP3 file, the Windows firewall, the visibility 
 of the stack window, the rect of the player, the moment when the filename 
 property of the player is set, the moment when the stack window is made 
 visible, the time needed to load the MP3 file, etc. I think you need to go 
 back to his machine, install LiveCode on it and debug your stack step by step.

 Just to be sure, what's the URL to the MP3 file?

 --
 Best regards,

 Mark Schonewille

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

 We will have room for new projects after 1 June. Contact me now and be first 
 in line.


 Bump!
 ...overlooked, ignored or just no clues of what might be causing the problem?
 I always brush my teeth before contacting the list and today I added
 fresh cologne before sending this message. ;-)

 Thanks,
 David C.


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

Mark, first of all, thanks for your reply!
...I cannot imagine why it would be tricky. I burned the file to a CD,
carried it to him, he ran it directly from the CD while I was watching
and it didn't work. We re-installed the latest QT and the player still
would not work.

I put the exact same CD into my own laptop, using the same wireless
network and it does work without problems. Can't be an issue with the
path in that situation, so I'm really more interested in verifying
that there isn't some kind of QT external that must ship with the app.
(Didn't see one in the list of externals)

-- 
Best regards,
David C.

___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread Mark Schonewille
Hi David,

There is nothing special that you need to make QT work, except for QT itself 
(which you re-installed). For now, I bet it is the file path. Mac file paths 
are different from Windows file paths. For example:

Mac: Volumes/CD-Label/folder/file.mp3
Win: D:/folder/file.mp3

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 14 mei 2012, at 22:07, David C. wrote:
 
 Mark, first of all, thanks for your reply!
 ...I cannot imagine why it would be tricky. I burned the file to a CD,
 carried it to him, he ran it directly from the CD while I was watching
 and it didn't work. We re-installed the latest QT and the player still
 would not work.
 
 I put the exact same CD into my own laptop, using the same wireless
 network and it does work without problems. Can't be an issue with the
 path in that situation, so I'm really more interested in verifying
 that there isn't some kind of QT external that must ship with the app.
 (Didn't see one in the list of externals)
 
 -- 
 Best regards,
 David C.


___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread Colin Holgate
What drive letter do you have your CD-ROM or DVD-ROM drive set to? What letter 
is his drive set to?

___
use-livecode mailing list
use-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: CSV again.

2012-05-14 Thread Bob Sneidar
This has been discussed before. The last delimiter is not considered when 
parsing lines, items and words. The contents of the object are the only thing 
that is considered, so if nothing comes after the last delimiter, LC says, 
Nothing to see here. Moving along...

That being said, item1,,item2 results in 3 items. Go figure. So the rule is 
empty words,items,lines are counted unless they are the last word,item,line. 
See? Simple. ;-) 

Bob


On May 14, 2012, at 1:00 PM, Peter Haworth wrote:

 I've just been checking out Alex's new csv parser and it is indeed much
 faster than the original, closer to 50% than 40% in my test case.
 
 However, I've also run into a Livecode issue while doing all this.  This
 has come up before in the context of what LC thinks is a line, there's a
 similar issue/confusion/whatever with items.
 
 Let's say you have a string 1,2,3,4,5,6 - LC thinks there are 6 items in
 it, no problem
 
 Now change the string to 1,2,3,4,5,6, (note the trailing comma) - LC
 still thinks there are 6 items in that string.
 
 So to LC, 1,2,3,4,5,6 and 1,2,3,4,5,6, are equivalent in terms of the
 number of items in them.  In the context of parsing csv files, they
 definitely are not.
 
 Pete
 lcSQL Software http://www.lcsql.com
 
 
 
 On Mon, May 7, 2012 at 4:30 PM, Alex Tweedly a...@tweedly.net wrote:
 
 Some years ago, this list discussed the difficulties of parsing
 comma-separated-value file format; Richard Gaskin has a great article about
 it at 
 http://www.fourthworld.com/**embassy/articles/csv-must-die.**htmlhttp://www.fourthworld.com/embassy/articles/csv-must-die.html
 
 Following that discussion, I came up with some code to parse CSV in
 Livecode which was significantly faster than the straightforwards methods
 (quoted in the above article). At the time, I put that speed gain down to
 two factors
 
 1. a way of looking at the problem sideways that enables a different
 approach
 2. a 'clever' use of split + array access
 
 Recently the topic came up again, and I looked at the code again; I now
 realize that in fact the speed gain came entirely from the first of those
 two factors, and using split + arrays was not helpful. Livecode's chunk
 handling is (in this case) faster than using arrays (my only excuse is that
 I was new to Livecode, and so I was using techniques I was familiar with
 from other languages). So I revised the code to use chunk handling rather
 than split+arrays, and the resulting code runs about 40% faster, with the
 added benefit of being slightly easier to read and understand.  The only
 slightly mind-bending feature of the new code is the use of
 
   set the lineDelimiter to quote
   repeat for each line k in pData 
 
 I find it hard to think about lines that aren't actually lines :-)
 
 So - for anyone who needs or wants more speed, here's the code
 
 function CSV3Tab pData,pcoldelim
 local tNuData -- contains tabbed copy of data
 local tReturnPlaceholder -- replaces cr in field data to avoid line
 --   breaks which would be misread as records;
 --   replaced later during dislay
 local tEscapedQuotePlaceholder -- used for keeping track of quotes
 --   in data
 local tInQuotedText -- flag set while reading data between quotes
 local tInsideQuoted, k
 --
 put numtochar(11) into tReturnPlaceholder -- vertical tab as
 --   placeholder
 put numtochar(2)  into tEscapedQuotePlaceholder -- used to simplify
 --   distinction between quotes in data and those
 --   used in delimiters
 --
 if pcoldelim is empty then put comma into pcoldelim
 -- Normalize line endings:
 replace crlf with cr in pData  -- Win to UNIX
 replace numtochar(13) with cr in pData -- Mac to UNIX
 --
 -- Put placeholder in escaped quote (non-delimiter) chars:
 replace (\quote) with tEscapedQuotePlaceholder in pData
 replace quotequote with tEscapedQuotePlaceholder in pData
 --
 put space before pData   -- to avoid ambiguity of starting context
 put False into tInsideQuoted
 set the linedel to quote
 repeat for each line k in pData
   if (tInsideQuoted) then
 replace cr with tReturnPlaceholder in k
 put k after tNuData
 put False into tInsideQuoted
   else
 replace pcoldelim with numtochar(29) in k
 put k after tNuData
 put true into tInsideQuoted
   end if
 end repeat
 --
 delete char 1 of tNuData -- remove the leading space
 replace tEscapedQuotePlaceholder with quote in tNuData
 return tNuData
 end CSV3Tab
 
 
 -- Alex.
 
 __**_
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this 

Re: CSV again.

2012-05-14 Thread Alex Tweedly
Yeah, the training empty item problem has been much discussed, and 
there are good reasons for keeping it as it is (even apart from the need 
to not break existing code).


In similar circumstances, I've done

   replace (comma  CR) with (comma  space  CR) in tVariable

but in your case, even a space may not be exactly the same as totally empty.

Could you replace the empty trailing item with a quoted item ?
i.e.
   replace (comma  CR) with (comma  quote  quote  CR) in tVariable
without any unpleasant side-effects ?

-- Alex.

On 14/05/2012 21:00, Peter Haworth wrote:

I've just been checking out Alex's new csv parser and it is indeed much
faster than the original, closer to 50% than 40% in my test case.

However, I've also run into a Livecode issue while doing all this.  This
has come up before in the context of what LC thinks is a line, there's a
similar issue/confusion/whatever with items.

Let's say you have a string 1,2,3,4,5,6 - LC thinks there are 6 items in
it, no problem

Now change the string to 1,2,3,4,5,6, (note the trailing comma) - LC
still thinks there are 6 items in that string.

So to LC, 1,2,3,4,5,6 and 1,2,3,4,5,6, are equivalent in terms of the
number of items in them.  In the context of parsing csv files, they
definitely are not.

Pete
lcSQL Softwarehttp://www.lcsql.com



On Mon, May 7, 2012 at 4:30 PM, Alex Tweedlya...@tweedly.net  wrote:


Some years ago, this list discussed the difficulties of parsing
comma-separated-value file format; Richard Gaskin has a great article about
it at 
http://www.fourthworld.com/**embassy/articles/csv-must-die.**htmlhttp://www.fourthworld.com/embassy/articles/csv-must-die.html

Following that discussion, I came up with some code to parse CSV in
Livecode which was significantly faster than the straightforwards methods
(quoted in the above article). At the time, I put that speed gain down to
two factors

1. a way of looking at the problem sideways that enables a different
approach
2. a 'clever' use of split + array access

Recently the topic came up again, and I looked at the code again; I now
realize that in fact the speed gain came entirely from the first of those
two factors, and using split + arrays was not helpful. Livecode's chunk
handling is (in this case) faster than using arrays (my only excuse is that
I was new to Livecode, and so I was using techniques I was familiar with
from other languages). So I revised the code to use chunk handling rather
than split+arrays, and the resulting code runs about 40% faster, with the
added benefit of being slightly easier to read and understand.  The only
slightly mind-bending feature of the new code is the use of

set the lineDelimiter to quote
repeat for each line k in pData 

I find it hard to think about lines that aren't actually lines :-)

So - for anyone who needs or wants more speed, here's the code

  function CSV3Tab pData,pcoldelim

  local tNuData -- contains tabbed copy of data
  local tReturnPlaceholder -- replaces cr in field data to avoid line
  --   breaks which would be misread as records;
  --   replaced later during dislay
  local tEscapedQuotePlaceholder -- used for keeping track of quotes
  --   in data
  local tInQuotedText -- flag set while reading data between quotes
  local tInsideQuoted, k
  --
  put numtochar(11) into tReturnPlaceholder -- vertical tab as
  --   placeholder
  put numtochar(2)  into tEscapedQuotePlaceholder -- used to simplify
  --   distinction between quotes in data and those
  --   used in delimiters
  --
  if pcoldelim is empty then put comma into pcoldelim
  -- Normalize line endings:
  replace crlf with cr in pData  -- Win to UNIX
  replace numtochar(13) with cr in pData -- Mac to UNIX
  --
  -- Put placeholder in escaped quote (non-delimiter) chars:
  replace (\quote) with tEscapedQuotePlaceholder in pData
  replace quotequote with tEscapedQuotePlaceholder in pData
  --
  put space before pData   -- to avoid ambiguity of starting context
  put False into tInsideQuoted
  set the linedel to quote
  repeat for each line k in pData
if (tInsideQuoted) then
  replace cr with tReturnPlaceholder in k
  put k after tNuData
  put False into tInsideQuoted
else
  replace pcoldelim with numtochar(29) in k
  put k after tNuData
  put true into tInsideQuoted
end if
  end repeat
  --
  delete char 1 of tNuData -- remove the leading space
  replace tEscapedQuotePlaceholder with quote in tNuData
  return tNuData
end CSV3Tab



-- Alex.

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


___
use-livecode 

Re: tilde after .rev in file name

2012-05-14 Thread Timothy Miller

On May 14, 2012, at 12:10 PM, Richmond wrote:

 On 05/14/2012 09:52 PM, Timothy Miller wrote:
 Something bad happened to one of my stacks. I wasn't doing anything unusual. 
 (Nor was the stack, or LiveCode. My wife might have been doing something 
 unusual in the next room.)
 
 I did have a number of applications running at the same time, and I only 
 have 2 GB of physical RAM.
 
 What on earth were you doing that needed so much RAM, apart from massive 
 3D-graphic rendering  and/or movie-imports?
 
 Or, put it another way; have you got such a resource-hungry operating system 
 that it leaves you with hardly any RAM for
 anything else?

You know how it goes. Plants vs. Zombies running in another window, Firefox 
with fifteen open tabs, a document open in Pages. That's 2 GB right there.

Thanks for the tilde comments. Also thanks to Colin. I'm relieved.

Tim
___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread David C.
On Mon, May 14, 2012 at 3:24 PM, Colin Holgate co...@verizon.net wrote:
 What drive letter do you have your CD-ROM or DVD-ROM drive set to? What 
 letter is his drive set to?

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


Hello Colin
Drat! Sorry for the confusion, big dummy that I am. I should have
mentioned that the MP3 file will *always* be located on a remote web
server, whose IP address and URL isn't subject to change. Only the
application itself is on the CD.

-- 
Best regards,
David C.

___
use-livecode mailing list
use-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: Problem with QT Player

2012-05-14 Thread David C.
On Mon, May 14, 2012 at 3:18 PM, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
 Hi David,

 There is nothing special that you need to make QT work, except for QT itself 
 (which you re-installed). For now, I bet it is the file path. Mac file paths 
 are different from Windows file paths. For example:

 Mac: Volumes/CD-Label/folder/file.mp3
 Win: D:/folder/file.mp3

 --
 Best regards,

 Mark Schonewille

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

 We will have room for new projects after 1 June. Contact me now and be first 
 in line.

 On 14 mei 2012, at 22:07, David C. wrote:

 Mark, first of all, thanks for your reply!
 ...I cannot imagine why it would be tricky. I burned the file to a CD,
 carried it to him, he ran it directly from the CD while I was watching
 and it didn't work. We re-installed the latest QT and the player still
 would not work.

 I put the exact same CD into my own laptop, using the same wireless
 network and it does work without problems. Can't be an issue with the
 path in that situation, so I'm really more interested in verifying
 that there isn't some kind of QT external that must ship with the app.
 (Didn't see one in the list of externals)

 --
 Best regards,
 David C.


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

I'm very sorry Mark,
My reply to Colin about the path should have been addressed to you both.

Best regards,
David C.

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


Problem with QT player

2012-05-14 Thread stgoldb...@aol.com
I had the same problem of the white window showing up when changing computers.  
It had to do with the file path.  The User Manual discusses absolute versus 
relative paths (section 12.1.2).  When the absolute path is used (in your 
Quicktime player inspector), everything works fine on your own computer, but 
this path is inadequate for another computer; you need to change the path to 
the relative path in your original stack.  See if it works when you use the 
relative path, with the movie placed in the same folder as the stack.
Stephen Goldberg, President
Medmaster Inc.
www.medmaster.net
stgoldb...@aol.com


On Sun, May 13, 2012 at 8:11 AM, David C. davidoco...@gmail.com wrote:
 Hey folks,
 I have a very simple application in which one aspect of the app uses
 the QT player, always pointing to the same named MP3 file on my
 server.

 Yesterday, I went to visit a friend and gave him ?a copy of the app to
 try out and every aspect of the application worked as intended except
 for the QT player. Where the controls would normally be located, there
 was nothing but a white empty space instead. Just to be sure there
 wasn't a problem with his QuickTime installation, I had him download
 and install the latest copy, yet we got the sames results.

 I tried the same application on my laptop (positioned right beside his
 and NOT being the machine I developed the application on) and it works
 flawlessly.

 The app was built on a Win 7 machine running LC 4.51, my friend's
 laptop is a Win 7 machine and the laptop I used to run the test beside
 his is a Win Vista machine. This is the first time I've used the
 Player control so I'm stumped.

 Is there some sort of QT external required or do you have any ideas
 what might be happening?


___
use-livecode mailing list
use-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: Problem with QT player

2012-05-14 Thread David C.
On Mon, May 14, 2012 at 4:30 PM, stgoldb...@aol.com stgoldb...@aol.com wrote:
 I had the same problem of the white window showing up when changing 
 computers.  It had to do with the file path.  The User Manual discusses 
 absolute versus relative paths (section 12.1.2).  When the absolute path is 
 used (in your Quicktime player inspector), everything works fine on your own 
 computer, but this path is inadequate for another computer; you need to 
 change the path to the relative path in your original stack.  See if it works 
 when you use the relative path, with the movie placed in the same folder as 
 the stack.
 Stephen Goldberg, President
 Medmaster Inc.
 www.medmaster.net
 stgoldb...@aol.com




Hello Stephen,
I just don't see how it can be a file path issue... as I mentioned
earlier the MP3 file is hosted on a remote web server without the
possibility of the URL changing. (I have control of the server)

Ex: http://blahblah.com/mymp3file.mp3


Best regards,
David C.

___
use-livecode mailing list
use-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: When is the CONTROL key not a control key?

2012-05-14 Thread Mark Wieder
Richmond richmondmathewson@... writes:

 If, like me, you lived in the parallel universe of second-hand goods you 
 would realise that I have never owned a mattress
 that has had a label!

try
  put the label of MattressOfRichmond into theTrash
catch error
  put oh... never mind
end try


___
use-livecode mailing list
use-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: Problem with QT player

2012-05-14 Thread Bob Sneidar
This has probably been asked, but did you try the url with the system browser? 
Probably should eliminate a content filter issue. You may be running on a 
profile that allows something that is blocked for other users. just a shot in 
the dark

Bob


On May 14, 2012, at 3:11 PM, David C. wrote:

 On Mon, May 14, 2012 at 4:30 PM, stgoldb...@aol.com stgoldb...@aol.com 
 wrote:
 I had the same problem of the white window showing up when changing 
 computers.  It had to do with the file path.  The User Manual discusses 
 absolute versus relative paths (section 12.1.2).  When the absolute path is 
 used (in your Quicktime player inspector), everything works fine on your own 
 computer, but this path is inadequate for another computer; you need to 
 change the path to the relative path in your original stack.  See if it 
 works when you use the relative path, with the movie placed in the same 
 folder as the stack.
 Stephen Goldberg, President
 Medmaster Inc.
 www.medmaster.net
 stgoldb...@aol.com
 
 
 
 
 Hello Stephen,
 I just don't see how it can be a file path issue... as I mentioned
 earlier the MP3 file is hosted on a remote web server without the
 possibility of the URL changing. (I have control of the server)
 
 Ex: http://blahblah.com/mymp3file.mp3
 
 
 Best regards,
 David C.
 
 ___
 use-livecode mailing list
 use-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: When is the CONTROL key not a control key?

2012-05-14 Thread Bob Sneidar
I would have done...

don't even try
  put if (not exists pathToFile(theTrash)) is not true then else put the label 
of MattressOfRichmond into theTrash
catch theError
  put Whut??!?
end don't even try

On May 14, 2012, at 3:16 PM, Mark Wieder wrote:

 Richmond richmondmathewson@... writes:
 
 If, like me, you lived in the parallel universe of second-hand goods you 
 would realise that I have never owned a mattress
 that has had a label!
 
 try
  put the label of MattressOfRichmond into theTrash
 catch error
  put oh... never mind
 end try
 
 
 ___
 use-livecode mailing list
 use-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


Windows Metro

2012-05-14 Thread Peter Haworth
Haven't seen much discussion of Windows vis-a-vis LC yet.  Anyone in the
loop on what we might expect to have to change in our apps?

I've seen discussions on the sqlite list that the current version of the
sqlite library won't run on metro.  They have another version of the
library in full test and ready to be released as things get closer to a
release of Windows 8, which at least means LC will have to include a newer
sqlite library.


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


Re: Windows Metro

2012-05-14 Thread Mark Schonewille
Hi Pete,

I tested Installer Maker with Windows 8 and didn't find a reason to make any 
changes whatsoever, although wonder if there's a way to display a different 
type of icon in the colorized brick wall.

--
Best regards,

Mark Schonewille

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

We will have room for new projects after 1 June. Contact me now and be first in 
line.

On 15 mei 2012, at 01:05, Peter Haworth wrote:

 Haven't seen much discussion of Windows vis-a-vis LC yet.  Anyone in the
 loop on what we might expect to have to change in our apps?
 
 I've seen discussions on the sqlite list that the current version of the
 sqlite library won't run on metro.  They have another version of the
 library in full test and ready to be released as things get closer to a
 release of Windows 8, which at least means LC will have to include a newer
 sqlite library.
 
 
 Pete
 lcSQL Software http://www.lcsql.com



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


Re: Windows Metro

2012-05-14 Thread Bob Sneidar
sigh just as I was getting used to Win 7! You know, the reason that Microsoft 
HAS to come out with a new OS every couple years, is that they have Software 
Assurance agreements that last 3 years, and people pay good money for this. If 
MS fails to deliver a major release in that time, the agreements are for 
nothing, and people would be PISSED. 

So Microsoft HAS to have a new major release within that time frame, even if it 
is a considerably worse OS or App than the previous one. Frankly, I LOVED 
Office 98 for Mac! Best version ever. 

Bob


On May 14, 2012, at 4:05 PM, Peter Haworth wrote:

 Haven't seen much discussion of Windows vis-a-vis LC yet.  Anyone in the
 loop on what we might expect to have to change in our apps?
 
 I've seen discussions on the sqlite list that the current version of the
 sqlite library won't run on metro.  They have another version of the
 library in full test and ready to be released as things get closer to a
 release of Windows 8, which at least means LC will have to include a newer
 sqlite library.
 
 
 Pete
 lcSQL Software http://www.lcsql.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: Problem with QT player

2012-05-14 Thread David C.
On Mon, May 14, 2012 at 5:28 PM, Bob Sneidar b...@twft.com wrote:
 This has probably been asked, but did you try the url with the system 
 browser? Probably should eliminate a content filter issue. You may be running 
 on a profile that allows something that is blocked for other users. just a 
 shot in the dark

 Bob


 On May 14, 2012, at 3:11 PM, David C. wrote:

 On Mon, May 14, 2012 at 4:30 PM, stgoldb...@aol.com stgoldb...@aol.com 
 wrote:
 I had the same problem of the white window showing up when changing 
 computers.  It had to do with the file path.  The User Manual discusses 
 absolute versus relative paths (section 12.1.2).  When the absolute path is 
 used (in your Quicktime player inspector), everything works fine on your 
 own computer, but this path is inadequate for another computer; you need to 
 change the path to the relative path in your original stack.  See if it 
 works when you use the relative path, with the movie placed in the same 
 folder as the stack.
 Stephen Goldberg, President
 Medmaster Inc.
 www.medmaster.net
 stgoldb...@aol.com




 Hello Stephen,
 I just don't see how it can be a file path issue... as I mentioned
 earlier the MP3 file is hosted on a remote web server without the
 possibility of the URL changing. (I have control of the server)

 Ex: http://blahblah.com/mymp3file.mp3


 Best regards,
 David C.

 ___
 use-livecode mailing list
 use-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

Hey Bob,
I did not while my friend was testing the application in my presence,
but it seems to be good no matter what computer or device that I try
the URL on

Hope you don't mind, but I've sent you a message off-list that you
might want to look at.
I understand and apologize if it's a bother.


Best regards,
David C.

___
use-livecode mailing list
use-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: Problem with QT player

2012-05-14 Thread Bob Sneidar

On May 14, 2012, at 4:38 PM, David C. wrote:

 On Mon, May 14, 2012 at 5:28 PM, Bob Sneidar b...@twft.com wrote:
 This has probably been asked, but did you try the url with the system 
 browser? Probably should eliminate a content filter issue. You may be 
 running on a profile that allows something that is blocked for other users. 
 just a shot in the dark
 
 Bob
 
 Hey Bob,
 I did not while my friend was testing the application in my presence,
 but it seems to be good no matter what computer or device that I try
 the URL on
 
 Hope you don't mind, but I've sent you a message off-list that you
 might want to look at.
 I understand and apologize if it's a bother.
 
 
 Best regards,
 David C.

No problem at all. 

Bob
___
use-livecode mailing list
use-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: tilde after .rev in file name

2012-05-14 Thread Richmond

On 05/15/2012 12:08 AM, Timothy Miller wrote:

On May 14, 2012, at 12:10 PM, Richmond wrote:


On 05/14/2012 09:52 PM, Timothy Miller wrote:

Something bad happened to one of my stacks. I wasn't doing anything unusual. 
(Nor was the stack, or LiveCode. My wife might have been doing something 
unusual in the next room.)

I did have a number of applications running at the same time, and I only have 2 
GB of physical RAM.

What on earth were you doing that needed so much RAM, apart from massive 
3D-graphic rendering  and/or movie-imports?

Or, put it another way; have you got such a resource-hungry operating system 
that it leaves you with hardly any RAM for
anything else?

You know how it goes. Plants vs. Zombies running in another window, Firefox 
with fifteen open tabs, a document open in Pages.


Ah; you're running a Mac.


  That's 2 GB right there.

Thanks for the tilde comments. Also thanks to Colin. I'm relieved.

Tim
___
use-livecode mailing list
use-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