Re: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread Colin Holgate
It turned out to be mis-delivered to his neighbor, and so he got it the next 
day.


On Nov 18, 2011, at 7:56 PM, Chipp Walters wrote:

> Oh, that sucks. Mine's ok. The wife stored it and now I'm typing this
> response. Whoppie!

___
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: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread Chipp Walters
Oh, that sucks. Mine's ok. The wife stored it and now I'm typing this
response. Whoppie!

On Friday, November 18, 2011, Colin Holgate  wrote:
> I ordered it a few days ago, I guess they had plenty of stock.
>
> One of my email buddies arrived home to find an empty space outside his
front door, where his Fire had been delivered. Hopefully yours will be
alright.
>

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


Dirty Salsa mini - In Appstore

2011-11-18 Thread ddas
Hi Folks,

I am happy to announce that now the power to learn Salsa Dancing is in the palm 
of your hands.

Thanks to Gerry, Richard, Mark, Jacqueline, Scott, Björnke and anyone who 
helped me but I have missed.
Special thanks to Bernd. I swiped a lot of code from him.

It's a very simple app that plays video clips.

Dirty Salsa mini
http://itunes.apple.com/us/app/dirty-salsa-mini/id478527196?ls=1&mt=8

Cheers,
Debdoot





___
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: Confused about substacks

2011-11-18 Thread Mike Bonner
Probably what will work is to make a stackrunner type of splash stack with
any libraries etc included. Then you can have your real stack with its
substacks be opened by the splash. As long as the right support stuff is
included the splash you can "go stack.."  and it should be fine, and the
splashstack can handle the saving of changes to your real stack.



On Fri, Nov 18, 2011 at 5:17 PM, Bob Sneidar  wrote:

> Correction. You cannot go to a card in a new window. The command will
> ignore the new window and just go to the card in the existing window. That
> would be a nice feature enhancement for having multiple windows open on a
> single stack.
>
> Bob
>
>
> > Thanks Devin I think I understand now. I am going to avoid the whole
> problem and go card in new window.
> >
> > Bob
> >
> >
> > On Nov 18, 2011, at 3:42 PM, Devin Asay wrote:
> >
> >> Hi Bob,
> >>
> >> When you turn a mainstack into a substack of another mainstack, that
> substack becomes part of the stackfile containing the mainstack. In effect
> the stackfile containing the former mainstack is "orphaned". Usually I just
> get rid of these orphaned stackfiles to avoid confusion.
> >>
> >> Bottom line: substacks are part of the same stack file of the mainstack.
> >>
> >> Hope this it what you were asking.
> >>
> >> Devin
> >>
> >>
> >> On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote:
> >>
> >
>
> ___
> 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: Confused about substacks

2011-11-18 Thread Bob Sneidar
Correction. You cannot go to a card in a new window. The command will ignore 
the new window and just go to the card in the existing window. That would be a 
nice feature enhancement for having multiple windows open on a single stack. 

Bob


> Thanks Devin I think I understand now. I am going to avoid the whole problem 
> and go card in new window. 
> 
> Bob
> 
> 
> On Nov 18, 2011, at 3:42 PM, Devin Asay wrote:
> 
>> Hi Bob,
>> 
>> When you turn a mainstack into a substack of another mainstack, that 
>> substack becomes part of the stackfile containing the mainstack. In effect 
>> the stackfile containing the former mainstack is "orphaned". Usually I just 
>> get rid of these orphaned stackfiles to avoid confusion. 
>> 
>> Bottom line: substacks are part of the same stack file of the mainstack.
>> 
>> Hope this it what you were asking.
>> 
>> Devin
>> 
>> 
>> On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote:
>> 
> 

___
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: Confused about substacks

2011-11-18 Thread Bob Sneidar
Thanks Devin I think I understand now. I am going to avoid the whole problem 
and go card in new window. 

Bob


On Nov 18, 2011, at 3:42 PM, Devin Asay wrote:

