Re: Crowd Funding Enhancements

2014-03-11 Thread Terence Heaford
Here’s one I’d like to see.

“Native controls in the Cocoa Port”.

Oh dear, I thought we were already getting that one.


All the best

Terry


___
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: properties vs local variable

2014-03-11 Thread Terence Heaford
Thanks Peter,

I think this what the data grid does.

I can see how this works having changed to colour of the group as an experiment.

How would I deal with non contiguous selections?

Create an image for each one?

This is starting to sound expensive time wise.

All the best

Terry

On 10 Mar 2014, at 21:41, Peter Haworth p...@lcsql.com wrote:

 There's another approach to this that does away with the need to set colors
 at all.
 
 Some folks on this list have shown me in the past how to create an image
 with its fillgradient set in such a way that it has alternating lines in
 the required colors at the same height as the line height you are dealing
 with, then setting it as a backgroundpattern.
 
 I've always used this in conjunction with a scrolling field with many lines
 of data but it sounds this table is made up of many text fields, probably
 grouped, so I tried it with a group of text fields..
 
 Set the group's backgroundpattern to the id of the image.  Set the group's
 opaque to true.  Set the opaque of the fields in the group to false.  All
 works fine.  Group can be resized and the backgroundpattern adjusts
 accordingly and you no longer need any code to set line colors except for
 indicating the selectedline which I'd probably do with another image with
 an appropriate background which gets positioned wherever the user clicks.
 


___
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: Crowd Funding Enhancements

2014-03-11 Thread Mike Kerner
I also like expanding the reach of each.


On Tue, Mar 11, 2014 at 3:29 AM, Terence Heaford
t.heaf...@btinternet.comwrote:

 Here's one I'd like to see.

 Native controls in the Cocoa Port.

 Oh dear, I thought we were already getting that one.


 All the best

 Terry


 ___
 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




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is 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


Multi user sqlite via shared-cache mode?

2014-03-11 Thread Michael Gruenthal
I¹m interested in having a small (20) number of users simultaneously
connected to an sqlite DB on a shared network drive as an alternative to
hosting on a server. I found some old (2010) discussions about this without
a clear answer. I¹m wondering if sqlite share-cache mode will permit this. I
have a very rudimentary understanding of SQL so perhaps I¹m misunderstanding
what shared-cache mode does, but I¹m hoping that the upgraded sqlite support
in LC 6.6 in combination with shared-cache mode will allow at least a
limited number of concurrent connections.

If so, does anyone know if there¹s a way to use revOpenDatabase() to open a
connection with shared-cache mode enabled? If I understand correctly it is
disabled by default. Thanks.

Michael


___
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


disable mousedoubleup

2014-03-11 Thread Björnke von Gierke
Hi

I wanted to disable mousedoubleup for a short time on a specific object, but it 
seems it's not possible to do this whit the doubleclickinterval, as that is not 
available on windows.

The problem is of course that in this stack people will click very fast and the 
double events will then swallow some of the interactions. Is there any other 
workaround to react to the mouse events, but none of the double ones?

-- 

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



___
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: disable mousedoubleup

2014-03-11 Thread Devin Asay

On Mar 11, 2014, at 9:09 AM, Björnke von Gierke b...@mac.com wrote:

 Hi
 
 I wanted to disable mousedoubleup for a short time on a specific object, but 
 it seems it's not possible to do this whit the doubleclickinterval, as that 
 is not available on windows.
 
 The problem is of course that in this stack people will click very fast and 
 the double events will then swallow some of the interactions. Is there any 
 other workaround to react to the mouse events, but none of the double ones?
 

Björnke,

Could flushEvents() be helpful in this situation? 

Maybe something like this:

on mouseDoubleUp
  send mouseUp to me
end mouseDoubleUp

on mouseUp
  # if the handler hasn't finished, or some predetermined time period hasn't 
elapsed:
  flushEvents(mouseUp)
end mouseUp

Not tested, just thinking out loud.

Regards,

Devin

Devin Asay
Learn to code with LiveCode University
http://university.livecode.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: disable mousedoubleup

2014-03-11 Thread dunbarx
Hi.


This goes back a long, long way. And there was a thread just a few months ago. 
I think I am rewriting from memory:




on mouseUp
   wait 20
   if the mouseClick then doDoubleStuff
   else doSingleStuff
end mouseUp


on mouseDoubleUp
end mouseDoubleUp


Seemed clever in 1987. A little long in the tooth now, but works.




Craig




-Original Message-
From: Björnke von Gierke b...@mac.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Mar 11, 2014 11:10 am
Subject: disable mousedoubleup


Hi

I wanted to disable mousedoubleup for a short time on a specific object, but it 
seems it's not possible to do this whit the doubleclickinterval, as that is not 
available on windows.

