Re: go stack URL question

2013-10-04 Thread jbv
Thanks Mark.

I don't know why but I thought that may be there was some built-in
encrypt option in the go stack URL command...

jbv

 Hi JBV,

 Sure, you can encrypt the stack and decrypt it when your standalone
 downloads the stack. You might want to avoid decrypting and opening very
 large remote files.




___
use-livecode mailing list
use-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: FieldFormatter: Working group

2013-10-04 Thread FlexibleLearning.com
In many ways LiveCode is more a language than a program. It provides the
tools to build software, and sometimes you have to build your own tools for
it. For example 'shell' is supported, but *you* have to know about 'shell'
to apply it. So LiveCode stradles two worlds: raw coding and purpose-built
applications like Excel in that you get the raw power with actually a good
range of shortcuts, but it cannot do everything for everyone 'out of the
box'... You need to apply what is available, and sometimes what is available
is basic widgets from which you construct bigger widgets.

The fieldFormatter is a case in point. It applies what is available in the
engine to provide shortcuts that, given a bit of time and knowledge, you
might do for yourself. Dynamic field formatting based on text input is not,
however, a 'simple task' as it requires separating what is entered from what
is displayed and this is not native functionality. If it were, LiveCode
would be a very different beast... you would be writing all the code to
generate, display and manage your own field objects. I for one am happy not
to go there!

Hugh Senior
FLCo




 From: tbodine lvhd...@gmail.com

 That sounds outstanding!
 -- Tom Bodine


 From: Vaughn Clement vclem...@gmail.com

 Hi Hugh

 This is really a breath of fresh air in that LC is starting to grow up. I
 have been saying for awhile that LiveCode will evolve or go away. It may
 take developers to move the stake forward in the way other software
 languages have come of age. I believe that when the developers
 start adding
 externals and plugins to LC it will start to be a better product. I
 understand that there are currently some externals out there, but there is
 a ton of new capability that can still be added. For example, I
 spent weeks
 learning how to do programming tasks that should be built into LiveCode in
 the properties  dialog. It was all the things your offering in your
 properties in this email. This should not require hours of coding to get
 such a simple task done. Plus you also covered things that I did not take
 time to add like the comma for thousands. That should also be a properties
 item in LiveCode just like the numeric settings.


 Thank you

 Vaughn Clement


 On Thu, Oct 3, 2013 at 5:07 AM, FlexibleLearning.com 
 ad...@flexiblelearning.com wrote:

  A new field formatting palette and frontscript library is nearing
  completion. The properties palette, syntax and integration are
 all in place
  and working.
 
  - What is its purpose?
  In short it separates data from display. Field contents can,
 for example, be
  displayed as currency (or any other arbitrary unit of measure),
 percentage,
  dateTime, time duration or 'privatised', with numeric fields
 additionally
  owning their own numberFormat, negative color, and thousands
 separator. The
  underlying 'text' (or data) is unchanged; as soon as the field
 loses focus
  or as soon as we programmatically change any of the properties,
 the field
  contents change to reflect the new property settings.
 
  - How do we use it?
  Either using the properties palette or by script, we can
  'set the percentage of fld n to true' : so 0.2 can be displayed as 20%
  'set the numeric of fld n to true/false' : so only numbers can
 be entered
  'set the displayChars of fld n to $ : so 10 can be displayed as $10
  'set the numericFormat of fld n to 0.00' : so 10 can be
 displayed as $10.00
  'set the showThousands of fld n to true' : so 1250 can be displayed as
  $1,250.00
  'set the privateChars of fld n to ..' : so pa55w0rd can
 be displayed
  as privatised text
  'set the defaultText of fld n to Enter a date here...' : so
 empty fields
  can display gray text help
  'set the dhms of fld n to true' : so 70.38 can be displayed as 01 : 10.4
  'set the isUSformat of fld n to false' : so 3/6/13 can be displayed as 3
  June 2013
  'set the dateTimeFormat of fld n to -MMM-dd' : so 3/6/13 can be
  displayed as 2013-Jun-03
  [.../...] etc
  then
  'put the rawtext of fld n into tQty' : so we can get the data
 rather than
  the field contents
  'set the rawtext of fld total to tQty * tCost' : so we can
 manipulate the
  data and retain formatted displays.
  [.../...] etc.
 
  It should all 'just happen' intuitively.
 
  It works with both the LC and MC IDE development environments,
 so clicking
  twice on a field will show the new palette along with the existing IDE
  palettes.
 
  - What is needed?
  A small group of (preferably seasoned) developers to
  [1] review the palette UI
  [2] check integration and functionality
  [3] critique and make suggestions, especially about the
 property names and
  further functionality
  [4] discuss, propose and share with a cc to others involved
  [5] thrash the cr*p out of it :)
 
  If interested, please let me know off-list. I agree with
 Richard G and am
  hoping this concept will become mainstream, but it has to 'go with the
  flow'
  and be a seamless extension to the existing 'feel' of 