> Hi Bob,
> 
> When you turn a mainstack into a substack of another mainstack, that substack 
> becomes part of the stackfile containing the mainstack. In effect the 
> stackfile containing the former mainstack is "orphaned". Usually I just get 
> rid of these orphaned stackfiles to avoid confusion. 
> 
> Bottom line: substacks are part of the same stack file of the mainstack.
> 
> Hope this it what you were asking.
> 
> Devin
> 
> 
> On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote:
> 
>> Hi all. 
>> 
>> I am a bit confused now. I created a new stack, saved it, made it a substack 
>> of my splash stack. No problemo. I can see the substack on the hard drive, I 
>> can see the substack in the application browser as a substack of my splash 
>> stack. 
>> 
>> BUT THEN...
>> 
>> I right clicked my splash stack in the application browser, and created a 
>> new substack, named it, saved it, application browser looks peachy, but the 
>> stack file is not visible on the hard drive! Does making a stack a substack 
>> create a COPY of the original stack and imbed it in the main stack, or is 
>> the file hiding somewhere else on my hard drive? If the former, then am I 
>> correct in thinking I do not need the other stack files I CAN see on my hard 
>> drive, because there are now copies of them in the main stack?
>> 
>> I am s confused...
>> 
>> Bob
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
> 
> 
> 
> 
> ___
> 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: Confused about substacks

2011-11-18 Thread Bob Sneidar
Oic. Because if they are substacks of the splash stack then they are part of 
the standalone and therefore not editable. That makes sense. I think I am 
misusing substacks then. I should just make them individual stacks on the hard 
drive. The goal is to have multiple editable forms open at the same time, so 
having each form as it's own stack seemed a logical choice, but now I am not so 
sure. I wonder if I should just be using go card in new window instead? 

Bob


On Nov 18, 2011, at 3:44 PM, Mike Bonner wrote:

> Assuming you are doing this so that you can save your stack file, yes. When
> you make a stack a substack, I do believe it incorporates it all together.
> However, there is a setting in the standalone builder that avoids this when
> you build a standalone. Its under the stacks heading, "move substacks into
> individual stack files."
> 
> 
> 
> On Fri, Nov 18, 2011 at 4:36 PM, Bob Sneidar  wrote:
> 
>> Hi all.
>> 
>> I am a bit confused now. I created a new stack, saved it, made it a
>> substack of my splash stack. No problemo. I can see the substack on the
>> hard drive, I can see the substack in the application browser as a substack
>> of my splash stack.
>> 
>> BUT THEN...
>> 
>> I right clicked my splash stack in the application browser, and created a
>> new substack, named it, saved it, application browser looks peachy, but the
>> stack file is not visible on the hard drive! Does making a stack a substack
>> create a COPY of the original stack and imbed it in the main stack, or is
>> the file hiding somewhere else on my hard drive? If the former, then am I
>> correct in thinking I do not need the other stack files I CAN see on my
>> hard drive, because there are now copies of them in the main stack?
>> 
>> I am s confused...
>> 
>> Bob
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> 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: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread Colin Holgate
Not exactly that, but all of the elements of what you said.

I did wirelessly download several apks to the Fire by touching the url to the 
apk in an email message. As with all Android devices, that downloaded and 
installed the app. You do have to go to settings to allow installs of apps from 
places other than stores first. Those apks happened to be Flash ones, but 
there's no reason to think that any other apk would behave differently.

I also did tests from LiveCode, with the device connect by USB, and that worked 
fine. And I did tests from Flash, to the connect USB device, and that worked 
fine too.

There was one particular thing I had to do in order for it all to work, which 
was to add the value 0x1949 as an extra line at the end of the file 
~/.android/adb_usb.ini

With other Android devices, at least with Android 3.x, you have to go into 
settings and Developer, and specifically turn on the feature that allows 
debugging over USB. With the Kindle Fire that is on by default, and there isn't 
a setting to turn it off.


On Nov 18, 2011, at 5:15 PM, John Patten wrote:

> Colin you were able to create a LiveCode app, save it as a standalone for 
> Android. Then upoad the newly created app to a web site, and from the 
> KindleFire access the web site and download and install the app onto your 
> KindleFire? 

___
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: Confused about substacks

2011-11-18 Thread Mike Bonner
Assuming you are doing this so that you can save your stack file, yes. When
you make a stack a substack, I do believe it incorporates it all together.
However, there is a setting in the standalone builder that avoids this when
you build a standalone. Its under the stacks heading, "move substacks into
individual stack files."



On Fri, Nov 18, 2011 at 4:36 PM, Bob Sneidar  wrote:

> Hi all.
>
> I am a bit confused now. I created a new stack, saved it, made it a
> substack of my splash stack. No problemo. I can see the substack on the
> hard drive, I can see the substack in the application browser as a substack
> of my splash stack.
>
> BUT THEN...
>
> I right clicked my splash stack in the application browser, and created a
> new substack, named it, saved it, application browser looks peachy, but the
> stack file is not visible on the hard drive! Does making a stack a substack
> create a COPY of the original stack and imbed it in the main stack, or is
> the file hiding somewhere else on my hard drive? If the former, then am I
> correct in thinking I do not need the other stack files I CAN see on my
> hard drive, because there are now copies of them in the main stack?
>
> I am s confused...
>
> Bob
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
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: Confused about substacks