The problem is of course that in this stack people will click very fast and the 
double events will then swallow some of the interactions. Is there any other 
workaround to react to the mouse events, but none of the double ones?

-- 

Use an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



___
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: Multi user sqlite via shared-cache mode?

2014-03-11 Thread Peter Haworth
Hi Michael
You can find more info about this at
http://www.sqlite.org/atomiccommit.html#brokenlocks

In general, it's risky accessing SQlite databases over a network unless you
are only querying the database and not doing any insert/update/delete
operations for the reasons explained in the link.

Usually, options like shared cache are turned on and off using PRAGMA
statements but I couldn't find one for this purpose.  It looks like you
enable shared cache when the database is opened by using a filepath similar
to:

file:pathtomydb?cache=shared

when calling revOpenDatabase but I haven't tried it so not sure if LC would
accept it.  If it doesn't, we should probably file a bug report.

There are some client/server tools out there for SQLite.  Some are listed
at http://www.sqlite.org/cvstrac/wiki?p=SqliteNetwork and no doubt a Google
search will find others.  I've never tried any of them so not sure how well
they play with LC.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html


On Tue, Mar 11, 2014 at 7:41 AM, Michael Gruenthal mgruent...@mac.comwrote:

 I¹m interested in having a small (20) number of users simultaneously
 connected to an sqlite DB on a shared network drive as an alternative to
 hosting on a server. I found some old (2010) discussions about this without
 a clear answer. I¹m wondering if sqlite share-cache mode will permit this.
 I
 have a very rudimentary understanding of SQL so perhaps I¹m
 misunderstanding
 what shared-cache mode does, but I¹m hoping that the upgraded sqlite
 support
 in LC 6.6 in combination with shared-cache mode will allow at least a
 limited number of concurrent connections.

 If so, does anyone know if there¹s a way to use revOpenDatabase() to open a
 connection with shared-cache mode enabled? If I understand correctly it is
 disabled by default. Thanks.

 Michael


 ___
 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: Multi user sqlite via shared-cache mode?

2014-03-11 Thread Peter Haworth
Hi Michael,
I just verified that URI filenames don't work in LC v6.6 and have filed bug
report # 11919.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html


On Tue, Mar 11, 2014 at 7:41 AM, Michael Gruenthal mgruent...@mac.comwrote:

 I¹m interested in having a small (20) number of users simultaneously
 connected to an sqlite DB on a shared network drive as an alternative to
 hosting on a server. I found some old (2010) discussions about this without
 a clear answer. I¹m wondering if sqlite share-cache mode will permit this.
 I
 have a very rudimentary understanding of SQL so perhaps I¹m
 misunderstanding
 what shared-cache mode does, but I¹m hoping that the upgraded sqlite
 support
 in LC 6.6 in combination with shared-cache mode will allow at least a
 limited number of concurrent connections.

 If so, does anyone know if there¹s a way to use revOpenDatabase() to open a
 connection with shared-cache mode enabled? If I understand correctly it is
 disabled by default. Thanks.

 Michael


 ___
 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


MSSQL Support?

2014-03-11 Thread Bob Sneidar
Has anyone had any success querying MSSQL? I suppose it could be done via 
shell, but I’m not sure I want to go that route. ODBC seems fairly clunky to 
implement as well, and I’m not sure MS even supports ODBC for MSSQL. 

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: MSSQL Support?

2014-03-11 Thread Roger Eller
ODBC works perfectly fine with MSSQL.

~Roger


On Tue, Mar 11, 2014 at 1:05 PM, Bob Sneidar bobsnei...@iotecdigital.comwrote:

 Has anyone had any success querying MSSQL? I suppose it could be done via
 shell, but I'm not sure I want to go that route. ODBC seems fairly clunky
 to implement as well, and I'm not sure MS even supports ODBC for MSSQL.

 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: MSSQL Support?

2014-03-11 Thread Matthias Rebbe | M-R-D
Hi Bob,

i am using ODBC to MSSQL connections on Mac and Windows for some years now with 
great success.

I am using system dsn and in some projects also ODBC connection strings.
Advantage of the ODBC connection string is the customer do not have to create a 
dsn.

Here are some examples of ODBC connection strings under Windows 

