Re: Curious Glitch in My FTP App

2011-09-09 Thread Gregory Lypny
Hi Pierre and Scott, Thanks for responding. Yes, Scott, it was Platform that I was looking for. Thanks. Pierre, it looks like my students may, in fact, be writing to the account files using a variety of line endings. When I replace various endings with Return, it seems to go away. Thanks

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread Phil Davis
Same here - removing CRs doesn't hinder decoding. I use it frequently. Phil On 9/9/11 9:20 PM, stephen barncard wrote: I have found that Base64 Decode doesn't care. The returns are ignored. On 9 September 2011 20:01, J. Landman Gay wrote: On 9/9/11 9:34 PM, Michael Kann wrote: From the d

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
On 9/9/11 10:53 PM, Mark Wieder wrote: I went back and read the original posting. It's not clear to me that the preOpenStack handler in the substack isn't firing, just that the preOpenStack handler in the mainstack *is* firing. I could be misremembering, as they say. Gregory can be the decide

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread stephen barncard
I have found that Base64 Decode doesn't care. The returns are ignored. On 9 September 2011 20:01, J. Landman Gay wrote: > On 9/9/11 9:34 PM, Michael Kann wrote: > >> From the dictionary (4.0): >>> >> >> > So removing line breaks would wreck the encoding, right? > > -- > Jacqueline Landman Gay

Re: List of handlers

2011-09-09 Thread Phil Davis
On 9/9/11 7:14 PM, Peter M. Brigham, MD wrote: On Sep 9, 2011, at 8:33 PM, I wrote: The filter with "end*" will pick up "end if" and "end repeat" and "end try" as well. -- first: replace "end if" with empty in tList replace "end repeat" with empty in tList replace "end try" with empty in tList

Re: List of handlers

2011-09-09 Thread Phil Davis
Hi Peter, Actually the 'filter' command I described will only include the 'end' statements that start at char 1 of a line. Normally, only 'end ' statements would be in that category. (I'm assuming the coder used a script editor like LC's which indents for readability.) But if the script code o

Re: Question About PreOpenStack

2011-09-09 Thread Mark Wieder
Jacque- Friday, September 9, 2011, 7:24:40 PM, you wrote: > There has been some good info about how to block a preOpenStack handler > from falling through to the mainstack, but I'm not sure that was the > question. Gregory will have to verify, but as I understood it, he has a > valid preOpenStack

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread Mark Wieder
Jacque- Friday, September 9, 2011, 8:01:36 PM, you wrote: > So removing line breaks would wreck the encoding, right? It should. Martin, what are you trying to accomplish here? -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list us

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread J. Landman Gay
On 9/9/11 9:34 PM, Michael Kann wrote: From the dictionary (4.0): So removing line breaks would wreck the encoding, right? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread Michael Kann
>From the dictionary (4.0): Base 64-encoded data is wrapped at 72 characters, so each line of the encoded data is 72 characters or (for the last or only line) fewer. --- On Fri, 9/9/11, Colin Holgate wrote: From: Colin Holgate Subject: Re: Removing linebreaks from base64encoded string To: "Ho

Re: Checksum via FTP???

2011-09-09 Thread J. Landman Gay
On 9/9/11 6:08 PM, Roger Eller wrote: Could I also do something like this: (I probably should try it) get URLencode(md5digest(URL ("ftp://user:pass@"&; pFilePath))) ? I get it now. I tried FTP file retrieval a while back and had variable luck, I think it depends on how your server is s

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread Colin Holgate
Base64 shouldn't have any returns or line breaks in it, should it? On Sep 9, 2011, at 9:05 PM, Martin Koob wrote: > I am trying to remove the line breaks from a base64 encoded string. ___ use-livecode mailing list use-livecode@lists.runrev.com Plea

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
There has been some good info about how to block a preOpenStack handler from falling through to the mainstack, but I'm not sure that was the question. Gregory will have to verify, but as I understood it, he has a valid preOpenStack handler in a substack but it isn't executing. Instead, he gets

Re: List of handlers

2011-09-09 Thread Peter M. Brigham, MD
On Sep 9, 2011, at 8:33 PM, I wrote: > The filter with "end*" will pick up "end if" and "end repeat" and "end try" > as well. > -- first: > replace "end if" with empty in tList > replace "end repeat" with empty in tList > replace "end try" with empty in tList > -- then > filter tList with "end*"

Re: List of handlers

2011-09-09 Thread Peter M. Brigham, MD
The filter with "end*" will pick up "end if" and "end repeat" and "end try" as well. -- first: replace "end if" with empty in tList replace "end repeat" with empty in tList replace "end try" with empty in tList -- then filter tList with "end*" replace cr & "end " with cr in tList -- Peter Peter

