Re: Update on Android and OpenGL in Froyo

2011-12-26 Thread Andre Garzia
Jacque,

Thank you very much for the heads up. Do you know if we can set minimum
version on the Android Market? For games, the software renderer might not
be enough. It may be better not to allow software on 2.2.1 then allow it
and have bad performance.

Cheers
andre


On Mon, Dec 26, 2011 at 4:27 AM, J. Landman Gay jac...@hyperactivesw.comwrote:

 Just a heads-up to those developing for Android. I've been trying to solve
 an issue on my 2.2.1 tablet for some time. When I set dynamic rendering to
 use OpenGL, my app launches to a black screen and hangs indefinitely. It is
 always repeatable.

 I'm grateful to Ralph DiMola who offered to help test. He's running
 Android 2.2.1 on his phone, and had exactly the same result, so it looks
 like a problem with Froyo. Several people had run my app with no problems,
 but everyone else was on 2.3 or 3.x. I'll let RR know so they can work on a
 fix.

 In the mean time, if you are developing for Android and using the new
 rendering features, be aware that if you set rendering to use OpenGL it may
 fail on devices running Froyo 2.2.1 (and maybe below.) Software rendering
 works fine, though a bit slower, so a work-around is to check the system
 version and if it's below 2.3, use software rendering.

 The last I heard, about 30% of the Android population was still on Froyo,
 so failure in a released app could have repercussions. It would be best to
 use the work-around if you need to release soon.

 --
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Thanks to Scott Rossi

2011-12-26 Thread Richard Gaskin

Roger Eller wrote:


I think this is the newsletter you seek.

http://www.runrev.com/newsletter/december/issue125/
http://www.runrev.com/newsletter/december/issue125/newsletter3.php


Thanks for the links.

Unfortunately, those going directly to the newsletter index at 
http://runrev.com/developers/resources/newsletters/ won't be able to 
find them, as that page only has links up to October, and none of the 
more recent newsletters are linked there.


Is this an opportunity for RevIgniter to help make a CMS that's less 
work to keep current than whatever RunRev is currently using?


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

___
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: Thanks to Scott Rossi

2011-12-26 Thread Andre Garzia
On Mon, Dec 26, 2011 at 1:23 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 Is this an opportunity for RevIgniter to help make a CMS that's less work
 to keep current than whatever RunRev is currently using?


I support this idea! It is time for RunRev to use LiveCodeServer in more
places in its own website.



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: OT: Decrypting PHP preg_replace Strings

2011-12-26 Thread Richard Gaskin

Sivakatirswami wrote:


We have hackers on our web server getting in thru one Domain... I think
there is a whole in WordPress.

...

I can't wait until move our site over to RevIgniter; I think it will be
much more secure!


Well, at least with injection attacks from buffer overruns, according to 
Dr. Raney the LC engine is far more secure than most alternatives:

http://www.mail-archive.com/metacard@lists.runrev.com/msg02659.html

I've been giving this subject a lot of thought recently, since a friend 
of mine had a site that was compromised using a similar exposure in 
Drupal.  The Drupal folks have since closed that particular hole, but 
this raises two key points:


1. If you're using any third-party CMS, you really need to be prepared 
to stay on top of updates.  A powerful CMS is also a complex one, and as 
complexity grows the range of potential entry points grows along with it.


2. If you write your own CMS, it may be helpful to change some coding 
habits to write more defensively.


Here's one example of this latter point:

For many years I've been in the habit of using put url... to get local 
file data, but if a system provides any way in which the name of the 
file being read is affected by inputs from the browser, it can be 
possible for that local URL reference to be a remote URL to some 
nefarious site.


So now, when writing CGIs I take the time to use 
open.../read.../close... instead.


While it takes a few more lines to write, it obviates the possibility 
that such code can be misused to inject remote URLs.


Of course even better is to monitor incoming params to eliminate the use 
of undesirable remote URLs, and that should be done too.


But as a system grows you may add features down the road which open up 
such possibilities, and if you've adopted defensive coding habits up 
front the implications are not so severe.


So at a minimum, these days when writing CGIs I make an effort to:

1. Never use put url... for local file access

2. Carefully error-check incoming params to avoid unwanted data

What other practices might we consider to make our CGIs more secure?

For example, SQL injection is a common vulnerability, and PHP provides a 
function to sanitize data going into the DB.  Any of you have a similar 
LiveCode function to sanitize data?


--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv

___
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: Decrypting PHP preg_replace Strings

2011-12-26 Thread Andre Garzia
On Mon, Dec 26, 2011 at 1:40 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 For example, SQL injection is a common vulnerability, and PHP provides a
 function to sanitize data going into the DB.  Any of you have a similar
 LiveCode function to sanitize data?


For some years, I've requested the exposure of mysql_real_escape_string()
function from dbmysql database driver. The function is already there in the
libraries that LiveCode is linked to but it is not exposed to us. This
function correctly escapes a string so that the content can't be used for
injection.

http://quality.runrev.com/show_bug.cgi?id=9932

You guys can vote for the enhancement here. This would benefit
LiveCodeServer, Desktop and Mobile.

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


Keeping stacks on-screen

2011-12-26 Thread Richmond

Here's a fairly Quick-n-Dirty script which will
do the magic if pasted into the stack script
of any stack that is going wandering:

on moveStack
   put the short name of this stack into THSTK
