Re: Why killing Media was killing an investment in the future

2012-07-21 Thread Pierre Sahores

Le 19 juil. 2012 à 20:23, Bob Sneidar a écrit :

 I think the real key to making LC insanely profitable for RR is for us, the 
 developers, to produce really good commercial apps on a regular basis using 
 LC, and proudly display on our splash screens: Made With Livecode! 

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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: Why killing Media was killing an investment in the future

2012-07-21 Thread Pierre Sahores
Probably a true worldwide diagnostic, especially applicable in France too...

Le 19 juil. 2012 à 22:07, Bob Sneidar a écrit :

 It's my personal opinion that we ought to be making a much bigger effort to 
 improve education across the board, and no, more money does not accomplish 
 that goal. California has one of the highest per capita budgets for 
 education, and yet one of the worst records. If spending more money fixed 
 things, California would be a glowing model of socialist success! 
 
 If we teach our children how to analyze problems and formulate solutions, we 
 will be in a much better place to teach them all things. Our kids need not 
 only job skills, but a sound work ethic, and our policies are what teach them 
 exactly the opposite. 
 
 I think the current system is broken in California, and in most states, and 
 standing in the way are public unions who are in bed with the politicians, so 
 we cannot get rid of the incompetent administrators and policy makers. Ever. 
 Until we get rid of the public unions. Nothing is going to change until the 
 incompetent are replaced with the competent. 

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.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: Why killing Media was killing an investment in the future

2012-07-21 Thread Rod McCall
It's not just that many people who develop for mobile have already
settled on their tools, e.g. Java, Objective-C or in some cases the
Lua based platforms. Which means for pure ease of use they prefer to
stay where they are even if overall they may save time/money by
switching to RR. While you can use the code once argument with LC that
is not always enough as some are reluctant to use a tool they have not
heard much about. This is also in part related to the lack of books
problem highlighted elsewhere.

There are also many other technical arguments which may or may not be
disputed such as High level languages drain the battery more quickly
- one which I heard recently.

We chose LC because of the nature of our team which is a mix of CS and
non-CS people and the ability to rapidly prototype GUI's on all
platforms. If you have a team with a large mix of people then using a
higher-level almost self documenting programming language has a number
of advantages. However, these advantages may not apply to those who
have grown up on Java or C++ and do not really want to learn anything
else.

Cheers,

rod



On 21 July 2012 12:01, Pierre Sahores s...@sahores-conseil.com wrote:
 Probably a true worldwide diagnostic, especially applicable in France too...

 Le 19 juil. 2012 à 22:07, Bob Sneidar a écrit :

 It's my personal opinion that we ought to be making a much bigger effort to 
 improve education across the board, and no, more money does not accomplish 
 that goal. California has one of the highest per capita budgets for 
 education, and yet one of the worst records. If spending more money fixed 
 things, California would be a glowing model of socialist success!

 If we teach our children how to analyze problems and formulate solutions, we 
 will be in a much better place to teach them all things. Our kids need not 
 only job skills, but a sound work ethic, and our policies are what teach 
 them exactly the opposite.

 I think the current system is broken in California, and in most states, and 
 standing in the way are public unions who are in bed with the politicians, 
 so we cannot get rid of the incompetent administrators and policy makers. 
 Ever. Until we get rid of the public unions. Nothing is going to change 
 until the incompetent are replaced with the competent.

 --
 Pierre Sahores
 mobile : 06 03 95 77 70
 www.sahores-conseil.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



-- 
Dr Rod McCall
Researcher in in-car, mixed reality technology and gaming
Interdisciplinary Centre for Security, Reliability and Trust
University of Luxembourg
Blog: www.rodmc.com twitter:rodlux
Publications and Information available on my blog

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


Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Chipp Walters
Hey all,

As you know, Ken and I have been working on some interesting libs for
managing resizing of stacks. I'm particularly focussed on RevMobile and
have created a toolset which allows developers to easily create resolution
independent interfaces-- which smartly resize to take advantage of any
mobile device, Android or iOS (Retina included).

Here's a preview. You may see some small resizing errors in the preview--
they've been fixed. I hope to launch this sooner than later for you all to
use. Contact me offlist if you need it sooner.

http://youtu.be/vY6r46O0cVA

Be sure to holler if you see anything which doesn't seem correct. :-)

-- 
Chipp Walters
CEO, Altuit, 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: just where does livecode go when the ide takes a minute or two off?

2012-07-21 Thread Dr. Hawkins
On Friday, July 20, 2012, J. Landman Gay wrote


 Was the dictionary open? Maybe that old user-notes bug came back?

It is uncommon for me *not* to have the dictionary open . . .




-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109
___
use-livecode mailing list
use-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: The future of LiveCode

2012-07-21 Thread Peter M. Brigham
I saw HyperTalk -- The Book in a bookstore [remember bookstores?] when I was 
saving up to get my first mac and bought it right away. I read it over one 
summer before I even had a computer, and when I finally got the machine I was 
off and running. Hypercard became my major tool from the get-go. I ended up 
turning the Hypercard FAQ into a searchable stack, which had some circulation 
for a while in the HC community. That exercise started me learning text 
parsing, as I had it set up to automagically take Peter Fleck's latest FAQ 
update and import it and have it sorted into cards with the proper formatting. 
I'd have the updated version of the stack ready within 15 minutes of his new 
release. Ah, the old days….

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Jul 20, 2012, at 8:29 PM, Tim Selander wrote:

 Yes, a fantastic book that really unlocked HC for me. It is the best computer 
 book I have ever read!
 
 Tim Selander
 Tokyo, Japan
 
 On 7/21/12 1:28 AM, Jim Hurley wrote:
 Professor Goldberg,
 
 A bit daunting because of its size, but I learned HyperTalk from the truly 
 wonderful book:  HyperTalk The Book. By Winkler and Kamins, and later, our 
 own, Jean DeVoto, who did the original RunRev dictionary.
 
 I am a strong believer in learning from examples--after the basic theory.
 
 Jim Hurley
 Emeritus Professor of Physics, Univ. of California
 
 
 ___
 use-livecode mailing list
 use-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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Magicgate Software - Skip Kimpel
