Re: URLencode bug?

2011-03-20 Thread Chipp Walters
The project, called revShare, was commissioned by David Johnson, and as
such, is his property. You may try and contact him directly to find out
more. At the time it was created, things worked by updating changes via FTP
to a server and reading them via HTTP. The idea was it should be able to
accomodate synchronous and asynchronous communications. So, if someone made
a change to a stack they were sharing with you, yours would update as soon
as you came online, no matter if they were online or not. Sort of a cloud
based stack sharing system.

On Fri, Mar 18, 2011 at 11:06 AM, Bob Sneidar b...@twft.com wrote:

 Hi Chipp. Any chance that stack still works? That is a great idea.

 Bob


 On Mar 18, 2011, at 1:20 AM, Chipp Walters wrote:

  Yep, years ago I wrote a stack sharing library for Rev which passed back
 and forth via a server any changes made to stacks, thus allowing multiple
 people in remote locations to work on the same stack at the same time, and
 used the base64encode trick you mention to encode all meta data for all
 controls and their properties. Worked well.
 
  Chipp Walters
  CEO, Shafer Walters Group, Inc


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




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


Re: URLencode bug?

2011-03-18 Thread Chipp Walters
For my app, the cr's screw it up. Thanks anyway.

On Thu, Mar 17, 2011 at 11:50 PM, stephen barncard 
stephenrevoluti...@barncard.com wrote:

 I think URL Encode seems to ignore linefeeds and/or returns in its midst,
 so
 an occasional line break or cr  should break up the line limit problems.

 On 17 March 2011 21:44, Mike Bonner bonnm...@gmail.com wrote:

  I ran into this earlier and tried to ask about it, but wasn't very clear.
   When you urlEncode the field it turns it into one huge unbroken line,
 and
  certain lengths of unbroken lines cause fields some problems it seems.
 The
  line length you get from the urlEncode is within the accepted limits
  according to docs, but something seems broken in fields. To see this in
  action, try this stack.. Click add data several times till the line
 length
  gets to 14700 and poof.  Only the overflow shows.  I didn't bother to
 find
  the exact breakover point, but there it is. Also, behavior varies with
 line
  wrap on and off. With line wrap off, things poof when you get to to 8400
  line length, but the overflow never shows.  So my feeling is its a field
  problem, not an encode problem.
 
  go URL http://guidezone.info/FieldBug.livecode;
 
 
 
  On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters ch...@chipp.com wrote:
 
   I am trying to URLencode some data and for some reason it won't encode.
  
   Can anyone else get this to encode? It's a simple text field with no
  funny
   chars.
  
   Here's a test: (put in msg box and hit return)
   go URL http://www.widgetgadget.com/stuff/URLencodeBug.livecode;
  
   For some reason it CAN URLencode the first 3111 chars, but barfs on any
   past
   there. Is there a char limit to what URLencode works on?
  
   TIA,
   C
  
   --
   Chipp Walters
   CEO, Shafer Walters Group, Inc.
   ___
   use-livecode mailing list
   use-livecode@lists.runrev.com
   Please visit this url to subscribe, unsubscribe and manage your
   subscription preferences:
   http://lists.runrev.com/mailman/listinfo/use-livecode
  
  ___
  use-livecode mailing list
  use-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




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


Re: URLencode bug?

2011-03-18 Thread stephen barncard
Ah, but you can use them for storage Great way to preserve small blocks of
data.
FUNCTION libFile_HXEncode pData
 put base64encode(pData) into tData
 replace return with linefeed in tData
 return tData
END libFile_HXEncode

FUNCTION libFile_HXDecode pData
 replace linefeed with return with tData
 put base64decode(pData) into tData
 return tData
END libFile_HXDecode

 Base64Encode after using URLEncode can be an almost bulletproof way to
store data in situ.
one can create medium sized, neat readable blocks of data in your script
that look like formatted object code blocks.
The data could be exact htmlText that you want with placeholders encoded in.
 Or perfect MySQL calls with the 'right'  punctuation.

 /*

 BASE64Encoded:

 SELECT

 dm.Device_Number,

 dm.id

 FROM ( DEVICES_Main_R AS dm

 INNER JOIN Devices_Types AS devABBRV ON dm.Device_Abbrev=devABBRV.id )

 WHERE devABBRV.Device_Abbrev LIKE 'deviceAbbrev' ;

*/


get \


 U0VMRUNUCiAgZG0uRGV2aWNlX051bWJlciwKICBkbS5pZAogIEZST00gKCAgREVWSUNFU19N
\


 YWluX1IgQVMgZG0KICAgICAgSU5ORVIgSk9JTiAgRGV2aWNlc19UeXBlcyBBUyBkZXZBQkJS
\


 ViBPTiBkbS5EZXZpY2VfQWJicmV2PWRldkFCQlJWLmlkICkKV0hFUkUgZGV2QUJCUlYuRGV2
\

  aWNlX0FiYnJldiBMSUtFICc8ZGV2aWNlQWJicmV2PicgOw==

put base64decode(it) into tSQL



Nicer for some things over custom properties because you can keep all the
data and code in the same place.   Not easy to hand code this but easy to
make a code builder in rev. I will include some comment english text
explaining what it is.

