Re: Advantages of LC as high level language--examples

2010-11-29 Thread Medard
Devin Asay  wrote:

> In trying to explain to students how high level languages such as LiveCode
> can make development faster, I would like to give concrete examples of how
> single-line LC commands actually execute dozens of C++ commands in the
> engine. For example, a simple one-liner like:
> 
>   show field "demo" with visual effect dissolve
> 
> Must have lots of lines of compiled C code behind it. Does anyone have any
> concrete examples? I may end up directing this to the mother ship, but
> thought I'd try here first.

I read something like this:

=
During a round of recruiting at my last job at a tech startup in London
I got to experience first hand just how terrible most applicants are.
I interviewed a load of candidates who all claimed 5years + industry
experience so I was expecting great things. Unfortunately my incredibly
taxing interview question proved too much for them all ...
"In any language you like (with no attention paid to getting every last
semi-colon in the right place) write a function that reverses a string."
By the afternoon adding -
"Do not cheat and call your languages' equivalent of str_reverse."
No one managed it and I learned why I needed to phone screen people from
then on. :(
=

I wondered myself whether it could simple with Revolution^W LiveCode
transcript^W xtalk*...

So I wrote a little demo stack to perform that task as an exercise
-- the readers of the french-speaking list already know that, by I think
it may respond to your request :-)

I proposed that to the list, and soon some co-lista answered with better
solutions!

The winner (IMHO) was a function including a loop with a for each
statement:

===
repeat for each char myChar in tWord
  put myChar before tinvWord
end repeat
===

*not kidding: what is the name of the language in LC?

-- 
Medard



___
use-livecode mailing list
use-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: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Richmond

On 11/30/2010 01:45 AM, Tom B. wrote:

I had one of those LC Macs. LC stood for "low cost" -- a passing fancy
among Apple marketers. We called it the pizza box Mac as the CPU case
was about the dimensions of  a large pizza to go.
-- Tom Bodine


"low cost" see what I mean: not always going to be interpreted positively.

On Mon, Nov 29, 2010 at 2:49 PM, Richmond  wrote:

1. I used to have an Apple LC 470 (still have, come to think of it).

___
use-livecode mailing list
use-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: Making a tool palette

2010-11-29 Thread Marty Knapp

Thanks Scott (and Jim for the example),

This looks excellent - I will tinker with this for a while and see what 
I can learn.


Marty

Hi Marty:

You might want to take a look at a drag-and-drop implementation I built some
time ago for dragging any kind of control to a target stack.

In your message box:
go url "http://www.tactilemedia.com/site_files/downloads/TMdragndrop.rev";

When the stack launches, start dragging any object, and the drop window will
magically appear.  Note that if you release an object outside the drop
stack, it will snap back to the source stack.

Qualification: I've never come to grips with LC's built-in drag and drop
commands, I've always relied on a variation of this scripted solution which
is based on code originally written by the late Eric Chatonet.  I wanted
something more robust when it came to rendering the dragged objects, so I
modified his routine to handle dragged objects as translucent stacks based
on the originally clicked objects: images, groups, buttons, sliders, etc.
Everything is created/controlled by script, so it can be modified if
necessary.  Just saying, if you're looking to use LC's default drag and drop
commands, you should look elsewhere.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


Recently, Marty Knapp wrote:


Thanks Chipp and Jan,

I don't want to edit or replace the LC tool palette, just create
something similar for a project where I'm trying to imitate Visio where
you drag symbols off a palette onto your worksheet. I would have half a
dozen different buttons that the user could drag onto a stack window
where the button would be created (perhaps from a template button).

Has anyone done something similar that I could look at?

Thanks again,
Marty Knapp

Marty,

I might suggest you try and create a blank palette and then examine
the scripts of rev's tool palette before jumping into the deep end.
Modifying the IDE requires a deep understanding of how LCŒs IDE works,
and isn't recommended for those not well-versed in it's ways.

On Monday, November 29, 2010, Marty Knapp   wrote:

I want to make a tool palette very similar to the LC tool palette, that I
can drag a button off of and have it create on a stack. So I copied
revtools.rev to the desktop and changed its name there and tried to open it,
but of course LC wants to know what to do with the existing tool palette. I
did try closing that before opening my copy but got the same message. I want
to take a peek at the scripting to learn how to make my own - what should I
do, or does someone have another idea for me?

Thank you for any responses,
Marty Knapp



___
use-livecode mailing list
use-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: Making a tool palette

2010-11-29 Thread Jim Sims

On Nov 30, 2010, at 7:01 AM, Scott Rossi wrote:

> You might want to take a look at a drag-and-drop implementation I built some
> time ago for dragging any kind of control to a target stack.


Here's an example of using Scott's example (plus Eric of course, with minor 
bits of my own thrown in the mix) - plus some of Scott's incredible help with 
design. Scott has some really excellent sample stacks on his web site. The man 
has taste & talent.

It's from a search app I made a while ago.

http://ezpzapps.com/Clipa.mov

sims  [toying with video this week]






___
use-livecode mailing list
use-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: Making a tool palette

2010-11-29 Thread Scott Rossi
Hi Marty:

You might want to take a look at a drag-and-drop implementation I built some
time ago for dragging any kind of control to a target stack.

In your message box:
go url "http://www.tactilemedia.com/site_files/downloads/TMdragndrop.rev";

When the stack launches, start dragging any object, and the drop window will
magically appear.  Note that if you release an object outside the drop
stack, it will snap back to the source stack.

Qualification: I've never come to grips with LC's built-in drag and drop
commands, I've always relied on a variation of this scripted solution which
is based on code originally written by the late Eric Chatonet.  I wanted
something more robust when it came to rendering the dragged objects, so I
modified his routine to handle dragged objects as translucent stacks based
on the originally clicked objects: images, groups, buttons, sliders, etc.
Everything is created/controlled by script, so it can be modified if
necessary.  Just saying, if you're looking to use LC's default drag and drop
commands, you should look elsewhere.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design


Recently, Marty Knapp wrote:

> Thanks Chipp and Jan,
> 
> I don't want to edit or replace the LC tool palette, just create
> something similar for a project where I'm trying to imitate Visio where
> you drag symbols off a palette onto your worksheet. I would have half a
> dozen different buttons that the user could drag onto a stack window
> where the button would be created (perhaps from a template button).
> 
> Has anyone done something similar that I could look at?
> 
> Thanks again,
> Marty Knapp
>> Marty,
>> 
>> I might suggest you try and create a blank palette and then examine
>> the scripts of rev's tool palette before jumping into the deep end.
>> Modifying the IDE requires a deep understanding of how LCŒs IDE works,
>> and isn't recommended for those not well-versed in it's ways.
>> 
>> On Monday, November 29, 2010, Marty Knapp  wrote:
>>> I want to make a tool palette very similar to the LC tool palette, that I
>>> can drag a button off of and have it create on a stack. So I copied
>>> revtools.rev to the desktop and changed its name there and tried to open it,
>>> but of course LC wants to know what to do with the existing tool palette. I
>>> did try closing that before opening my copy but got the same message. I want
>>> to take a peek at the scripting to learn how to make my own - what should I
>>> do, or does someone have another idea for me?
>>> 
>>> Thank you for any responses,
>>> Marty Knapp
>>> 
> 
> ___
> use-livecode mailing list
> use-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: Making a tool palette

2010-11-29 Thread Marty Knapp

Thanks Chipp and Jan,

I don't want to edit or replace the LC tool palette, just create 
something similar for a project where I'm trying to imitate Visio where 
you drag symbols off a palette onto your worksheet. I would have half a 
dozen different buttons that the user could drag onto a stack window 
where the button would be created (perhaps from a template button).


Has anyone done something similar that I could look at?

Thanks again,
Marty Knapp

Marty,

I might suggest you try and create a blank palette and then examine
the scripts of rev's tool palette before jumping into the deep end.
Modifying the IDE requires a deep understanding of how LC‘s IDE works,
and isn't recommended for those not well-versed in it's ways.

On Monday, November 29, 2010, Marty Knapp  wrote:

I want to make a tool palette very similar to the LC tool palette, that I can 
drag a button off of and have it create on a stack. So I copied revtools.rev to 
the desktop and changed its name there and tried to open it, but of course LC 
wants to know what to do with the existing tool palette. I did try closing that 
before opening my copy but got the same message. I want to take a peek at the 
scripting to learn how to make my own - what should I do, or does someone have 
another idea for me?

Thank you for any responses,
Marty Knapp



___
use-livecode mailing list
use-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: RTF documents as templates

2010-11-29 Thread Jan Schenkel
--- On Mon, 11/29/10, Andrew Kluthe  wrote:
> 
> I have been trying to implement the methods described in
> revUp's articles on
> the subject. The trouble that I am having is that some of
> the
> [[Placeholders]] don't get changed at all. Some are
> replaced and some are
> left as placeholders.
> 
> I am getting so aggravated with not having a templatable
> reporting method
> for printing out Lease Contracts. The user needs to be able
> to customize the
> lease contract to fit their needs and my rev program fills
> out the variable
> data and spits it out as a pdf or word doc.
> 
> I've looked into other reporting engines and the closest
> thing I found to
> what I need is Docmosis and it only interfaces with java. I
> wish it
> interfaced through a command line or that I had Java
> knowledge so I could
> build one.
> 

Hi Andrew,

I had a quick look at Docmosis - looks pretty cool, but a tad complicated to 
implement. Not only the syntax for the template writer, but also the 
architecture with converters seemed a bit involved (and I have been around the 
block in Java so to speak).

Back to the [[Placeholder]] issue, I can think of a few reasons this would fail:
- typos are obviously a problem (and I've made more than my fair share of those 
so no need to feel frustrated)
- older versions of Word may mangle parts of the RTF unless you 'Save as' to a 
new RTF file
- your variable names still have to abide the rules, and be available in the 
context where you call the 'merge' function

Can you give us a concrete example where it fails?
- the RTF template file
- the script itself

I'm sure we can help you figure out a solution.

Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



  

___
use-livecode mailing list
use-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: Question about Pasting or copying cds from one stack to another

2010-11-29 Thread Jan Schenkel
--- On Mon, 11/29/10, Joe Lewis Wilkins  wrote:
> On Nov 29, 2010, at 3:17 PM, Bob Sneidar wrote:
> 
> > I have thought for a long time that Menus in
> Rev/LiveCode should actually be a special kind of object
> unto themselves, not a group of objects set as a background.
> However, consider Windows, where menus are a part of the
> window itself, and you will begin to see why it almost has
> to work this way. 
> > 
> > Bob
> > 
> 
> Thanks for the thought Bob. I'm such
> a Mac person that I neglected to think of that; also, as
> part of that myopia I dislike having the menus on the
> Window's real-estate. Apple got it right. M$ did not. IMHO!
> 
> Joe Wilkins
> 

Well, having the menu at the top of the window brings it closer to the data to 
which it applies (definitely in a world where 27in+ screens are available) - 
but having the menu at the top of the screen makes it easier to 'hit' (by 
kicking the mouse with your fingers)
Can't remember the source, but I'm sure Richard Gaskin posted it here :-)

That being said, the middle ground for LiveCode would be to take them out of 
the card, and insert a separate 'menubar' area that is painted in the Mac 
menubar, or above the regular card area on other platforms.
And then a 'toolbar' area that looks unified on a Mac, etc. :-)

But I do understand the team has larger fish to fry in the grand scheme of 
development platforms. What they have now works (quirks included) so the focus 
is on things that aren't yet possible (like iOS).

Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)




  

___
use-livecode mailing list
use-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: Limiting data entry in fields