Hey this looks awesome!  This would certainly save a lot of time!


On Sat, Jul 21, 2012 at 7:03 AM, Chipp Walters ch...@chipp.com wrote:
 Hey all,

 As you know, Ken and I have been working on some interesting libs for
 managing resizing of stacks. I'm particularly focussed on RevMobile and
 have created a toolset which allows developers to easily create resolution
 independent interfaces-- which smartly resize to take advantage of any
 mobile device, Android or iOS (Retina included).

 Here's a preview. You may see some small resizing errors in the preview--
 they've been fixed. I hope to launch this sooner than later for you all to
 use. Contact me offlist if you need it sooner.

 http://youtu.be/vY6r46O0cVA

 Be sure to holler if you see anything which doesn't seem correct. :-)

 --
 Chipp Walters
 CEO, Altuit, 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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Magicgate Software - Skip Kimpel
Is that Interface Builder a new lib as well or is that available someplace?

SKIP

On Sat, Jul 21, 2012 at 10:14 AM, Magicgate Software - Skip Kimpel
s...@magicgate.com wrote:
 Hey this looks awesome!  This would certainly save a lot of time!


 On Sat, Jul 21, 2012 at 7:03 AM, Chipp Walters ch...@chipp.com wrote:
 Hey all,

 As you know, Ken and I have been working on some interesting libs for
 managing resizing of stacks. I'm particularly focussed on RevMobile and
 have created a toolset which allows developers to easily create resolution
 independent interfaces-- which smartly resize to take advantage of any
 mobile device, Android or iOS (Retina included).

 Here's a preview. You may see some small resizing errors in the preview--
 they've been fixed. I hope to launch this sooner than later for you all to
 use. Contact me offlist if you need it sooner.

 http://youtu.be/vY6r46O0cVA

 Be sure to holler if you see anything which doesn't seem correct. :-)

 --
 Chipp Walters
 CEO, Altuit, 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: Why killing Media was killing an investment in the future

2012-07-21 Thread Andrew Kluthe
Oh, bob slylabs is posting again? What a pity.



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Why-killing-Media-was-killing-an-investment-in-the-future-tp4652364p4652561.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: RevMobile: Native controls

2012-07-21 Thread Roger Eller
42 minutes of HD instruction; time well spent!  I can't wait to get the
stsResizeLib.

~Roger