if the left of stack THSTK  (item 1 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the top of stack THSTK  (item 2 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the right of stack THSTK  (item 3 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the bottom of stack THSTK  (item 4 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
end moveStack

on preOpenStack
   put the short name of this stack into THSTK
if the left of stack THSTK  (item 1 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the top of stack THSTK  (item 2 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the right of stack THSTK  (item 3 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the bottom of stack THSTK  (item 4 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
end preOpenStack


Not rocket science, but it does the trick.

Richmond.

___
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: Update on Android and OpenGL in Froyo

2011-12-26 Thread J. Landman Gay

On 12/26/11 9:13 AM, Andre Garzia wrote:

Jacque,

Thank you very much for the heads up. Do you know if we can set minimum
version on the Android Market? For games, the software renderer might not
be enough. It may be better not to allow software on 2.2.1 then allow it
and have bad performance.


Yes, you can specify in the Android Manifest a minimum version and also 
which features the device must have to be compatible (i.e., cameras, 
GPS, etc.). If the user doesn't have a compatible device, the market 
won't even list your app when they search or browse.


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


Smooth change in size of a stack

2011-12-26 Thread Pete
What is the technique for making a change in stack height  a smooth
transition?  Not a very good descriptions I guess but as an example, I'm
looking at what happens in the Tools palette when you go back and forth
between the various tabs.

Thanks,


-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Update on Android and OpenGL in Froyo

2011-12-26 Thread Andre Garzia
On Mon, Dec 26, 2011 at 3:26 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 Yes, you can specify in the Android Manifest a minimum version and also
 which features the device must have to be compatible (i.e., cameras, GPS,
 etc.). If the user doesn't have a compatible device, the market won't even
 list your app when they search or browse.



Thanks! I feel safer now!

=)



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with button icon images

2011-12-26 Thread Pete
HI Jacque,
Just one more follow up to this.  When the standalone is built, does it
include all the images in the library or just the ones that are referenced
in the application?  The library I created has around 700 icons in it and I
only use perhaps a dozen or so in any one application.
Thank,

On Sat, Dec 24, 2011 at 10:02 AM, J. Landman Gay
jac...@hyperactivesw.comwrote:

 On 12/24/11 11:56 AM, Pete wrote:

 Thanks Jacque.  When I use the library, I use the Place Reference button
 to
 put a button on whatever card I'm working on, preconfigured to refer to
 the
 image as its icon.  Are you saying that those images won't show up when I
 build a standalone?


 No, they'll show up fine if they are placed. If you use them as icons, be
 sure to use the placed image's ID. It's just a convenient way to keep
 images somewhere besides on disk, but the behavior after placement is
 identical.


 --
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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


Crashing Ubuntu 11.10 with LC 4.5

2011-12-26 Thread Richmond

I suppose I had better start with a confession:

Having been in dependency hell for about 2 months I have installed 
UBUNTU 11.10 on my main machine
and am running Unity 2D on it. If one uses Avant Window Navigator one 
can very nearly avoid all the
bumf that comes along with Unity. Still fairly cheesed-off with Unity, 
GNOME 3 and the fact that there has been no consideration for those who 
like GNOME 2 (after all, why not just keep it in the repositiories as an 
option?).


Now, re my last post about keeping LC windows on-screen:

having posted the script that I made first of all, I decided that 
putting the stack slap-bang, dead-centre
everytime it strayed slightly off-screen was pretty awful, so I changed 
the code to this:


on moveStack
   put the short name of this stack into THSTK
if the left of stack THSTK  (item 1 of the screenRect) then
  set the left of stack THSTK to (item 1 of the screenRect)
   end if

snip

end moveStack

and when I dragged my stack it froze the Ubuntu 11.10 interface 
completely, disabled the mouse
and so forth; the only way out of this was either to jump on the button 
on the front of the computer
or yank the power cable out from the back: neither what one might choose 
in an ideal situation.


I don't have a desperate urge to try this out on either my PPC macMini 
or the Windows XP running in a Virtual Box setup; however, I do wonder 
whether the same sort of thing would happen.


___
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: Keeping stacks on-screen

2011-12-26 Thread Colin Holgate
These first two entries should be  and not . Might explain your other problem 
too.


On Dec 26, 2011, at 12:10 PM, Richmond wrote:

 on moveStack
   put the short name of this stack into THSTK
if the left of stack THSTK  (item 1 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the top of stack THSTK  (item 2 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if

___
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: Decrypting PHP preg_replace Strings

2011-12-26 Thread Mark Wieder
Jacque-

Sunday, December 25, 2011, 10:43:29 PM, you wrote:

 My hosting provider, JaguarPC, just released this notice four days ago.
 Sounds like a similar thing.

I upgraded my on-rev Wordpress installation to 3.3 last week. No
problems with the upgrade, so I recommend it.

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


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


Re: Keeping stacks on-screen

2011-12-26 Thread Richmond

On 12/26/2011 07:55 PM, Colin Holgate wrote:

These first two entries should be  and not.


You're right there.


Might explain your other problem too.


On Dec 26, 2011, at 12:10 PM, Richmond wrote:


on moveStack
   put the short name of this stack into THSTK
if the left of stack THSTK  (item 1 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if
   if the top of stack THSTK  (item 2 of the screenRect) then
  set loc of stack THSTK to the screenLoc
   end if

___
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: OT: Decrypting PHP preg_replace Strings

2011-12-26 Thread Pierre Sahores

Le 26 déc. 2011 à 16:40, Richard Gaskin a écrit :

 Sivakatirswami wrote:
 
 We have hackers on our web server getting in thru one Domain... I think
 there is a whole in WordPress.
 ...
 I can't wait until move our site over to RevIgniter; I think it will be
 much more secure!
 
   Any of you have a similar LiveCode function to sanitize data?

Example code out of the LC-server powered widestep.fr saas eCMS and vertical 
market web apps semantic driven generator :

1.- The HTTP POST requests sanitizer

 function start_somelivecode_lib   
if $_server[http_user_agent] is in livecode (macos),livecode 
 (win32),livecode (ios) and somedomainnamecomesthere is 
 $_SERVER[HTTP_HOST] then
   
   ### active sub-domain retriever : start ###
   
   put yourdatabasetype into DbTarget ; put thedatabasename into DbName
   put thedatabaseuser into DbUser ; put thedatabasepwd into DBPasswd
   
   repeat for each key k in $_POST
  put k  return after PostIn
   end repeat
   put trim(PostIn) into PostIn
   
   if somepostkey1= is char 1 to length(somepostkey1=) of PostIn or 
 somepostkey2= is char 1 to length(somepostkey2=) of PostIn or 
 somepostkey3= is char 1 to length(somepostkey3=) of PostIn
   then put specialervicestablename into CustEditors
   else if somepostkey4= is in PostIn then
   
  set itemdel to 
  put trim(char 8 to -1 of item -1 of Postin) into 
 aspecialmatchboxvalue # Constante 1 #
  put item 1 to -2 of Postin into Postin
  
  different related file:// server-side service paths come there
  
 different related db tables linkers come there
   
   end if
   
   ### active sub-domain retriever : end ###
   
else return pseudo404()
 
 ...

2.- The undisclosed HTTP GET requests sanitizer code follow there

3.- The server-side incoming requests controller :

 function pseudo404
if $_server[http_user_agent] is in livecode (macos),livecode 
 (win32),livecode (ios) then
   then return unsuitable credentials===unsuitable credentials
   else return HTMLHEADTITLEERROR: File Not 
 Found/TITLE/HEADBODYH1File Not Found/H1/BODY/HTML
 end pseudo404
 
 
 function somelivecode_lib_main_ctl
if $_server[http_user_agent] is in livecode (macos),livecode 
 (win32),livecode (ios),livecode (android) then
   
   put trim(PostIn) into PostIn
   get char 1 to -1+offset(=,PostIn) of PostIn
   
   if it is  and char 1 to -1+offset(=,encel(PostIn)) of encel(PostIn) 
 is someknownkey1 then put pgSQL_directCall(encel(PostIn)) # credit
   else if it is someknownkey2 then put someknownkey2(PostIn)
   else if it is someknownkey3 then put someknownkey3(PostIn)
  ...
   else if it is someknownkeyN then putsomeknownkeyN(PostIn)
   else put pseudo404()
   
else put pseudo404()
 end somelivecode_lib_main_ctl

4.- The undisclosed authentication dedicated sanitizer follow there

...

Comment1 : Any incoming request need to be accepted by those different kind of 
controllers to be targeted to the authentication one. If something don't match, 
the server app goes just to sleep after sending the pseudo404 response to the 
unwanted request attempt (with, optionally, blacklisting features, caching, 
etc...).

Comment2 : this code sanitize RIA clients requests ; the code don't need to be 
very different to match non AJAX web clients requests and AJAX web clients one 
but it need to be anywhere ;-)

HTH,

 
 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
 
 ___
 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: Point at which speaking is stopped?

2011-12-26 Thread FlexibleLearning
I do not believe this is available, nor can I think of a reliable way to
determine the stop point. Unless the 'reading' is converted to an audio file
(which probably does not suit your purposes or you would be already
implementing one) and the use of callbacks is implemented.

You may have to apply the selectedText and rely on the User's judgement.

Hugh Senior
FLCo



James Hurley wrote:

If one executes a revStopSpeach, is it possible to learn the point
in the text where the speaking was stopped?

Jim


___
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: Point at which speaking is stopped?

2011-12-26 Thread Mike Bonner
The only way I can think of is to speak individual words rather than a
block of text. This way you can cycle through words, each with its own
revspeak and can monitor where in the text you are at every moment.

This also obviates the need for a stop. Just quit sending words to
revspeak. Since revspeak will overrun itself you will also need to check
revIsSpeaking() to determine when the next word should be sent.

On Mon, Dec 26, 2011 at 11:53 AM, FlexibleLearning 
ad...@flexiblelearning.com wrote:

 I do not believe this is available, nor can I think of a reliable way to
 determine the stop point. Unless the 'reading' is converted to an audio
 file
 (which probably does not suit your purposes or you would be already
 implementing one) and the use of callbacks is implemented.

 You may have to apply the selectedText and rely on the User's judgement.

 Hugh Senior
 FLCo



 James Hurley wrote:

 If one executes a revStopSpeach, is it possible to learn the point
 in the text where the speaking was stopped?

 Jim


 ___
 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: Point at which speaking is stopped?

2011-12-26 Thread Roger Eller
On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote:

 The only way I can think of is to speak individual words rather than a
 block of text. This way you can cycle through words, each with its own
 revspeak and can monitor where in the text you are at every moment.


That's a good idea, but it may cause the speech to sound 'even' less
natural.  Maybe speak a sentence at a time, then if the user pauses, resume
speaking at the beginning of the last sentence.

˜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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-26 Thread Mark Wieder
Richmond-

Monday, December 26, 2011, 9:49:39 AM, you wrote:

 Still fairly cheesed-off with Unity, GNOME 3 and the fact that there
 has been no consideration for those who like GNOME 2 (after all, why
 not just keep it in the repositiories as an option?).

I spent about two weeks with Gnome 3 on my system, then gave up. I
backed everything up and installed the Fedora Core 16 xfce spin and
have been pretty happy with it since. You *do* have your root and home
partitions separate, right?

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


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


Re: Point at which speaking is stopped?

2011-12-26 Thread Mike Bonner
Yeah, word by word its horrible. Sentence by sentence is cool, or even
check for several things. Read from sentence start to either period, comma,
exclamation, question mark, or end of line. (though if revspeak is smart
enough to know that comma indicates a pause then ignore commas.)

On Mon, Dec 26, 2011 at 12:27 PM, Roger Eller
roger.e.el...@sealedair.comwrote:

 On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote:

  The only way I can think of is to speak individual words rather than a
  block of text. This way you can cycle through words, each with its own
  revspeak and can monitor where in the text you are at every moment.


 That's a good idea, but it may cause the speech to sound 'even' less
 natural.  Maybe speak a sentence at a time, then if the user pauses, resume
 speaking at the beginning of the last sentence.

 漏oger
 ___
 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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-26 Thread Richmond

On 12/26/2011 09:35 PM, Mark Wieder wrote:

Richmond-

Monday, December 26, 2011, 9:49:39 AM, you wrote:


Still fairly cheesed-off with Unity, GNOME 3 and the fact that there
has been no consideration for those who like GNOME 2 (after all, why
not just keep it in the repositiories as an option?).

I spent about two weeks with Gnome 3 on my system, then gave up. I
backed everything up and installed the Fedora Core 16 xfce spin and
have been pretty happy with it since. You *do* have your root and home
partitions separate, right?


Yup.






___
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: Smooth change in size of a stack

2011-12-26 Thread Marty Knapp

Hey Pete,
Eric Chatonet had a stack named Modifying Card Dimensions that  showed 
how to do that (I thought) but in trying it just now on LC 5 it doesn't 
seem to work. And I noticed that his www.SoSmartSoftware.com web site is 
no longer up (sadly, he passed away a few years ago). I have the stack 
if you'd like to see it and maybe you could figure out why it's not working.


Marty Knapp

What is the technique for making a change in stack height  a smooth
transition?  Not a very good descriptions I guess but as an example, I'm
looking at what happens in the Tools palette when you go back and forth
between the various tabs.

Thanks,





___
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: Point at which speaking is stopped?

2011-12-26 Thread Mike Bonner
Yep, in simplest form its not to bad.  I put a bunch of text into a field
then to read it, set the itemdelimter to .  put the field text into a
variable and replaced ?  with ?.  same with !  replaced with !.  (to
ensure we still retain punctuation tone changes)

So the following script placed in a button will read from field 1. Clicking
the button again pauses, Reading picks up where it left off.

local tReading, tCurrLine, tTotalLines,tText
on mouseUp
   if tReading is empty then put false into tReading
   put not tReading into tReading
   set the label of me to Reading:   tReading
   startLooping
end mouseUp

command startLooping
   set the linedelimiter to .
   if tReading then
  if tCurrLine is empty then
 put field 1 into tText
 replace ?  with ?.  in tText
 replace !  with !.  in tText
 put the number of lines in tText into tTotalLines
 put 1 into tCurrLine
  end if

  if not revIsSpeaking() then
 revspeak line tCurrLine of tText
 if tCurrLine = tTotalLines then
put false into tReading
put empty into tCurrLine
 else
add 1 to tCurrLine
 end if
  end if
  set the label of me to Reading:   tReading
  send startLooping to me in 20 milliseconds
   end if
end startLooping

On Mon, Dec 26, 2011 at 12:51 PM, Mike Bonner bonnm...@gmail.com wrote:

 Yeah, word by word its horrible. Sentence by sentence is cool, or even
 check for several things. Read from sentence start to either period, comma,
 exclamation, question mark, or end of line. (though if revspeak is smart
 enough to know that comma indicates a pause then ignore commas.)


 On Mon, Dec 26, 2011 at 12:27 PM, Roger Eller roger.e.el...@sealedair.com
  wrote:

 On Mon, Dec 26, 2011 at 2:11 PM, Mike Bonner wrote:

  The only way I can think of is to speak individual words rather than a
  block of text. This way you can cycle through words, each with its own
  revspeak and can monitor where in the text you are at every moment.


 That's a good idea, but it may cause the speech to sound 'even' less
 natural.  Maybe speak a sentence at a time, then if the user pauses,
 resume
 speaking at the beginning of the last sentence.

 漏oger
 ___
 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: Smooth change in size of a stack

2011-12-26 Thread Pete
Thanks Marty.  I haven't moved to 5.0 yet (seems like too many niggling
problems) so I'd love to get the stack.  Could you send it to my email?
Pete

On Mon, Dec 26, 2011 at 12:08 PM, Marty Knapp martykn...@comcast.netwrote:

 Hey Pete,
 Eric Chatonet had a stack named Modifying Card Dimensions that  showed
 how to do that (I thought) but in trying it just now on LC 5 it doesn't
 seem to work. And I noticed that his www.SoSmartSoftware.com web site is
 no longer up (sadly, he passed away a few years ago). I have the stack if
 you'd like to see it and maybe you could figure out why it's not working.

 Marty Knapp

  What is the technique for making a change in stack height  a smooth
 transition?  Not a very good descriptions I guess but as an example, I'm
 looking at what happens in the Tools palette when you go back and forth
 between the various tabs.

 Thanks,




 __**_
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-26 Thread Andre Garzia
On Mon, Dec 26, 2011 at 5:35 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 You *do* have your root and home
 partitions separate, right?


I don't but I have OCD level rsync between the machines... I really
should place home in another partition, the only time I do this is with
freebsd.



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Crashing Ubuntu 11.10 with LC 4.5

2011-12-26 Thread Peter Alcibiades
Stay with Ubuntu for now, but install fluxbox and see if it still happens. 
At least you'll know if its Ubuntu or Gnome3.

Once you have got used to Fluxbox, its astonishing how little use you have
for a window manager, desktop, all that bloat.  I preferr flux to openbox
mainly because the virtual desktop function is easier and quicker, but
either one is quick and minimal and stable and keeps out of the way. I agree
with Mark about Xfce, its the closest thing to Gnome2.  Thunar is a very
nice, very simple file manager.  xfe is also quite nice.

Gnome seems to have totally lost its way.  Funnily enough KDE in the latest
incarnation seems to be getting back to KDE 3.5, and that was quite the
equal of Gnome2   The more things change

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Crashing-Ubuntu-11-10-with-LC-4-5-tp4235217p4235548.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: Trouble with button icon images

2011-12-26 Thread J. Landman Gay

On 12/26/11 11:35 AM, Pete wrote:

HI Jacque,
Just one more follow up to this.  When the standalone is built, does it
include all the images in the library or just the ones that are referenced
in the application?  The library I created has around 700 icons in it and I
only use perhaps a dozen or so in any one application.


I'm not sure how that would work, I always place the images so that the 
library isn't used at all. I suppose the easiest thing would be for the 
standalone builder to just include the whole library as a substack of 
your mainstack. Copying them individually would change the IDs of the 
images.


You could find out by building a small standalone with a button that 
uses a referenced icon, and whose script answers the names of the 
substacks. I'm a little curious myself what you'll find.


--
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: Point at which speaking is stopped?

2011-12-26 Thread Roger Eller
On Mon, Dec 26, 2011 at 3:21 PM, Mike Bonner wrote:

 The example isn't great, there are some issues with it but its close at
 least.

  On Mon, Dec 26, 2011 at 1:09 PM, Mike Bonner wrote:

  Yep, in simplest form its not to bad.  I put a bunch of text into a field
  then to read it, set the itemdelimter to .  put the field text into a
  variable and replaced ?  with ?.  same with !  replaced with !. 
 (to
  ensure we still retain punctuation tone changes)
 
  So the following script placed in a button will read from field 1.
  Clicking the button again pauses, Reading picks up where it left off.
 
  local tReading, tCurrLine, tTotalLines,tText
  on mouseUp
 if tReading is empty then put false into tReading
 put not tReading into tReading
 set the label of me to Reading:   tReading
 startLooping
  end mouseUp
 
  command startLooping
 set the linedelimiter to .
 if tReading then
if tCurrLine is empty then
   put field 1 into tText
   replace ?  with ?.  in tText
   replace !  with !.  in tText
   put the number of lines in tText into tTotalLines
   put 1 into tCurrLine
end if
 
if not revIsSpeaking() then
   revspeak line tCurrLine of tText
   if tCurrLine = tTotalLines then
  put false into tReading
  put empty into tCurrLine
   else
  add 1 to tCurrLine
   end if
end if
set the label of me to Reading:   tReading
send startLooping to me in 20 milliseconds
 end if
  end startLooping


I like it!  I used your post as the text to read aloud via your script.
 With a little more code to add active sentence highlighting, and handle
other oddities in text like (? with ?.), it becomes a pretty nice
screen reader that you can follow along visually.  I could see this growing
into a great teaching aid for reading.

˜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


revOpenDatabase Problem

2011-12-26 Thread Pete
Using revOpenDatabase to open an sqlite database using a file that is not
an sqlite database return an integer as if the database was successfully
opened.  Any subsequent db accesses fail of course but I wonder why
revOpenDatabase doesn't return an error?


-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: revOpenDatabase Problem

2011-12-26 Thread Mike Bonner
My guess is that it doesn't check for a valid schema/format but that it is
only establishing a file handle which is successful. Then it should fail
with an error on actual attempt to use.

On Mon, Dec 26, 2011 at 2:33 PM, Pete p...@mollysrevenge.com wrote:

 Using revOpenDatabase to open an sqlite database using a file that is not
 an sqlite database return an integer as if the database was successfully
 opened.  Any subsequent db accesses fail of course but I wonder why
 revOpenDatabase doesn't return an error?


 --
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Smooth change in size of a stack

2011-12-26 Thread Marty Knapp
OK - sent a bit ago as an email attachment. Let me know if you didn't 
get it, I'll post it somewhere that you can download it.


Marty

Thanks Marty.  I haven't moved to 5.0 yet (seems like too many niggling
problems) so I'd love to get the stack.  Could you send it to my email?
Pete

On Mon, Dec 26, 2011 at 12:08 PM, Marty Knappmartykn...@comcast.netwrote:


Hey Pete,
Eric Chatonet had a stack named Modifying Card Dimensions that  showed
how to do that (I thought) but in trying it just now on LC 5 it doesn't
seem to work. And I noticed that his www.SoSmartSoftware.com web site is
no longer up (sadly, he passed away a few years ago). I have the stack if
you'd like to see it and maybe you could figure out why it's not working.

Marty Knapp

  What is the technique for making a change in stack height  a smooth

transition?  Not a very good descriptions I guess but as an example, I'm
looking at what happens in the Tools palette when you go back and forth
between the various tabs.

Thanks,




__**_
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-livecodehttp://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: revOpenDatabase Problem

2011-12-26 Thread Pete
I think that's probably true.  I'm trying to figure out how to to tell if a
real sqlite database was opened.  The first access to the db fails but the
error is Undefined SQLite error which is not very specific!

This is in an app where the user can select an sqlite db so I'm at the
mercy of what they choose.  I did think about filtering the valid
extensions for the ask file dialog but it's my understanding that an sqlite
db can have any extension.  I also tried calling revDatabaseType  but that
returns SQLITE even if it's not an sqlite database.

Pete

On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner bonnm...@gmail.com wrote:

 My guess is that it doesn't check for a valid schema/format but that it is
 only establishing a file handle which is successful. Then it should fail
 with an error on actual attempt to use.

 On Mon, Dec 26, 2011 at 2:33 PM, Pete p...@mollysrevenge.com wrote:

  Using revOpenDatabase to open an sqlite database using a file that is not
  an sqlite database return an integer as if the database was successfully
  opened.  Any subsequent db accesses fail of course but I wonder why
  revOpenDatabase doesn't return an error?
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Smooth change in size of a stack

2011-12-26 Thread Pete
Got it Marty, thanks. I'll check it out in the next couple of hours.
Pete

On Mon, Dec 26, 2011 at 1:56 PM, Marty Knapp martykn...@comcast.net wrote:

 OK - sent a bit ago as an email attachment. Let me know if you didn't get
 it, I'll post it somewhere that you can download it.

 Marty

 Thanks Marty.  I haven't moved to 5.0 yet (seems like too many niggling
 problems) so I'd love to get the stack.  Could you send it to my email?
 Pete

 On Mon, Dec 26, 2011 at 12:08 PM, Marty Knappmartykn...@comcast.net**
 wrote:

  Hey Pete,
 Eric Chatonet had a stack named Modifying Card Dimensions that  showed
 how to do that (I thought) but in trying it just now on LC 5 it doesn't
 seem to work. And I noticed that his www.SoSmartSoftware.com web site is
 no longer up (sadly, he passed away a few years ago). I have the stack if
 you'd like to see it and maybe you could figure out why it's not working.

 Marty Knapp

  What is the technique for making a change in stack height  a smooth

 transition?  Not a very good descriptions I guess but as an example, I'm
 looking at what happens in the Tools palette when you go back and forth
 between the various tabs.

 Thanks,



  ___

 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-livecodehttp://lists.runrev.com/**mailman/listinfo/use-livecode
 **http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: revOpenDatabase Problem

2011-12-26 Thread Mike Bonner
Hmm. don't have time to test it right this sec, but isn't an sqlite file
pretty much a regular old text file? If so, it might be possible to open
for read, read the first however much and check the file for validity.
(even if its binary, surely there is a way to determine if its really an
sqlite file) Would have to look up the sqlite file format but it seems like
it should be possible.

On Mon, Dec 26, 2011 at 3:00 PM, Pete p...@mollysrevenge.com wrote:

 I think that's probably true.  I'm trying to figure out how to to tell if a
 real sqlite database was opened.  The first access to the db fails but the
 error is Undefined SQLite error which is not very specific!

 This is in an app where the user can select an sqlite db so I'm at the
 mercy of what they choose.  I did think about filtering the valid
 extensions for the ask file dialog but it's my understanding that an sqlite
 db can have any extension.  I also tried calling revDatabaseType  but that
 returns SQLITE even if it's not an sqlite database.

 Pete

 On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner bonnm...@gmail.com wrote:

  My guess is that it doesn't check for a valid schema/format but that it
 is
  only establishing a file handle which is successful. Then it should fail
  with an error on actual attempt to use.
 
  On Mon, Dec 26, 2011 at 2:33 PM, Pete p...@mollysrevenge.com wrote:
 
   Using revOpenDatabase to open an sqlite database using a file that is
 not
   an sqlite database return an integer as if the database was
 successfully
   opened.  Any subsequent db accesses fail of course but I wonder why
   revOpenDatabase doesn't return an error?
  
  
   --
   Pete
   Molly's Revenge http://www.mollysrevenge.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
 
 


 --
 Pete
 Molly's Revenge http://www.mollysrevenge.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: revOpenDatabase Problem

2011-12-26 Thread Andre Garzia
Pete,

Try the following query:

SELECT name FROM sqlite_master
WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%'
UNION ALL
SELECT name FROM sqlite_temp_master
WHERE type IN ('table','view')
ORDER BY 1

It should return the tables in the database, if there are no tables,
then, there is something wrong.

Cheers
andre
___
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: revOpenDatabase Problem

2011-12-26 Thread Mike Bonner
Here, look here under 1.2 database header.
http://www.sqlite.org/fileformat2.html   Looks like the first 16 bytes of
the header are what you are looking for which are of course the first 16
bytes of the file.  Should be quick and easy to grab those bytes and
determine if the file is sqlite or not.

On Mon, Dec 26, 2011 at 3:05 PM, Mike Bonner bonnm...@gmail.com wrote:

 Hmm. don't have time to test it right this sec, but isn't an sqlite file
 pretty much a regular old text file? If so, it might be possible to open
 for read, read the first however much and check the file for validity.
 (even if its binary, surely there is a way to determine if its really an
 sqlite file) Would have to look up the sqlite file format but it seems like
 it should be possible.


 On Mon, Dec 26, 2011 at 3:00 PM, Pete p...@mollysrevenge.com wrote:

 I think that's probably true.  I'm trying to figure out how to to tell if
 a
 real sqlite database was opened.  The first access to the db fails but the
 error is Undefined SQLite error which is not very specific!

 This is in an app where the user can select an sqlite db so I'm at the
 mercy of what they choose.  I did think about filtering the valid
 extensions for the ask file dialog but it's my understanding that an
 sqlite
 db can have any extension.  I also tried calling revDatabaseType  but that
 returns SQLITE even if it's not an sqlite database.

 Pete

 On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner bonnm...@gmail.com wrote:

  My guess is that it doesn't check for a valid schema/format but that it
 is
  only establishing a file handle which is successful. Then it should fail
  with an error on actual attempt to use.
 
  On Mon, Dec 26, 2011 at 2:33 PM, Pete p...@mollysrevenge.com wrote:
 
   Using revOpenDatabase to open an sqlite database using a file that is
 not
   an sqlite database return an integer as if the database was
 successfully
   opened.  Any subsequent db accesses fail of course but I wonder why
   revOpenDatabase doesn't return an error?
  
  
   --
   Pete
   Molly's Revenge http://www.mollysrevenge.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
 
 


 --
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Smooth change in size of a stack

2011-12-26 Thread Pete
Hi Marty,
I think this is working OK after I got past  a misunderstanding on my part.
 I had expeced the current card dimensions to change if I changed the value
in the height and width fields but I think those values are just used by
the changeWindowSize handler when a card is opened.

Anyway I think this does exactly what I want to do, at least in 4.6.4 so
thanks for the help.

Pete

On Mon, Dec 26, 2011 at 1:56 PM, Marty Knapp martykn...@comcast.net wrote:

 OK - sent a bit ago as an email attachment. Let me know if you didn't get
 it, I'll post it somewhere that you can download it.

 Marty

 Thanks Marty.  I haven't moved to 5.0 yet (seems like too many niggling
 problems) so I'd love to get the stack.  Could you send it to my email?
 Pete

 On Mon, Dec 26, 2011 at 12:08 PM, Marty Knappmartykn...@comcast.net**
 wrote:

  Hey Pete,
 Eric Chatonet had a stack named Modifying Card Dimensions that  showed
 how to do that (I thought) but in trying it just now on LC 5 it doesn't
 seem to work. And I noticed that his www.SoSmartSoftware.com web site is
 no longer up (sadly, he passed away a few years ago). I have the stack if
 you'd like to see it and maybe you could figure out why it's not working.

 Marty Knapp

  What is the technique for making a change in stack height  a smooth

 transition?  Not a very good descriptions I guess but as an example, I'm
 looking at what happens in the Tools palette when you go back and forth
 between the various tabs.

 Thanks,



  ___

 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-livecodehttp://lists.runrev.com/**mailman/listinfo/use-livecode
 **http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: revOpenDatabase Problem

2011-12-26 Thread Pete
Thanks Andre and Mike.

Mike - thanks for the link.  You're right, that works just fine.  First 16
characters must be SQLite format 3 plus a nul if it's an SQLite file.  LC
probably ought to be checking for that but that's OK.

On Mon, Dec 26, 2011 at 2:09 PM, Mike Bonner bonnm...@gmail.com wrote:

 Here, look here under 1.2 database header.
 http://www.sqlite.org/fileformat2.html   Looks like the first 16 bytes of
 the header are what you are looking for which are of course the first 16
 bytes of the file.  Should be quick and easy to grab those bytes and
 determine if the file is sqlite or not.

 On Mon, Dec 26, 2011 at 3:05 PM, Mike Bonner bonnm...@gmail.com wrote:

  Hmm. don't have time to test it right this sec, but isn't an sqlite file
  pretty much a regular old text file? If so, it might be possible to open
  for read, read the first however much and check the file for validity.
  (even if its binary, surely there is a way to determine if its really an
  sqlite file) Would have to look up the sqlite file format but it seems
 like
  it should be possible.
 
 
  On Mon, Dec 26, 2011 at 3:00 PM, Pete p...@mollysrevenge.com wrote:
 
  I think that's probably true.  I'm trying to figure out how to to tell
 if
  a
  real sqlite database was opened.  The first access to the db fails but
 the
  error is Undefined SQLite error which is not very specific!
 
  This is in an app where the user can select an sqlite db so I'm at the
  mercy of what they choose.  I did think about filtering the valid
  extensions for the ask file dialog but it's my understanding that an
  sqlite
  db can have any extension.  I also tried calling revDatabaseType  but
 that
  returns SQLITE even if it's not an sqlite database.
 
  Pete
 
  On Mon, Dec 26, 2011 at 1:42 PM, Mike Bonner bonnm...@gmail.com
 wrote:
 
   My guess is that it doesn't check for a valid schema/format but that
 it
  is
   only establishing a file handle which is successful. Then it should
 fail
   with an error on actual attempt to use.
  
   On Mon, Dec 26, 2011 at 2:33 PM, Pete p...@mollysrevenge.com wrote:
  
Using revOpenDatabase to open an sqlite database using a file that
 is
  not
an sqlite database return an integer as if the database was
  successfully
opened.  Any subsequent db accesses fail of course but I wonder why
revOpenDatabase doesn't return an error?
   
   
--
Pete
Molly's Revenge http://www.mollysrevenge.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
  
  
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Point at which speaking is stopped?

2011-12-26 Thread Jim Hurley
Mike,

Ingenious. Works like a charm. Thank you.

There will be problems, as I have discovered in an other app I am working on in 
parsing sentences. The period has multiple uses besides a sentence delimiter, 
for example in abbreviations and in decimal numbers. These can be parsed out 
however.

Thanks again, vert nice,

Jim Hurley


I have put my Text to Speech app up on the web:

go url http://jamesphurley.com/TextToSpeech.livecode;




 
 
 Mike Bonner wrote:
 
 Yep, in simplest form its not to bad.  I put a bunch of text into a field
 then to read it, set the itemdelimter to .  put the field text into a
 variable and replaced ?  with ?.  same with !  replaced with !.  (to
 ensure we still retain punctuation tone changes)
 
 So the following script placed in a button will read from field 1. Clicking
 the button again pauses, Reading picks up where it left off.
 
 local tReading, tCurrLine, tTotalLines,tText
 on mouseUp
if tReading is empty then put false into tReading
put not tReading into tReading
set the label of me to Reading:   tReading
startLooping
 end mouseUp
 
 command startLooping
set the linedelimiter to .
if tReading then
   if tCurrLine is empty then
  put field 1 into tText
  replace ?  with ?.  in tText
  replace !  with !.  in tText
  put the number of lines in tText into tTotalLines
  put 1 into tCurrLine
   end if
 
   if not revIsSpeaking() then
  revspeak line tCurrLine of tText
  if tCurrLine = tTotalLines then
 put false into tReading
 put empty into tCurrLine
  else
 add 1 to tCurrLine
  end if
   end if
   set the label of me to Reading:   tReading
   send startLooping to me in 20 milliseconds
end if
 end startLooping

___
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: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-26 Thread Jim Hurley
Roger,

It is even better for proofreading.

I have put my Text to Speech up on the web. Run this in the message box.

go url http://www.jamesphurley.com/TextToSpeech.rev;

Jim Hurley

 
 Roger Eller wrote:
 
 I like it!  I used your post as the text to read aloud via your script.
  With a little more code to add active sentence highlighting, and handle
 other oddities in text like (? with ?.), it becomes a pretty nice
 screen reader that you can follow along visually.  I could see this growing
 into a great teaching aid for reading.
 
 ˜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: Point at which speaking is stopped?

2011-12-26 Thread Mike Bonner
Might watch the code I used to toggle on and off (assuming you used that
part) Not sure that portion is thought out very well, and as you say things
will crop up, but glad its working well enough as a starting point that you
can tweak to fit your needs.

Hope your new year is a good one!

On Mon, Dec 26, 2011 at 4:41 PM, Jim Hurley jhurley0...@sbcglobal.netwrote:

 Mike,

 Ingenious. Works like a charm. Thank you.

 There will be problems, as I have discovered in an other app I am working
 on in parsing sentences. The period has multiple uses besides a sentence
 delimiter, for example in abbreviations and in decimal numbers. These can
 be parsed out however.

 Thanks again, vert nice,

 Jim Hurley


 I have put my Text to Speech app up on the web:

 go url http://jamesphurley.com/TextToSpeech.livecode;




 
 
  Mike Bonner wrote:
 
  Yep, in simplest form its not to bad.  I put a bunch of text into a field
  then to read it, set the itemdelimter to .  put the field text into a
  variable and replaced ?  with ?.  same with !  replaced with !. 
 (to
  ensure we still retain punctuation tone changes)
 
  So the following script placed in a button will read from field 1.
 Clicking
  the button again pauses, Reading picks up where it left off.
 
  local tReading, tCurrLine, tTotalLines,tText
  on mouseUp
 if tReading is empty then put false into tReading
 put not tReading into tReading
 set the label of me to Reading:   tReading
 startLooping
  end mouseUp
 
  command startLooping
 set the linedelimiter to .
 if tReading then
if tCurrLine is empty then
   put field 1 into tText
   replace ?  with ?.  in tText
   replace !  with !.  in tText
   put the number of lines in tText into tTotalLines
   put 1 into tCurrLine
end if
 
if not revIsSpeaking() then
   revspeak line tCurrLine of tText
   if tCurrLine = tTotalLines then
  put false into tReading
  put empty into tCurrLine
   else
  add 1 to tCurrLine
   end if
end if
set the label of me to Reading:   tReading
send startLooping to me in 20 milliseconds
 end if
  end startLooping

 ___
 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


Strange Datagrid Behavior

2011-12-26 Thread Pete
I have two datagrids on a card.  When the user clicks on an option menu on
the card, the datagrids are populated with information in two different
formats, at least that's what's supposed to happen.

I do this by setting the dgText of each datagrid to the value of a
variable.  When I set the dgText of the first datagrid (stepping through in
debug), I see the correct data show up.  When I set the dgText of the
second datagrid, it appears in the first datagrid and the second datagrid
remains empty!!  The datagrids have different names.

I have checked the row template property to make sure it has not somehow
been set to the wrong datagrid but they are both correct.  I have checked
the value of the dgContorl property of each datagrid and it is correct also.

I will say that these datagrids have have a somewhat checkered past.  They
originally existed on a different card than they reside on now, and all
worked fine back in those good old days.  For application design reasons, I
copied them (and a few other controls) from the original card to a
different card and put them all into a group.  That's when the problems
started.

Any ideas on how I might track down this strange behavior?

-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: 5.0.2 startup woes

2011-12-26 Thread Fred Moyer

On Dec 26, 2011, at 1:00 PM, use-livecode-requ...@lists.runrev.com wrote:

 I reported this to support. Did you too ? Else, please do it ;-)

Yes, I have reported it. Thanks Pierre

___
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