SQL SERVER Driver
get revOpenDatabase(ODBC,DRIVER=SQL 
Server;SERVER=192.168.1.250;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERNAME;Trusted_Connection=No,,,)
  
 
SQL Server Driver - connect to instance
get revOpenDatabase(ODBC,DRIVER=SQL 
Server;SERVER=192.168.1.250\INSTANCENAME;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
  

Native Client 11 Driver
get revOpenDatabase(ODBC,DRIVER={SQL Server Native Client 
11.0};SERVER=192.168.1.250;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
  

Native Client 11 Driver - connect to instance
get revOpenDatabase(ODBC,DRIVER={SQL Server Native Client 
11.0};SERVER=192.168.1.250\InstanceName;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
  
 
and under Mac using the Actualtech ODBC driver
get revOpenDatabase(ODBC,Driver={Actual SQL 
Server};Server=192.168.1.250\INSTANCENAME;Database=DBNAME;UID=DBUSER;PWD=DBPASSWORD;,,,)




Regards,

Matthias


Am 11.03.2014 um 18:05 schrieb Bob Sneidar bobsnei...@iotecdigital.com:

 Has anyone had any success querying MSSQL? I suppose it could be done via 
 shell, but I’m not sure I want to go that route. ODBC seems fairly clunky to 
 implement as well, and I’m not sure MS even supports ODBC for MSSQL. 
 
 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


Objective-C on Android?

2014-03-11 Thread Mark Wieder
Talked with these folks at a trade show last month...

www.apportable.com

-- 
 Mark Wieder
 ahsoftw...@gmail.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


New chunks

2014-03-11 Thread Benjamin Beaumont
Hi All,

We're in the process of adding some new chunk types in LiveCode 7 and we
would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)
sentence (breaks on unicode sentence boundaries)
paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in use.
Renaming the current 'word' chunk to 'token' to free up 'word' is not an
option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and we'd
love to get the input from community members if there is an even clearer
option.

Warm regards and thank you for your input.

Ben

_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Programming made simple
___
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: MSSQL Support?

2014-03-11 Thread Skip Kimpel
Awesome Thank you for that!

SKIP

 On Mar 11, 2014, at 1:27 PM, Matthias Rebbe | M-R-D 
 matthias_livecode_150...@m-r-d.de wrote:
 
 Hi Bob,
 
 i am using ODBC to MSSQL connections on Mac and Windows for some years now 
 with great success.
 
 I am using system dsn and in some projects also ODBC connection strings.
 Advantage of the ODBC connection string is the customer do not have to create 
 a dsn.
 
 Here are some examples of ODBC connection strings under Windows 
 
 SQL SERVER Driver
 get revOpenDatabase(ODBC,DRIVER=SQL 
 Server;SERVER=192.168.1.250;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERNAME;Trusted_Connection=No,,,)
   
 
 SQL Server Driver - connect to instance
 get revOpenDatabase(ODBC,DRIVER=SQL 
 Server;SERVER=192.168.1.250\INSTANCENAME;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
   
 
 Native Client 11 Driver
 get revOpenDatabase(ODBC,DRIVER={SQL Server Native Client 
 11.0};SERVER=192.168.1.250;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
   
 
 Native Client 11 Driver - connect to instance
 get revOpenDatabase(ODBC,DRIVER={SQL Server Native Client 
 11.0};SERVER=192.168.1.250\InstanceName;DATABASE=DBNAME;UID=DBUSER;PWD=DBUSERPASSWORD;Trusted_Connection=No,,,)
   
 
 and under Mac using the Actualtech ODBC driver
 get revOpenDatabase(ODBC,Driver={Actual SQL 
 Server};Server=192.168.1.250\INSTANCENAME;Database=DBNAME;UID=DBUSER;PWD=DBPASSWORD;,,,)
 
 
 
 
 Regards,
 
 Matthias
 
 
 Am 11.03.2014 um 18:05 schrieb Bob Sneidar bobsnei...@iotecdigital.com:
 
 Has anyone had any success querying MSSQL? I suppose it could be done via 
 shell, but I’m not sure I want to go that route. ODBC seems fairly clunky to 
 implement as well, and I’m not sure MS even supports ODBC for MSSQL. 
 
 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: New chunks

2014-03-11 Thread Roger Eller
uword
or
wordup (up = unicode part)

~Roger


On Tue, Mar 11, 2014 at 2:15 PM, Benjamin Beaumont b...@runrev.com wrote:

 Hi All,

 We're in the process of adding some new chunk types in LiveCode 7 and we
 would appreciate suggestions for a particular chunk name.

 The new chunk types are:

 naturalword (breaks on unicode word boundaries)
 sentence (breaks on unicode sentence boundaries)
 paragraph (Same behaviour as current 'line' chunk)

 The first chunk is called 'naturalword' because 'word' is already in use.
 Renaming the current 'word' chunk to 'token' to free up 'word' is not an
 option for backward compatibility. We are also limited by the current
 parser which doesn't allow us to use the form:

 put natural word 1 of this is a string of words

 'naturalword' is the clearest internal suggestion at the moment and we'd
 love to get the input from community members if there is an even clearer
 option.

 Warm regards and thank you for your input.

 Ben

 _

 Benjamin Beaumont . RunRev Ltd

 LiveCode Product Manager
 mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
 email : b...@runrev.com
 company : +44(0) 845 219 89 23
 fax : +44(0) 845 458 8487
 web : www.runrev.com

 LiveCode - Programming made simple
 ___
 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: New chunks

2014-03-11 Thread dunbarx
Ben.


Why not unicodeWord or uniWord. Roger takes that a step yet further, and, 
well, why not?



For the sentence, is this a chunk delimited by a period and a space?
For the paragraph, is this a chunk delimited by two returns?



Craig Newman


For the

-Original Message-
From: Roger Eller roger.e.el...@sealedair.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Mar 11, 2014 2:41 pm
Subject: Re: New chunks


uword
or
wordup (up = unicode part)

~Roger


On Tue, Mar 11, 2014 at 2:15 PM, Benjamin Beaumont b...@runrev.com wrote:

 Hi All,

 We're in the process of adding some new chunk types in LiveCode 7 and we
 would appreciate suggestions for a particular chunk name.

 The new chunk types are:

 naturalword (breaks on unicode word boundaries)
 sentence (breaks on unicode sentence boundaries)
 paragraph (Same behaviour as current 'line' chunk)

 The first chunk is called 'naturalword' because 'word' is already in use.
 Renaming the current 'word' chunk to 'token' to free up 'word' is not an
 option for backward compatibility. We are also limited by the current
 parser which doesn't allow us to use the form:

 put natural word 1 of this is a string of words

 'naturalword' is the clearest internal suggestion at the moment and we'd
 love to get the input from community members if there is an even clearer
 option.

 Warm regards and thank you for your input.

 Ben

 _

 Benjamin Beaumont . RunRev Ltd

 LiveCode Product Manager
 mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
 email : b...@runrev.com
 company : +44(0) 845 219 89 23
 fax : +44(0) 845 458 8487
 web : www.runrev.com

 LiveCode - Programming made simple
 ___
 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: New chunks

2014-03-11 Thread Richmond

On 11/03/14 20:15, Benjamin Beaumont wrote:

Hi All,

We're in the process of adding some new chunk types in LiveCode 7 and we
would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)


Well; in theory that looks good until you start to think about languages 
which are
written (such as Sanskrit) with no obvious word boundaries and both 
vowel mutation (Sandhi)

at what would be word boundaries, and consonant fusion.

Languages such as Inuit and Hungarian are agglutinative, and in some 
cases what we (speakers of West
European languages) would term a sentence consists of a single word with 
loads of affixes; some at

the front (prefixes).

Many Austronesian languages use infixes (i.e. twiddly bits shoved into 
the middle of 'words').


These also crop up in Afro-Asiatic languages such as Arabic.

There are also some examples in English such as fan-f*cking-tabulous.

We could also get sweaty about circumfixes, where a bit gets put on the 
front and a bit gets put on the back as

a sort of split morpheme (not to be confused with split-pea bara).


sentence (breaks on unicode sentence boundaries)


That looks a bit fishy.

How are you going to work out what marks a sentence boundary in every 
language that one can write
with Unicode? And there are languages where the idea of a 'sentence' is 
absent.



paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in use.
Renaming the current 'word' chunk to 'token' to free up 'word' is not an
option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and we'd
love to get the input from community members if there is an even clearer
option.


I'm sorry to be such a pill, but word and sentence boundaries are such 
culture-bound concepts
that they will only be any good for languages that mark word and 
sentence boundaries.


This is about the same as stating dogmatically that all bananas are 
yellow, when they are not.



Warm regards and thank you for your input.


You may not thank me.

Richmond.



Ben

_

Benjamin Beaumont . RunRev Ltd





___
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


package maker

2014-03-11 Thread Alain Vezina
Hi All,

I used to use RB Package Maker Studio to prepare an app for Apple Store.
It seems it no longer works on Mac OS 10.9.
I loved this package maker especially for setting the entitlements.
Is there anybody who knows an other package maker ?
I know how to sign and package an app, but I don’t know how to fix the 
entitlements.

Alain Vezina
Logilangue
514-596-1385
www.logilangue.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


SQLYoga and LC 6.6

2014-03-11 Thread Chris Sheffield
Anybody out there using SQLYoga with LiveCode 6.6? In particular with a SQLite 
database? I have a mobile app using this setup and it’s not working. I don’t 
get any errors from SQLYoga, but I’m not getting proper results from select 
queries either. Everything works fine in LC 6.5.2, but not with LC 6.6 rc-1.

Trevor, if you’re listening, have you noticed any issues? I would guess this 
has something to do with the updated SQLite libraries.

Thanks,
Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.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: package maker

2014-03-11 Thread Matthias Rebbe | M-R-D
Hi Alain,

there is App Wrapper“ from Ohanaware.
They published some information about Mavericks  Codesigning for LiveCode apps.

http://www.ohanaware.com/support/mavericksCodesign.php#liveCode

I did not try it yet, but it reads and sounds reasonable.

Regards,

Matthias Rebbe


Am 11.03.2014 um 20:53 schrieb Alain Vezina alain.vez...@logilangue.com:

 Hi All,
 
 I used to use RB Package Maker Studio to prepare an app for Apple Store.
 It seems it no longer works on Mac OS 10.9.
 I loved this package maker especially for setting the entitlements.
 Is there anybody who knows an other package maker ?
 I know how to sign and package an app, but I don’t know how to fix the 
 entitlements.
 
 Alain Vezina
 Logilangue
 514-596-1385
 www.logilangue.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: New chunks

2014-03-11 Thread Peter M. Brigham
On Mar 11, 2014, at 2:15 PM, Benjamin Beaumont wrote:

 Hi All,
 
 We're in the process of adding some new chunk types in LiveCode 7 and we
 would appreciate suggestions for a particular chunk name.
 
 The new chunk types are:
 
 naturalword (breaks on unicode word boundaries)
snip

Will this be implemented so that naturalword excludes punctuation fore and aft? 
eg,
   naturalword 2 of one (unusual, but illustrative) suggestion would be   -- 
unusual 

-- Peter

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


___
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: OT: limitations in paid iOS apps

2014-03-11 Thread Randy Hengst
Hi Chris,

I'll speak from an educator point of view… while I haven't developed any apps 
with a check-in system, I would never even consider having a limit of 6 if the 
target market includes classrooms. I wouldn't even have a system of in app 
purchase where the teacher could buy a larger number of seats for the app. 
Heck, raise the price of the app or don't include the educator discount… I bet 
there'd be negative feedback about that...

Be forewarned that I am now standing on my soap box (is that a phrase that 
translates well outside the US?)

That system of limiting the number of users would create a mess for simply 
using the 6 iPads… there'd have to be a system where none of the six students 
who shared an iPad needed it at the same time. You'd in essence be forced to 
create iPad groups that could really never change… it would create a system 
of use that will do nothing but get in the way… simply the opposite of 
ubiquitous … if the app is to really be integrated as a tool for students to 
use, that limitation must be removed. It really is akin to having six pencils 
for the class to take turns using.

OK, off my soap box.

Other educators on this list should please chime in, but that would be a deal 
breaker in a heartbeat.

be well,
randy
-

On Mar 10, 2014, at 12:20 PM, Chris Sheffield cmsheffi...@icloud.com wrote:

 This isn’t directly LiveCode-related, but I’m looking to get some opinions on 
 this from anyone who’s willing to share.
 
 I’m in the middle of working on a new app for my company. This is an 
 educational app that could be used in either a classroom or home setting. 
 It’s the type of app that requires a simple user management system. Basically 
 just setting up user names so the app can track progress on a per-user basis. 
 Nothing complex at all. The “powers that be” have requested that the app have 
 a 6-user limit per device. This will be a paid app.
 
 In my experience, most paid apps do not impose these types of limitations, 
 and I’m trying to make an argument for doing away with this limitation. Has 
 anyone else worked on or seen something similar? My main concern would be a 
 scenario where a classroom teacher may only have a single iPad available to 
 her, with a class size of 30 students. She’s not going to be too happy if she 
 can only use the app with six students at a time. I’m very worried that our 
 app ratings/reviews will be very poor if we release the app with this 
 limitation.
 
 Am I just making something out of nothing? Is this not really as big a deal 
 as I think it is? If anyone has an opinion, please share. Like I said, I’d 
 like to try to come up with a good argument against this.
 
 Thanks,
 Chris
 
 
 --
 Chris Sheffield
 Read Naturally, Inc.
 www.readnaturally.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: New chunks

2014-03-11 Thread Mark Wieder
Richmond richmondmathewson@... writes:

 How are you going to work out what marks a sentence boundary in every 
 language that one can write
 with Unicode? And there are languages where the idea of a 'sentence' is 
 absent.

My initial take on this was the same as yours. But unicode separators seem
to have been well thought-out (or at least standardized g):

http://www.unicode.org/reports/tr29/
http://www.unicode.org/Public/6.3.0/ucd/auxiliary/SentenceBreakTest.html

and I think any discussion or arguments should be taken up with the unicode
working group, and not have LC create Yet Another Variation on the way folks
will expect things to work.

-- 
 Mark Wieder
 ahsoftw...@gmail.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: New chunks

2014-03-11 Thread Mark Wieder
Benjamin Beaumont ben@... writes:

 'naturalword' is the clearest internal suggestion at the moment and we'd
 love to get the input from community members if there is an even clearer
 option.

My preferences, in order would be:

1. change the parser so that it accepts modifiers, and specifically so that
it accepts unicode word.

2. break on word boundaries with unicodeWord. I think unicode makes it
much clearer what is going on, rather than having to process what natural
means.

-- 
 Mark Wieder
 ahsoftw...@gmail.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: disable mousedoubleup

2014-03-11 Thread J. Landman Gay

On 3/11/14, 10:09 AM, Björnke von Gierke wrote:

Hi

I wanted to disable mousedoubleup for a short time on a specific
object, but it seems it's not possible to do this whit the
doubleclickinterval, as that is not available on windows.

The problem is of course that in this stack people will click very
fast and the double events will then swallow some of the
interactions. Is there any other workaround to react to the mouse
events, but none of the double ones?



There's the old standby:

on mouseDoubleUp
  mouseUp
end mouseDoubleUp

The clicks will queue.

--
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: SQLYoga and LC 6.6

2014-03-11 Thread Trevor DeVore

 Trevor, if you're listening, have you noticed any issues? I would guess
 this has something to do with the updated SQLite libraries.


Getting on a plane so I will be brief. I haven't tested in 6.6 yet. You
might download latest SQL Yoga library from my site as the source code is
now unlocked. You should be able to step through and see what is going on
when you connect.

-- 
Trevor DeVore
___
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


NASA's First Asteroid Grand Challenge -coding-

2014-03-11 Thread AndyP
Interesting coding challenge from NASA. $35,000 prize.

I've hilited the part that caught my eye in relation to Live Code.

'The Asteroid Data Hunter contest series challenges participants to develop
significantly improved algorithms to identify asteroids in images captured
by ground-based telescopes. The winning solution must increase the detection
sensitivity, minimize the number of false positives, ignore imperfections in
the data, *and run effectively on all computer systems.*'

http://www.nasa.gov/content/be-an-asteroid-hunter-in-nasas-first-asteroid-grand-challenge-contest-series/index.html
http://www.nasa.gov/content/be-an-asteroid-hunter-in-nasas-first-asteroid-grand-challenge-contest-series/index.html
  

Any takers?



-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Your LiveCode Work Desks - New Blog
http://livecodemydesk.blogspot.de/  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/NASA-s-First-Asteroid-Grand-Challenge-coding-tp4676909.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: New chunks

2014-03-11 Thread Jim Hurley
Can someone explain how the “sentence chunk would work?
How are decimal points, and points in an abbreviation distinguished from the 
“period” that deliniates the end of a “sentence?”
Does it presume that the exitsing text has special embedded “periods?”

I’ve written my own, but it is very cumbersome and not flawless. I use it to do 
manuscript analysis.
Like: Find all sentences in which “time” and “party” occur anywhere in the same 
sentence.

My ignorance on unicode is profound.
Jim

C
 Message: 15
 Date: Tue, 11 Mar 2014 18:15:18 +
 From: Benjamin Beaumont b...@runrev.com
 To: LiveCode Developer List livecode-...@lists.runrev.com,  How to
   use LiveCode use-livecode@lists.runrev.com
 Subject: New chunks
 Message-ID:
   CADd0_Txbhdem4PbKXifXUsujqPLs9HROME6vKhF=sk1znp2...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi All,
 
 We're in the process of adding some new chunk types in LiveCode 7 and we
 would appreciate suggestions for a particular chunk name.
 
 The new chunk types are:
 
 naturalword (breaks on unicode word boundaries)
 sentence (breaks on unicode sentence boundaries)
 paragraph (Same behaviour as current 'line' chunk)
 
 The first chunk is called 'naturalword' because 'word' is already in use.
 Renaming the current 'word' chunk to 'token' to free up 'word' is not an
 option for backward compatibility. We are also limited by the current
 parser which doesn't allow us to use the form:
 
 put natural word 1 of this is a string of words
 
 'naturalword' is the clearest internal suggestion at the moment and we'd
 love to get the input from community members if there is an even clearer
 option.
 
 Warm regards and thank you for your input.
 
 Ben
 
 _

___
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: disable mousedoubleup

2014-03-11 Thread Mark Schonewille

Hi Björnke,

What would you say about

on mouseDoubleUp
   mouseUp
   mouseUp
end mouseDoubleUp

This way, every click is counted as a real click (if this actually works).

--
Best regards,

Mark Schonewille

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

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


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


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 3/11/2014 16:09, Björnke von Gierke wrote:

Hi

I wanted to disable mousedoubleup for a short time on a specific object, but it 
seems it's not possible to do this whit the doubleclickinterval, as that is not 
available on windows.

The problem is of course that in this stack people will click very fast and the double 
events will then swallow some of the interactions. Is there any other 
workaround to react to the mouse events, but none of the double ones?



___
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: New chunks

2014-03-11 Thread Phil Davis
What are the pros and cons of making the 'useUnicode' property 
persistent and true by default, and let it determine the meaning of 
'word'? To my own immature understanding, that seems like a better 
approach that trying to come up with a new vocabulary item.


Phil Davis



On 3/11/14, 11:15 AM, Benjamin Beaumont wrote:

Hi All,

We're in the process of adding some new chunk types in LiveCode 7 and we
would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)
sentence (breaks on unicode sentence boundaries)
paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in use.
Renaming the current 'word' chunk to 'token' to free up 'word' is not an
option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and we'd
love to get the input from community members if there is an even clearer
option.

Warm regards and thank you for your input.

Ben

_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Programming made simple
___
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



--
Phil Davis


___
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: New chunks

2014-03-11 Thread Phil Davis
Or maybe introduce a persistent 'useUnicodeChunks' property that 
controls which kind of chunking is used.


On 3/11/14, 3:42 PM, Phil Davis wrote:
What are the pros and cons of making the 'useUnicode' property 
persistent and true by default, and let it determine the meaning of 
'word'? To my own immature understanding, that seems like a better 
approach that trying to come up with a new vocabulary item.


Phil Davis



On 3/11/14, 11:15 AM, Benjamin Beaumont wrote:

Hi All,

We're in the process of adding some new chunk types in LiveCode 7 and we
would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)
sentence (breaks on unicode sentence boundaries)
paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in 
use.

Renaming the current 'word' chunk to 'token' to free up 'word' is not an
option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and we'd
love to get the input from community members if there is an even clearer
option.

Warm regards and thank you for your input.

Ben

_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Programming made simple
___
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





--
Phil Davis


___
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: New chunks

2014-03-11 Thread Phil Davis

Sorry, I didn't read all emails before suggesting this.
:-)