Re: SocketTimeOut message

2013-10-04 Thread Dave Cragg

On 4 Oct 2013, at 00:16, J. Landman Gay jac...@hyperactivesw.com wrote:

 But from Phil's answer, it sounds like the timeout message is just 
 informational, and libURL keeps trying to send until it goes through. So 
 maybe you don't need a resend?

That's not my understanding. I think the transaction will stop if there is a 
timeout. (I could be wrong, but libUrl assumes this to be the case and cleans 
things up when a socketTimeout message is received) I think the timeout is 
measured as the time between any message sent to the remote host and a 
subsequent response. So a large download that takes longer than the timeout 
interval won't cause a timeout as long as the initial response (i.e. first 
chunk of data) occurred within the timeout interval. A common situation that 
would cause a timeout would be if some time-consuming processing was done on 
the server (e.g. a large database query) before any response was sent.

However, I've seen some strange behavior  where socket messages don't always 
appear to be sent consistently. (By 'strange' I probably mean I was too stupid 
to understand.) 

Cheers
Dave




___
use-livecode mailing list
use-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: It is almost never safe to assume your code is perfect

2013-10-04 Thread Kay C Lan
Hi Geoff,

I'm not sure what the original context was, so I guess there was a need for
'the long seconds', but I just created two clock faces and ran one against
your original code, and the other with the 2 references to the long seconds
removed, i.e it just updates every second.

The outputs are identical.

So no less lines of code but about 50 chars less typing.


On Fri, Oct 4, 2013 at 6:36 AM, Geoff Canyon gcan...@gmail.com wrote:


 on setTime
put word 1 of the long time into T
put T  the long seconds into fld time
split T using :
set the startangle of grc second to 90 - (6 * T[3])
if T[3] mod 10 = 0 then set the startangle of grc minute to 90 - (6 *
 T[2]) - (T[3] div 10)
if T[3] mod 10 = 0 and  T[2] mod 2 = 0 then set the startangle of grc
 hour to 90 - (30 * T[1]) - (T[2] div 2)
send setTime to me in (1 - (the long seconds mod 1)) seconds
 end setTime

 Never be satisfied.

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


FieldFormatter: Sample preview

2013-10-04 Thread FlexibleLearning
For those who asked, a preview is available here:

www.flexiblelearning.com/fieldformatter

Best regards,

Hugh Senior
FLCo

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


Re: FieldFormatter: Sample preview

2013-10-04 Thread Roger Eller
VERY NICE!

~Roger


On Fri, Oct 4, 2013 at 9:47 AM, FlexibleLearning ad...@flexiblelearning.com
 wrote:

 For those who asked, a preview is available here:

 www.flexiblelearning.com/fieldformatter

 Best regards,

 Hugh Senior
 FLCo


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


Re: FieldFormatter: Sample preview

2013-10-04 Thread Vaughn Clement
Hi Hugh

Darn fine work! That will save a huge amount of time where it required
about 40 lines of code on my last project.

Thank you

Vaughn Clement

Apps by Vaughn Clement (Support)
*http://www.appsbyvaughnclement.com/tools/home-page/*
Skype: vaughn.clement
https://secure.join.me/appsbyvclement
FaceTime: vclem...@gmail.com
LogMeIn also avaialble
Call on ooVoo at address:  vaughnclement or 9282549062
Ph. 928-254-9062
Cloud Hosting Registration Web Site:
https://my.oditech.com/cart.php?a=addpid=41


On Fri, Oct 4, 2013 at 6:47 AM, FlexibleLearning ad...@flexiblelearning.com
 wrote:

 For those who asked, a preview is available here:

 www.flexiblelearning.com/fieldformatter

 Best regards,

 Hugh Senior
 FLCo

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

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


RE: FieldFormatter: Sample preview

2013-10-04 Thread Ralph DiMola
Ditto!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Roger Eller
Sent: Friday, October 04, 2013 10:15 AM
To: How to use LiveCode
Subject: Re: FieldFormatter: Sample preview

VERY NICE!

~Roger


On Fri, Oct 4, 2013 at 9:47 AM, FlexibleLearning ad...@flexiblelearning.com
 wrote:

 For those who asked, a preview is available here:

 www.flexiblelearning.com/fieldformatter

 Best regards,

 Hugh Senior
 FLCo


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


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


Re: It is almost never safe to assume your code is perfect

2013-10-04 Thread Geoff Canyon
Ha! I just noticed a bug in the above that causes the hour hand to be
updated 6x as often as it should be. The below (I think) updates the second
hand once per second, the minute hand 360 times per hour, and the hour hand
360 times per 12 hours.