On Sat, Jul 21, 2012 at 7:56 AM, Chipp Walters wrote:

 Check out my latest resizing library (using part of Ken's stsResizeLib).

 http://www.youtube.com/watch?v=vY6r46O0cVA

 --
 Chipp Walters
 CEO, Altuit, 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: The future of LiveCode

2012-07-21 Thread dunbarx
I have a handful of copies of HyperTalk...


I was worried I might run out of them.


But it is Goodman that is needed, not Winkler, et al.


The LC dictionary does a creditable job of presenting the language. It might be 
greatly improved, as some have mentioned, if more and larger examples were 
given.


But the Handbook introduces and details structure, and that is what is needed 
for a beginner. I think such a thing could be a tenth the size of Goodman, 
though framed in the same way, and with no attempt to be complete. Just an 
introductory gadget that would leave a newbie with the ability to make a decent 
address book, say, with ease and confidence. After that, perusing the 
dictionary and learning advanced techniques would lay well with their comfort 
zone.


Craig Newman



-Original Message-
From: Peter M. Brigham pmb...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sat, Jul 21, 2012 10:07 am
Subject: Re: The future of LiveCode


I saw HyperTalk -- The Book in a bookstore [remember bookstores?] when I was 
saving up to get my first mac and bought it right away. I read it over one 
summer before I even had a computer, and when I finally got the machine I was 
off and running. Hypercard became my major tool from the get-go. I ended up 
turning the Hypercard FAQ into a searchable stack, which had some circulation 
for a while in the HC community. That exercise started me learning text 
parsing, 
as I had it set up to automagically take Peter Fleck's latest FAQ update and 
import it and have it sorted into cards with the proper formatting. I'd have 
the 
updated version of the stack ready within 15 minutes of his new release. Ah, 
the 
old days….

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Jul 20, 2012, at 8:29 PM, Tim Selander wrote:

 Yes, a fantastic book that really unlocked HC for me. It is the best computer 
book I have ever read!
 
 Tim Selander
 Tokyo, Japan
 
 On 7/21/12 1:28 AM, Jim Hurley wrote:
 Professor Goldberg,
 
 A bit daunting because of its size, but I learned HyperTalk from the truly 
wonderful book:  HyperTalk The Book. By Winkler and Kamins, and later, our 
own, Jean DeVoto, who did the original RunRev dictionary.
 
 I am a strong believer in learning from examples--after the basic theory.
 
 Jim Hurley
 Emeritus Professor of Physics, Univ. of California
 
 
 ___
 use-livecode mailing list
 use-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

Stashing 3 or 4 characters into a text for db storage

2012-07-21 Thread Dr. Hawkins
As I'm adjusting my data to get ready for postgreSQL instead of
SQLite, I've pretty much settled on having two, rather than one, data
tables.

Dollar amounts  and other simple things will go into one table, while
text will go into another with a VACHAR type.

I have various calculated properties that are typically set as either
single letter strings or three character strings.

I have a custom property datTyp on fields to keep track of what they
use--D for Dollars (store as cents as intenger); I for integers; B for
boolean (store as 1/0);  T1 for single characters, has an obvious
ascii conversion.

But what about stashing 3 or four characters?  Obviously there's
enough bits in a four byte integer to do this, but is there a built in
function, by any chance, that would handle this?  (I'm having
flashbacks to the way we stashed ints  floats into fields in BASIC-80
5.0 . . . which would be perfect for this).

I guess there's
   put numtochar(tVal mod 65536 )  numtoChar(tval bitand 65279 / 256)
 numToChar(tval bitAnd 255) into tStr

and
  put 65536* charToNum(char 1 of tStr) + 256 * charToNum(char 2 of
tStr) + charToNum(char 3 of tStr) into tVal

but they seem so awkward for converting something into itself . . .

-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

___
use-livecode mailing list
use-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: just where does livecode go when the ide takes a minute or two off?

2012-07-21 Thread Dr. Hawkins
OK, now I just got it after saving, removing from memory, and
reloading . . . and it looks like the system, load spiked (red on mac)
for a bit too, before it went all green (user)

I can watch the spiked load pass from core to core, though.

If the debugger is to be trusted (and it shouldn't have launched!), it
is in a ck, which is a trivial function that puts its argument after
a field in a stack for me to watch (created because there is no
messagebox in the standalones, and to give me a longer list).

The next line is a breakpoint.

It hasn't just gone away; it's just plain hung.

Off to forcequit . . .

___
use-livecode mailing list
use-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: just where does livecode go when the ide takes a minute or two off?

2012-07-21 Thread J. Landman Gay

On 7/21/12 11:36 AM, Dr. Hawkins wrote:

OK, now I just got it after saving, removing from memory, and
reloading . . . and it looks like the system, load spiked (red on mac)
for a bit too, before it went all green (user)


Try keeping the dictionary closed for a while and see if it still 
happens. That may narrow down the cause one way or the other.


--
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


Works in a button but not in the message box

2012-07-21 Thread Thomas McGrath III
OK, Here's a question: 

Why does this line of code work in a button but throw an error when run in the 
message box?

set the rect of control Container to ((the left of this card + 5),(the bottom 
of group nav bar + 5),(the right of this card - 5),(the top of group 
toolbar - 5))

Message execution error:
Error description: value: error executing expression
Hint: set the rect of control Container to ((the left of this card + 5),(the 
bottom of group nav bar + 5),(the right of this card - 5),(the top of group 
toolbar - 5))

In a button the graphic Container will resize to fit between the navbar and 
toolbar with a 5 pixel margin.



What I was hoping to do is replace these lines of code with the above code.

  --   set the width of control Container to the width of this card -10
   --   put (the top of group toolbar - 5) - (the bottom of group nav bar 
+5) into tContainerHeight
   --   set the height of control Container to tContainerHeight
   --   set the topLeft of control Container to 5,(the bottom of group nav 
bar +5)

Thanks

-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgr...@comcast.net


___
use-livecode mailing list
use-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: Works in a button but not in the message box

2012-07-21 Thread Dr. Hawkins
On Sat, Jul 21, 2012 at 9:53 AM, Thomas McGrath III mcgra...@mac.com wrote:
 set the rect of control Container to ((the left of this card + 5),(the 
 bottom of group nav bar + 5),(the right of this card - 5),(the top of group 
 toolbar - 5))


try put the name of this card in the message box.  It isn't always
what you'd expect.

-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

___
use-livecode mailing list
use-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: Works in a button but not in the message box

2012-07-21 Thread J. Landman Gay

On 7/21/12 11:53 AM, Thomas McGrath III wrote:

OK, Here's a question:

Why does this line of code work in a button but throw an error when run in the 
message box?

set the rect of control Container to ((the left of this card + 5),(the bottom of group nav 
bar + 5),(the right of this card - 5),(the top of group toolbar - 5))


I see that occasionally. I think it has to do with the contortions the 
message box has to go through to evaluate expressions. Sometimes they 
don't work. Sometimes you can put the expression into a variable first 
and then execute the set using the 2-line message box.


--
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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Charles E Buchwald
Hi Chipp,
Looks great... can't wait to use it! I have at least 3 projects in the pipeline 
for which it will be invaluable.

May I suggest that it could be very nice to have a keyboard shortcut for 
refresh position, since it looks like you are clicking that button an awful 
lot.

It looks like my little ResTool plugin would be useful with this. ( 
http://buchwald.ca/lc/ResTool.livecode.zip ) I'd be interested to update it to 
work with your tools and libraries. Let me know what or how I could do that to 
be useful to these efforts.

Cheers,
- Charles

On 2012-07-21, at 6:03 AM, Chipp Walters wrote:

 Hey all,
 
 As you know, Ken and I have been working on some interesting libs for
 managing resizing of stacks. I'm particularly focussed on RevMobile and
 have created a toolset which allows developers to easily create resolution
 independent interfaces-- which smartly resize to take advantage of any
 mobile device, Android or iOS (Retina included).
 
 Here's a preview. You may see some small resizing errors in the preview--
 they've been fixed. I hope to launch this sooner than later for you all to
 use. Contact me offlist if you need it sooner.
 
 http://youtu.be/vY6r46O0cVA
 
 Be sure to holler if you see anything which doesn't seem correct. :-)
 
 -- 
 Chipp Walters
 CEO, Altuit, 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

--
Charles E. Buchwald
http://buchwald.ca
Vancouver / Mexico City / NYC
Member of the 02 Global Network for Sustainable Design • Connect on LinkedIn • 
Follow me on Twitter

___
use-livecode mailing list
use-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: Works in a button but not in the message box

2012-07-21 Thread dunbarx
I agree, the message box is often frazzled trying to keep track of everything.


If you substitute card CardName|cardNumber|cardID for this card, does the 
problem go away?


Craig Newman



-Original Message-
From: J. Landman Gay jac...@hyperactivesw.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sat, Jul 21, 2012 1:26 pm
Subject: Re: Works in a button but not in the message box


On 7/21/12 11:53 AM, Thomas McGrath III wrote:
 OK, Here's a question:

 Why does this line of code work in a button but throw an error when run in 
 the 
message box?

 set the rect of control Container to ((the left of this card + 5),(the 
bottom of group nav bar + 5),(the right of this card - 5),(the top of group 
toolbar - 5))

I see that occasionally. I think it has to do with the contortions the 
message box has to go through to evaluate expressions. Sometimes they 
don't work. Sometimes you can put the expression into a variable first 
and then execute the set using the 2-line message box.

-- 
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: Stashing 3 or 4 characters into a text for db storage

2012-07-21 Thread dunbarx
Not sure I understand what you want, but are you married to having a single 
numeric string encode your three/four char data?


It would be so much easier to store them as direct strings, with something 
unambiguous as delimiters, maybe even a comma?


I am sure I am not getting this...


Craig Newman



-Original Message-
From: Dr. Hawkins doch...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sat, Jul 21, 2012 12:24 pm
Subject: Stashing 3 or 4 characters into a text for db storage


As I'm adjusting my data to get ready for postgreSQL instead of
SQLite, I've pretty much settled on having two, rather than one, data
tables.

Dollar amounts  and other simple things will go into one table, while
text will go into another with a VACHAR type.

I have various calculated properties that are typically set as either
single letter strings or three character strings.

I have a custom property datTyp on fields to keep track of what they
use--D for Dollars (store as cents as intenger); I for integers; B for
boolean (store as 1/0);  T1 for single characters, has an obvious
ascii conversion.

But what about stashing 3 or four characters?  Obviously there's
enough bits in a four byte integer to do this, but is there a built in
function, by any chance, that would handle this?  (I'm having
flashbacks to the way we stashed ints  floats into fields in BASIC-80
5.0 . . . which would be perfect for this).

I guess there's
   put numtochar(tVal mod 65536 )  numtoChar(tval bitand 65279 / 256)
 numToChar(tval bitAnd 255) into tStr

and
  put 65536* charToNum(char 1 of tStr) + 256 * charToNum(char 2 of
tStr) + charToNum(char 3 of tStr) into tVal

but they seem so awkward for converting something into itself . . .

-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

___
use-livecode mailing list
use-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: RevMobile: Native controls

2012-07-21 Thread Jim Lambert
Chipp,

Nice tool. Very clear presentation.

Thanks,

Jim Lambert

___
use-livecode mailing list
use-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: breakdown of my book

2012-07-21 Thread Jim Lambert
Colin,

Thanks for the breakdown of your book.
Glad the wait is one month less!

Jim Lambert

___
use-livecode mailing list
use-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: Stashing 3 or 4 characters into a text for db storage

2012-07-21 Thread Dr. Hawkins
On Sat, Jul 21, 2012 at 10:59 AM,  dunb...@aol.com wrote:
 Not sure I understand what you want, but are you married to having a single 
 numeric
 string encode your three/four char data?

no, just trying to be efficient--an integer has four bytes, which
invites me to use it :_)

 It would be so much easier to store them as direct strings, with something 
 unambiguous as
delimiters, maybe even a comma?

The main data about the debtor (pretty much everything but the debts 
assets) is, for the most part, fields valued in dollars.  I'll have a
table with columns for a keyword, an override value for entered data,
and a default, all saved in an integer as cents rather than dollars
(currently I have a column for the value itself, but that is
redundant--if there's an overide, it's that, else it's the default).

There are also text fields ranging from 1 to about 200 characters;
I'll use a second table for that, with VARCHAR() to store them.

Sticking the booleans  integers in the numeric table is a no-brainer,
as is single-character string.

But is it more effecient to convert a four byte integer back and forth
to string in livecode, or to store it as one of these variably
lengthed strings?  I assume that the database is an order of magnitude
more efficient speedwise than a livecode conversion script, but it
also means more data in this less-optimized table and a modest
increase in storage space.

Database usage is the precious resource given bandwidth  storage,
while livecode execution on the desktop is cheap


-- 
The Hawkins Law Firm
Richard E. Hawkins, Esq.
(702) 508-8462
hawkinslawf...@gmail.com
3025 S. Maryland Parkway
Suite A
Las Vegas, NV  89109

___
use-livecode mailing list
use-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: RevMobile: Native controls

2012-07-21 Thread Monte Goulding
Hi chipp

Thanks for the video. This looks like a really helpful tool and I'm keen to get 
my hands on it.

Do you have any ideas for handling landscape and tablet views? For tablets I 
think in most cases you would want a different stack so using a main stack with 
most of the code and a handheld and tablet substack would work. For landscape 
we need to be able to reposition the same controls, hide some, show some etc. 
So it's more like a profile. In some cases just resizing will work. But it 
would be nice to have a when in landscape move here or hide/show or something 
option.

Also screen density on android is a headache because a high density phone could 
be higher res than a low density tablet. What are your thoughts on dealing with 
that?

Cheers

--
M E R Goulding
Software development services

mergExt - There's an external for that!

On 21/07/2012, at 9:56 PM, Chipp Walters ch...@chipp.com wrote:

 Monte,
 
 I agree with you. We all know by now that Apple discourages using faux
 Apple-like controls UNLESS they are pixel perfect and strictly follow the
 Apple UI guidelines. But, they readily accept different interfaces as long
 as they are well done. Plus, being able to code one GUI and have it run on
 all favors of iOS and Android seems to be a wonderful approach. Check out
 my latest resizing library (using part of Ken's stsResizeLib).
 
 http://www.youtube.com/watch?v=vY6r46O0cVA
 
 -- 
 Chipp Walters
 CEO, Altuit, 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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Alejandro Tejada
Hi Chipp,

Watching this close, the methods in which you work in LiveCode
is really inspiring. Thanks for sharing!


Chipp Walters wrote
 
 [snip]
 Be sure to holler if you see anything which doesn't seem correct. :-)
 [snip]
 

Tell me if I am wrong, but when you run the stack in the
iPhone emulator, the bottom Home button stopped functioning.
I think that I saw the cursor inside that button, but the
hilite was not activated. Did I see this correctly?

Keep Up your great work!

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Preview-of-Resolution-Independent-Control-library-for-RevMobile-tp4652555p4652578.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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread Randy Hengst
Hi Klaus and All,

I'm just now trying to get my head around accelerated rendering.

I don't have access to Windows, so can't comment specifically on what Klaus 
discovered.

However, I can confirm a problem with INK and accelerated rendering on LC5.5.1 
when running the app on iOS simulator or device.

I noticed this when updating an app where images are dragged around…that's why 
I was using accelerated render….

I've set the INK on the draggable images to clear when the image is first 
shown to the user… with accelerated rendering set to false, the image is 
black…. with accelerated rendering set to true, the image seems to be stuck in 
its original color...

In other words, if I change the INK state to clear while accelerated rendering 
is true, nothing happens… but, the image changes when I set accelerated 
rendering to false… 

I can tell by using the Inspector that the INK of the image has been set to 
clear….

It's easy to duplicate this problem, but I'd be happy to send out a small stack.

Interestingly, in my main project… setting INK to clear still works on my Mac… 
but, the small demo stack doesn't work.

Anyone have a work-around for this INK bump?

be well,
randy
-
On May 3, 2012, at 2:17 PM, Klaus on-rev wrote:

 Hi all,
 
 Am 03.05.2012 um 20:23 schrieb Klaus on-rev:
 
 Hi freinds
 
 I just found an evil bug on the Mac :-/
 LiveCode 5.02
 
 When you set the acceleratedrendering of this stack to true
 all objects with their INK set to NOOP will become visible again.
 
 This does not happen on Windows.
 
 Can someone please confirm this, before I bug report?
 Does this also happen in LC 5.5x?
 
 Bug #10202:
 http://quality.runrev.com/show_bug.cgi?id=10202
 
 
 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


___
use-livecode mailing list
use-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: Why killing Media was killing an investment in the future

2012-07-21 Thread Alejandro Tejada
Oh Lynn...

With these words, you deflated the argument that I was about
to write:


Lynn Fredricks-2 wrote
 
 For any education to be at its best, you need to have kids coming from
 healthy, intellectually nurturing homes and neighborhoods, and a pipeline
 of
 communication. That's a much more complicated question, but solve that and
 the other stuff becomes much easier and cheaper.
 

But anyway, here it goes:
Because the school's environment actually have a definite and stellar
influence in the student's learning... I was ready to suggest:
Invite the best and brightest students from all the world
for one month of advanced classes. In this month, students from USA
could watch and learn from the study habits of their peers in other
parts of the world.

According to Lynn's comments, this exemplary experience would not help
much unless USA students have supportive and loving parents.

Well... hope was the last one to leave the Pandora Box, in which our
whole world has become.

Alejandro



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Why-killing-Media-was-killing-an-investment-in-the-future-tp4652364p4652581.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: RevMobile: Native controls

2012-07-21 Thread Andre Garzia
On Sat, Jul 21, 2012 at 8:59 PM, Roger Eller roger.e.el...@sealedair.comwrote:

  Also screen density on android is a headache because a high density phone
  could be higher res than a low density tablet. What are your thoughts on
  dealing with that?

 To be fair, try editing a stack for the new iPad resolution even on a
 1920x1200 monitor.  However, the resTool stack that was recently
 shared/offered to Chipp makes an easy task of managing every resolution
 known to man, it appears.  2 cents.  :-)


The problem is not editing the stacks, the problem is figuring out at
runtime if you're running on a cheap android tablet or an expensive high
end android phone.

We need something along the lines of:

mobileIsDeviceAPhone()
mobileIsDeviceATablet()

If we can figure out this then we can present a better layout. Another
thing would be a good way to return the screen physical size, for example 7
inches for Nexus 7 and Kindle Fire.





 ~Roger
 ___
 use-livecode mailing list
 use-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: RevMobile: Native controls

2012-07-21 Thread Mark Wieder
Andre-

Saturday, July 21, 2012, 5:08:46 PM, you wrote:

 If we can figure out this then we can present a better layout. Another
 thing would be a good way to return the screen physical size, for example 7
 inches for Nexus 7 and Kindle Fire.

Can you shell to xrandr to get this?

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
use-livecode mailing list
use-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: RevMobile: Native controls

2012-07-21 Thread Andre Garzia
On Sat, Jul 21, 2012 at 9:16 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Andre-

 Saturday, July 21, 2012, 5:08:46 PM, you wrote:

  If we can figure out this then we can present a better layout. Another
  thing would be a good way to return the screen physical size, for
 example 7
  inches for Nexus 7 and Kindle Fire.

 Can you shell to xrandr to get this?


Is there a xrandr on Android? :-O



 --
 -Mark Wieder
  mwie...@ahsoftware.net


 ___
 use-livecode mailing list
 use-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: RevMobile: Native controls

2012-07-21 Thread Chipp Walters
Hi Monte,

Landscape should work just fine-- it's the rotation which can possibly
cause problems. One way to do this is with 2 stacks. Another way to do it
is with a large square stack and different cards. The library has the
ability to render objects on all cards at startup, or using a preOpenCard
handler-- this way if you have a lot of cards and/or controls on cards, you
can defer the scaling to as needed.

I'll post the beta version of the plugin and framework today and you can
try it out.

On Sat, Jul 21, 2012 at 4:39 PM, Monte Goulding mo...@sweattechnologies.com
 wrote:

 Hi chipp

 Thanks for the video. This looks like a really helpful tool and I'm keen
 to get my hands on it.

 Do you have any ideas for handling landscape and tablet views? For tablets
 I think in most cases you would want a different stack so using a main
 stack with most of the code and a handheld and tablet substack would work.
 For landscape we need to be able to reposition the same controls, hide
 some, show some etc. So it's more like a profile. In some cases just
 resizing will work. But it would be nice to have a when in landscape move
 here or hide/show or something option.

 Also screen density on android is a headache because a high density phone
 could be higher res than a low density tablet. What are your thoughts on
 dealing with that?

 Cheers

 --
 M E R Goulding
 Software development services

 mergExt - There's an external for that!

 On 21/07/2012, at 9:56 PM, Chipp Walters ch...@chipp.com wrote:

  Monte,
 
  I agree with you. We all know by now that Apple discourages using faux
  Apple-like controls UNLESS they are pixel perfect and strictly follow the
  Apple UI guidelines. But, they readily accept different interfaces as
 long
  as they are well done. Plus, being able to code one GUI and have it run
 on
  all favors of iOS and Android seems to be a wonderful approach. Check out
  my latest resizing library (using part of Ken's stsResizeLib).
 
  http://www.youtube.com/watch?v=vY6r46O0cVA
 
  --
  Chipp Walters
  CEO, Altuit, 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




-- 
Chipp Walters
CEO, Altuit, 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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Chipp Walters
FYI, for those interested...

I don't lock scripts and anyone can use this in their commercial projects
free of charge. IOW, this is a professional library which you can edit and
use however you like (just don't try and sell it please!)

On Sat, Jul 21, 2012 at 7:36 PM, Chipp Walters ch...@chipp.com wrote:

 Sorry the double post-- I originally thought the OTHER post was my
 originating one.


 I've added some auto-install procedures to the plugin and it's now
 available for testing at:

 http://www.gadgetplugins.com/altplugins/altMobileResizer.rev
 Put it in your plugins folder or your altPlugs folder. Don't forget
 there's an update button on it!

 From the very prelim docs:
 -
 altMobileResizer plugin
 (c)2012  Chipp Walters
 Thanks to portions by Ken Ray!

 This plugin creates a resizing framework for mobile devices so devlopers
 only have to create a single layout and it will smartly resize all controls
 on each card when the app first launches on a mobile device.

 Selecting the Stack tab, the plugin installs a library and OpenStack
 handler on the first card of the app stack. You next add objects and
 controls (like the altButton DropTool) and then you can assign resizing
 properties to them using the Control tab controls.

 Because the library is installed, it's important you pass all resizeStack
 messages and preOpenCard messages.

 When first installing the library stack, two properties are set for the
 library stack:

 altStacksAffected - This is a list of the names of the stacks for which
 the library will run on.

 altResizeAllCardsAtOnce - This is a boolean (defaults to true) which tells
 the library to resize all controls on all cards at startup. If not true,
 then it will resize all controls on a preOpenCard handler which may speed
 startup if you have a lot of cards in your stack.

 Also, remember to set the resizeQuality to GOOD (not NORMAL or BEST) for
 all images-- and reduce the images by 50% in width and height for the
 smaller min size. This way when going to the 2X Retina size they will be at
 full resolution.

 You can only edit the position and resize settings for objects when the
 stack is in minWidth mode. If you change the position or rect of a control,
 then you'll need to be sure and press the refresh position button to store
 the new settings.




-- 
Chipp Walters
CEO, Altuit, 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: RevMobile: Native controls

2012-07-21 Thread Andre Garzia
On Sat, Jul 21, 2012 at 9:34 PM, Chipp Walters ch...@chipp.com wrote:

 I typically think either we're designing for Tablets or Phones-- but not
 for both at the same time. Most devs I've seen tend to develop 2 different
 apps if they need to support both.


There is one good case for developing a single application that runs on
both the iPhone and the iPad. Universal apps rank higher on the search
results from the iTunes App Store.

Also you will get a larger number of installs (the sum of the phone and
tablet users) for the same app which will make it more attractive to
Android uses because people look at how many people are using this before
installing.

Both comments are more useful for those developing generic horizontal
market apps such as games or business apps with a broad appeal. If you're
developing for a vertical then it doesn't matter, your users will have
other ways of finding you.

cheers
andre



-- 
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: RevMobile: Native controls

2012-07-21 Thread Chipp Walters
FYI, New 5 min video explaining how to use the plugin:

http://youtu.be/TLWD5KsstFc
___
use-livecode mailing list
use-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: RevMobile: Native controls

2012-07-21 Thread Chipp Walters
Andre,

I suppose if you wanted to develop both for phone and tablet, you could use
2 different stacks, each using the same altMobileResizer framework and then
branch to them by editing the openStack handler on cd 1 of the main stack.

There is one good case for developing a single application that runs on
 both the iPhone and the iPad. Universal apps rank higher on the search
 results from the iTunes App Store.
___
use-livecode mailing list
use-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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Roger Eller
Awesome!  Will it work with tmControl too?

~Roger
 On Jul 21, 2012 8:36 PM, Chipp Walters ch...@chipp.com wrote:

 Sorry the double post-- I originally thought the OTHER post was my
 originating one.


 I've added some auto-install procedures to the plugin and it's now
 available for testing at:

 http://www.gadgetplugins.com/altplugins/altMobileResizer.rev
 Put it in your plugins folder or your altPlugs folder. Don't forget there's
 an update button on it!

 From the very prelim docs:
 -
 altMobileResizer plugin
 (c)2012  Chipp Walters
 Thanks to portions by Ken Ray!

 This plugin creates a resizing framework for mobile devices so devlopers
 only have to create a single layout and it will smartly resize all controls
 on each card when the app first launches on a mobile device.

 Selecting the Stack tab, the plugin installs a library and OpenStack
 handler on the first card of the app stack. You next add objects and
 controls (like the altButton DropTool) and then you can assign resizing
 properties to them using the Control tab controls.

 Because the library is installed, it's important you pass all resizeStack
 messages and preOpenCard messages.

 When first installing the library stack, two properties are set for the
 library stack:

 altStacksAffected - This is a list of the names of the stacks for which the
 library will run on.

 altResizeAllCardsAtOnce - This is a boolean (defaults to true) which tells
 the library to resize all controls on all cards at startup. If not true,
 then it will resize all controls on a preOpenCard handler which may speed
 startup if you have a lot of cards in your stack.

 Also, remember to set the resizeQuality to GOOD (not NORMAL or BEST) for
 all images-- and reduce the images by 50% in width and height for the
 smaller min size. This way when going to the 2X Retina size they will be at
 full resolution.

 You can only edit the position and resize settings for objects when the
 stack is in minWidth mode. If you change the position or rect of a control,
 then you'll need to be sure and press the refresh position button to store
 the new settings.
 ___
 use-livecode mailing list
 use-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: RevMobile: Native controls

2012-07-21 Thread Andre Garzia
On Sat, Jul 21, 2012 at 10:06 PM, Chipp Walters ch...@chipp.com wrote:

 Andre,

 I suppose if you wanted to develop both for phone and tablet, you could use
 2 different stacks, each using the same altMobileResizer framework and then
 branch to them by editing the openStack handler on cd 1 of the main stack.


That is exactly what I am doing. The problem is that on android there is no
safe way of identifying if it is a tablet or a phone =)





 There is one good case for developing a single application that runs on
  both the iPhone and the iPad. Universal apps rank higher on the search
  results from the iTunes App Store.
 ___
 use-livecode mailing list
 use-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: RevMobile: Native controls

2012-07-21 Thread J. Landman Gay

On 7/21/12 7:49 PM, Andre Garzia wrote:

On Sat, Jul 21, 2012 at 9:34 PM, Chipp Walters ch...@chipp.com wrote:


I typically think either we're designing for Tablets or Phones-- but not
for both at the same time. Most devs I've seen tend to develop 2 different
apps if they need to support both.



There is one good case for developing a single application that runs on
both the iPhone and the iPad. Universal apps rank higher on the search
results from the iTunes App Store.


Another reason is to have only one copy of the stack to update. I am 
currently designing an app for any mobile device available: iPhone, 
iPad, Android phone, Android tablet, anything.


Monte asked how we manage resolutions and screen sizes. The way I do it 
is to ignore screen density and size and device type; I simply get the 
working screenrect and use pixels. All objects and placement are 
calculated by ratios. If a field needs to be a third of the size of the 
screen, then I multiply the width and height by .3 and that's how many 
pixels it is.


With this method I don't have to know anything about the device at all, 
only the number of pixels available. I don't need to worry that it won't 
fit some new device that comes out next week, and it doesn't matter what 
OS is currently running. It works with Retina displays as well as tiny 
2-inch phone screens. (I turn off the engine's auto-mapping for retina 
displays.)


I don't use square cards, btw. I use a generically proportioned 
rectangular card to get an idea of where objects should be placed, since 
virtually all existing screens are rectangular. It helps me see how to 
organize and proportion the layout in both portrait and landscape views. 
Once I have a good layout for my generic screen rect, I calculate 
proportions from that and apply them in resize handlers.


Now I'm keen to see what Chipp has done, I'm off to go look.

--
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: Preview of Resolution Independent Control library for RevMobile

2012-07-21 Thread Chipp Walters
I don't know about tmControls. Do they respond to resizeStack and can hoe
set their rect and loc?

On Saturday, July 21, 2012, Roger Eller wrote:

 Awesome!  Will it work with tmControl too?



-- 
Chipp Walters
CEO, Altuit, 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: RevMobile: Native controls

2012-07-21 Thread Chipp Walters
Jacque,
This framework works pretty much like you first described. I suspect you
will find it worthwhile for your projects.


-- 
Chipp Walters
CEO, Altuit, 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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread J. Landman Gay

On 7/21/12 5:37 PM, Randy Hengst wrote:


I've set the INK on the draggable images to clear when the image is
first shown to the user… with accelerated rendering set to false, the
image is black…. with accelerated rendering set to true, the image
seems to be stuck in its original color...

In other words, if I change the INK state to clear while accelerated
rendering is true, nothing happens… but, the image changes when I set
accelerated rendering to false…


This, along with Klaus' NOOP problem, is probably because the old inks 
were deprecated as of LiveCode version 5.0. They are now unsupported and 
may or may not work. The ink entry in the dictionary lists the 
supported alternatives.


--
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: RevMobile: Native controls

2012-07-21 Thread J. Landman Gay

On 7/21/12 8:43 PM, Chipp Walters wrote:

Jacque,
This framework works pretty much like you first described. I suspect you
will find it worthwhile for your projects.




Yup, I was just looking at the scripts. It's a lot like I described. :)

I see a stub in there from Ken's library that toggles whether you want 
to resize or just move an object, but the just move part is missing. 
That seems useful, any chance we can get it back in there?


Nice job on this, Chipp and Ken.

--
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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread Randy Hengst
Hi Jacque,

Thanks for the scoop. That's good to know… To be honest, since they are still 
listed under the blend options, I didn't think about them being discontinued.

As I mentioned, clear still turns the image black (like I want) in my 
original app … I didn't notice the problem until I added the 
acceleratedRendering… and then, the problem only showed itself in the simulator 
and device… not in the IDE.

So, I explored the two other INK options… Structural Blends and Imaging Blends.

Two of the Structural Blends turn the image black… like I want… blendXor and 
blendDstOut 
But, the structural blends do *not* work when acceleratedRendering is set to 
true.

The Imaging Blends do work with accelerated rendering set to true… 
But, none of them will turn the image black… or dark gray… these blends are 
influenced by the background color.

Is it to be expected that acceleratedRendering will disable the Structural 
Blends? Or, is that a bug?

be well,
randy
---
On Jul 21, 2012, at 10:12 PM, J. Landman Gay wrote:

 On 7/21/12 5:37 PM, Randy Hengst wrote:
 
 I've set the INK on the draggable images to clear when the image is
 first shown to the user… with accelerated rendering set to false, the
 image is black…. with accelerated rendering set to true, the image
 seems to be stuck in its original color...
 
 In other words, if I change the INK state to clear while accelerated
 rendering is true, nothing happens… but, the image changes when I set
 accelerated rendering to false…
 
 This, along with Klaus' NOOP problem, is probably because the old inks were 
 deprecated as of LiveCode version 5.0. They are now unsupported and may or 
 may not work. The ink entry in the dictionary lists the supported 
 alternatives.
 
 -- 
 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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread Scott Rossi
Randy:

I don't have LiveCode in front of me but I'm pretty sure the docs list several 
of the ink limitations of acceleratedRendering there.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



On Jul 21, 2012, at 9:06 PM, Randy Hengst iowahen...@mac.com wrote:

 Hi Jacque,
 
 Thanks for the scoop. That's good to know… To be honest, since they are still 
 listed under the blend options, I didn't think about them being discontinued.
 
 As I mentioned, clear still turns the image black (like I want) in my 
 original app … I didn't notice the problem until I added the 
 acceleratedRendering… and then, the problem only showed itself in the 
 simulator and device… not in the IDE.
 
 So, I explored the two other INK options… Structural Blends and Imaging 
 Blends.
 
 Two of the Structural Blends turn the image black… like I want… blendXor 
 and blendDstOut 
 But, the structural blends do *not* work when acceleratedRendering is set to 
 true.
 
 The Imaging Blends do work with accelerated rendering set to true… 
 But, none of them will turn the image black… or dark gray… these blends are 
 influenced by the background color.
 
 Is it to be expected that acceleratedRendering will disable the Structural 
 Blends? Or, is that a bug?
 
 be well,
 randy
 ---
 On Jul 21, 2012, at 10:12 PM, J. Landman Gay wrote:
 
 On 7/21/12 5:37 PM, Randy Hengst wrote:
 
 I've set the INK on the draggable images to clear when the image is
 first shown to the user… with accelerated rendering set to false, the
 image is black…. with accelerated rendering set to true, the image
 seems to be stuck in its original color...
 
 In other words, if I change the INK state to clear while accelerated
 rendering is true, nothing happens… but, the image changes when I set
 accelerated rendering to false…
 
 This, along with Klaus' NOOP problem, is probably because the old inks were 
 deprecated as of LiveCode version 5.0. They are now unsupported and may or 
 may not work. The ink entry in the dictionary lists the supported 
 alternatives.
 
 -- 
 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
 

___
use-livecode mailing list
use-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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread J. Landman Gay

On 7/21/12 11:34 PM, Scott Rossi wrote:


I don't have LiveCode in front of me but I'm pretty sure the docs
list several of the ink limitations of acceleratedRendering there.


I just found it in the 5.02 release notes:

Accelerated rendering comes with some restrictions:
• Bitmap effects which use the multiply and color dodge blend modes will 
not work correctly on top-level objects.
• Only 'blendSrcOver' and the image processing blend inks will work on 
top-level objects.
• 'opengl' mode does not support any inks apart from blendSrcOver on 
top-level objects.
• Using an ink other than 'blendSrcOver' on a top-level object will 
implicitly make it use 'dynamic' layerMode


--
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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread J. Landman Gay

On 7/21/12 11:06 PM, Randy Hengst wrote:


The Imaging Blends do work with accelerated rendering set to true…
But, none of them will turn the image black… or dark gray… these
blends are influenced by the background color.

Is it to be expected that acceleratedRendering will disable the
Structural Blends? Or, is that a bug?


I just posted the restrictions in another message, but yes, it looks 
like it's expected. You might have better luck using graphics effects 
and setting an opaque black color overlay. Or maybe Scott Rossi knows a 
better way to do it.


--
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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread Scott Rossi
Those are them.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On Jul 21, 2012, at 10:01 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

 On 7/21/12 11:34 PM, Scott Rossi wrote:
 
 I don't have LiveCode in front of me but I'm pretty sure the docs
 list several of the ink limitations of acceleratedRendering there.
 
 I just found it in the 5.02 release notes:
 
 Accelerated rendering comes with some restrictions:
 • Bitmap effects which use the multiply and color dodge blend modes will not 
 work correctly on top-level objects.
 • Only 'blendSrcOver' and the image processing blend inks will work on 
 top-level objects.
 • 'opengl' mode does not support any inks apart from blendSrcOver on 
 top-level objects.
 • Using an ink other than 'blendSrcOver' on a top-level object will 
 implicitly make it use 'dynamic' layerMode
 
 -- 
 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: acceleratedrendering = true and ink = NOOP don't cooperate :-/

2012-07-21 Thread Scott Rossi
The first question to Randy would be, why do you want to change the image to 
black?  What's the end effect you're going for?  Would something like the 
coloroverlay graphic effect be a workable option?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


On Jul 21, 2012, at 10:06 PM, J. Landman Gay jac...@hyperactivesw.com wrote:

 On 7/21/12 11:06 PM, Randy Hengst wrote:
 
 The Imaging Blends do work with accelerated rendering set to true…
 But, none of them will turn the image black… or dark gray… these
 blends are influenced by the background color.
 
 Is it to be expected that acceleratedRendering will disable the
 Structural Blends? Or, is that a bug?
 
 I just posted the restrictions in another message, but yes, it looks like 
 it's expected. You might have better luck using graphics effects and setting 
 an opaque black color overlay. Or maybe Scott Rossi knows a better way to do 
 it.
 
 -- 
 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

Word count in Unicode

2012-07-21 Thread Richard Gaskin

Word counting is a snap with Latin-ISO:

on mouseUp
  put WordCount(fld 1)
end mouseUp

function WordCount pData
  repeat for each word tWord in pData
add 1 to tCount[tWord]
  end repeat
  combine tCount with cr and tab
  set the itemdel to tab
  sort lines of tCount numeric descending by item 2 of each
  return tCount
end WordCount


How can I do the same for texts which may contain Unicode?

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

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