On 3/11/14, 3:44 PM, Phil Davis wrote:
Or maybe introduce a persistent 'useUnicodeChunks' property that 
controls which kind of chunking is used.


On 3/11/14, 3:42 PM, Phil Davis wrote:
What are the pros and cons of making the 'useUnicode' property 
persistent and true by default, and let it determine the meaning of 
'word'? To my own immature understanding, that seems like a better 
approach that trying to come up with a new vocabulary item.


Phil Davis



On 3/11/14, 11:15 AM, Benjamin Beaumont wrote:

Hi All,

We're in the process of adding some new chunk types in LiveCode 7 
and we

would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)
sentence (breaks on unicode sentence boundaries)
paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in 
use.
Renaming the current 'word' chunk to 'token' to free up 'word' is 
not an

option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and 
we'd
love to get the input from community members if there is an even 
clearer

option.

Warm regards and thank you for your input.

Ben

_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Programming made simple
___
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







--
Phil Davis


___
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: SQLYoga and LC 6.6

2014-03-11 Thread Peter Haworth
Maybe I'm misunderstanding since I don't have SQLYoga but if calls to the
old format revOpenDatase are failing, that's a bug since every stack that
opens an sqlite database will fail.  If you don't need the ability to load
extensions or change the way blobs work, no change should be required.