2010-11-29 Thread Jan Schenkel
--- On Mon, 11/29/10, Monte Goulding  wrote:
> Hi Charles
> 
> I'm a little confused about your requirements. Did you want
> to allow decimals or not? Here's some code copied from one
> of my behavior scripts. You only need to modify the one
> function to impose whatever data entry limits you like:
> 
> on keydown pKey
>    if checkText(getNewText(pKey)) then 
>       setNewText pKey
>    else 
>       beep 1
>    end if
> end keyDown
> 
> on pasteKey
>    if checkText(getNewText(the
> clipboardData["text"])) then 
>       paste
>    else
>       beep 1
>    end if
> end pasteKey
> 
> # This is the only function you need to change to vary the
> acceptable data entry
> private function checkText pText
>    return pText is an integer
> end checkText
> 
> private function getNewText pNewChars
>    local tEndChar,tStartChar,tText
>    put word 2 of the selectedchunk of me
> into tStartChar
>    put word 4 of the selectedchunk of me
> into tEndChar
>    put the text of me into tText
>    put pNewChars into char tStartChar to
> tEndChar of tText
>    return tText
> end getNewText
> 
> private command setNewText pNewChars
>    local tEndChar,tStartChar,tText
>    put word 2 of the selectedchunk of me
> into tStartChar
>    put word 4 of the selectedchunk of me
> into tEndChar
>    put pNewChars into char tStartChar to
> tEndChar of me
> end setNewText
> 
> Cheers
> 
> Monte
> 

Don't forget dragDrop :-)

Seriously, this is an old question that keeps coming back, and a prime 
candidate for either an engine-level field "mask", or a community effort to 
write a behavior script that handles the corner cases and is readily available 
for download.

A bit of searching turned up bits and pieces as far back as 2002 in my 
archives, but the combination of these two emails seems to do the trick:


(best to follow these links, as it looks like the post-rename archives are 
slightly misaligned)

While it does a bit too much for Charles' use case (formatting number for 
display) the underlying logic is sound. Thanks to Ken Ray for writing the RegEx 
back in 2002 to split a number into a sign, integer and decimal part.


Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



  

___
use-livecode mailing list
use-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: Making a tool palette

2010-11-29 Thread Jan Schenkel
--- On Mon, 11/29/10, Marty Knapp  wrote:
> I want to make a tool palette very
> similar to the LC tool palette, that I can drag a button off
> of and have it create on a stack. So I copied revtools.rev
> to the desktop and changed its name there and tried to open
> it, but of course LC wants to know what to do with the
> existing tool palette. I did try closing that before opening
> my copy but got the same message. I want to take a peek at
> the scripting to learn how to make my own - what should I
> do, or does someone have another idea for me?
> 
> Thank you for any responses,
> Marty Knapp
> 

Hi Marty,

There's the physical filename of a stack (on disk) and the logical name of the 
stack (a property) - when you rename a .rev or .livecode file, its internal 
name remains. Which means that opening the copy inside the LiveCode IDE will 
pop up a warning.
While you could use the MetaCard IDE to take apart revtools.rev, wouldn't it be 
simpler to dissect it inside the LiveCode IDE itself? Turn on 'LiveCode UI 
elements in lists' from the 'View' menu, open the Application browser, hunt 
down the RevTools stack, and take a peek at its innards.

Jan Schenkel.
=
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



  

___
use-livecode mailing list
use-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: Making a tool palette

2010-11-29 Thread Chipp Walters
Marty,

I might suggest you try and create a blank palette and then examine
the scripts of rev's tool palette before jumping into the deep end.
Modifying the IDE requires a deep understanding of how LC‘s IDE works,
and isn't recommended for those not well-versed in it's ways.

On Monday, November 29, 2010, Marty Knapp  wrote:
> I want to make a tool palette very similar to the LC tool palette, that I can 
> drag a button off of and have it create on a stack. So I copied revtools.rev 
> to the desktop and changed its name there and tried to open it, but of course 
> LC wants to know what to do with the existing tool palette. I did try closing 
> that before opening my copy but got the same message. I want to take a peek 
> at the scripting to learn how to make my own - what should I do, or does 
> someone have another idea for me?
>
> Thank you for any responses,
> Marty Knapp
>
> ___
> use-livecode mailing list
> use-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


Making a tool palette

2010-11-29 Thread Marty Knapp
I want to make a tool palette very similar to the LC tool palette, that 
I can drag a button off of and have it create on a stack. So I copied 
revtools.rev to the desktop and changed its name there and tried to open 
it, but of course LC wants to know what to do with the existing tool 
palette. I did try closing that before opening my copy but got the same 
message. I want to take a peek at the scripting to learn how to make my 
own - what should I do, or does someone have another idea for me?


Thank you for any responses,
Marty Knapp

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


hello again...

2010-11-29 Thread Alex Shaw

Hi

I don't seem to be receiving emails from the following mailing lists 
anymore..


use-livecode@lists.runrev.com
livecode-...@lists.runrev.com

Last I received was on the 22nd Nov. Have they been discontinued?

regards
alex

___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread jonathandlynch
Nice description!

I like the way rev, with its stacks, substacks, cards, and groups - and message 
path - compels me to modularize my code.

Sent from my Verizon Wireless BlackBerry

-Original Message-
From: Chipp Walters 
Sender: use-livecode-boun...@lists.runrev.com
Date: Mon, 29 Nov 2010 20:28:59 
To: How to use LiveCode
Reply-To: How to use LiveCode 
Subject: Re: Advantages of LC as high level language--examples

Jeff,

Very passionate and thought provoking.

I do believe syntax and the number of coded lines does enter into the equation. 
Your one-liner, while concise, has little readability for most of us. I suppose 
once one learns the correct syntax, it makes more sense. Even so, having to 
correctly enter the exact correct multi- lined syntax code for creating an 
alias of a file on a desktop in a C program, requires more skill than using the 
"create alias" command. 

You are correct, ROI is a prominent factor at the heart of the discussion 
comparing projects and small Apps created in LC versus C. In fact, one could 
make the argument LC is more perfect for iOS development than Obj-C because of 
the small nature and limited function of most iOS apps. Most of us know there 
are boundaries to what can be accomplished in LC so I'm thinking a distinction 
between LC and compiled languages would focus on application speed and scope 
with an emphasis on ROI and iterative methodologies and paradigms including the 
development of quick delivery prototypes.

LiveCode changes not only ROI, but it actually changes a users behavior and 
expectation of what can be accomplished-- or  put another way allows for the 
"enabling" of a function which may have been impossible before. Let me explain. 

I used to have a garage but always parked my car outside because it was too 
much work to get out of the car, manually open the garage door, get back in the 
car, drive it into the garage, get back out of it and close the garage door. My 
new garage door opener device changed my behavior, because it crossed the 
threshold of my inconvenience and "enabled" me to park my car inside my garage 
with the effort of two button clicks. 

I once built a charting application in a single day. All of us have our own 
versions of this sort of "app in one day" experience. I discovered for this 
client, it wasn't about ROI, but actually more about crossing a convenience 
threshold to automatically create charts versus having to manually create them, 
which he never did. Had I taken the time to scope the app, write the proposal 
and budget, it never would have happened. Now all his presentations use charts 
built in a LC app.

