This is a stack on a Mac (Mavericks)
LC Community 6.7 dp 9.
I have zoomed my stack and it is the window size excluding the mac menubar
height.
When checking the size in the proper inspector it is 1680 x 1002.
I close the stack and LC asks me if I want to save the stack, I save it.
I then
Hello John
Yes this is possible, I do this all the time !
The way I use it:
Create a stack with a field, put the whole python script (can have multiple
lines) into the field.
Replace place holders (replace %NAME% with Peter etc.) in the field, and then
put field into a
variable and execute it
2014-08-27 9:27 GMT+02:00 Rolf Kocherhans :
Hello John
Yes this is possible, I do this all the time !
I do this very often too, with Perl or shells.
Instead of using the replace, I've choosen the merge road;
find it more flexible and readable when you have to deal with a long list
of
Hi list
I have the following loop :
lock screen
repeat 2 times
-- do a lot of things
unlock screen
put myVar into fld myVar
lock screen
end repeat
The purpose is to lock the screen so that the heavy data
processing inside the loop isn't slowed down, but also to
display
while the screen is locked, in the repeat loop:
wait 0 seconds with messages
Annoying, and weird, I know. But it's been like that since a few versions now,
so this feature probably will most likely stay like that.
On 27 Aug 2014, at 13:25, j...@souslelogo.com wrote:
Hi list
I have the
actually the loop is like this (my mistake) :
lock screen
repeat 2 times
-- do a lot of things
unlock screen
put myVar into fld myVar
lock screen
end repeat
but the problem remains.
jbv
___
use-livecode mailing list
Hi jbv,
Data processing doesn't slow down because of screen redraws. If a repeat
loop like yours needs a lot of CPU time, it will take this and less time
will be left for screen updates.
The lock screen and unlock screen commands themselves also take some
time. There's a good chance that a
Thanks Björnke and Mark.
It does work now. I shall perhaps reconsider my old school
approach of several coding details like that one...
In the old days, locking the screen did speed up scripts that
needed lots of CPU times anyway...
jbv
___
Thanks Peter,
your script works, but is in the same speed region as my original script, with
the added disadvantage that it can't go beyond 9 chars.
As for the duplicate elements : I did the same before - make all the possible
permutations and then delete the duplicate ones.
But as Geoff
Peter Haworth wrote:
Sounds like a great idea to me. I seem to remember that one of
dispatch/send is blocking and the other isn't. Could that be a
possible reason for the lack of in with dispatch?
Both are blocking when called immediately; send can become on-blocking
by specifying a later
Björnke von Gierke wrote:
while the screen is locked, in the repeat loop:
wait 0 seconds with messages
Annoying, and weird, I know. But it's been like that since a few
versions now, so this feature probably will most likely stay
like that.
Apparently it annoyed Mark Waddingham too, who
Richard.
When you say send is blocking, in what way? Is this really any different that
calling any handler? For example:
on mouseUp
doSomething
end mouseUp
on MouseUp
send doSomething to this card
end mouseUp
Can you explain the difference?
Craig
-Original Message-
From:
The second command generates an error, just like adding one + 1. But that
brings up an interesting point: Can an indexed array contain associative arrays
and vis versa? Nice little pickle. And how do you tell, or is it important
necessarily to tell?
Bob S
On Aug 20, 2014, at 08:23 ,
Come to think of it, Trevor Devore seems to have found a way for numerically
indexed arrays to have their keys in order in sqlYoga. Also, when you get the
dgData of a data grid, the array is “numerically indexed” by which I mean the
keys of the array are numbers, and they are in numerical
Didn’t know that thanks Pete.
Bob S
On Aug 20, 2014, at 09:33 , Peter Haworth p...@lcsql.com wrote:
I wouldn't be in favor of using {}. Problem is that LC currently accepts
those characters as delimiters for the keys of an array. I don't use them
on purpose but every now and again I
Good luck getting RunRev to deprecate anything. One of their huge selling
points has always been backwards compatibility.
Bob S
On Aug 20, 2014, at 09:56 , Jacques Hausser
jacques.haus...@unil.chmailto:jacques.haus...@unil.ch wrote:
What I suggested is ONLY to deprecate (not suppress, just
On 27/08/2014 14:33, Beat Cornaz wrote:
So, getting rid of the duplicates inside the script is quite important. I still
don't see yet how I can do that in Geoff's script (I will look into that again,
as soon as I can find a little time). If we can get that to work, I think we'll
have a
You cannot dispatch in time. But you can send in time. If you:
send doSomething to me in 0 seconds
do someotherthingsfirst
then someotherthingsfirst will run and anything else that comes after it.
doSomething will run the next idle message.
Bob S
On Aug 27, 2014, at 07:46 , dunb...@aol.com
I just put all calls to database functions inside a try/catch construct.
Bob S
On Aug 20, 2014, at 15:09 , Dr. Hawkins doch...@gmail.com wrote:
On Sun, Aug 17, 2014 at 8:33 PM, Dan Friedman d...@clearvisiontech.com
wrote:
Thanks for the reply. The entire error string is revdberr, (with
Works so long as you are certain the affected rows will never be 0.
Bob S
On Aug 20, 2014, at 15:16 , Ralph DiMola
rdim...@evergreeninfo.netmailto:rdim...@evergreeninfo.net wrote:
Using the revExecuteSQL returns the number of deleted/inserted/updated rows
in the result. Then the test is:
If
Awesome!
I’m trying to get this working but I think I’m having a problem with providing
the path to the Python App.
I keep getting the error: python: can’t open file ‘Macintosh
HD/Users/jpatten/gam’:[Errno 2] No Such file or directory.
Here’s what I have in my button script:
on mouseUp
put
Hey thanks for that Kay. I have a date conversion function that includes
formats like sqlDate which the LC covert command does not support. This will be
a nice addition.
Bob S
On Aug 23, 2014, at 01:28 , Kay C Lan
lan.kc.macm...@gmail.commailto:lan.kc.macm...@gmail.com wrote:
Nope, but this
Not to throw a wrench in the works, but wasn’t there some discussion in the
past about different versions of Julian dates? Which one is the more widely
accepted? I suppose the question could be formed, which one does Microsoft use
for Excel? :-)
Bob S
On Aug 23, 2014, at 13:27 , Mark Wieder
I see bugs sometimes, but usually it is after drinking too much skunk beer.
Bob S
On Aug 23, 2014, at 14:47 ,
revolut...@duncansoftware.on-rev.commailto:revolut...@duncansoftware.on-rev.com
wrote:
The crlf was created from my code. The bug is not with Livecode. The bug is
staring at my
I’ll be there in spirit. 1/4 norwegian. ;-)
Bob S
On Aug 24, 2014, at 15:11 , Mark Schonewille
m.schonewi...@economy-x-talk.commailto:m.schonewi...@economy-x-talk.com
wrote:
Dear everyone,
On 20th September 2014, there will be a LiveCode meeting in the Netherlands.
The exact location will
I’ve seen this too Jacque in the current app I am working on. If I am in a
field and I click the “Save” button closeField does not get sent to that field.
I will use your solution to get around it.
Bob S
On Aug 23, 2014, at 14:22 , J. Landman Gay jac...@hyperactivesw.com wrote:
On
check first that the application and document exist first tho’.
Bob S
On Aug 25, 2014, at 14:13 , Colin Holgate co...@verizon.net wrote:
launch [document path] with [application path] should work, shouldn’t it?
Read the Dictionary entry for other variations.
Bob Sneidar wrote:
Come to think of it, Trevor Devore seems to have found a way for
numerically indexed arrays to have their keys in order in sqlYoga.
Also, when you get the dgData of a data grid, the array is
“numerically indexed” by which I mean the keys of the array are
numbers, and they
floor = roundDown?
Bob
On Aug 23, 2014, at 09:13 , Earthednet-wp proth...@earthednet.org wrote:
Richmond,
Floor of a number is the largest integer that is less than or equal to the
number. For positive numbers, it would be trunc(myNumber) but for negative
numbers, floor(-4.34) would have
Yer a bit low. I’d add a pint.
Bob
On Aug 23, 2014, at 11:29 , Richmond
richmondmathew...@gmail.commailto:richmondmathew...@gmail.com wrote:
No: I was running 2 pints of beer :)
Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Just what I was thinking.
Bob S
On Aug 23, 2014, at 12:13 , Richmond
richmondmathew...@gmail.commailto:richmondmathew...@gmail.com wrote:
Well, presumably one way to do this would be to check if the number is positive
or negative,
and then, if it is negative multiply it by -1, round it, and
Nicely done! I love this list!!
Bob S
On Aug 23, 2014, at 13:22 , Charles E Buchwald
char...@buchwald.camailto:char...@buchwald.ca wrote:
function Floor pValue
if pValue 0 then return trunc(pValue) - 1 else return trunc(pValue)
end Floor
I know this is trivial, but here's a ceiling
I’ve always thought that LC should include a roundUp and roundDown version of
round().
Bob S
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
As an interesting side affect, and a treatise on why it’s never a good idea to
do things this way, if I put Toshiba copier firmware on a USB drive using OS X,
these hidden files end up also on the USB drive. Failing to remove these hidden
files in Windows before attempting to apply the firmware
Nice! I’m going to try to create a script to do this in Livecode. I have a
forms generator app I use everyday for work to manage the forms I need to do
copier installs. It would be nice to have a button I can click that can unzip
the current firmware for the copier and put it on the USB drive!
I received an email last night that my membership in this list had been
suspended due to excessive bounces and the last bounce received from me
was yesterday. I'm pretty sure from various things in the email that it
was a genuine email and not some phishing attempt.
I'm not sure exactly what
Pter,
You said you're not seeing my e-mails, so probably you don't read this.
It looks like you have an overzealous spam filter in place.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter:
On 8/27/2014, 2:10 AM, Terence Heaford wrote:
This is a stack on a Mac (Mavericks)
LC Community 6.7 dp 9.
I have zoomed my stack and it is the window size excluding the mac menubar
height.
When checking the size in the proper inspector it is 1680 x 1002.
I close the stack and LC asks me if I
I've wondered what, specifically, blocking means. Does it mean that there are
no idle messages sent? What is being blocked?
Bill
William Prothero
http://es.earthednet.org
On Aug 27, 2014, at 8:16 AM, Bob Sneidar bobsnei...@iotecdigital.com wrote:
You cannot dispatch in time. But you can
Having forgotten all I ever knew about Unicode (it wasn't much), I am trying to
understand Unicode in LC, and although I have heard about just works I am not
sure how to proceed. For example, the code for pi (Greek letter, lower case) is
apparently (via internet sources)
U+03C0
it also seems
Beware:
This function fails when the number is a negative integer.
Bill
function Floor pValue
if pValue 0 then return trunc(pValue) - 1 else return trunc(pValue)
end Floor
William Prothero
http://es.earthednet.org
On Aug 27, 2014, at 9:11 AM, Bob Sneidar bobsnei...@iotecdigital.com wrote:
I'm pleased to announce the release of version v2.1.5 of lcStackBrowser.
lcStackBrowser is a plugin replacement for the Livecode IDE
Application/Project Browser.
This version includes several bug fixes and enhancements, including the
ability to view and edit the paragraph level field settings
FORD JR, CURT wrote
They are both 16bit; the one that works is 22.1 kHz, bitrate 56 kbps,
the ones that don't work are 44.1 kHz, 128 kbps.
But we've delivered many other modules with files at 44.1/128
with no issues.
Could that cause a problem on this one computer, or
is there something
I think blocking was just a poor choice of wording. Here is my take on how it
works:
Think in terms of the message queue being a stack. A stack of things to do
where the top entry is what is currently executing. Entries blow it will be
executed in sequence as the top entry is popped off.
William Prothero wrote:
I've wondered what, specifically, blocking means. Does it mean that
there are no idle messages sent? What is being blocked?
Given this:
on mouseUp
DoSomething
send DoSomethingElse to me
DoSomeOtherThing
end mouseUp
on DoSomethingElse
put 1+1 into gSomeVar
On 27 Aug 2014, at 18:03, J. Landman Gay jac...@hyperactivesw.com wrote:
The IDE truncates the window size to fit inside the area not occupied by the
IDE palettes. This is controlled by the windowBoundingRect property. You can
change it temporarily by launching LiveCode and putting this
My apologies... I tested this when I first wrote it, and I thought I had
everything covered. As others have pointed out, it requires a test for negative
integers, so it should be:
function Floor pValue
if pValue is an integer OR pValue 0 then return trunc(pValue) - 1
else return
Bob Sneidar wrote:
This is a real crappy way to save file info. I like the old
resource/data fork method Apple used to use. Not sure why
they got rid of that.
Ironically, for interoperability. :)
But more specifically, for interoperability with NeXT, which was renamed
with a new UI to
Hi list
I have a script using revXMLDeleteNode that runs fine on OSX
and LC 6.5.2, but with LC server I get the error
Handler: can't find handler (revXMLDeleteNode)
The dictonary for LC 6.5.2 says for revXMLDeleteNode :
Platforms: Desktop, Server, Web and Mobile
I've googled the problem but the
On Wed, Aug 27, 2014 at 10:42 AM, Michael Doub miked...@gmail.com wrote:
The send with no time specified and dispatch, both inserts the called
hander, just below the top entry on the stack to it will be the next to
execute when the current top entry is finished.
I might be misunderstanding
Hi
revXMLDeleteNode requires the XML Library which does not seem to be
included as part of the LC Server (along with other the other libraries) -
so while the dictionary does say it is supported by the server, this does
not seem to be access or add the needed libraries currently. Hope I am wrong
Simon,
Actually when I say LC server it's actually my account at on-rev.
Obviously the XML library is included since other commands like
revXMLRootNode, revXMLChildNames, revXMLNodeContents etc
work perfectly in the same script...
The problem seems to be limited to revXMLDeleteNode...
jbv
Hi
On 27/08/2014 18:17, Graham Samuel wrote:
Having forgotten all I ever knew about Unicode (it wasn't much), I am trying
to understand Unicode in LC, and although I have heard about just works I
am not sure how to proceed. For example, the code for pi (Greek letter, lower
case) is apparently
Fraser, that's very very helpful, although still quite mysterious to me. For
example I thought Unicode was cleverer than just having a two-byte
representation for everything, but allowed single byte representation for the
'lower end' of the catalogue of characters. However I quite see that
Alex wrote :
To make it faster, it *should* be serialized, so that it isn't actually
recursive; that should be quite easy (but will make the code much less
easy to read or understand, so I haven't done it yet). If you think it's
worth pursuing, let me know and I'll have a go at unrolling
On 8/27/2014, 1:24 PM, Terence Heaford wrote:
The stack size was 1660 x 1002 as expected but the top of the window
is now underneath the menubar.
Yes, it will be if the stack is taller than the available screen space,
or the top is above the menu bar when its centered on screen. You can
push
From: Peter Haworth
I think send works the same way if it has no time specified.
According to
the dictionary, a send with no time executes the sent handler
immediately, then execution of the current handler continues.
With a send
in time, the current handler finishes executing before
Helps if I test it first
Tried ony my lc server - seems to work fine.
Simon
On Wed, Aug 27, 2014 at 9:27 PM, j...@souslelogo.com wrote:
Simon,
Actually when I say LC server it's actually my account at on-rev.
Obviously the XML library is included since other commands like
revXMLRootNode,
I am using the files to list all of the files in a
folder. This also list all of the hidden files
they begin with a dot “.”.
What is the fastest way to delete all lines in
a variable that begin with a dot?
John Balgenorth
___
use-livecode mailing
Hi John,
filter myVar without .*
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Installer Maker for LiveCode:
http://qery.us/468
Buy my new book Programming
Hi Mark.
Thank you so very much!
I really appreciate it a lot.
John Balgenorth
On Aug 27, 2014, at 2:07 PM, Mark Schonewille
m.schonewi...@economy-x-talk.com wrote:
Hi John,
filter myVar without .*
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software
Yes, Peter, this is happening to me regularly (2-3 times per week).
Exactly as you described.
On Wednesday, August 27, 2014 12:30:36 PM, Peter Haworth p...@lcsql.com wrote:
I received an email last night that my membership in this list had been
suspended due to excessive bounces and the
I'm going to reply 2 or 3 separate answers ... otherwise it will get
confusing :-)
Sorry if this overloads anyone trying to delete or ignore the thread
message by message.
On 27/08/2014 21:15, Beat Cornaz wrote:
As for the Duplicates :
Alex wrote :
permut() is the optimized version -
(second reply ..)
On 27/08/2014 21:15, Beat Cornaz wrote:
Alex wrote :
Recursive scripts is something I know in principle about, but never have used
them before. They are quite compact, but I find it hard to follow, especially
as your variables are emptied in each new entry into the script
Bob Sneidar wrote...
Not to throw a wrench in the works, but wasn't there some discussion in the
past about different versions of Julian dates? Which one is the more widely
accepted? I suppose the question could be formed, which one does Microsoft
use for Excel? :-)
Hi Bob
There is only one
I would like to append this to what may be a record number of incorrect scripts
on my part. Hugh pointed out in the forums that the floor of 5 is 5, and the
ceiling of -5 is -5. These scripts might actually be correct, but I'm not
guaranteeing anything at this point... My apologies for the
Peter, Thanks for setting me straight
This means that send with no time specified and dispatch behave exactly the
same behavior as a hander or function call, where the currently executing entry
is push on to the stack and sent or dispatched item is put on top and is
executed. This makes
On 27/08/2014 23:02, Alex Tweedly wrote:
I'll have a go at serializing this code - hopefully tonight (i.e.
starting now and not getting myself tied up in knots with it :-)
Here's a serialized version. Not as fast as I had hoped - it's about
twice as fst as the recursive vesion, but that
I have an app that was designed to run on the desktop on school computers,
which are mostly windows based. However, the app may have to run on flash drive
because of administrator's issues.
I know I will have to disable preferences that I had for the desktop version. I
have already tried my
Could you copy your app/stack to the hard disk
cache ot temp folder and run your app/stack from
this folder of the user computer?
Al
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/Apps-on-Flash-Drive-Advice-tp4682592p4682593.html
Sent from the Revolution -
I get this sort of thing about once a week. It is legit, though annoying. I
keep having to renew my membership from a link supplied in the eMail.
Craig Newman
-Original Message-
From: Mark Schonewille m.schonewi...@economy-x-talk.com
To: How to use LiveCode
Al
I have not tried or even thought of that. Is there a script that you can use
for windows that would automatically do that for the user when he double-clicks
on the exe file on the flash drive? Any scripts you can suggest would be
greatly appreciated!
Sent from my iPad
Months back or maybe even last year, I had to set a gmail filter so that
some members' list-messages came through despite being marked as spam.
Alain Farmer's and Craig Newman's are such two. There may be others too
(not Peter Haworth's).
For what it's worth.
--
Nicolas Cueto
On Thu, Aug 28,
Charles,
InfoWallet is also designed to be run from a USB drive as well as from a hard
disk. There are a lot of advantages in doing so. The only limitation I see
running from a USB drive is how long it takes to load the data file or save the
data file. The larger the data file the longer it
Make sure that you are using a quality USB stick as well. Some cheap and
nasty ones can be awfully slow.
Terry...
On 28/08/2014 3:25 pm, Bill Vlahos bvla...@mac.com wrote:
Charles,
InfoWallet is also designed to be run from a USB drive as well as from a
hard disk. There are a lot of advantages
75 matches
Mail list logo