On 17 March 2011 23:19, Chipp Walters ch...@chipp.com wrote:

 For my app, the cr's screw it up. Thanks anyway.


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: URLencode bug?

2011-03-18 Thread Bob Sneidar
Hi Chipp. Any chance that stack still works? That is a great idea. 

Bob


On Mar 18, 2011, at 1:20 AM, Chipp Walters wrote:

 Yep, years ago I wrote a stack sharing library for Rev which passed back and 
 forth via a server any changes made to stacks, thus allowing multiple people 
 in remote locations to work on the same stack at the same time, and used the 
 base64encode trick you mention to encode all meta data for all controls and 
 their properties. Worked well.
 
 Chipp Walters
 CEO, Shafer Walters Group, Inc


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


Re: URLencode bug?

2011-03-17 Thread Mike Bonner
I ran into this earlier and tried to ask about it, but wasn't very clear.
 When you urlEncode the field it turns it into one huge unbroken line, and
certain lengths of unbroken lines cause fields some problems it seems. The
line length you get from the urlEncode is within the accepted limits
according to docs, but something seems broken in fields. To see this in
action, try this stack.. Click add data several times till the line length
gets to 14700 and poof.  Only the overflow shows.  I didn't bother to find
the exact breakover point, but there it is. Also, behavior varies with line
wrap on and off. With line wrap off, things poof when you get to to 8400
line length, but the overflow never shows.  So my feeling is its a field
problem, not an encode problem.

go URL http://guidezone.info/FieldBug.livecode;



On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters ch...@chipp.com wrote:

 I am trying to URLencode some data and for some reason it won't encode.

 Can anyone else get this to encode? It's a simple text field with no funny
 chars.

 Here's a test: (put in msg box and hit return)
 go URL http://www.widgetgadget.com/stuff/URLencodeBug.livecode;

 For some reason it CAN URLencode the first 3111 chars, but barfs on any
 past
 there. Is there a char limit to what URLencode works on?

 TIA,
 C

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

___
use-livecode mailing list
use-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: URLencode bug?

2011-03-17 Thread Mike Bonner
Oh, and if you just keep adding data up to the max limit on like length,
every breakover point the field resets and shows only the new stuff after
the break. (or if wrap is off, it just never shows anything again)  I forget
where the limit is on wrapped lines, things might be behaving correctly, but
the complete disappearance when wrap is off is surely not correct.

On Thu, Mar 17, 2011 at 10:44 PM, Mike Bonner bonnm...@gmail.com wrote:

 I ran into this earlier and tried to ask about it, but wasn't very clear.
  When you urlEncode the field it turns it into one huge unbroken line, and
 certain lengths of unbroken lines cause fields some problems it seems. The
 line length you get from the urlEncode is within the accepted limits
 according to docs, but something seems broken in fields. To see this in
 action, try this stack.. Click add data several times till the line length
 gets to 14700 and poof.  Only the overflow shows.  I didn't bother to find
 the exact breakover point, but there it is. Also, behavior varies with line
 wrap on and off. With line wrap off, things poof when you get to to 8400
 line length, but the overflow never shows.  So my feeling is its a field
 problem, not an encode problem.

 go URL http://guidezone.info/FieldBug.livecode;



 On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters ch...@chipp.com wrote:

 I am trying to URLencode some data and for some reason it won't encode.

 Can anyone else get this to encode? It's a simple text field with no funny
 chars.

 Here's a test: (put in msg box and hit return)
 go URL http://www.widgetgadget.com/stuff/URLencodeBug.livecode;

 For some reason it CAN URLencode the first 3111 chars, but barfs on any
 past
 there. Is there a char limit to what URLencode works on?

 TIA,
 C

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



___
use-livecode mailing list
use-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: URLencode bug?

2011-03-17 Thread stephen barncard
I think URL Encode seems to ignore linefeeds and/or returns in its midst, so
an occasional line break or cr  should break up the line limit problems.

On 17 March 2011 21:44, Mike Bonner bonnm...@gmail.com wrote:

 I ran into this earlier and tried to ask about it, but wasn't very clear.
  When you urlEncode the field it turns it into one huge unbroken line, and
 certain lengths of unbroken lines cause fields some problems it seems. The
 line length you get from the urlEncode is within the accepted limits
 according to docs, but something seems broken in fields. To see this in
 action, try this stack.. Click add data several times till the line length
 gets to 14700 and poof.  Only the overflow shows.  I didn't bother to find
 the exact breakover point, but there it is. Also, behavior varies with line
 wrap on and off. With line wrap off, things poof when you get to to 8400
 line length, but the overflow never shows.  So my feeling is its a field
 problem, not an encode problem.

 go URL http://guidezone.info/FieldBug.livecode;



 On Thu, Mar 17, 2011 at 9:50 PM, Chipp Walters ch...@chipp.com wrote:

  I am trying to URLencode some data and for some reason it won't encode.
 
  Can anyone else get this to encode? It's a simple text field with no
 funny
  chars.
 
  Here's a test: (put in msg box and hit return)
  go URL http://www.widgetgadget.com/stuff/URLencodeBug.livecode;
 
  For some reason it CAN URLencode the first 3111 chars, but barfs on any
  past
  there. Is there a char limit to what URLencode works on?
 
  TIA,
  C
 
  --
  Chipp Walters
  CEO, Shafer Walters Group, Inc.
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-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