Years ago, I used to talk about "Mr Green Jeans" apps. Mr. Green Jeans was a 
sidekick to Captain Kangaroo (poplar children's show before Sesame Street) and 
he had these overalls with a ton of pockets which had an infinite amount of 
stuff in them. These small apps (now called widgets and gadgets) are single 
function apps which are exceedingly good at just one thing. They weren't meant 
to be large installed Mb hungry suites, but instead more like QuickDex (old Mac 
app) or my own ButtonGadget. IMO, LiveCode is perfect for these sort of 
applications.

Of course we all also have larger and grander scoped apps created in LC, but 
with them, we often spend more time refactoring code and working around 
limitations, which make it seem more like traditional programming.
___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread Chipp Walters
Jeff,

Very passionate and thought provoking.

I do believe syntax and the number of coded lines does enter into the equation. 
Your one-liner, while concise, has little readability for most of us. I suppose 
once one learns the correct syntax, it makes more sense. Even so, having to 
correctly enter the exact correct multi- lined syntax code for creating an 
alias of a file on a desktop in a C program, requires more skill than using the 
"create alias" command. 

You are correct, ROI is a prominent factor at the heart of the discussion 
comparing projects and small Apps created in LC versus C. In fact, one could 
make the argument LC is more perfect for iOS development than Obj-C because of 
the small nature and limited function of most iOS apps. Most of us know there 
are boundaries to what can be accomplished in LC so I'm thinking a distinction 
between LC and compiled languages would focus on application speed and scope 
with an emphasis on ROI and iterative methodologies and paradigms including the 
development of quick delivery prototypes.

LiveCode changes not only ROI, but it actually changes a users behavior and 
expectation of what can be accomplished-- or  put another way allows for the 
"enabling" of a function which may have been impossible before. Let me explain. 

I used to have a garage but always parked my car outside because it was too 
much work to get out of the car, manually open the garage door, get back in the 
car, drive it into the garage, get back out of it and close the garage door. My 
new garage door opener device changed my behavior, because it crossed the 
threshold of my inconvenience and "enabled" me to park my car inside my garage 
with the effort of two button clicks. 

I once built a charting application in a single day. All of us have our own 
versions of this sort of "app in one day" experience. I discovered for this 
client, it wasn't about ROI, but actually more about crossing a convenience 
threshold to automatically create charts versus having to manually create them, 
which he never did. Had I taken the time to scope the app, write the proposal 
and budget, it never would have happened. Now all his presentations use charts 
built in a LC app.

Years ago, I used to talk about "Mr Green Jeans" apps. Mr. Green Jeans was a 
sidekick to Captain Kangaroo (poplar children's show before Sesame Street) and 
he had these overalls with a ton of pockets which had an infinite amount of 
stuff in them. These small apps (now called widgets and gadgets) are single 
function apps which are exceedingly good at just one thing. They weren't meant 
to be large installed Mb hungry suites, but instead more like QuickDex (old Mac 
app) or my own ButtonGadget. IMO, LiveCode is perfect for these sort of 
applications.

Of course we all also have larger and grander scoped apps created in LC, but 
with them, we often spend more time refactoring code and working around 
limitations, which make it seem more like traditional programming.
___
use-livecode mailing list
use-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: file uploads and progress monitoring on on-rev(reposted )

2010-11-29 Thread Martin Koob

Andre

Thanks again for the answer.   Doing that in Javascript is beyond me so I
think I will settle for no upload progress for now and work on another part
of the site I am working on.  I am learning how on-rev and browsers work
together as I work on this project so  your explanations are really helpful.

 Thanks.

Martin
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/file-uploads-and-progress-monitoring-on-on-rev-reposted-tp3063680p3064728.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


variable persistence in on-rev pages

2010-11-29 Thread Martin Koob

I am trying to figure out how  on an on-rev site to allow a user to view a
file a limited number of times.

I have an on-rev page that when it loads it retrieves a number value from a
data base (ie. 10) and stores it in a variable tCount. 

On the page is a form and if the form is submitted the variable tCount is
decremented by one and then stored back  in the database.

The next time I submit the form it should retrieve the (now decremented)
variable from the database. 

The goal is to have a system where eventually the user will run out their
counter and not be able to submit the form.


However it seems that the value is not always retrieved from the database
and the value of the variable tCount in the script is retained.  For example
if the last value of tCount is 5 and I change the value in the database (ie
increase it from 5 to 10) by editing the database directly the next time the
page loads as a result of submitting the form it retains the last value  5
and not the value it should be retrieving from the database, 10.

If I wait a while and try again sometimes it will start using the correct
value from the database.   I have tried clearing the cache and that does not
consistently work.


Is this an issue with the browser caching the page? Is the results of the
SQL query being cached and used?   Is there a way to ensure that the value
retreived from the database is used?


Thanks for any help.

Martin



-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/variable-persistence-in-on-rev-pages-tp3064723p3064723.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: SQLite Locking

2010-11-29 Thread Peter Haworth
I'm kinda doing that.  In some cases, the db update consists of  
several insert operations which would leave the db in an inconsistant  
state if any of them failed before they all completed.  So after   
getting all the input, I lock the db, do all the insertions, then  
unlock it.  If any problems occur during the insertions, then I roll  
back the db to the state it was in before any of the insertions  
happened and let the user know what went wrong.


I'm confused by what  the article says.  The description of the BEGIN  
TRANSACTION statement in SQlite clearly states that  other readers can  
continue reading but only one writer will be allowed, assuming the  
lock is of type IMMEDIATE.  Matter of fact, I verified that in my  
tests.  Maybe they are referring to an EXCLUSIVE lock, which locks out  
everyone until the lock is released.


I can't find any reference to a lock timeout interval anywhere in the  
SQLite documentation other than this article and another one that  
describes the C/C++ API.  I suspect the APIs implement the timeout  
stuff internally.


I think SQLite locking will work OK for me but it is pretty  
primitive.  There really needs to be the ability to locak a specific  
table of event specific rows within a table but I guess you gotta pay  
the big bucks to get that capability!


Pete Haworth

On Nov 29, 2010, at 4:00 PM, Bob Sneidar wrote:

I think the solution here is to wait until all user input is  
acquired, then do the lock/write/unlock in a single blocking call.  
The only thing that would hurt you here is a system lockup or  
disconnect during this very very brief moment of time. Unlikely, but  
possible.


I read this in a writeup on sqLite:

The "timeout" method

The "timeout" method is used to control how long the SQLite library  
will wait for locks to clear before giving up on a database  
transaction. The default timeout is 0 millisecond. (In other words,  
the default behavior is not to wait at all.)


The SQLite database allows multiple simultaneous readers or a single  
writer but not both. If any process is writing to the database no  
other process is allows to read or write. If any process is reading  
the database other processes are allowed to read but not write. The  
entire database shared a single lock.


When SQLite tries to open a database and finds that it is locked, it  
can optionally delay for a short while and try to open the file  
again. This process repeats until the query times out and SQLite  
returns a failure. The timeout is adjustable. It is set to 0 by  
default so that if the database is locked, the SQL statement fails  
immediately. But you can use the "timeout" method to change the  
timeout value to a positive number. For example:


db1 timeout 2000
The argument to the timeout method is the maximum number of  
milliseconds to wait for the lock to clear. So in the example above,  
the maximum delay would be 2 seconds.



The entire article can be found here:

http://www.sqlite.org/tclsqlite.html

Bob


On Nov 27, 2010, at 1:09 PM, Peter Haworth wrote:

For my application, this will work fine, although I do need to do  
further testing to make sure this all still works with users on  
different computers accessing the db on one of them.


My only concern is what might happen if someone got to the point  
where they had acquired a lock then went to lunch before the rest  
of the transaction completed.  I'm pretty sure all my transactions  
flow through without any user interaction after the lock is  
acquired but I need to check and put some sort of timeout in the  
code to detect that situation if necessary, release the lock and  
end the transaction.


In view of this, I plan to stick with SQLite for this app at  
least.  As always, it's horses for courses!


Pete Haworth



___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread Jeff Massung
On Mon, Nov 29, 2010 at 1:29 PM, Devin Asay  wrote:

> Hello all,
>
> In trying to explain to students how high level languages such as LiveCode
> can make development faster, I would like to give concrete examples of how
> single-line LC commands actually execute dozens of C++ commands in the
> engine. For example, a simple one-liner like:
>
>show field "demo" with visual effect dissolve
>
> Must have lots of lines of compiled C code behind it.
>


Sorry to be blunt, but Lines of Code is one of the most horrible metrics for
defining how productive someone can be in a language. By that rational APL
is one of the most productive languages of all time, and I dare anyone here
to actually use it. For example, here's the Sieve of Eratosthenes (finding
all prime numbers up to X) in APL:

(2=+⌿0=(⍳X)∘.|⍳X)/⍳X

That's worth at least 8-10 lines of code in LiveCode Script, but I can't
imagine anyone here would consider APL a more productive language.

Similarly, the example of the dissolve is equally poor. Keep in mind that
LiveCode doesn't give you the dissolve for free. There are many lines of
(probably C) code that implement that for you and call into QuickTime or
other libraries. And with LiveCode you only get one dissolve. If you'd like
it different, tough. So saying it's "one line of code" is a cop-out, and by
that rational, a C programmer could just download a rendering library that
does the same thing and do:

execute_dissolve();

And now they are just as productive as they would be (given that example) in
LiveCode. The same will be true of Jim's comments on
architectures/platforms, and Jacqueline's example of creating an alias.

So, now that's out of the way, let's examine why LiveCode *is* more
productive for many tasks than C or similarly derived languages... LiveCode
is exactly what it claims to be: Live. Being high-level is simply
[delicious] gravy.

Time-to-market is a major factor in ROI and being able to start taking the
second step in whatever your plan(s) may be. In my experience, the single
biggest factor in reducing TTM is being able to iterate on ideas extremely
fast without concern for what's necessarily "best" at the moment. After all,
90% of all code written will never see the end of the product. But what will
is the knowledge gained from trying it out and slowly making things better
and better.

What LiveCode allows someone to do is continually iterate and improve their
code in a living environment complete with data that doesn't go away every
time there's a bug that needs to be fixed. This puts LiveCode apps in the
interesting position of being constantly dog-fooded (
http://en.wikipedia.org/wiki/Eating_your_own_dog_food), and this will only
make the applications even better. During that period of discovery and
"knowledge gaining," there's no feeling of starting over, but rather just
continually improving what's already there.

I could go on, but I think I'm getting the point across.

Jeff M.
___
use-livecode mailing list
use-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: Limiting data entry in fields

2010-11-29 Thread Monte Goulding
Hi Charles

I'm a little confused about your requirements. Did you want to allow decimals 
or not? Here's some code copied from one of my behavior scripts. You only need 
to modify the one function to impose whatever data entry limits you like:

on keydown pKey
   if checkText(getNewText(pKey)) then 
  setNewText pKey
   else 
  beep 1
   end if
end keyDown

on pasteKey
   if checkText(getNewText(the clipboardData["text"])) then 
  paste
   else
  beep 1
   end if
end pasteKey

# This is the only function you need to change to vary the acceptable data entry
private function checkText pText
   return pText is an integer
end checkText

private function getNewText pNewChars
   local tEndChar,tStartChar,tText
   put word 2 of the selectedchunk of me into tStartChar
   put word 4 of the selectedchunk of me into tEndChar
   put the text of me into tText
   put pNewChars into char tStartChar to tEndChar of tText
   return tText
end getNewText

private command setNewText pNewChars
   local tEndChar,tStartChar,tText
   put word 2 of the selectedchunk of me into tStartChar
   put word 4 of the selectedchunk of me into tEndChar
   put pNewChars into char tStartChar to tEndChar of me
end setNewText

Cheers

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


Can someone explain (image to graphic)

2010-11-29 Thread stgoldb...@aol.com
There are programs that will convert an image (such as a jpeg) to a graphic 
(vector).  For instance, see http://vectormagic.com/home.


Stephen Goldberg






 
___
use-livecode mailing list
use-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: Limiting data entry in fields

2010-11-29 Thread Bob Sneidar
I wonder if you can break it by typing really really fast?

Bob


On Nov 29, 2010, at 4:10 PM, charles61 wrote:

> 
> Jacqueline,
> 
> Thanks very much! Your script worked!
> 
> Charles Szasz
> csz...@mac.com
> 
> 
> 
> 
> On Nov 29, 2010, at 5:45 PM, J. Landman Gay [via Runtime Revolution] wrote:
> 
>> on keydown pKey 
>>  if (pKey is a number or pKey = ".") and len(me) < 3 
>>  then pass keydown 
>> end keydown 
> 
> 
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064670.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: Limiting data entry in fields

2010-11-29 Thread charles61

Jacqueline,

Thanks very much! Your script worked!

Charles Szasz
csz...@mac.com




On Nov 29, 2010, at 5:45 PM, J. Landman Gay [via Runtime Revolution] wrote:

> on keydown pKey 
>   if (pKey is a number or pKey = ".") and len(me) < 3 
>   then pass keydown 
> end keydown 


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064670.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: Limiting data entry in fields

2010-11-29 Thread charles61

Devin,

Just numbers - no decimal points.

Charles Szasz
csz...@mac.com




On Nov 29, 2010, at 6:09 PM, Devin Asay [via Runtime Revolution] wrote:

> On Nov 29, 2010, at 3:46 PM, charles61 wrote: 
> 
> > 
> > Devin, 
> > 
> > Thanks! I found it but I had to limit numbers with decimals. The numbers 
> > only script does not do that. 
> > 
> > Charles Szasz 
> > [hidden email] 
> 
> Ah, I misunderstood. I thought you meant that you wanted to disallow typing 
> in decimal points. Do you mean that you want to limit the length of numbers 
> including the dot? Or limit the number of places after the decimal point? 
> 
> Devin 
> 
> 
> Devin Asay 
> Humanities Technology and Research Support Center 
> Brigham Young University 
> 
> 
> ___ 
> use-livecode mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064618.html
> To unsubscribe from Limiting data entry in fields, click here.


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064666.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: SQLite Locking

2010-11-29 Thread Bob Sneidar
I think the solution here is to wait until all user input is acquired, then do 
the lock/write/unlock in a single blocking call. The only thing that would hurt 
you here is a system lockup or disconnect during this very very brief moment of 
time. Unlikely, but possible. 

I read this in a writeup on sqLite: 

The "timeout" method

The "timeout" method is used to control how long the SQLite library will wait 
for locks to clear before giving up on a database transaction. The default 
timeout is 0 millisecond. (In other words, the default behavior is not to wait 
at all.)

The SQLite database allows multiple simultaneous readers or a single writer but 
not both. If any process is writing to the database no other process is allows 
to read or write. If any process is reading the database other processes are 
allowed to read but not write. The entire database shared a single lock.

When SQLite tries to open a database and finds that it is locked, it can 
optionally delay for a short while and try to open the file again. This process 
repeats until the query times out and SQLite returns a failure. The timeout is 
adjustable. It is set to 0 by default so that if the database is locked, the 
SQL statement fails immediately. But you can use the "timeout" method to change 
the timeout value to a positive number. For example:

db1 timeout 2000
The argument to the timeout method is the maximum number of milliseconds to 
wait for the lock to clear. So in the example above, the maximum delay would be 
2 seconds.


The entire article can be found here: 

http://www.sqlite.org/tclsqlite.html

Bob


On Nov 27, 2010, at 1:09 PM, Peter Haworth wrote:

> For my application, this will work fine, although I do need to do further 
> testing to make sure this all still works with users on different computers 
> accessing the db on one of them.
> 
> My only concern is what might happen if someone got to the point where they 
> had acquired a lock then went to lunch before the rest of the transaction 
> completed.  I'm pretty sure all my transactions flow through without any user 
> interaction after the lock is acquired but I need to check and put some sort 
> of timeout in the code to detect that situation if necessary, release the 
> lock and end the transaction.
> 
> In view of this, I plan to stick with SQLite for this app at least.  As 
> always, it's horses for courses!
> 
> Pete Haworth


___
use-livecode mailing list
use-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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Pierre Sahores
Andre,

Thanks for your posts. France-Culture has began to report what happens in Rio. 
Be careful.

Kind Regards,

Pierre


Le 29 nov. 2010 à 23:43, Jonathan Lynch a écrit :

> I agree with Andre that it is all about wise investments in human capital.
> 
> The details as to how to do that, though, are very challenging.
> 
> On Mon, Nov 29, 2010 at 5:31 PM, J. Landman Gay 
> wrote:
> 
>> I'm always glad to see you write, Andre, because it reassures me you are
>> okay.
>> 
>> CNN had a brief report on Rio two days ago, and our newspaper here has
>> started to do coverage. Yesterday there was a half-page article, which was
>> quite a lot here, considering we are complacent Americans and Brazil is a
>> foreign country. So at least it is getting some attention where I am in the
>> U.S.
>> 
>> 
>> --
>> 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
>> 
> 
> 
> 
> -- 
> Do all things with love
> ___
> use-livecode mailing list
> use-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 : (33) 6 03 95 77 70

www.wrds.com
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: Need fast way to obtain vertical coordinates of text run

2010-11-29 Thread Bob Sneidar
Oh yeah. FormattedHeight works also on a chunk of a field. That will save you a 
little bit of math. 

Bob


On Nov 27, 2010, at 9:31 AM, Jonathan Lynch wrote:

> Hi Richard,
> 
> I am pretty sure you can use the FormattedRect of a chunk of text to
> accomplish this.


___
use-livecode mailing list
use-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: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Tom B.
I had one of those LC Macs. LC stood for "low cost" -- a passing fancy
among Apple marketers. We called it the pizza box Mac as the CPU case
was about the dimensions of  a large pizza to go.
-- Tom Bodine

On Mon, Nov 29, 2010 at 2:49 PM, Richmond  wrote:
> 1. I used to have an Apple LC 470 (still have, come to think of it).

___
use-livecode mailing list
use-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: Need fast way to obtain vertical coordinates of text run

2010-11-29 Thread Bob Sneidar
I can see why the formattedHeight would not work. It takes into account line 
wraps as well as line breaks, and a variable or property cannot wrap text. 

Apart from putting the text in question into a hidden field of the exact 
dimensions, and then checking the formatted height of that, I don't see a way. 
That may cause serious performance issues. 

Bob


On Nov 27, 2010, at 8:23 AM, Richard Gaskin wrote:

> I need to know the vertical coordinates in pixels of the beginning and end 
> points for a chunk of text in a scrolling field.
> 
> I'm currently using the selectedLoc on the first and last char of the text 
> run, locking the screen and messages while I get that.
> 
> The problem is that I sometimes need to do this a thousand times in 
> succession before I can return control to the user, and this causes 
> significant delay.
> 
> Because the text contains runs of variable height, I can't rely on line 
> counts multiplied by the number of lines to the character in question.
> 
> And because the text may contain Unicode, I can't rely on the formattedText 
> for any of this either.
> 
> And it seems that the formattedHeight works great for the full field, but 
> cannot be used on chunks (I hope I misunderstand that, but I couldn't get any 
> such syntax to work).
> 
> And yes, the field resizes with the window, so I need to also recalculate on 
> resizeStack as well.
> 
> 
> I briefly experimented with the mouseChunk, hoping that I could set and then 
> restore the screenMouseLoc as needed, and while it sometimes works it really 
> screws up the pointer interaction, no matter how cleverly I try to hide the 
> cursor during that brief moment; and worse, the mouseChunk only returns a 
> value when the mouse is actually over text, and sometimes blank lines may be 
> there instead.
> 
> I'm hoping there's some magically fast way to get those measurements without 
> having to actually touch the field contents, which is apparently an 
> inherently slow action (relatively speaking).
> 
> Anyone here know of such magic?
> 
> --
> 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


___
use-livecode mailing list
use-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: Live LiveCode code event (with chatrev)

2010-11-29 Thread Bob Sneidar
I'm in Los Angeles, not San Francisco. What time would that be? ;-) 

But seriously, the SQL query GIU sounds fascinating! Will there be a way to DL 
this once it's done? I'd actually toss in a couple bucks on   PayPal just to 
see it. I play volleyball on Saturday mornings, and it's an addiction. 

Bob


On Nov 25, 2010, at 6:19 PM, Björnke von Gierke wrote:

> Hi all
> 
> I'll make a new foray into "the social"! On Saturday evening I'll code live 
> via web streaming. Everyone is invited to send me silly demands or questions 
> during that time. Or you can just laugh and point, your choice...
> 
> Silly demands are accepted on chatrev:
> http://bjoernke.com?target=chatrev
> or:
> go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev";
> 
> Pointing and laughing can be done on ustream (flash required):
> http://www.ustream.tv/channel/live-code
> 
> The event will start around 18:00 in Zurich, and last for at least 2 hours, 
> after that it'll continue until I get too bored. Planned is work on an irc 
> client, and a SQL-query creator GUI. Most likely there'll also be a give-away 
> or auction of some sorts. I'll be of course open to help requests for 
> livecode relevant questions!
> 
> Other Timezones: 
> 14:00 Buenos Aires
> 12:00 New York
> 9:00 in San Francisco
> 4:00 Sydney
> 
> Have Fun
> Bjoernke
> 
> 
> PS: this is not an official RunRev endorsed event, and I'm doing this only 
> for the laughs (promises of laughs void on planet earth)
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: LC Mobile iOS Upload Figured Out

2010-11-29 Thread Bob Sneidar
I used to get the same thing with graphics artists. They would import their 
assets right from the source, like a removable hard drive or a network share, 
without thinking what would happen when they took the project folder down to 
the service bureau to get film seps made. The next thing to happen would be I 
would get a call from the service bea. 

Eventually all good illustration apps developed a "preflight" method, to gather 
resources so this would not happen. Still, I think it's a good idea to teach 
people about resource management, from the start of the project to the final 
version, and on into backup and archive as a complete workflow of any project 
of this nature. 

Bob


On Nov 26, 2010, at 8:35 PM, Randy Hengst wrote:

> Hi All,
> 
> Thanks Colin for getting me to think of another thing to check. Short 
> story... all is well at the moment...
> 
> Less than short story
> 
> Well, the only two png images are the splash screen and app icon
> 
> I tried the app in the simulator before I built the deployment version 
> splash worked, icon worked, sounds worked
> 
> Well, apparently during one of my "clean up the desktop moments" I moved some 
> of the assets to a different folder don't know why that didn't mess 
> things up with the simulator but, when I open the package contents of the 
> mobile build I found several of the files to be listed as zero KB they 
> shouldn't have been. So, I reconnected the files and all went well with build 
> and sending to Apple.
> 
> take care,
> randy


___
use-livecode mailing list
use-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: Question about Pasting or copying cds from one stack to another

2010-11-29 Thread Joe Lewis Wilkins
Thanks for the thought Bob. I'm such a Mac person that I neglected to think of 
that; also, as part of that myopia I dislike having the menus on the Window's 
real-estate. Apple got it right. M$ did not. IMHO!

Joe Wilkins

On Nov 29, 2010, at 3:17 PM, Bob Sneidar wrote:

> I have thought for a long time that Menus in Rev/LiveCode should actually be 
> a special kind of object unto themselves, not a group of objects set as a 
> background. However, consider Windows, where menus are a part of the window 
> itself, and you will begin to see why it almost has to work this way. 
> 
> Bob
> 
> 
> On Nov 26, 2010, at 4:54 AM, Robert Brenstein wrote:
> 
>> On 25.11.2010 at 21:25 Uhr -0800 Joe Lewis Wilkins apparently wrote:
>>> Thanks Jacqi. It's been ages since I've worked with HC, but I question that 
>>> menus would have been in backgrounds. They would have been in stack scripts 
>>> the majority of the time. I think; although I can see how implementing 
>>> menus from background scripts might have been on some use.
>>> 
>>> BTW, I'm not eager to argue the point.  (smile)
>>> 
>>> Joe Wilkins
>> 
>> In HC, menus were not part of the card, so that was not an issue. In 
>> MC/Rev/LC, menus are implemented as a group of buttons, and as such, that 
>> group is on a card being copied, whence it, the group, is copied with the 
>> card. This is what Jacque meant. It may be confusing, particularly if the 
>> destination stack has its own menu group, but it is expected behavior.
>> 
>> As it was suggested, you just need to manually delete the menu group that 
>> was carried over and replace it with the one in the destination stack. Only 
>> you know what is correct. If you do the transfer by script, you can also 
>> script the deletion and placing of the correct menu group.
>> 
>> Robert


___
use-livecode mailing list
use-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: Question about Pasting or copying cds from one stack to another

2010-11-29 Thread Bob Sneidar
I have thought for a long time that Menus in Rev/LiveCode should actually be a 
special kind of object unto themselves, not a group of objects set as a 
background. However, consider Windows, where menus are a part of the window 
itself, and you will begin to see why it almost has to work this way. 

Bob


On Nov 26, 2010, at 4:54 AM, Robert Brenstein wrote:

> On 25.11.2010 at 21:25 Uhr -0800 Joe Lewis Wilkins apparently wrote:
>> Thanks Jacqi. It's been ages since I've worked with HC, but I question that 
>> menus would have been in backgrounds. They would have been in stack scripts 
>> the majority of the time. I think; although I can see how implementing menus 
>> from background scripts might have been on some use.
>> 
>> BTW, I'm not eager to argue the point.  (smile)
>> 
>> Joe Wilkins
> 
> In HC, menus were not part of the card, so that was not an issue. In 
> MC/Rev/LC, menus are implemented as a group of buttons, and as such, that 
> group is on a card being copied, whence it, the group, is copied with the 
> card. This is what Jacque meant. It may be confusing, particularly if the 
> destination stack has its own menu group, but it is expected behavior.
> 
> As it was suggested, you just need to manually delete the menu group that was 
> carried over and replace it with the one in the destination stack. Only you 
> know what is correct. If you do the transfer by script, you can also script 
> the deletion and placing of the correct menu group.
> 
> Robert
> 
> ___
> use-livecode mailing list
> use-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: Interlude [absolutlly off-topic] !!!

2010-11-29 Thread Bob Sneidar
Maybe that is how ancient people actually looked. ;-)

I wonder if that was something of a place for people to visit, like an art 
display underground, or if it had some kind of social or religious aspect?

Bob


On Nov 24, 2010, at 4:50 PM, J. Landman Gay wrote:

> On 11/24/10 3:49 PM, Pierre Sahores wrote:
>> 
> 
> Amazing, thank you. Beautiful.
> 
> I was struck by how artistic the animals were, but the human figures were so 
> primitive. We can't see ourselves, I guess.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Limiting data entry in fields

2010-11-29 Thread Devin Asay
On Nov 29, 2010, at 3:46 PM, charles61 wrote:

> 
> Devin,
> 
> Thanks! I found it but I had to limit numbers with decimals. The numbers only 
> script does not do that.
> 
> Charles Szasz
> csz...@mac.com

Ah, I misunderstood. I thought you meant that you wanted to disallow typing in 
decimal points. Do you mean that you want to limit the length of numbers 
including the dot? Or limit the number of places after the decimal point?

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: Limiting data entry in fields

2010-11-29 Thread charles61

Devin,

Thanks! I found it but I had to limit numbers with decimals. The numbers only 
script does not do that.

Charles Szasz
csz...@mac.com




On Nov 29, 2010, at 5:39 PM, Devin Asay [via Runtime Revolution] wrote:

> Charles, 
> 
> Did you see my earlier post? There are two examples in the LiveCode Resource 
> Center that describe exactly how to do this. 
> 
> See the LiveCode Resource Center (Help menu > Resource Center). Then look 
> under Sample Scripts > Text. There are two sections there that will help you, 
> one on limiting the number of characters and one on limiting input to only 
> numbers. 
> 
> Regards, 
> 
> Devin 
> 
> On Nov 29, 2010, at 3:27 PM, charles61 wrote: 
> 
> > 
> > Mike, 
> > 
> > I have not thought of using "not in". I did not use "1234567890" because it 
> > does not limit decimals. 
> > 
> > Charles Szasz 
> > [hidden email] 
> > 
> > 
> > 
> > 
> > On Nov 29, 2010, at 5:22 PM, Mike Bonner [via Runtime Revolution] wrote: 
> > 
> >> Is there a reason to use 'not in "1234567890"' rather than 'is a number' 
> >> just curious to know. 
> >> 
> >> On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <[hidden email]> wrote: 
> >> 
> >>> 
> >>> Inside of the field script put something like this: 
> >>> 
> >>> on keyDown pKey 
> >>> 
> >>> put the number of chars of me into sCount 
> >>> 
> >>> if sCount < 3 then 
> >>> 
> >>> if pKey is not in "1234567890" then 
> >>> 
> >>> pass keyDown 
> >>> 
> >>> end if 
> >>> 
> >>> end if 
> >>> end keyDown 
> >>> 
> >>> This should make it so that everytime a key is pressed in that field it 
> >>> counts how many characters it has, if it is less than 3 it checks to see 
> >>> if 
> >>> it is a number or in the allowed list, if so it passes that key. 
> >>> 
> >>> -- 
> >>> View this message in context: 
> >>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.html
> >>> Sent from the Revolution - User mailing list archive at Nabble.com. 
> >>> 
> >>> ___ 
> >>> use-livecode mailing list 
> >>> [hidden email] 
> >>> Please visit this url to subscribe, unsubscribe and manage your 
> >>> subscription preferences: 
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>> 
> >> ___ 
> >> use-livecode mailing list 
> >> [hidden email] 
> >> Please visit this url to subscribe, unsubscribe and manage your 
> >> subscription preferences: 
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >> 
> >> 
> >> View message @ 
> >> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064541.html
> >> To unsubscribe from Limiting data entry in fields, click here. 
> > 
> > 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064557.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > ___ 
> > use-livecode mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay 
> Humanities Technology and Research Support Center 
> Brigham Young University 
> 
> 
> ___ 
> use-livecode mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064579.html
> To unsubscribe from Limiting data entry in fields, click here.


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064589.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: Limiting data entry in fields

2010-11-29 Thread J. Landman Gay

On 11/29/10 4:27 PM, charles61 wrote:


Mike,

I have not thought of using "not in". I did not use "1234567890"
because it does not limit decimals.


I think it should be "is in" instead of "is not in". As written, it will 
allow any keys except numbers.


I'd do:

on keydown pKey
 if (pKey is a number or pKey = ".") and len(me) < 3
 then pass keydown
end keydown

You don't have to worry about carriage returns, they aren't trapped by 
keydown. Set the field's autotab to true if you want carriage returns to 
tab out of the field.


--
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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Jonathan Lynch
I agree with Andre that it is all about wise investments in human capital.

The details as to how to do that, though, are very challenging.

On Mon, Nov 29, 2010 at 5:31 PM, J. Landman Gay wrote:

> I'm always glad to see you write, Andre, because it reassures me you are
> okay.
>
> CNN had a brief report on Rio two days ago, and our newspaper here has
> started to do coverage. Yesterday there was a half-page article, which was
> quite a lot here, considering we are complacent Americans and Brazil is a
> foreign country. So at least it is getting some attention where I am in the
> U.S.
>
>
> --
> 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
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: Limiting data entry in fields

2010-11-29 Thread Devin Asay
Charles,

Did you see my earlier post? There are two examples in the LiveCode Resource 
Center that describe exactly how to do this.

See the LiveCode Resource Center (Help menu > Resource Center). Then look under 
Sample Scripts > Text. There are two sections there that will help you, one on 
limiting the number of characters and one on limiting input to only numbers.

Regards,

Devin

On Nov 29, 2010, at 3:27 PM, charles61 wrote:

> 
> Mike,
> 
> I have not thought of using "not in". I did not use "1234567890" because it 
> does not limit decimals.
> 
> Charles Szasz
> csz...@mac.com
> 
> 
> 
> 
> On Nov 29, 2010, at 5:22 PM, Mike Bonner [via Runtime Revolution] wrote:
> 
>> Is there a reason to use 'not in "1234567890"' rather than 'is a number' 
>> just curious to know. 
>> 
>> On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <[hidden email]> wrote: 
>> 
>>> 
>>> Inside of the field script put something like this: 
>>> 
>>> on keyDown pKey 
>>> 
>>> put the number of chars of me into sCount 
>>> 
>>> if sCount < 3 then 
>>> 
>>> if pKey is not in "1234567890" then 
>>> 
>>> pass keyDown 
>>> 
>>> end if 
>>> 
>>> end if 
>>> end keyDown 
>>> 
>>> This should make it so that everytime a key is pressed in that field it 
>>> counts how many characters it has, if it is less than 3 it checks to see if 
>>> it is a number or in the allowed list, if so it passes that key. 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com. 
>>> 
>>> ___ 
>>> use-livecode mailing list 
>>> [hidden email] 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences: 
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___ 
>> use-livecode mailing list 
>> [hidden email] 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences: 
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> View message @ 
>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064541.html
>> To unsubscribe from Limiting data entry in fields, click here.
> 
> 
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064557.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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: Limiting data entry in fields

2010-11-29 Thread Bob Sneidar
BTW, do you want to validate "on the fly" or would letting anyone type anything 
and then validating after the fact work for you? You could store the old value 
upon openrField, run a validation routine on closeField, pop a tooltip and 
restore old value if validation fails. 

Bob


On Nov 29, 2010, at 2:27 PM, charles61 wrote:

> 
> Mike,
> 
> I have not thought of using "not in". I did not use "1234567890" because it 
> does not limit decimals.
> 
> Charles Szasz
> csz...@mac.com
> 
> 
> 
> 
> On Nov 29, 2010, at 5:22 PM, Mike Bonner [via Runtime Revolution] wrote:
> 
>> Is there a reason to use 'not in "1234567890"' rather than 'is a number' 
>> just curious to know. 
>> 
>> On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <[hidden email]> wrote: 
>> 
>>> 
>>> Inside of the field script put something like this: 
>>> 
>>> on keyDown pKey 
>>> 
>>> put the number of chars of me into sCount 
>>> 
>>> if sCount < 3 then 
>>> 
>>> if pKey is not in "1234567890" then 
>>> 
>>> pass keyDown 
>>> 
>>> end if 
>>> 
>>> end if 
>>> end keyDown 
>>> 
>>> This should make it so that everytime a key is pressed in that field it 
>>> counts how many characters it has, if it is less than 3 it checks to see if 
>>> it is a number or in the allowed list, if so it passes that key. 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.html
>>> Sent from the Revolution - User mailing list archive at Nabble.com. 
>>> 
>>> ___ 
>>> use-livecode mailing list 
>>> [hidden email] 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences: 
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___ 
>> use-livecode mailing list 
>> [hidden email] 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences: 
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> View message @ 
>> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064541.html
>> To unsubscribe from Limiting data entry in fields, click here.
> 
> 
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064557.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: [Really-OT] Rio is at a state of war

2010-11-29 Thread J. Landman Gay
I'm always glad to see you write, Andre, because it reassures me you are 
okay.


CNN had a brief report on Rio two days ago, and our newspaper here has 
started to do coverage. Yesterday there was a half-page article, which 
was quite a lot here, considering we are complacent Americans and Brazil 
is a foreign country. So at least it is getting some attention where I 
am in the U.S.


--
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: Limiting data entry in fields

2010-11-29 Thread charles61

Mike,

I have not thought of using "not in". I did not use "1234567890" because it 
does not limit decimals.

Charles Szasz
csz...@mac.com




On Nov 29, 2010, at 5:22 PM, Mike Bonner [via Runtime Revolution] wrote:

> Is there a reason to use 'not in "1234567890"' rather than 'is a number' 
> just curious to know. 
> 
> On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe <[hidden email]> wrote: 
> 
> > 
> > Inside of the field script put something like this: 
> > 
> > on keyDown pKey 
> > 
> > put the number of chars of me into sCount 
> > 
> > if sCount < 3 then 
> > 
> > if pKey is not in "1234567890" then 
> > 
> > pass keyDown 
> > 
> > end if 
> > 
> > end if 
> > end keyDown 
> > 
> > This should make it so that everytime a key is pressed in that field it 
> > counts how many characters it has, if it is less than 3 it checks to see if 
> > it is a number or in the allowed list, if so it passes that key. 
> > 
> > -- 
> > View this message in context: 
> > http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.html
> > Sent from the Revolution - User mailing list archive at Nabble.com. 
> > 
> > ___ 
> > use-livecode mailing list 
> > [hidden email] 
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences: 
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> ___ 
> use-livecode mailing list 
> [hidden email] 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences: 
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> View message @ 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064541.html
> To unsubscribe from Limiting data entry in fields, click here.


-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064557.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: Limiting data entry in fields

2010-11-29 Thread Bob Sneidar
I suspect though, that this would disable tabbing and return in the field. 

Bob


On Nov 29, 2010, at 2:13 PM, Andrew Kluthe wrote:

> 
> Inside of the field script put something like this:
> 
> on keyDown pKey
> 
> put the number of chars of me into sCount
> 
> if sCount < 3 then
> 
> if pKey is not in "1234567890" then
> 
> pass keyDown
> 
> end if
> 
> end if
> end keyDown
> 
> This should make it so that everytime a key is pressed in that field it
> counts how many characters it has, if it is less than 3 it checks to see if
> it is a number or in the allowed list, if so it passes that key.
> 
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.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: Advantages of LC as high level language--examples

2010-11-29 Thread J. Landman Gay

On 11/29/10 2:29 PM, Devin Asay wrote:

Hello all,

In trying to explain to students how high level languages such as
LiveCode can make development faster, I would like to give concrete
examples of how single-line LC commands actually execute dozens of
C++ commands in the engine. For example, a simple one-liner like:

show field "demo" with visual effect dissolve

Must have lots of lines of compiled C code behind it. Does anyone
have any concrete examples? I may end up directing this to the mother
ship, but thought I'd try here first.


There was that "make a file alias" code that RR used some years ago in a 
PR blurb, and it showed exactly what you're talking about. Jeanne DeVoto 
figured it out and wrote it up. I'm not sure where it went to though, 
maybe she's reading?


--
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: Limiting data entry in fields

2010-11-29 Thread Mike Bonner
Is there a reason to use 'not in "1234567890"' rather than 'is a number'
just curious to know.

On Mon, Nov 29, 2010 at 3:13 PM, Andrew Kluthe  wrote:

>
> Inside of the field script put something like this:
>
> on keyDown pKey
>
> put the number of chars of me into sCount
>
> if sCount < 3 then
>
> if pKey is not in "1234567890" then
>
> pass keyDown
>
> end if
>
> end if
> end keyDown
>
> This should make it so that everytime a key is pressed in that field it
> counts how many characters it has, if it is less than 3 it checks to see if
> it is a number or in the allowed list, if so it passes that key.
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.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: on-rev server question

2010-11-29 Thread Thomas McGrath III
The advice was most helpful on setting up the nameservers and the email on 
on-rev.com. Thanks to all how helped.

For my issue, I misunderstood that add-on domains actually add a subdomain and 
that on go-daddy if you set the nameservers first and then set the domain 
forwarding that the domain forwarding will reset the nameservers - so don't do 
that. Just set the nameservers and walk away.

My site is working now.

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

I Can Speak - Communication for the rest of us...
http://mypad.lazyriver.on-rev.com

I Can Speak on the iPad Store
http://itunes.apple.com/us/app/i-can-speak/id364733279?mt=8



On Nov 28, 2010, at 4:06 PM, Jim Lambert wrote:

> Mike & Tim, thanks for the useful info on migrating mail accounts to on-rev.
> 
> Jim Lambert
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Can someone explain

2010-11-29 Thread Mike Bonner
Oh duh. Yep, went the wrong way. Sorry bout that.

On Mon, Nov 29, 2010 at 2:59 PM, Jonathan Lynch wrote:

> just a question for fun - I have no need for doing that.
>
> Going from vector to image sounds pretty easy. Going from image to vector
> sounds challenging.
>
> On Mon, Nov 29, 2010 at 4:44 PM, Devin Asay  wrote:
>
> >
> > On Nov 29, 2010, at 2:41 PM, Mike Bonner wrote:
> >
> > > You could look at snapshot (import or export) depending on what you
> want
> > to
> > > do.  Doesn't 'convert' but at least you can end up with an image that
> > looks
> > > like your graphic.
> >
> > Right, but he was asking about converting an image to a vector graphic. I
> > don't think it's (easily) doable.
> >
> > >> On Nov 29, 2010, at 2:32 PM, Jonathan Lynch wrote:
> > >>
> > >>> So, how would you convert an image to a graphic?
> >
> > Devin
> >
> >
> >
> > Devin Asay
> > Humanities Technology and Research Support Center
> > Brigham Young University
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> Do all things with love
> ___
> use-livecode mailing list
> use-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: Limiting data entry in fields

2010-11-29 Thread Andrew Kluthe

Inside of the field script put something like this:

on keyDown pKey

put the number of chars of me into sCount

if sCount < 3 then

if pKey is not in "1234567890" then

pass keyDown

end if

end if
end keyDown

This should make it so that everytime a key is pressed in that field it
counts how many characters it has, if it is less than 3 it checks to see if
it is a number or in the allowed list, if so it passes that key.

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064535.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: Limiting data entry in fields

2010-11-29 Thread Terry Judd
Not perfect but should get you started...

on keyDown theKey
   put "0123456789" into tKeys
   if tKeys contains theKey then
  if length (me) < 3 then
 put theKey after me
  end if
   end if
end keyDown

Terry...


On 30/11/10 7:51 AM, "charles61"  wrote:

> 
> How do I limit data entry to only three digits and no decimals in a numerical
> data entry field?

--
Dr Terry Judd | Senior Lecturer in Medical Education
Medical Education Unit
Melbourne Medical School
The University of Melbourne



___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread Jonathan Lynch
I think your first example could be the "create stack" command.

On Mon, Nov 29, 2010 at 3:45 PM, Richmond wrote:

> On 11/29/2010 10:29 PM, Devin Asay wrote:
>
>> Hello all,
>>
>> In trying to explain to students how high level languages such as LiveCode
>> can make development faster, I would like to give concrete examples of how
>> single-line LC commands actually execute dozens of C++ commands in the
>> engine. For example, a simple one-liner like:
>>
>>show field "demo" with visual effect dissolve
>>
>> Must have lots of lines of compiled C code behind it. Does anyone have any
>> concrete examples?
>>
>
> NO, I most definitely don't; having skillfully avoided learning anything
> except high-level
> languages after my "adventure" with PASCAL in 1985.
>
> The reason I have avoided learning low-level languages is that I can see no
> real
> advantage in investing lots of time and effort in learning them when I can
> achieve
> the same sort of thing with much less time and effort with Livecode.
>
> Set your students down in front of the sort of machine I have just
> "invested" in for
> my son, who has to 'do' PASCAL at school (although, if truth be known, I
> suspect
> PASCAL will 'do' him rather than the other way round; i.e. turn him very
> effectively
> right off programming) - a Pentium 2 with 32 MB RAM - and FreeDOS + GEM GUI
> and let them play around with PASCAL and try to create anything vaguely
> visual.
>
> The plonk them down in front of a more modern achine with a more modern OS
> and let them play around with Livecode.
>
> That should suffice!
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: Can someone explain

2010-11-29 Thread Jonathan Lynch
just a question for fun - I have no need for doing that.

Going from vector to image sounds pretty easy. Going from image to vector
sounds challenging.

On Mon, Nov 29, 2010 at 4:44 PM, Devin Asay  wrote:

>
> On Nov 29, 2010, at 2:41 PM, Mike Bonner wrote:
>
> > You could look at snapshot (import or export) depending on what you want
> to
> > do.  Doesn't 'convert' but at least you can end up with an image that
> looks
> > like your graphic.
>
> Right, but he was asking about converting an image to a vector graphic. I
> don't think it's (easily) doable.
>
> >> On Nov 29, 2010, at 2:32 PM, Jonathan Lynch wrote:
> >>
> >>> So, how would you convert an image to a graphic?
>
> Devin
>
>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Do all things with love
___
use-livecode mailing list
use-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 to List - Suggestions for 2D character animation?

2010-11-29 Thread Chipp Walters
HaHa. Nice one Jim!

On Mon, Nov 29, 2010 at 12:01 AM, Jim Sims  wrote:

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


[OT] Re: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Petrides, M.D. Marian
I still have a Mac LC II lurking somewhere. ;-)  But I doubt it will run LC.  
Oh, well ;-)