Incidentally, I've tried the new ability to load third part libraries with
the load_extension function and it works great.  Got myself access to a
whole new set of sqlite functions!

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html


On Tue, Mar 11, 2014 at 4:29 PM, James Hale ja...@thehales.id.au wrote:

 Chris,

 Do as Trevor suggested and download the latest SQLYoga.

 It is no longer password protected so you can modify its handlers. I am
 not at my desk right now but if you find the handler that opens the db
 connection you just need to modify the SQLite case (in the switch
 statement) to handle the new syntax for opening a SQLite connection.

 I hit the same issue and just changed the single line to the new syntax.

 Hopefully Trevor will modify the code to enable the call to optionally
 enable to the extensions.
 As I wanted them I just changed the line to the new syntax with the
 extensions enabled.

 James
 ___
 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: NASA's First Asteroid Grand Challenge -coding-

2014-03-11 Thread Skip Kimpel
I'm in Who is with me??

SKIP

 On Mar 11, 2014, at 5:49 PM, AndyP smudge.a...@googlemail.com wrote:
 
 Interesting coding challenge from NASA. $35,000 prize.
 
 I've hilited the part that caught my eye in relation to Live Code.
 
 'The Asteroid Data Hunter contest series challenges participants to develop
 significantly improved algorithms to identify asteroids in images captured
 by ground-based telescopes. The winning solution must increase the detection
 sensitivity, minimize the number of false positives, ignore imperfections in
 the data, *and run effectively on all computer systems.*'
 
 http://www.nasa.gov/content/be-an-asteroid-hunter-in-nasas-first-asteroid-grand-challenge-contest-series/index.html
 http://www.nasa.gov/content/be-an-asteroid-hunter-in-nasas-first-asteroid-grand-challenge-contest-series/index.html
   
 
 Any takers?
 
 
 
 -
 Andy Piddock 
 
 
 My software never has bugs. It just develops random features. 
 
 Copy the new cloud space, get your free 15GB space now:
 Get Copy 
 
 
 Your LiveCode Work Desks - New Blog
 http://livecodemydesk.blogspot.de/  
 
 PointandSee is a FREE simple but full featured under cursor colour picker / 
 finder.
 http://www.pointandsee.co.uk  - made with LiveCode
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/NASA-s-First-Asteroid-Grand-Challenge-coding-tp4676909.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: New chunks