Re: List of handlers - snake

2011-09-09 Thread Joe Lewis Wilkins
Hi everyone, While you're on this exploration topic, in HyperCard we had a routine with the word "snake" in it as I recall. It could be used from the message box and it would take you through all of the open stacks, including the stacks in use, and the objects within the stacks, one by one, ope

Re: Removing linebreaks from base64encoded string

2011-09-09 Thread Michael Kann
repeat for each line k of bad_ base_64_encoded_string    put char 1 to 72 of k after good_ base_64_encoded_string end repeat --- On Fri, 9/9/11, Martin Koob wrote: From: Martin Koob Subject: Removing linebreaks from base64encoded string To: use-revolut...@lists.runrev.com Date: Friday, Septemb

Re: How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread Josh Mellicker
On Sep 9, 2011, at 4:41 PM, zryip theSlug wrote: > > dgDataControlOfIndex is a datagrid property. > > Try: > hide btn "blueCircle" of the dgDataControlOfIndex[2] of grp "myDataGrid" > Thanks for your help, problem solved! The problem wasn't actually that I forgot the group (i did in the emai

Removing linebreaks from base64encoded string

2011-09-09 Thread Martin Koob
I am trying to remove the line breaks from a base64 encoded string. In a livecode stack I tried put base64encode(tJSONstring) into tEncodedext replace "\r\n" with "" in tEncodedtext That had no effect. If I tried, replace return with "" in tEncodedtext That did remove the linebreaks. Wit

Re: Checksum via FTP???

2011-09-09 Thread Mark Wieder
Roger- Store a text file on the ftp server with just the checksum in it. Then after you've computed the checksum of the downloaded file, compare it with the contents of the text file on the server. -- -Mark Wieder mwie...@ahsoftware.net ___ use-live

Re: List of handlers

2011-09-09 Thread Phil Davis
Or try this: put script of into tList filter tList with "end " -- EVERY handler ends this way replace (cr & "end ") with cr in tList -- remove 'end' from each line sort lines of tList -- if you like put tList Phil Davis On 9/9/11 5:05 PM, Roger Eller wrote: On Fri, Sep 9, 201

Re: List of handlers

2011-09-09 Thread Roger Eller
On Fri, Sep 9, 2011 at 7:50 PM, Chip Thomas wrote: > Hey all, is there a way to get a list of handlers within a control? > > Or see if a handler/function exists? > > Thanks! put the script of into tHandList filter tHandList with "*on" & space & "*" -- just for readability... could also be "*on

Re: How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread Bob Sneidar
Everything about a datagrid is referenced as a property of the group. I sometimes forget this and don't reference the datagrid using 'of group "myDataGrid1"' or whatever I named it. Bob On Sep 9, 2011, at 4:34 PM, Josh Mellicker wrote: > Thanks for the reply Zryip! > > I can't get dgDataCon

List of handlers

2011-09-09 Thread Chip Thomas
Hey all, is there a way to get a list of handlers within a control? Or see if a handler/function exists? Thanks! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription pr

Re: How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread zryip theSlug
On Sat, Sep 10, 2011 at 1:34 AM, Josh Mellicker wrote: > > On Sep 9, 2011, at 2:36 PM, zryip theSlug wrote: > >> On Fri, Sep 9, 2011 at 11:03 PM, Josh Mellicker wrote: >>> Just wondering what best practices are when wanting to reference an image >>> (or button or other non-text field control) in

Re: Question About PreOpenStack

2011-09-09 Thread Bob Sneidar
Really?? I was under the impression that preOpenStack would not fire from the first card because the stack was not open yet. You learn something new every day! Bob On Sep 9, 2011, at 12:09 PM, Scott Rossi wrote: > 3) move your preOpenStack handlers from the script of your mainstack into > the

Re: How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread Josh Mellicker
On Sep 9, 2011, at 2:36 PM, zryip theSlug wrote: > On Fri, Sep 9, 2011 at 11:03 PM, Josh Mellicker wrote: >> Just wondering what best practices are when wanting to reference an image >> (or button or other non-text field control) in a Data Grid form. >> >> >> img "blueCircle" of grp x of grp

Re: Checksum via FTP???

2011-09-09 Thread Roger Eller
On Fri, Sep 9, 2011 at 5:38 PM, J. Landman Gay wrote: > On 9/9/11 11:27 AM, Roger Eller wrote: > >> The following function was posted on the old Use-Revolution list. I was >> wondering how to do the same after downloading a file via FTP. The server >> ONLY has an FTP connection, no SMB/CIFS. >>