On Nov 29, 2010, at 3:28 PM, Kevin Miller wrote:

> On 29/11/2010 20:49, "Richmond"  wrote:
> 
>> Is this wise?
>> 
>> 1. I used to have an Apple LC 470 (still have, come to think of it).
>> 
>> 2. Doesn't 'LC' stand for 'lowly crap'?
>> 
>> 3. 'Left-of-Centre'; not always favoured by right-wing types like myself
>> . . .  :)
> 
> Sometimes a cigar is just a cigar.
> 
> Kind regards,
> 
> Kevin
> 
> Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
> LiveCode - Realize fast, compile-free coding
> 
> 
> 
> ___
> use-livecode mailing list
> use-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: Can someone explain

2010-11-29 Thread Devin Asay

On Nov 29, 2010, at 2:41 PM, Mike Bonner wrote:

> You could look at snapshot (import or export) depending on what you want to
> do.  Doesn't 'convert' but at least you can end up with an image that looks
> like your graphic.

Right, but he was asking about converting an image to a vector graphic. I don't 
think it's (easily) doable.

>> On Nov 29, 2010, at 2:32 PM, Jonathan Lynch wrote:
>> 
>>> So, how would you convert an image to a graphic?

Devin



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: Can someone explain

2010-11-29 Thread Mike Bonner
You could look at snapshot (import or export) depending on what you want to
do.  Doesn't 'convert' but at least you can end up with an image that looks
like your graphic.