2014-03-11 Thread Mark Wieder
Phil Davis revdev@... writes:

 
 What are the pros and cons of making the 'useUnicode' property 
 persistent and true by default, and let it determine the meaning of 
 'word'? To my own immature understanding, that seems like a better 
 approach that trying to come up with a new vocabulary item.

I like this as well.

-- 
 Mark Wieder
 ahsoftw...@gmail.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: SQLYoga and LC 6.6

2014-03-11 Thread James Hale
Chris,

Do as Trevor suggested and download the latest SQLYoga.

It is no longer password protected so you can modify its handlers. I am not at 
my desk right now but if you find the handler that opens the db connection you 
just need to modify the SQLite case (in the switch statement) to handle the new 
syntax for opening a SQLite connection.

I hit the same issue and just changed the single line to the new syntax.

Hopefully Trevor will modify the code to enable the call to optionally enable 
to the extensions.
As I wanted them I just changed the line to the new syntax with the extensions 
enabled.

James
___
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: New chunks

2014-03-11 Thread Mark Schonewille

Hi Ben,

I think that the chunk names for unicode should be exactly the same as 
for english text, but they should act differently if either the text 
being operated on is unicode text or the useUnicode has been set to true.


Note that other development tools don't have this problem at all. 
Operations on English text work the same way as on unicode text and 
there is no need to even think about the encoding.