The long time was to check if the correct time was being displayed, the
long seconds to see how the send..in was working. In the earliest
versions of the script the send..in was being done every 500 milliseconds
or so.The switch to send in (1 - (the long seconds mod 1)) seconds was a
very unexpected and exceedingly clever hack. The actual script in practice
would be:

on mouseUp
   setTime
end mouseUp

on setTime
   put word 1 of the long time into T
   split T using :
   set the startangle of grc second to 90 - (6 * T[3])
   if T[3] mod 10 = 0 then set the startangle of grc minute to 90 - (6 *
T[2]) - (T[3] div 10)
   if T[3] = 0 and  T[2] mod 2 = 0 then set the startangle of grc hour to
90 - (30 * T[1]) - (T[2] div 2)
   send setTime to me in (1 - (the long seconds mod 1)) seconds
end setTime




On Fri, Oct 4, 2013 at 5:51 AM, Kay C Lan lan.kc.macm...@gmail.com wrote:

 Hi Geoff,

 I'm not sure what the original context was, so I guess there was a need for
 'the long seconds', but I just created two clock faces and ran one against
 your original code, and the other with the 2 references to the long seconds
 removed, i.e it just updates every second.

 The outputs are identical.

 So no less lines of code but about 50 chars less typing.


 On Fri, Oct 4, 2013 at 6:36 AM, Geoff Canyon gcan...@gmail.com wrote:

 
  on setTime
 put word 1 of the long time into T
 put T  the long seconds into fld time
 split T using :
 set the startangle of grc second to 90 - (6 * T[3])
 if T[3] mod 10 = 0 then set the startangle of grc minute to 90 - (6
 *
  T[2]) - (T[3] div 10)
 if T[3] mod 10 = 0 and  T[2] mod 2 = 0 then set the startangle of grc
  hour to 90 - (30 * T[1]) - (T[2] div 2)
 send setTime to me in (1 - (the long seconds mod 1)) seconds
  end setTime
 
  Never be satisfied.
 
  gc
  ___
  use-livecode mailing list
  use-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


Strict compilation mode

2013-10-04 Thread Peter Haworth
I'm a big fan of strict compilation mode. I know others don't see the need
for it but I like how it protects me from myself by catching misspelled
variable names and forcing me to put quotes around literals.

Every now and again I download a utility stack that someone has provided
which was created with scm off. If I want to customize its scripts, I have
to switch scm off or define all the variables/quote all the literals. The
latter is a big pain (although I have a script that does it for me), and
the former risks forgetting to switch scm on again.

As far as I know, there's no other way round this (?) Seems like it would
be useful to have a stack property that switched scm on or off for all the
scripts in the stack with the default being the prefs setting.

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


Re: go stack URL question

2013-10-04 Thread Mark Schonewille

Hi JBV,

If you have the commercial version of LC, you can protect your stack 
with a password. In some cases, that might be sufficient and avoid the 
need for additional encryption.


--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com


Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/


On 10/4/2013 08:58, j...@souslelogo.com wrote:

Thanks Mark.

I don't know why but I thought that may be there was some built-in
encrypt option in the go stack URL command...

jbv



___
use-livecode mailing list
use-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: Strict compilation mode

2013-10-04 Thread Ralph DiMola
I totally agree.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Peter Haworth
Sent: Friday, October 04, 2013 12:29 PM
To: How to use LiveCode
Subject: Strict compilation mode

I'm a big fan of strict compilation mode. I know others don't see the need
for it but I like how it protects me from myself by catching misspelled
variable names and forcing me to put quotes around literals.

Every now and again I download a utility stack that someone has provided
which was created with scm off. If I want to customize its scripts, I have
to switch scm off or define all the variables/quote all the literals. The
latter is a big pain (although I have a script that does it for me), and the
former risks forgetting to switch scm on again.

As far as I know, there's no other way round this (?) Seems like it would be
useful to have a stack property that switched scm on or off for all the
scripts in the stack with the default being the prefs setting.

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


___
use-livecode mailing list
use-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: iOS 7simulator hang/crash

2013-10-04 Thread John Dixon
Ralph...

I am seeing exactly the same problem as you when trying to include files
through the copy files pane..

Dixie



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/iOS-7simulator-hang-crash-tp4670590p4670631.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


RE: iOS 7simulator hang/crash

2013-10-04 Thread Ralph DiMola
Thanks for confirmation.

I have updated the bug report
http://quality.runrev.com/show_bug.cgi?id=11252 with some other
observations. Check it out.


Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of John Dixon
Sent: Friday, October 04, 2013 5:21 PM
To: use-revolut...@lists.runrev.com
Subject: Re: iOS 7simulator hang/crash

Ralph...

I am seeing exactly the same problem as you when trying to include files
through the copy files pane..

Dixie



--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/iOS-7simulator-hang-crash-tp4
670590p4670631.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


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