On Mon, Nov 29, 2010 at 2:36 PM, Devin Asay  wrote:

>
> On Nov 29, 2010, at 2:32 PM, Jonathan Lynch wrote:
>
> > So, how would you convert an image to a graphic?
>
> In LiveCode, you wouldn't. Can't be done as far as I know, although there
> may be some sages here who could prove me wrong. I believe that high-end
> vector graphics editors like Illustrator have tools that will attempt to do
> it. No experience with it myself.
>
> Devin
>
> >
> > On Mon, Nov 29, 2010 at 4:25 PM, Devin Asay  wrote:
> >
> >>
> >> On Nov 29, 2010, at 2:07 PM, Cal Horner wrote:
> >>
> >>> I have sifted through the archives and read the documentation and once
> >> again
> >>> I am stumped.
> >>>
> >>> Here is the question. What is the difference between a graphic and an
> >> image
> >>> object? And how do you create an image object from a graphic?
> >>>
> >>> As with everything else in Elsie(L. C.) I know the answer will be
> simple.
> >> But today I don't feel simple.
> >>
> >> A graphic object is a set of defined points and vectors, a mathematical
> >> formula, if you will. As such it can be scaled and changed with no loss
> of
> >> quality. Think MacDraw or Adobe Illustrator.
> >>
> >> An image object is a bitmap. Each pixel in the bitmap has a defined
> color
> >> (and optionally a transparency value). It will rapidly lose quality if
> >> resized or reshaped drastically. Think MacPaint or Photoshop.
> >>
> >> You can create an image from a graphic by using the import snapshot
> command
> >> in LiveCode.
> >>
> >> HTH
> >>
> >> Devin
> >>
> >>
> >> Devin Asay
> >> Humanities Technology and Research Support Center
> >> Brigham Young University
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> >
> > --
> > Do all things with love
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Can someone explain