2011-11-18 Thread Devin Asay
Hi Bob,

When you turn a mainstack into a substack of another mainstack, that substack 
becomes part of the stackfile containing the mainstack. In effect the stackfile 
containing the former mainstack is "orphaned". Usually I just get rid of these 
orphaned stackfiles to avoid confusion. 

Bottom line: substacks are part of the same stack file of the mainstack.

Hope this it what you were asking.

Devin


On Nov 18, 2011, at 4:36 PM, Bob Sneidar wrote:

> Hi all. 
> 
> I am a bit confused now. I created a new stack, saved it, made it a substack 
> of my splash stack. No problemo. I can see the substack on the hard drive, I 
> can see the substack in the application browser as a substack of my splash 
> stack. 
> 
> BUT THEN...
> 
> I right clicked my splash stack in the application browser, and created a new 
> substack, named it, saved it, application browser looks peachy, but the stack 
> file is not visible on the hard drive! Does making a stack a substack create 
> a COPY of the original stack and imbed it in the main stack, or is the file 
> hiding somewhere else on my hard drive? If the former, then am I correct in 
> thinking I do not need the other stack files I CAN see on my hard drive, 
> because there are now copies of them in the main stack?
> 
> I am s confused...
> 
> Bob
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
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


Confused about substacks

2011-11-18 Thread Bob Sneidar
Hi all. 

I am a bit confused now. I created a new stack, saved it, made it a substack of 
my splash stack. No problemo. I can see the substack on the hard drive, I can 
see the substack in the application browser as a substack of my splash stack. 

BUT THEN...

I right clicked my splash stack in the application browser, and created a new 
substack, named it, saved it, application browser looks peachy, but the stack 
file is not visible on the hard drive! Does making a stack a substack create a 
COPY of the original stack and imbed it in the main stack, or is the file 
hiding somewhere else on my hard drive? If the former, then am I correct in 
thinking I do not need the other stack files I CAN see on my hard drive, 
because there are now copies of them in the main stack?

I am s confused...

Bob


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


Making an existing stack a substack of another

2011-11-18 Thread Bob Sneidar
Never mind I found the command. You set the substacks of the splash stack to a 
list of the substacks you want. Odd that the menu option does not work though. 
Seems that is still a bug. 

Bob



> Hi all. I am doing things bass ackwards as usual. I created my main 
> application stack, and now I want to create a splash stack and make my main 
> application a substack of that. I know about the popup menu in the Stack 
> Properties. I set that to the splash stack in my main application stack, then 
> save both stacks but I can see in the Application browser, the change is not 
> taking effect. The splash stack is still it's own stack and the main 
> application stack is still it's own main stack. 
> 
> I hope that is not too confusing. Have I fallen on to a bug here? 
> 
> Bob
> 
> 

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


Making an existing stack a substack of another

2011-11-18 Thread Bob Sneidar
Hi all. I am doing things bass ackwards as usual. I created my main application 
stack, and now I want to create a splash stack and make my main application a 
substack of that. I know about the popup menu in the Stack Properties. I set 
that to the splash stack in my main application stack, then save both stacks 
but I can see in the Application browser, the change is not taking effect. The 
splash stack is still it's own stack and the main application stack is still 
it's own main stack. 

I hope that is not too confusing. Have I fallen on to a bug here? 

Bob



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


Re: Data Grid Challenges

2011-11-18 Thread Michael Doub
I would like to share some of the wisdom of Zryip The Slug (ZTS) as it may be 
of some help to others not the list.


For the Color problem:
ZTS:  If you have the need to change the color of the background rectangle of a 
row and not want to use the row color property of the datagrid, you have to 
rename the rectangle object. Internally the datagrid engine applies the 
properties set for the row color to the rectangle "background" it finds in the 
template.

MD:  This is vert subtile.  It looks like best practice would be to always 
change the name of any controls that you would like customize.


For the Row height issue in GetDataOfLine mode:
MD:  Don't seem to have root cause yet but ZTS offered the following work 
around:

on OpenCard
   lock screen
   set the dgNumberOfRecords of group "Contacts" to 20
   set the dgProp["row height"] of group "Contacts" to 34
   unlock screen
end OpenCard

By setting the row height property of the dagrid group to 34, all is ok.


And of coarse I made THE CLASIC behaviour mistake in my testing code.
set the rect of graphic "Background" OF ME to x

ZTS:  Never forget to refer to OF ME when you are referencing an object in the 
behavior script.