--
Best regards,

Mark Schonewille

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

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


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


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 3/11/2014 19:15, Benjamin Beaumont wrote:

Hi All,

We're in the process of adding some new chunk types in LiveCode 7 and we
would appreciate suggestions for a particular chunk name.

The new chunk types are:

naturalword (breaks on unicode word boundaries)
sentence (breaks on unicode sentence boundaries)
paragraph (Same behaviour as current 'line' chunk)

The first chunk is called 'naturalword' because 'word' is already in use.
Renaming the current 'word' chunk to 'token' to free up 'word' is not an
option for backward compatibility. We are also limited by the current
parser which doesn't allow us to use the form:

put natural word 1 of this is a string of words

'naturalword' is the clearest internal suggestion at the moment and we'd
love to get the input from community members if there is an even clearer
option.

Warm regards and thank you for your input.

Ben




___
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


A useful command

2014-03-11 Thread Bob Sneidar
Hi all. 

I wanted to share what may be a useful command for filling in data and setting 
controls on a card. This assumes you have an array whose key names “match” 
control names with the following rules:

Fields you want filled must begin with “fld”
Checkboxes you want hilited must begin with “btn” and the value must be true or 
false
Menu style buttons you want to set must begin with “mnu” and the value must be 
one of the choices for the menu
Radio button groups must begin with “rdo” and the value must be one of the 
button names in the group
Datagrids you want populated can be named as you please, and the value must be 
an encoded array