2010-11-29 Thread Devin Asay

On Nov 29, 2010, at 2:32 PM, Jonathan Lynch wrote:

> So, how would you convert an image to a graphic?

In LiveCode, you wouldn't. Can't be done as far as I know, although there may 
be some sages here who could prove me wrong. I believe that high-end vector 
graphics editors like Illustrator have tools that will attempt to do it. No 
experience with it myself.

Devin

> 
> On Mon, Nov 29, 2010 at 4:25 PM, Devin Asay  wrote:
> 
>> 
>> On Nov 29, 2010, at 2:07 PM, Cal Horner wrote:
>> 
>>> I have sifted through the archives and read the documentation and once
>> again
>>> I am stumped.
>>> 
>>> Here is the question. What is the difference between a graphic and an
>> image
>>> object? And how do you create an image object from a graphic?
>>> 
>>> As with everything else in Elsie(L. C.) I know the answer will be simple.
>> But today I don't feel simple.
>> 
>> A graphic object is a set of defined points and vectors, a mathematical
>> formula, if you will. As such it can be scaled and changed with no loss of
>> quality. Think MacDraw or Adobe Illustrator.
>> 
>> An image object is a bitmap. Each pixel in the bitmap has a defined color
>> (and optionally a transparency value). It will rapidly lose quality if
>> resized or reshaped drastically. Think MacPaint or Photoshop.
>> 
>> You can create an image from a graphic by using the import snapshot command
>> in LiveCode.
>> 
>> HTH
>> 
>> Devin
>> 
>> 
>> Devin Asay
>> Humanities Technology and Research Support Center
>> Brigham Young University
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> Do all things with love
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: Can someone explain

2010-11-29 Thread Jonathan Lynch
So, how would you convert an image to a graphic?

On Mon, Nov 29, 2010 at 4:25 PM, Devin Asay  wrote:

>
> On Nov 29, 2010, at 2:07 PM, Cal Horner wrote:
>
> > I have sifted through the archives and read the documentation and once
> again
> > I am stumped.
> >
> > Here is the question. What is the difference between a graphic and an
> image
> > object? And how do you create an image object from a graphic?
> >
> > As with everything else in Elsie(L. C.) I know the answer will be simple.
> But today I don't feel simple.
>
> A graphic object is a set of defined points and vectors, a mathematical
> formula, if you will. As such it can be scaled and changed with no loss of
> quality. Think MacDraw or Adobe Illustrator.
>
> An image object is a bitmap. Each pixel in the bitmap has a defined color
> (and optionally a transparency value). It will rapidly lose quality if
> resized or reshaped drastically. Think MacPaint or Photoshop.
>
> You can create an image from a graphic by using the import snapshot command
> in LiveCode.
>
> HTH
>
> Devin
>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Kevin Miller
On 29/11/2010 20:49, "Richmond"  wrote:

> Is this wise?
> 
> 1. I used to have an Apple LC 470 (still have, come to think of it).
> 
> 2. Doesn't 'LC' stand for 'lowly crap'?
> 
> 3. 'Left-of-Centre'; not always favoured by right-wing types like myself
> . . .  :)

Sometimes a cigar is just a cigar.

Kind regards,

Kevin

Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
LiveCode - Realize fast, compile-free coding



___
use-livecode mailing list
use-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: RTF documents as templates

2010-11-29 Thread Alex Tweedly

Andrew,

I see this is at the end of a long-ish conversation (and I've not read 
much of it :-)


So forgive me if this wild guess is way off track 

The most likely cause of "some placeholders not being replaced" is that 
the relevant variable is mistyped or otherwise doesn't exist.  The 
effect of the double square brackets in a 'merge' string is to evaluate 
what's between the brackets as though it was Livecode script - and using 
a variable which doesn't exist simply evaluates to itself. So for instance



put 1 into aaa
put "[[aaa]] and [[bbb]]" into c
put merge(c)

will result in the output


1 and bbb


i.e. it looks like the first placeholder was replaced and the second wasn't.

I hope that might be some help.

-- Alex.


On 29/11/2010 19:00, Andrew Kluthe wrote:

I have been trying to implement the methods described in revUp's articles on
the subject. The trouble that I am having is that some of the
[[Placeholders]] don't get changed at all. Some are replaced and some are
left as placeholders.

I am getting so aggravated with not having a templatable reporting method
for printing out Lease Contracts. The user needs to be able to customize the
lease contract to fit their needs and my rev program fills out the variable
data and spits it out as a pdf or word doc.

I've looked into other reporting engines and the closest thing I found to
what I need is Docmosis and it only interfaces with java. I wish it
interfaced through a command line or that I had Java knowledge so I could
build one.



___
use-livecode mailing list
use-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: Can someone explain

2010-11-29 Thread Devin Asay

On Nov 29, 2010, at 2:07 PM, Cal Horner wrote:

> I have sifted through the archives and read the documentation and once again
> I am stumped.
> 
> Here is the question. What is the difference between a graphic and an image
> object? And how do you create an image object from a graphic?
> 
> As with everything else in Elsie(L. C.) I know the answer will be simple. But 
> today I don't feel simple.