Thanks again to Zryip, his help is much appreciated.

Regards,
Mike


___
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: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread John Patten
Hi All…

Just for clarification…

Colin you were able to create a LiveCode app, save it as a standalone for 
Android. Then upoad the newly created app to a web site, and from the 
KindleFire access the web site and download and install the app onto your 
KindleFire? 

Thanks!

John Patten
SUSD


On Nov 18, 2011, at 12:20 PM, Chipp Walters wrote:

> Dang, Colin-- that was FAST! Thanks for the update. I've been travelling
> all week while mine is waiting at home. It will be in my grubby hands in a
> couple hours!
> 
> Also, I'm about 3/4 through the Steve Jobs bio. Good read, for those of you
> who haven't checked it out.
> 
> On Thursday, November 17, 2011, Colin Holgate  wrote:
> 
>> I have built apps straight onto it from Flash and LiveCode, and directly
> download apk files from the web.
>> 
>>> 
>>> Its supposed to be running a variant of Android 2.3.
>> 
>> It's 2.3.4, but has a lot of nice Amazon interface on top of it (either
> that, or I wasn't familiar with how Android 2.3 should look).
>> 
>> Overall it's very good.
>> ___
>> 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


___
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: Database Strategy

2011-11-18 Thread Bob Sneidar
If you are working with cursors, my personal preference is to parse the data 
from the cursor, and then close it and forget about it. If you need new data, 
requery the database. 

I have mentioned before on the list that sqlYoga has functions for querying a 
database and returning an array that is compatible with datagrids. By passing 
that array in setting the dgData (set the dgData to aQueryArray) you have a 
very simple way to populate the datagrid without any of that messy parsing. 

sqlYoga is well worth the price for anyone doing serious database work in 
Livecode. 

Bob
On Nov 16, 2011, at 9:03 AM, m...@doub.com wrote:

> I am new to the world of databases and I need some advise.  
> 
> I am currently opening and closing the database in the open and close stack 
> handlers. I am storing the connection I'd in a custom stack property. 
> 
> When I go to a card, I am creating a cursor, directly loading each record  
> into the datagrid.  Upon closing the card I close the cursor. 
> 
> Now this works fine when I load rev for the first time and go to the card 
> with the datagrid.  When I leave the card and return, I am getting errors 
> indicating I have invalid cursor ID. 
> 
> So should I be opening and closing the entire database in the card?
> I am not seeing anything wrong examining the close cursor function. 
> 
> As a separate question can you have multiple cursors open at the same time.  
> I would think so. 
> 
> Thanks in advance. 
> 
>  -= Mike
> 
> 
> Sent from my BlackBerry device on the Rogers Wireless Network
> 
> ___
> 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: DataGrid Speed

2011-11-18 Thread Bob Sneidar
I think I understood him to say he would build his own array and then populate 
using dgData. My personal preference, once I understood what datagrids did with 
arrays, is to always use arrays when I can. sqlYoga returns datagrid compatible 
arrays, so you can get a data set through a query, and then set the dgData of 
the datagrid directly. Very handy. 

However, if the initial population of the datagrid is underway, and your data 
is already delimited text, just use dgText and let the datagrid library handle 
building the array for you. After that you can work with row elements as needed 
by accessing the various datagrid array functions for doing that. 

Maybe I didn't understand the question though. 

Bob


On Nov 13, 2011, at 11:51 AM, zryip theSlug wrote:

> The datagrid engine works internally with arrays. So when you populate
> the datagrid with dgText, the data is parsed and the engine sets the
> dgData property. So for performances, dgData should be prefer.
> 
> 
> Best regards,
> -- 
> -Zryip TheSlug- wish you the best! 8)


___
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: DataGrid Speed

2011-11-18 Thread Bob Sneidar
If you use dgText, the datagrid library will create the array internally, 6 one 
way half a dozen the other, except that the datagrid library knows how to do it 
right. But if you have an array already, then using dgData is of course 
quicker. 

Bob


On Nov 13, 2011, at 10:30 AM, Michael Doub wrote:

> Does anyone understand the basic internal workings of DataGrid enough to help 
> me understand what is going on.  I am trying to use the least amount of 
> memory and maximize performance on IOS.
> 
> I have a field of 4000 lines with 6 items in each line that have been 
> pre-sorted.   Is it better for me to set the dgText or manually create an 
> array and use dgData.   Either I create the array or the data grid library 
> does.   Is the data grid library unpacking this array into text anyway?
> 
> What is going on under the covers with persistent data?   Can I climate a 
> copy of the data if this is turned off?
> 
> Thanks in advance.
>   -= Mike
> 
> 
> 
> 
> ___
> 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: Read From Socket Question