For instance a field named “fldCustomerName” will be populated with the value 
in key theData[“customername”]. A field simply named “customername” will be 
ignored. I use this convention because this is how I distinguish positively the 
fields I want populated and the ones I want to leave alone. Also, it’s how I 
determine the method for populating the control. 

Since I use sqlYoga a BUNCH, the data I return from query calls is an numbered 
array of arrays representing the returned records. Since I sometimes store 
whole data grid arrays in SQL, I have to encode them first, hence the need to 
arrayEncode them first. If I pass a single array record from the numbered array 
I get from sqlYoga queries, this command will populate any form that uses this 
naming convention. 

However, you can build your own array and it will work fine. 

I hope you like it. DISCLAIMER: I have not completely debugged it yet, I just 
wrote it so use with caution. 

Bob



on populate theData
   if theData is not an array then exit populate
   put the keys of theData into theKeyList
   
   repeat for each line theKey in theKeyList
  put fld  theKey into theFieldName
  put btn  theKey into theButtonName
  put mnu  theKey into theMenuName
  put rdo  theKey into theRadioName
  put theKey into theDGName
  
  if there is a field theFieldName then
 put theData [theKey] into field theFieldName
 next repeat
  end if
  
  if there is a button theButtonName and the style of button theButtonName 
is checkbox then
 set the hilite of button theButtonName to theData [theKey]
 next repeat
  end if
  
  if there is a button theMenuName then
 put lineOffset(theData [theKey], the text of button theMenuName) into 
theFoundLine
 set the menuHistory of button theMenuName to theFoundLine
 next repeat
  end if
  
  if there is a group theRdoName then
 set the hilitedButtonName of group theRdoName to theData [theKey]
 next repeat
  end if
  
  if there is a group theDGName then
 try
put arrayDecode(theData [theKey]) into theDGData
set the dgData of group theDGName to theDGData
 catch theError
 end try
  end if
  
   end repeat
end populate


___
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