A graphic object is a set of defined points and vectors, a mathematical 
formula, if you will. As such it can be scaled and changed with no loss of 
quality. Think MacDraw or Adobe Illustrator.

An image object is a bitmap. Each pixel in the bitmap has a defined color (and 
optionally a transparency value). It will rapidly lose quality if resized or 
reshaped drastically. Think MacPaint or Photoshop.

You can create an image from a graphic by using the import snapshot command in 
LiveCode.

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Jonathan Lynch
I think you might be fighting the inevitable...

But, you could go with LVC, or LVCD...

Or, on Halloween, you could call it UC (UndeadCode).

On Mon, Nov 29, 2010 at 3:49 PM, Richmond wrote:

> Is this wise?
>
> 1. I used to have an Apple LC 470 (still have, come to think of it).
>
> 2. Doesn't 'LC' stand for 'lowly crap'?
>
> 3. 'Left-of-Centre'; not always favoured by right-wing types like myself .
> . .  :)
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: Can someone explain

2010-11-29 Thread Jonathan Lynch
A graphic is defined by a set of points. You would need four points to
define a square, for example.

An image contains potentially millions of points (pixels) each with its own
color.

does that help?



On Mon, Nov 29, 2010 at 4:07 PM, Cal Horner  wrote:

> I have sifted through the archives and read the documentation and once
> again
> I am stumped.
>
> Here is the question. What is the difference between a graphic and an image
> object? And how do you create an image object from a graphic?
>
> As with everything else in Elsie(L. C.) I know the answer will be simple.
> But today I don't feel 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
>



-- 
Do all things with love
___
use-livecode mailing list
use-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: Use of 'LC' as shorthand for Livecode.

2010-11-29 Thread Devin Asay

On Nov 29, 2010, at 1:49 PM, Richmond wrote:

> Is this wise?
> 
> 1. I used to have an Apple LC 470 (still have, come to think of it).
> 
> 2. Doesn't 'LC' stand for 'lowly crap'?
> 
> 3. 'Left-of-Centre'; not always favoured by right-wing types like myself 
> . . .  :)

We have to carpe the diem! Are going to let other people define our 
abbreviation? We have the unique opportunity to rehabilitate the lowly LC by 
associating it with awesomeness! 

(Please excuse the mangled Latin.)

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Can someone explain

2010-11-29 Thread Cal Horner
I have sifted through the archives and read the documentation and once again
I am stumped.
 
Here is the question. What is the difference between a graphic and an image
object? And how do you create an image object from a graphic?
 
As with everything else in Elsie(L. C.) I know the answer will be simple. But 
today I don't feel 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


Limiting data entry in fields

2010-11-29 Thread charles61

How do I limit data entry to only three digits and no decimals in a numerical
data entry field?
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Limiting-data-entry-in-fields-tp3064388p3064388.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 of 'LC' as shorthand for Livecode.

2010-11-29 Thread Richmond

Is this wise?

1. I used to have an Apple LC 470 (still have, come to think of it).

2. Doesn't 'LC' stand for 'lowly crap'?

3. 'Left-of-Centre'; not always favoured by right-wing types like myself 
. . .  :)

___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread Richmond

On 11/29/2010 10:29 PM, Devin Asay wrote:

Hello all,

In trying to explain to students how high level languages such as LiveCode can 
make development faster, I would like to give concrete examples of how 
single-line LC commands actually execute dozens of C++ commands in the engine. 
For example, a simple one-liner like:

show field "demo" with visual effect dissolve

Must have lots of lines of compiled C code behind it. Does anyone have any 
concrete examples?


NO, I most definitely don't; having skillfully avoided learning anything 
except high-level

languages after my "adventure" with PASCAL in 1985.

The reason I have avoided learning low-level languages is that I can see 
no real
advantage in investing lots of time and effort in learning them when I 
can achieve

the same sort of thing with much less time and effort with Livecode.

Set your students down in front of the sort of machine I have just 
"invested" in for
my son, who has to 'do' PASCAL at school (although, if truth be known, I 
suspect
PASCAL will 'do' him rather than the other way round; i.e. turn him very 
effectively

right off programming) - a Pentium 2 with 32 MB RAM - and FreeDOS + GEM GUI
and let them play around with PASCAL and try to create anything vaguely 
visual.


The plonk them down in front of a more modern achine with a more modern OS
and let them play around with Livecode.

That should suffice!
___
use-livecode mailing list
use-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: Advantages of LC as high level language--examples

2010-11-29 Thread Jim Ault
I won't be much help in the 'concrete examples' area, but consider  
these extras


To properly compile C++ you need the correct compliment of libraries  
in your IDE for the platform & version.  As things evolve, you need to  
keep separate dev environs for each version of a platform, and  
sometimes even the processor type.


Selection/creation of interface elements are usually the burden of the  
designer and add to the programming time.


I am sure there are more areas that a good C++ programmer has in his  
arsenal.  If you write a good discussion paper on this, it would be  
cool if you would share it with the list.  I know a couple people who  
think I am a little nutty for choosing LC, but this would help me  
explain the reasoning.


Thanks,


On Nov 29, 2010, at 12:29 PM, Devin Asay wrote:


Hello all,

In trying to explain to students how high level languages such as  
LiveCode can make development faster, I would like to give concrete  
examples of how single-line LC commands actually execute dozens of C+ 
+ commands in the engine. For example, a simple one-liner like:


show field "demo" with visual effect dissolve

Must have lots of lines of compiled C code behind it. Does anyone  
have any concrete examples? I may end up directing this to the  
mother ship, but thought I'd try here first.


Jim Ault
Las Vegas



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


Advantages of LC as high level language--examples

2010-11-29 Thread Devin Asay
Hello all,

In trying to explain to students how high level languages such as LiveCode can 
make development faster, I would like to give concrete examples of how 
single-line LC commands actually execute dozens of C++ commands in the engine. 
For example, a simple one-liner like:

show field "demo" with visual effect dissolve

Must have lots of lines of compiled C code behind it. Does anyone have any 
concrete examples? I may end up directing this to the mother ship, but thought 
I'd try here first.

Thanks,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Re: [Really-OT] Rio is at a state of war

2010-11-29 Thread Richmond

We have bags of space here in Bulgaria, too . . . .  :)
___
use-livecode mailing list
use-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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Andre Garzia
Bob,

heehehehe thanks for the emails and no, Brazil is not a big jungle as people
tend to think. Actually it is not like the FARC that can hide in the jungle
for decades, here they hide in plain sight inside the slums.

And no, elimination will solve nothing. Elimation is not the answer for it
creates a gap that is soon filled by even more violent groups. If you
escalate, so will them. Solution is long term policy of occupation and
giving poor people education, medcare and jobs. This solves problems, the
solution is education + health + jobs. Right now, we need occupation but
this will never solve anything like people from U.S. are now finally
learning from iraq. Occupation will give you order but progress will come
out of positive actions of creating the means and oportunities that are so
good that people will prefer it to crime

The peace/pacifying police units will provide order there and things will
slowly get better. We still have lots of other guys to take down, there are
the milita which are former police officers or current police officers that
play both side. We have corrupt goverment fundind everything... there is a
lot of room to work but the foundation is set, slums will be pacified and
from there things will go up. I hope.

(actually this operation was bloodless compared to what I've seen before,
lots of property were damaged but the loss of lives was minimal, which is
good. I think no civilian died which is a first in here)

we'll see in two weeks how things go...

Now if you guys want to check, the pictures from yesterday

http://g1.globo.com/rio-de-janeiro/rio-contra-o-crime/fotos/2010/11/fotos-da-onda-de-violencia-no-rio-de-janeiro.html
(Globo News: Rio against Crime special feature)

There are some pretty pics of police officers with kids...


On Mon, Nov 29, 2010 at 4:54 PM, Bob Sneidar  wrote:

> I think Brazil's countryside is jungle. I could be wrong, but if I am not,
> it probably is not a whole lot safer for anyone not accustomed to it.
>
> Bob
>
>
> On Nov 26, 2010, at 10:53 AM, Jonathan Lynch wrote:
>
> > It seems like people would move out to the countryside, under situations
> > like what is described here. I would. I know I am missing something
> obvious.
> > I really feel for you, 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
use-livecode mailing list
use-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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Petrides, M.D. Marian
Hey, Andre

If you need a place stateside to evacuate to, you would definitely be welcome 
to visit the kids (canine, of course) and me. We've got lots of room and plenty 
of Macs, too. Like I said earlier, be safe, good buddy.

Marian, Pepper, and the Skipster


On Nov 29, 2010, at 12:51 PM, Bob Sneidar wrote:

> Actually, we have this on a smaller scale in Arizona, but the major media 
> companies don't seem to think it newsworthy. There are large tracts of land 
> along the Arizona border that are off limits to Americans because drug 
> cartels have infested them. They are escorting slave labor through corridors 
> we know about armed with military grade weapons and will shoot on sight 
> anyone they encounter. 
> 
> As I said in my last post, this cannot be tolerated any longer. Everyone in 
> the world needs to stand up together and support the elimination, dare I say 
> the extermination of all organized crime groups, and that will mean war and a 
> lot of good people will probably die, but then in the end that will be the 
> case anyway, and we won't be able to stop it if we don't stop it now. 
> 
> Bob
> 
> 
> On Nov 26, 2010, at 9:52 AM, stephen barncard wrote:
> 
>> You are being very stoic - of course this should not be normal. We in the US
>> complain about everything all the time - but we don't have anything like
>> what's happening in your country.
> 
> 
> ___
> use-livecode mailing list
> use-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: RTF documents as templates

2010-11-29 Thread Andrew Kluthe

I have been trying to implement the methods described in revUp's articles on
the subject. The trouble that I am having is that some of the
[[Placeholders]] don't get changed at all. Some are replaced and some are
left as placeholders.

I am getting so aggravated with not having a templatable reporting method
for printing out Lease Contracts. The user needs to be able to customize the
lease contract to fit their needs and my rev program fills out the variable
data and spits it out as a pdf or word doc.

I've looked into other reporting engines and the closest thing I found to
what I need is Docmosis and it only interfaces with java. I wish it
interfaced through a command line or that I had Java knowledge so I could
build one.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/RTF-documents-as-templates-tp322967p3064173.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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Bob Sneidar
I think Brazil's countryside is jungle. I could be wrong, but if I am not, it 
probably is not a whole lot safer for anyone not accustomed to it. 

Bob


On Nov 26, 2010, at 10:53 AM, Jonathan Lynch wrote:

> It seems like people would move out to the countryside, under situations
> like what is described here. I would. I know I am missing something obvious.
> I really feel for you, 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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Bob Sneidar
If I were you I'd leave for the conference now. 

Bob


On Nov 26, 2010, at 10:20 AM, Andre Garzia wrote:

> Eeek! the army just deployed 800 soldiers in Rio right now, things are about
> to get ugly...
> 
> :-/
> 
> Well, I will be at the next conference, it will be good to have some days of
> this whole situation.


___
use-livecode mailing list
use-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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Bob Sneidar
Actually, we have this on a smaller scale in Arizona, but the major media 
companies don't seem to think it newsworthy. There are large tracts of land 
along the Arizona border that are off limits to Americans because drug cartels 
have infested them. They are escorting slave labor through corridors we know 
about armed with military grade weapons and will shoot on sight anyone they 
encounter. 

As I said in my last post, this cannot be tolerated any longer. Everyone in the 
world needs to stand up together and support the elimination, dare I say the 
extermination of all organized crime groups, and that will mean war and a lot 
of good people will probably die, but then in the end that will be the case 
anyway, and we won't be able to stop it if we don't stop it now. 

Bob


On Nov 26, 2010, at 9:52 AM, stephen barncard wrote:

> You are being very stoic - of course this should not be normal. We in the US
> complain about everything all the time - but we don't have anything like
> what's happening in your country.


___
use-livecode mailing list
use-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: Limiting numerical data entry

2010-11-29 Thread Devin Asay
Charles,

On Nov 29, 2010, at 11:32 AM, Charles Szasz wrote:

> How do I limit data entry to only three digits and no decimals in a data 
> entry box?