Re: Question About PreOpenStack

2011-09-09 Thread Peter M. Brigham, MD
The other way of handling this is to have a mainstack that is really just a splash stack + library, it doesn't even have to show itself on startup (put "on preopenstack; hide this stack; end preopenstack" into the script of card 1 of the mainstack). Then put whatever you want for preopenstack be

Re: Question About PreOpenStack

2011-09-09 Thread Jonathan Lynch
I always put empty preopenstack, openstack, preopencard, and opencard handlers for my substacks. I also put in a closestack handler in the substack that tells the substack to close. This seems like it should just be a standard thing to do when making substacks. This will prevent any stray messages

Re: Question About PreOpenStack

2011-09-09 Thread J. Landman Gay
On 9/9/11 2:09 PM, Scott Rossi wrote: Recently, Gregory Lypny wrote: I have a main stack with a PreOpenStack handler and sub-stacks with PreOpenStack handlers. Why is it that when I click a Go button in the main stack that opens a sub-stack, the PreOpenStack handler in the main stack is execut

Re: Checksum via FTP???

2011-09-09 Thread J. Landman Gay
On 9/9/11 11:27 AM, Roger Eller wrote: The following function was posted on the old Use-Revolution list. I was wondering how to do the same after downloading a file via FTP. The server ONLY has an FTP connection, no SMB/CIFS. -- by Chipp Walters (4/27/2007 on Rev List) function getChecksum pFi

Re: How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread zryip theSlug
On Fri, Sep 9, 2011 at 11:03 PM, Josh Mellicker wrote: > Just wondering what best practices are when wanting to reference an image (or > button or other non-text field control) in a Data Grid form. > > > img "blueCircle" of grp x of grp "DataGrid" > > works, but x does not seem to correlate with

Re: Question About PreOpenStack

2011-09-09 Thread Mark Wieder
Scott- Friday, September 9, 2011, 12:09:57 PM, you wrote: > 3) move your preOpenStack handlers from the script of your mainstack into > the card script of the first card of your mainstack Indeed, the documentation states that the preOpenStack message is "sent to the destination card when you ope

How do I reference an image in a group in a Data Grid form from outside the grid?

2011-09-09 Thread Josh Mellicker
Just wondering what best practices are when wanting to reference an image (or button or other non-text field control) in a Data Grid form. img "blueCircle" of grp x of grp "DataGrid" works, but x does not seem to correlate with either the index or line number. So, does anyone know: 1. what x

Re: Question About PreOpenStack

2011-09-09 Thread Scott Rossi
Recently, Gregory Lypny wrote: > I have a main stack with a PreOpenStack handler and sub-stacks with > PreOpenStack handlers. Why is it that when I click a Go button in the main > stack that opens a sub-stack, the PreOpenStack handler in the main stack is > executed? Messages from substacks auto

Re: Question About PreOpenStack

2011-09-09 Thread Mark Schonewille
Hi Gregory, That's called the message hierarchy. This is discussed in the user manual. Messages go from front scripts to button/field to background, card, substack, mainstack, stack in use to back scripts. -- Kind regards, Mark Schonewille Economy-x-Talk Http://economy-x-talk.com Share the cl

Re: Question About PreOpenStack

2011-09-09 Thread dunbarx
Hi. I don't see this. I made a main stack and a substack. When I open the subStack from the mainStack, I only get an answer from the preOpenstack handler in the subStack stack script. I only get an answer from the PreOpenstack handler in the mainStack stack script. You are not passing "Pre

Re: audio guide app in livecode?