2011-11-18 Thread Pierre Sahores
Should this production ready old example help ?

http://www.sahores-conseil.com/insead/page5_en.html

Best,

Le 18 nov. 2011 à 19:17, Warren Kuhl a écrit :

> I am trying to retrieve data from a socket.
> 
> When I try:
> 
> read from socket myDevSock for  characters
> put it into tData
> ...I get data
> 
> read from socket myDevSock until crlf
> put it into tData
> ...I get data
> 
> read from socket myDecSock until eof
> put it into tData
> ...no data
> 
> Wouldn't the read until eof pull in all data that is passed back?
> 
> Thanks for any help!
> Warren
> 
> ___
> 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

--
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: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread Colin Holgate
I ordered it a few days ago, I guess they had plenty of stock. 

One of my email buddies arrived home to find an empty space outside his front 
door, where his Fire had been delivered. Hopefully yours will be alright.


On Nov 18, 2011, at 3:20 PM, Chipp Walters wrote:

> Dang, Colin-- that was FAST! Thanks for the update. I've been travelling
> all week while mine is waiting at home. It will be in my grubby hands in a
> couple hours!

___
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: So Who Has Tried the Kindle Fire Yet (with LiveCode building)?

2011-11-18 Thread Chipp Walters
Dang, Colin-- that was FAST! Thanks for the update. I've been travelling
all week while mine is waiting at home. It will be in my grubby hands in a
couple hours!

Also, I'm about 3/4 through the Steve Jobs bio. Good read, for those of you
who haven't checked it out.

On Thursday, November 17, 2011, Colin Holgate  wrote:

> I have built apps straight onto it from Flash and LiveCode, and directly
download apk files from the web.
>
>>
>> Its supposed to be running a variant of Android 2.3.
>
> It's 2.3.4, but has a lot of nice Amazon interface on top of it (either
that, or I wasn't familiar with how Android 2.3 should look).
>
> Overall it's very good.
> ___
> 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: Location of dialog box

2011-11-18 Thread Ken Ray
> Ken--I was referring to the stack that opens in response to the RR "Answer" 
> command. Is it possible to set a preopencard handler in that stack?

Yes, but for the reasons that Wilhelm wrote you wouldn't be able to distribute 
a raw stack to someone else and have it work right in their IDE.

I *DO*, however, have a workaround to this that seems to work in my tests:

1) In your stack create a hidden button (I called mine "AnswerLoc") with this 
script:

global gAnswerLoc
on preOpenCard
   if the short name of this stack is "Answer Dialog" then
  if gAnswerLoc is not empty then
 set the loc of stack "Answer Dialog" to gAnswerLoc
 put "" into gAnswerLoc
  end if
   end if
   pass preOpenCard
end preOpenCard

2) Sometime before you call on "answer" for the first time, insert the script 
of that button "into front" to make it a frontScript:

insert script of btn "AnswerLoc" into front

3) When you're ready to call on "answer", set the global gAnswerLoc to the loc 
you want the answer dialog to appear at, and then call "answer":

global gAnswerLoc
on mouseUp
   put "100,100" into gAnswerLoc
   answer "Hello"
end mouseUp

This will give you the desired effect, it cleans up after itself nicely, and is 
completely distributable.


Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.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


Read From Socket Question

2011-11-18 Thread Warren Kuhl
I am trying to retrieve data from a socket.

When I try:

read from socket myDevSock for  characters
put it into tData
...I get data

read from socket myDevSock until crlf
put it into tData
...I get data

read from socket myDecSock until eof
put it into tData
...no data

Wouldn't the read until eof pull in all data that is passed back?

Thanks for any help!
Warren

___
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: lc shell and command line

2011-11-18 Thread Roger Eller
On Fri, Nov 18, 2011 at 1:00 PM, Andre Garzia wrote:

> Roger,
>
> Good finding.
>
> Cheers
> andre
>
>
I keep the classic Revolution archive, as well as the new LiveCode archive
links handy for searching.  There's lots of good stuff in both.  It's too
bad the Developer List is private, and therefore not searchable.

http://www.mail-archive.com/use-revolution@lists.runrev.com

http://www.mail-archive.com/use-livecode@lists.runrev.com

~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


Re: lc shell and command line

2011-11-18 Thread Andre Garzia
Roger,

Good finding. I gave the same comment as before lol... it appears that this
solution works, I haven't tested it.

Cheers
andre