See the LiveCode Resource Center (Help menu > Resource Center). Then look under 
Sample Scripts > Text. There are two sections there that will help you, one on 
limiting the number of characters and one on limiting input to only numbers.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University


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


Limiting numerical data entry

2010-11-29 Thread Charles Szasz
How do I limit data entry to only three digits and no decimals in a data entry 
box?

Charles Szasz
csz...@mac.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: Some free iPad & iPhone icons

2010-11-29 Thread Bob Sneidar
Thanks for the tip, Chipp. (Ryhme intended). I liked it so much, that even 
though I am not developing an iPhone/iPad app at present, I bought it anyway. 

Bob


On Nov 28, 2010, at 10:02 AM, Chipp Walters wrote:

> http://glyphish.com/
> 
> Very nice.
> 
> ___
> use-livecode mailing list
> use-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: [Really-OT] Rio is at a state of war

2010-11-29 Thread Bob Sneidar
Wow. It never ceases to amaze me what really newsworthy stuff never gets past 
our liberal media. I am willing to bet that the major media outlets here in the 
US never puts this out, at least not until the internet blogs are all over it. 
But never mind that, may God watch over and protect you and yours in this 
trying time. 

On a side note, I think everyone in the world needs to understand this now: 
Organized criminals cannot be tolerated. They will never leave well enough 
alone. To become anyone especially notable in these organizations, you have to 
cast down any humanity you have left and become a viscous animal. They must be 
put down as soon as they present a major problem, otherwise you get what Andre 
is seeing now. 

America is no different. I think a LOT of tax revenues end up in the bank 
accounts of organized crime through corrupt politicians. Otherwise, why 
wouldn't a decent politician NOT do a major audit of state and/or federal 
finances? Everyone in America who pays taxes would ABSOLUTELY LOVE any 
politician who did this and published the results as a pre-cursor to cutting 
back on spending, but no one touches it. Why? Because no one really wants to 
know where all the money is going, that's why. 

Mind you, this is not the same thing as an organized group rising up among the 
people of a given country to topple a hopelessly corrupt tyrannical government. 
Revolution is a kind of cleansing rain for civilizations. The only problem now 
is how to replace the prior government with people who are not as corrupt! And 
that is a function of how morally strong the people themselves are. It's hard 
sometime to tell the difference between a just revolution and a civil war 
between rival factions of criminals.  

Bob


On Nov 26, 2010, at 9:00 AM, Andre Garzia wrote:

> Folks,
> 
> This is just a heads up plus me needing to vent it out. Rio de Janeiro is in
> a state of un-assumed war for a week now. Criminal factions are trying to
> spread terror by burning car, buses and whatever they can on the street,
> sometimes without giving any warning to those inside. We're living with this
> crap for so long that we're not impressed anymore. 

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


Cyber Monday is Today - Last Day to Save Big on Franklin 3D, Frankin Audio, Valentina

2010-11-29 Thread Lynn Fredricks
http://www.mirye.net/buy/black-friday-2010

Hello all,

Yes, these great deals end today. Of interest to LiveCode users -

50% off of Franklin Audio, Franklin 3D

50% off new licenses of Valentina DB products - Valentina ADK for LiveCode,
Valentina Developer Network, Valentina Office Server, Valentina Studio.

ALSO: You CAN get 50% off of a Reports "Upgrade". If you ADD Valentina
Reports to a new or existing Valentina DB license, you can also get 50% off
that upgrade.

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 


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


Re: Data Grids Stop Working

2010-11-29 Thread Paul Looney

Trevor,
Yes it was and, again, I thank you for your help.
There have been other occasions where the only cure was replacing the  
grids - and that alone fixed the problem. It is rare. Will try to get  
a recipe on that one if it comes again. I have put the code you  
suggested into the script to trap the error.
The DataGrid is really fantastic. We use it a lot in our business  
systems and are repeatedly amazed by how well it works.

PL

On Nov 29, 2010, at 5:40 AM, Trevor DeVore wrote:

On Wed, Nov 24, 2010 at 6:00 PM, Paul Looney   
wrote:



Thanks for the suggestion and the code.
I put the code into the script and it produced no error.
Everything else is running properly, vTheList contains the  
appropriate

information!?!?

WAIT!
HOLD THE PRESSES!
There is an obscure conditional, "set the dgText of grp "Data  
Grid" to

vTheList" is on the wrong branch.
Problem solved.
Thank you again.



Great! An easy fix :-)

--

Trevor DeVore

Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Live LiveCode code event (with chatrev)

2010-11-29 Thread Bob Sneidar
Hi Randy. Please to note that the list address has changed. Thanks. 
use-livecode@lists.runrev.com

Bob


On Nov 26, 2010, at 4:27 AM, AndyP wrote:

> 
> Hi Bjoernke,
> 
> Sounds like a great idea... well done!
> 
> Unfortunately I will be trying to get my two boys to bed..(always an
> interesting experience) at this time.
> 
> Will this be available off line later?
> 
> 
> -
> Andy Piddock
> 
> 
> My software never has bugs. It just develops random features.
> -- 
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/Live-LiveCode-code-event-with-chatrev-tp3059733p3060183.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: file uploads and progress monitoring on on-rev(reposted )

2010-11-29 Thread Andre Garzia
Martin

The problem is not checking the amount of bytes that arrived, this is easy.
The hard part is informing back the browser and updating the web page. When
you click "upload" the browser will stop receiving communication from the
server such as xmlHTTPRequests and process your upload order. The only way
is change this behaviour is by throwing javascript into the problem to
hijack the upload request and process it "by hand" with websockets or hidden
iframe so that your main web page still responsive and can still pool the
server for progress update while something is happening. This involves
changing the code on the server and on the client-side. The workflow is like
this:

1 - User wants to upload a file
2 - javascript intercepts this order
3 - javascript requests a token from server for an upload job
4 - javascript saves token to memory
5 - javascript uses hidden iframe or similar solution to upload file passing
along the token
6 - server receives token and starts to receive file, saves progress for
token somewhere
7 - javascript uses asynchronous request at some interval to pool the server
asking for progress using the token to identify itself
8 - javascript picks the progress and update web page repeating step 7 till
progress is complete

again, non-trivial but can be done. The issue is not on the server but on
the web browser... web browsers are kinda stupid.

-- 
http://www.andregarzia.com All We Do Is Code.
___
use-livecode mailing list
use-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: file uploads and progress monitoring on on-rev(reposted )

2010-11-29 Thread Martin Koob

Andre

Thanks for the clear explanation.  Your quick answer 'no' will save me a lot
of effort trying to figure  out the impossible or at least the non-trivial.

I have one other question.   I found that I can use the shell command "du
-h" in an irev script to get the file size of a file on the on-rev server.   

Is a file that is being uploaded written to the server sequentially as it is
uploaded, 
or,
is it uploaded to memory in the server and then written to the directory
once it is completely uploaded?

If the first option is true, could you use a script with the "du -h" shell
command to periodically check the file size of the file being uploaded?

Martin
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/file-uploads-and-progress-monitoring-on-on-rev-reposted-tp3063680p3063930.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: file uploads and progress monitoring on on-rev(reposted )

2010-11-29 Thread Andre Garzia
Martin,

Lots of things happening here.

$_SERVER variable is ONLY AVAILABLE for RevServer which is exactly what you
are using.

$_POST_RAW just means you are accessing the stuff in the standard input in
its original form, you need this when you must recreate data on the correct
order since $_POST will not preserver order or when you need to do MIME
Decoding which is the case of file uploads.

Now on the topic of file upload progress, the quick answer is no. You can't
provide your page with a file upload progress bar if you are using an simple
HTML Form for the file upload. If you built your web page and use something
along the lines of:



Then you can't check for progress. The web is stateless. When your client is
uploading data, your server can't modify what your client is seeing. That is
not how it works.

You will say that gmail and other guys show you a progress bar. How they do
it? They cheat. Most of these guys are using a hidden adobe flash component
to do the upload and inform back the progress or even worse, all the upload
interface thing is a flash blob. This approach involves using two additional
technologies: Flash and JavaScript to bind everything together. Non trivial
to implement.

Other approach is to go javascript crazy and use httprequest or websockets
to connect and somehow pipe the data but I think that a javascript only
approach is hard because there is no file reading routine in javascript. You
could use a hidden iframe with a form and then submit the form, while the
content is read by your server you could write the progress somewhere and
then on the non hidden page you use javascript to pool for this progress
thus updating the screen. This is a javascript only solution but I don't
think it is worth pursuing and like all javascript solutions you will spend
an eternity debugging it for all browsers.

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


file uploads and progress monitoring on on-rev(reposted )

2010-11-29 Thread Martin Koob

(I posted this to the wrong forum and am reposting it in the Revolution -
User forum.  Sorry for the duplication.)

I want to have a way of showing file upload progress on an on-rev page. 

I found a script for that on the on-rev forums by 'magix' that was supposed
to show upload progress that but when I tried it it did not work.   
http://forums.on-rev.com/viewtopic.php?f=3&t=330&p=1478&hilit=upload#p1478

I think the reason is that it uses the variables $_SERVER["CONTENT_TYPE"]
and $_SERVER["CONTENT_LENGTH"] which I think are not supported in the irev
server.   There is a thread about this in the on-rev forums. 
http://forums.on-rev.com/viewtopic.php?f=3&t=208&p=1215&hilit=content_length#p1215

I have used Sarah's script for file uploads which does work for uploading
since it uses the $_POST_RAW variable.  However it does not show upload
progress. 
http://www.troz.net/onrev/samples/showscript.irev?showscript=upload.irev

One other thing I realized when trying to get the magix script to work is
that if you upload a file from a form on a web page any subsequent scripts
do not run until the upload is finished.   I read that if you want to run
other scripts concurrently you have to have them loaded in iframes.   

So is there a way to use Sarah's script to upload and have a way to check
the progress on the server side and then poll that with a small script
running in an iFrame? 

or 

Is there a way to modify magix's script so that it would parse the
$_POST_RAW data and then pass that in where it uses 
$_SERVER["CONTENT_TYPE"] and $_SERVER["CONTENT_LENGTH"].   

I guess in short is there a way to mash these two scripts together or is
there another approach I should use? 

I noticed also that Revigniter has File Uploads as a to do item. 
http://revigniter.com/userGuide/overview/features.html

Any help on this would be appreciated. 

-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/file-uploads-and-progress-monitoring-on-on-rev-reposted-tp3063680p3063680.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: MySQL and open source

2010-11-29 Thread Trevor DeVore
2010/11/27 Björnke von Gierke 

>
> So we'd all need to pay Oracle for using RunRev (which does not work with
> MySQL databases unless one installs a version of MySQL somewhere)?


I believe that RunRev pays a license fee to include the MySQL connector.

-- 

Trevor DeVore

Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Data Grids Stop Working

2010-11-29 Thread Trevor DeVore
On Wed, Nov 24, 2010 at 6:00 PM, Paul Looney  wrote:

> Thanks for the suggestion and the code.
> I put the code into the script and it produced no error.
> Everything else is running properly, vTheList contains the appropriate
> information!?!?
>
> WAIT!
> HOLD THE PRESSES!
> There is an obscure conditional, "set the dgText of grp "Data Grid" to
> vTheList" is on the wrong branch.
> Problem solved.
> Thank you again.
>

Great! An easy fix :-)

-- 

Trevor DeVore

Blue Mango Learning Systems
www.bluemangolearning.com-www.screensteps.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: Logos for deployment

2010-11-29 Thread René Micout
;-)

Le 29 nov. 2010 à 14:29, Medard a écrit :

> René Micout  wrote:
> 
>> Je dirais même plus : "Bon sang, mais c'est bien sûr !"
> 
> Always report the complete citation ;-)
> 
> ___
> use-livecode mailing list
> use-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: Logos for deployment

2010-11-29 Thread Medard
René Micout  wrote:

> Je dirais même plus : "Bon sang, mais c'est bien sûr !"

Always report the complete citation ;-)

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