2011-09-09 Thread Peter Alcibiades
There is a company in the UK who supplied audioguides for museums based on an iPod, and they did this with a special case. The problem you have is that maybe you can find an mp3 player with a speaker (you need to consider disability, and you can't do headphones for hygiene reasons), but then you

Re: Curious Glitch in My FTP App

2011-09-09 Thread Pierre Sahores
Le 9 sept. 2011 à 19:56, Gregory Lypny a écrit : > Hello Pierre, > > Thank you for responding. Yes, it may be. The account files are > comma-delimited text and are sitting on my remote Mac, which acts as the > server. What you do suggest? Clean the line endings? How are your "account file

Question About PreOpenStack

2011-09-09 Thread Gregory Lypny
I have a main stack with a PreOpenStack handler and sub-stacks with PreOpenStack handlers. Why is it that when I click a Go button in the main stack that opens a sub-stack, the PreOpenStack handler in the main stack is executed? Gregory ___ use-live

Re: Curious Glitch in My FTP App

2011-09-09 Thread Scott Rossi
Recently, Gregory Lypny wrote: > I¹ve also been looking for a LiveCode function that tells me the OS os the > user but cannot find one. I know it exists! Do you mean platform() ? Or systemVersion() ? Regards, Scott Rossi Creative Director Tactile Media, UX Design __

Re: Curious Glitch in My FTP App

2011-09-09 Thread Gregory Lypny
Hello Pierre, Thank you for responding. Yes, it may be. The account files are comma-delimited text and are sitting on my remote Mac, which acts as the server. What you do suggest? Clean the line endings? I’ve also been looking for a LiveCode function that tells me the OS os the user but ca

Re: audio guide app in livecode?

2011-09-09 Thread Jim Lambert
On Sep 9, 2011, at 10:00 AM, use-livecode-requ...@lists.runrev.com wrote: > How do you lock an iPod Touch onto a single app? I could really use that! I can't recall how they did it. It was awhile ago. I'm thinking they may have put a little case around it to prevent the home button being presse

Re: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread Colin Holgate
One nice thing is that I can use the same external drive to use Lion on more than one machine, though it does seem to still think it's on the machine it was installed from. It insists on telling me my old MackBook Pro is a MacBook Air. I don't mind, it continues to work ok after that. On Sep 9

Re: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread stephen barncard
Then apple flip-flopped this one too. I just gave up trying years ago. Not booting from external drives probably made it hard for their own service techs (Mac Store Geniuses) to get things done. THis is good to know. I'm glad I"m wrong. On 9 September 2011 09:36, John Dixon wrote: > > Stephen,

RE: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread John Dixon
Stephen, I have Lion on an external drive and it boots, not had a problem... I've got my startup disk that boots 10.6.8 on 'startup', but if I wish to use lion I just hold down the option key when starting up my mac... To install lion, I loaded 10.6.8 onto an external drive and installed lion o

Re: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread stephen barncard
Apple's got you there. Mac OS's no longer boot from external drives, at least the last time I tried. You gotta have a machine with slots and extra drive bays to do that. bummer. Also Lion is still download only - no disc. Also -- my opinion - partitioning sucks and is possibly dangerous. Drives a

Checksum via FTP???

2011-09-09 Thread Roger Eller
The following function was posted on the old Use-Revolution list. I was wondering how to do the same after downloading a file via FTP. The server ONLY has an FTP connection, no SMB/CIFS. -- by Chipp Walters (4/27/2007 on Rev List) function getChecksum pFilePath if there is not a file pFilePa

Re: Curious Glitch in My FTP App

2011-09-09 Thread Pierre Sahores
Could it not be related to urlencode / charset handling troubles ? Le 9 sept. 2011 à 17:35, Gregory Lypny a écrit : > Hello everyone, > > I created a desktop utility that allows my students to access files on my Mac > via FTP. I compiled it for Mac, Windows, and Linux. The app opens with a >

Curious Glitch in My FTP App

2011-09-09 Thread Gregory Lypny
Hello everyone, I created a desktop utility that allows my students to access files on my Mac via FTP. I compiled it for Mac, Windows, and Linux. The app opens with a user ID and password field so that students can create accounts. Most students have been able to create accounts without a pr

Re: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread Keith Clarke
Interesting approach Dixie. I was thinking about maybe creating a Lion partition on my system drive and then creating a Parallels Lion VM but using an external drive may be simpler and indeed, introduce a longer stick! Best, Keith.. On 9 Sep 2011, at 10:05, John Dixon wrote: > Keith... > I c

RE: Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread John Dixon
Keith... I can't speak for others... I'm running Lion on an external drive at the moment on a macBookPro... using a very long stick ..:-) Dixie > Folks, > What's the current view on whether to upgrade to Lion for LC development > machines yet? > > Have any of you expert developers upgraded you

Is it safe to upgrade development machines to Lion yet?

2011-09-09 Thread Keith Clarke
Folks, What's the current view on whether to upgrade to Lion for LC development machines yet? Have any of you expert developers upgraded your primary Macs to Lion and got inside the cage - or is it still being treated as a 'foreign beta' OS to be isolated and poked at, cautiously, through the b

Re: How does compiling work?

2011-09-09 Thread Julian Ohrt
Wow! Thank you very much, Richard! Sounds a little like PHP which -on loading- creates opcode which is executed on the fly; but also allows interpreted code (using the eval() function). Too bad that there is no official "how it works" explanation as Stephen pointed out. Thanks again! Julia