On Fri, Nov 18, 2011 at 3:48 PM, Roger Eller wrote:

> On Fri, Nov 18, 2011 at 12:26 PM, Andre Garzia wrote:
>
> > As far as I know, you can't ask for the user password and pass it to a
> > shell call with clever use of pipes. That is not how sudo works, you
> can't:
> >
> >  cat password.txt | sudo cd ..   or   sudo cd .. < password.txt
> >
> >
> How about this method?
>
> shell("pw=" & tPassword & "; echo $pw | sudo -S command")
>
> SOURCE:
> http://www.mail-archive.com/use-revolution@lists.runrev.com/msg137100.html
>
> ~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


Data Grid Challenges

2011-11-18 Thread Michael Doub
I am trying to understand what is going on with data grids.   I have a stack 
with 2 cards each with a different data grid.   One is set up to have the card 
script populate the grid using the GetDataForLine technique the other sets the 
dgData property of the grid.   Below you can see the techniques used.   The 
data grids were set up manually but are identical in that the backgrounds and 
background boarders are set to different colours but with the same height of 
35.   Both data grids are set to fixed height of 34 to overlap the boarder to 
only see a single boarder between rows.

There are 2 mysteries:
1)  The the grid on each card,  the colour of the row backgrounds are always 
set to white.  Not at all the colour of the template.  However, the colour of 
the row background boarders are set copied correctly from the template. 

2)  The second mystery is that the card using the GetDataForLine technique has 
two other problems.  The data is correctly being populated, but the row hight 
is set to size of the default template or 21; not the size of the edited 
template. With this incorrect size the slider does not work.  If you go into 
edit mode, then refresh the DataGrid the sizes are adjusted correctly, return 
to execute mode then the scrolling works properly.

I would really appreciate some help on this one.   There must be something 
really basic that I am missing.  The actual stack is here: 
http://dl.dropbox.com/u/43797494/test.livecode

Regards,
   Mike



Card 1  ---

on OpenCard
   lock screen
   set the dgNumberOfRecords of group "Contacts" to 20
   unlock screen
end OpenCard

on closeCard
set the dgData of group "Contacts" to empty
end closeCard

command GetDataForLine pLine, @pOutData
   put "This line is : " into pOutData["FirstName"]
   put pline into pOutData["LastName"]
end GetDataForLine


Card 2  ---

on OpenCard
   put empty into tdata
   repeat with x = 1 to 20
  put " This is a test record: "into tdata [x]["FirstName"]
  put x into tdata [x]["LastName"]
   end repeat
   set the dgData of group "DataGrid" to tdata
end OpenCard

on closeCard
set the dgData of group "DataGrid" to empty
end closeCard


Both data grids have the identical behaviour scripts. 


on FillInData pDataArray
set the text of field "Label" of me to pDataArray["FirstName"] & 
pDataArray["LastName"] 
end FillInData

--left top right bottum
on LayoutControl pControlRect
   local x
   put  pControlRect into x
   put item 2 of x + 35 into item 4 of x
   set the rect of graphic "Background" to x
end LayoutControl

on ResetData
set the text of field "Label" of me to empty
end ResetData




___
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: lc shell and command line

2011-11-18 Thread Roger Eller
On Fri, Nov 18, 2011 at 12:26 PM, Andre Garzia wrote:

> As far as I know, you can't ask for the user password and pass it to a
> shell call with clever use of pipes. That is not how sudo works, you can't:
>
>  cat password.txt | sudo cd ..   or   sudo cd .. < password.txt
>
>
How about this method?

shell("pw=" & tPassword & "; echo $pw | sudo -S command")

SOURCE:
http://www.mail-archive.com/use-revolution@lists.runrev.com/msg137100.html

~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


Re: Location of dialog box

2011-11-18 Thread Klaus on-rev
Hu guys,

Am 18.11.2011 um 17:56 schrieb Wilhelm Sanke:

> On Fri,  Nov 18 , 2011, James Hurley jhurley0305 at sbcglobal.net wrote:
> 
>> Ken and Malte,
>> Thanks for the suggestions.
>> Malte--Your suggestion works well. Thanks. As you say it is a bit of a hack.
>> Ken--I was referring to the stack that opens in response to the RR "Answer" 
>> command. Is it possible to set a preopencard handler in that stack?
>> But using a modal stack as you suggest, I can roll my own "answer" dialogue. 
>> This would give me more flexibility. I assume many others take this route.
>> Thanks, again,
>> Jim Hurley 
> I might remind you - and especially Ken as the present chief of the Metacard 
> group - that we have long implemented such a feature for the ask and answer 
> dialogs in the alternative Metacard IDE, following a proposal from my side 
> several years ago.
> 
> At the end of the preopenstack handler of the dialog stack (in the card 
> script) we have added two lines of code:
> 
> " if the NewLoc of this stack is not empty then set the loc of this stack to 
> the NewLoc of this stack
>  set the NewLoc of this stack to empty"
> 
> In the script calling the dialog you have just first to set the "Newloc":
> 
> "set the newloc of stack "answer dialog" to x,y"
> 
> or use globalloc alternatively.
> 
> The second line of code above "set the NewLoc of this stack to empty" makes 
> sure the dialog will pop up at the "normal" loc when no Newloc has been set 
> before calling the dialog.
> 
> This approach is so simple! I have always wondered why the Livecode guys did 
> not include such a simple solution in the Livecode IDE, too.--
> 
> These two line of extra code could of course be added to the revanswerdialog 
> etc., too, but then, when you distribute a non-standalone stack, without 
> prior including the answer dialog as a substack, it will not work with the 
> Livecode IDE of another user. On the other side, with an answer dialog 
> embedded as a substack you might run into troubles, because the Livecode IDE 
> is very special with double stacks and might throw an error (Did not test 
> this with the last version).

I think this needs to be implemented on the engine side /like ASK and ANSWER 
itself!) as an optional parameter!

> Best regards,
> 
> Wilhelm Sanke

Best

Klaus

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


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


Re: Location of dialog box

2011-11-18 Thread Wilhelm Sanke

Addendum to my last post in this thread:

I have used this approach for dialog stacks with the added "newloc" 
property in many of my stacks, e.g.


look at the scripts of buttons "Store image 1" and "Store image 2" in my 
stack "seamless tiles".




This stack contains the Metacard answer dialog as a substack, and works 
fine in the Livecode IDE, too (tested with version 4.6.4).


Regards,

Wilhelm SDanke


___
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: lc shell and command line

2011-11-18 Thread Andre Garzia
Guys,

As far as I know, you can't ask for the user password and pass it to a
shell call with clever use of pipes. That is not how sudo works, you can't:

 cat password.txt | sudo cd ..

or

  sudo cd .. < password.txt

The only way I found to script sudo calls is by using expect (
http://www.nist.gov/el/msid/expect.cfm ). Expect is a tool to automate
interactive console applications. You can craft an expect script that call
sudo and whatever else you want to do and call that script with shell().

=)
___
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: Location of dialog box

2011-11-18 Thread Wilhelm Sanke


On Fri,  Nov 18 , 2011, James Hurley jhurley0305 at sbcglobal.net wrote:


Ken and Malte,

Thanks for the suggestions.

Malte--Your suggestion works well. Thanks. As you say it is a bit of a 
hack.


Ken--I was referring to the stack that opens in response to the RR 
"Answer" command. Is it possible to set a preopencard handler in that 
stack?


But using a modal stack as you suggest, I can roll my own "answer" 
dialogue. This would give me more flexibility. I assume many others 
take this route.


Thanks, again,

Jim Hurley 



 I might remind you - and especially Ken as the present chief of the 
Metacard group - that we have long implemented such a feature for the 
ask and answer dialogs in the alternative Metacard IDE, following a 
proposal from my side several years ago.


At the end of the preopenstack handler of the dialog stack (in the card 
script) we have added two lines of code:


" if the NewLoc of this stack is not empty then set the loc of this 
stack to the NewLoc of this stack

  set the NewLoc of this stack to empty"

In the script calling the dialog you have just first to set the "Newloc":

"set the newloc of stack "answer dialog" to x,y"

or use globalloc alternatively.

The second line of code above "set the NewLoc of this stack to empty" 
makes sure the dialog will pop up at the "normal" loc when no Newloc has 
been set before calling the dialog.


This approach is so simple! I have always wondered why the Livecode guys 
did not include such a simple solution in the Livecode IDE, too.--


These two line of extra code could of course be added to the 
revanswerdialog etc., too, but then, when you distribute a 
non-standalone stack, without prior including the answer dialog as a 
substack, it will not work with the Livecode IDE of another user. On the 
other side, with an answer dialog embedded as a substack you might run 
into troubles, because the Livecode IDE is very special with double 
stacks and might throw an error (Did not test this with the last version).


Best regards,

Wilhelm Sanke




___
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: lc shell and command line

2011-11-18 Thread Mike Bonner
set the hideconsolewindows to true
will do what you wish.

On Fri, Nov 18, 2011 at 9:27 AM, John Brozycki  wrote:

> Regarding shell commands and LiveCode
>
> I've noticed that under OS X, invocation of a shell command is silent.
>  But under Windows, you see a CMD window quickly pop up and disappear.  I
> haven't found any options to prevent the shell command popping up under
> Windows, but wondered if anyone knew of a way to prevent it from happening.
>
> Thanks,
> John
>
> On Nov 14, 2011, at 3:12 AM, Peter Alcibiades wrote:
>
> > I'm having trouble with the livecode shell and cd command also.
> >
> > pwd in a terminal does:
> >
> >:~/  runrev 4.5/livecode-4.5.2$
> >
> > cd ..
> >
> >:~/  runrev 4.5$
> >
> > pwd
> >
> >runrev 4.5$
> >
> > If you do the exact same things using put shell(""), this doesn't
> work.
> > In particular,
> >
> >put shell("pwd")
> >
> > does indeed return the working directory, but
> >
> >put shell("cd ..")
> >
> > does not work at all.   Why not? Probably an obvious reason - is it
> > something to do with escaping characters?
> >
> > Peter
> >
> >
> > --
> > View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/lc-shell-and-command-line-tp4036681p4038742.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
>
___
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: lc shell and command line

2011-11-18 Thread Mark Schonewille
John,

set the hideConsoleWindows to true

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 18 nov 2011, at 17:27, John Brozycki wrote:

> Regarding shell commands and LiveCode
> 
> I've noticed that under OS X, invocation of a shell command is silent.  But 
> under Windows, you see a CMD window quickly pop up and disappear.  I haven't 
> found any options to prevent the shell command popping up under Windows, but 
> wondered if anyone knew of a way to prevent it from happening.  
> 
> Thanks,
> John


___
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: lc shell and command line

2011-11-18 Thread John Brozycki
Regarding shell commands and LiveCode

I've noticed that under OS X, invocation of a shell command is silent.  But 
under Windows, you see a CMD window quickly pop up and disappear.  I haven't 
found any options to prevent the shell command popping up under Windows, but 
wondered if anyone knew of a way to prevent it from happening.  

Thanks,
John

On Nov 14, 2011, at 3:12 AM, Peter Alcibiades wrote:

> I'm having trouble with the livecode shell and cd command also.
> 
> pwd in a terminal does:
> 
>:~/  runrev 4.5/livecode-4.5.2$
> 
> cd ..
> 
>:~/  runrev 4.5$ 
> 
> pwd
> 
>runrev 4.5$
> 
> If you do the exact same things using put shell(""), this doesn't work. 
> In particular, 
> 
>put shell("pwd")
> 
> does indeed return the working directory, but 
> 
>put shell("cd ..") 
> 
> does not work at all.   Why not? Probably an obvious reason - is it
> something to do with escaping characters?
> 
> Peter
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/lc-shell-and-command-line-tp4036681p4038742.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


Re: Location of dialog box

2011-11-18 Thread James Hurley
Ken and Malte,

Thanks for the suggestions. 

Malte--Your suggestion works well. Thanks. As you say it is a bit of a hack. 

Ken--I was referring to the stack that opens in response to the RR "Answer" 
command. Is it possible to set a preopencard handler in that stack?

But using a modal stack as you suggest, I can roll my own "answer" dialogue. 
This would give me more flexibility. I assume many others take this route.

Thanks, again,

Jim Hurley


> On Nov 17, 2011, at 10:05 AM, James Hurley wrote:
> 
> >
>  Can one set the location of the popup dialog box? In my application, it 
> obscures the object it is addressing. 
> 
> 
> Jim, the only way to set the locaton of a modal dialog box (that I'm aware 
> of) is changing the location in the preOpenStack of the dialog stack you're 
> opening:
> 
> -- Dialog stack "MyDialog"
> on preOpenCard
>   set the loc of this stack to 100,100
> end preOpenCard
> 
> -- Calling stack
> on mouseUp
>   modal "MyDialog"
> end mouseUp
> 
> The other possibility is to open a dialog box as modeless, which would let 
> you drag it around…
> 
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: 
> kray at sonsothunder.com
> 
> Web Site: 
> http://www.sonsothunder.com/
>   
> 

>> Malte Brill wrote: 
>> 
>> Hi Jim,
>> 
>> yes, you can, but it is sort of a hack. You will need to handle the 
>> suspendStack message at stack script level:
>> 
>> on suspendStack
>>if "answer dialog" is among the lines of the openStacks then
>>   set the topLeft of stack "answer dialog" to 0,0
>>end if
>> end suspendStack

___
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