This has several restrictions, but it generates all permutations of 10
items in about 6 seconds on my recent macbook. It uses two functions, one
to generate a permuted list of single digits, and the other to replace in
the actual items to be permuted.
The restrictions are:
1. The general permutat
On Sun, Aug 24, 2014 at 2:59 AM, Dr. Hawkins wrote:
>
> Anyway, I agree: we want something to do once and be done.
>
> Once we record the bells, would an iOS device (ipod touch, iphone, ipad) be
> able to do the same thing? Leave it permanently plugged to power and the
> adaptors?
iOS devices a
America and society have changed drastically in the
last 10 years.
People are organized and many times they steal from
you are damage something you own simply because
they want to destroy you. Aa a group they are like a
bunch of termites. They each do their part no matter
lhow small it is becaus
On Sat, Aug 23, 2014 at 3:51 PM, stephen barncard <
stephenrevoluti...@barncard.com> wrote:
> so tempting to steal or lose. Interface is more difficult.
>
My initial reaction is that if someone is breaking into a byzantine church,
electronics will be *way* low on their priority list. The icons a
> The crlf was created from my code. The bug is not with Livecode.
> The bug is staring at my monitor.
LOL
--
-Mark Wieder
ahsoftw...@gmail.com
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secret. The parties to this email do not
consent
On Sat, Aug 23, 2014 at 11:59 AM, Dr. Hawkins wrote:
> Once we record the bells, would an iOS device (ipod touch, iphone, ipad) be
> able to do the same thing? Leave it permanently plugged to power and the
> adaptors?
>
so tempting to steal or lose. Interface is more difficult.
*--*
*Stephen
On 8/23/2014, 4:10 PM, Peter M. Brigham wrote:
I have long been annoyed at the default placement of the insertion
point in the first field when the card is opened (I believe it's not
just when the stack gains focus). My solution is to group all the
fields and set the traversalon of the group to f
The crlf was created from my code. The bug is not with Livecode. The bug is
staring at my monitor.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http
On 8/23/2014, 3:02 PM, Graham Samuel wrote:
It is quite possible for him (her) not to close the last revised
field, but simply to go straight to clicking the button. This means
that I can't rely on a 'closeField' message being generated even when
a field is modified!
Hm, that's an old bug that
On 8/23/2014, 3:25 PM, Mark Wieder wrote:
The script implementations are fine, but it was way too easy to add
these to the engine, so I just submitted a pull request for floor()
and ceil().
Good on you. :) I've sometimes wondered why those two weren't in the
engine, they're common in other lan
On Aug 23, 2014, at 4:02 PM, Graham Samuel wrote:
> My user is allowed to write stuff into a succession of fields, and then click
> on a button to get something done. The 'something' depends on whether any of
> the fields have been modified or not. It is quite possible for him (her) not
> to cl
On Aug 23, 2014, at 3:31 PM, J. Landman Gay wrote:
> On 8/23/2014, 12:14 PM, Graham Samuel wrote:
>> I have a palette with a lot of objects on it. There are some fields
>> and some buttons. I have just realised that when I click on one of
>> the buttons, before executing the 'mouseUp' handler for
Charles-
Saturday, August 23, 2014, 11:21:44 AM, you wrote:
> Thanks. I have been using Sarah Reichelt's Date & Time Library,
> which contains these functions by Mark Wieder. I actually didn't
> realize they were under copyright, but I see that now.
I didn't either. Or more probably I'd forgotte
Awesome, Mark. Even better than a feature request!
On 23 Aug 2014, at 3:25 PM, Mark Wieder wrote:
> All-
>
> The script implementations are fine, but it was way too easy to add
> these to the engine, so I just submitted a pull request for floor()
> and ceil().
>
> --
> -Mark Wieder
> ahsoftw.
All-
The script implementations are fine, but it was way too easy to add
these to the engine, so I just submitted a pull request for floor()
and ceil().
--
-Mark Wieder
ahsoftw...@gmail.com
This communication may be unlawfully collected and stored by the National
Security Agency (NSA) in secr
That works good!
Very nice, thank you.
John Balgenorth
On Aug 23, 2014, at 12:39 PM, J. Landman Gay wrote:
> If I change the "answer" line to this it works:
>
> answer warning pString with pBtn1 and pBtn2
>
> If you want a more flexible handler that answers with regular, warning, or
> info
Jacquie, I tested my script before I posted it, and it works for negative
integers.
Colin, just for fun, I've consolidated mine to one line.
Richmond, maybe you'd like to add "ceiling" to your sample stack?
function Floor pValue
if pValue < 0 then return trunc(pValue) - 1 else return trunc(pVal
Many languages equate booleans to 0 or 1. If LiveCode worked that way you could
say:
put trunk(n-(n<0))
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferen
Jacque to the rescue as ever! Thanks, you have nailed it. It's not just
annoying, it's a bug - since an error or omission in the documentation is a bug
too, as far as I am concerned: I have not seen a description of this very odd
behaviour in the Dictionary or elsewhere (of course I could have m
> I found this link. It might be easier to convert this code to LC.
> http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
> Bill
>
> William Prothero
> http://es.earthednet.org
These algorithms have now been superceded by the NOAA algorithms
http://www.esrl.noaa.gov/gmd/grad/solcalc. There
On Aug 23, 2014, at 11:47 AM, Colin Holgate wrote:
> I installed it onto my Kindle Fire HDX. You do notice that the transitions
> and scrolling in the app are sluggish? Might make for a fun session, making
> your app run smoothly.
Yes. We have spoken with RunRev devs about Android performance
Folks:
Try this:
You have to be sure that if myNum is a perfect negative integer, floor(myNum) =
myInteger
while
floor(-some non-integer) = trunc(myNum - 1)
Colin’s version works too.
on mouseUp
put 1.55 into tNum
put 1 into tCor
put "case: "&tNum&" Correct value: "&tCor&", Calc Value:
If I change the "answer" line to this it works:
answer warning pString with pBtn1 and pBtn2
If you want a more flexible handler that answers with regular, warning,
or info icons, then you'd need to pass that in a parameter and branch
the handler depending on the type. I wasn't able to get it
On 8/23/2014, 12:14 PM, Graham Samuel wrote:
I have a palette with a lot of objects on it. There are some fields
and some buttons. I have just realised that when I click on one of
the buttons, before executing the 'mouseUp' handler for the button,
the engine fires an 'openField' for one of the fi
Go, get it Happy People :)
http://forums.livecode.com/viewtopic.php?f=5&t=21404
Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lis
You could do it in one line:
put trunc(-14.2+10)-10
where the 10 part is a number bigger than anything you’re going to
encounter in your app.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to s
On 23/08/14 22:03, J. Landman Gay wrote:
On 8/23/2014, 1:28 PM, Richmond wrote:
On 23/08/14 21:13, Charles E Buchwald wrote:
So I'm thinking...
function Floor pValue
if pValue < 0 then return trunc(pValue) - 1
else return trunc(pValue)
end Floor
Quite unnecessary when 'round' does th
Ooo. I smell a t-shirt to be made:
"Your way is clean, but I need a hack."
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 8/23/14 11:50 AM, "J. Landman Gay" wrote:
>I believe you. I needed it for The Big Project, which already has a
>suspendStack handler, and I was
On 8/23/2014, 1:28 PM, Richmond wrote:
On 23/08/14 21:13, Charles E Buchwald wrote:
So I'm thinking...
function Floor pValue
if pValue < 0 then return trunc(pValue) - 1
else return trunc(pValue)
end Floor
Quite unnecessary when 'round' does the trick without
any homegrown functions.
On Fri, Aug 22, 2014 at 12:46 PM, stephen barncard <
stephenrevoluti...@barncard.com> wrote:
> I think the extreme cheap-out solutions would be a disservice to the
> client, especially with regard to reliability.
>
It's not a client; it's my own parish :)
Anyway, I agree: we want something to d
I believe you. I needed it for The Big Project, which already has a
suspendStack handler, and I was trying to integrate your part. There's a
backscript too with a few thousand lines of code that traps most system
messages. I never bothered to figure out why it didn't work, I just
plugged in my
I installed it onto my Kindle Fire HDX. You do notice that the transitions and
scrolling in the app are sluggish? Might make for a fun session, making your
app run smoothly.
> >I would love to release the code to this app, but we have plans to
> >commercialize it.
>
___
On Aug 23, 2014, at 10:31 AM, Colin Holgate wrote:
> Is it a LiveCode app? If it is, would you want to send the stack to people
> who have iPhone developer accounts, rather than take up one of your UDID
> slots?
Hi Colin,
I would love to release the code to this app, but we have plans to
co
On 23/08/14 21:19, Colin Holgate wrote:
You must be running LiveCode version -7. It shows -10 for me.
On Aug 23, 2014, at 2:05 PM, Richmond wrote:
put round(-9.8_
give us 10
Yo!
Richmond.
No: I was running 2 pints of beer :)
Richmond.
___
On 23/08/14 21:13, Charles E Buchwald wrote:
So I'm thinking...
function Floor pValue
if pValue < 0 then return trunc(pValue) - 1
else return trunc(pValue)
end Floor
Quite unnecessary when 'round' does the trick without
any homegrown functions.
Richmond.
___
Thanks, Jacque.
It is nice to have some more code examples. I was
able to get it to work okay but if I use answer warning
the warning icon does not show. Is there a way to
get it to show up with this code?
John Balgenorth
On Aug 23, 2014, at 11:06 AM, J. Landman Gay wrote:
> On 8/23/2014, 1
Kay,
Thanks. I have been using Sarah Reichelt's Date & Time Library, which contains
these functions by Mark Wieder. I actually didn't realize they were under
copyright, but I see that now.
It says something nice about LC that this code is 10 years old and still valid
and valuable.
- Charles
--
You must be running LiveCode version -7. It shows -10 for me.
On Aug 23, 2014, at 2:05 PM, Richmond wrote:
> put round(-9.8_
>
> give us 10
>
> Yo!
>
> Richmond.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to
If you haven't already, try the script in an empty stack -- should work as
expected. I doubt my systems have any special mojo going on (usually I
get curses, plagues, and the occasional hex).
Regards,
Scott Rossi
Creative Director
Tactile Media, UX/UI Design
On 8/23/14 11:06 AM, "J. Landman
So I'm thinking...
function Floor pValue
if pValue < 0 then return trunc(pValue) - 1
else return trunc(pValue)
end Floor
On 23 Aug 2014, at 1:05 PM, Richmond wrote:
> On 23/08/14 20:44, J. Landman Gay wrote:
>> On 8/23/2014, 11:20 AM, Richmond wrote:
>>> That "floored me" :) Thanks for t
On 8/23/2014, 12:07 PM, Scott Rossi wrote:
I should have clarified that I listed two scripts: one for answer, one for
ask. But the script is working here for all versions of LC, Mac and Win,
including v7. Not sure what to tell you. Did you try the script in a
new, empty stack?
Something like
Graham,
I'm just speculating... Is one of your fields receiving keyboard focus when the
palette receives focus?
Do you get the same "openField" for each button press in the palette, or just
the first one upon returning to the palette?
- Charles
On 23 Aug 2014, at 12:14 PM, Graham Samuel wrote:
On 23/08/14 20:44, J. Landman Gay wrote:
On 8/23/2014, 11:20 AM, Richmond wrote:
That "floored me" :) Thanks for the heads up!
I just wrote this in the Message Box:
put trunc(-9.8)
and got '-9'
The correct answer for "floor" would be -10. It's the largest integer
that is less than the tes
On 8/23/2014, 11:20 AM, Richmond wrote:
That "floored me" :) Thanks for the heads up!
I just wrote this in the Message Box:
put trunc(-9.8)
and got '-9'
The correct answer for "floor" would be -10. It's the largest integer
that is less than the test number.
--
Jacqueline Landman Gay
Is it a LiveCode app? If it is, would you want to send the stack to people who
have iPhone developer accounts, rather than take up one of your UDID slots?
On Aug 23, 2014, at 1:04 PM, Mark Talluto wrote:
> I would just need your UDID. Please send it to supp...@canelasoftware.com in
> the fol
Thanks Scott.
I cannot believe how dumb I am somedays.
The problem was I pasted the code as it was
in my openStack handler and after looking at
it I see they both call the same thing.
Your latest version fixed it.
thank again.
John Balgenorth
On Aug 23, 2014, at 10:07 AM, Scott Rossi wrote:
Thanks for the info, Richard.
John Balgenorth
On Aug 23, 2014, at 9:59 AM, Richard Gaskin wrote:
> Scott Rossi wrote:
>
>> Here's one way to position ask/answer dialogs on desktop:
>>
>> [ in your stack script ]
>>
>> on suspendStack
>> if "ask dialog" is among the lines of the openStacks
I have a palette with a lot of objects on it. There are some fields and some
buttons. I have just realised that when I click on one of the buttons, before
executing the 'mouseUp' handler for the button, the engine fires an 'openField'
for one of the fields. I can't see what I have done to cause
Beat Cornaz wrote:
> I have some hundred fitness functions, which need to be recalculated
> many times. But I think the problem of making Permutations might be
> illuminating for me, as this one takes quite long to run (with 10 or
> more elements to Permutate).
>
> So a good example would be how
I should have clarified that I listed two scripts: one for answer, one for
ask. But the script is working here for all versions of LC, Mac and Win,
including v7. Not sure what to tell you. Did you try the script in a
new, empty stack?
Something like this would be better to be all-inclusive:
on
On Aug 23, 2014, at 3:44 AM, Marc Van Cauwenberghe
wrote:
> Anyone tried to install the app yet?
> Does not seem to be available.
Hi Marc,
The Android version is available now via our website (device needs to be in
developer mode).
http://livecloud.io/runrevlive-14-conference-app/
We have s
Scott Rossi wrote:
Here's one way to position ask/answer dialogs on desktop:
[ in your stack script ]
on suspendStack
if "ask dialog" is among the lines of the openStacks then
set the loc of stack "ask dialog" to the loc of me
end if
end suspendStack
on suspendStack
if "answer
Kay-
Friday, August 22, 2014, 11:36:11 PM, you wrote:
> So I looked into this and there is NO requirement to use \ to delimit
> the / char in PCRE grep. On further investigation it appears to be a
> limitation of the online grep tester which uses the / char to enclose
> the grep string so the ser
Hi Scott,
I put the script in my stack script and it continued to
show the answer dialog in the center of the screen.
So I replaced llc with “112,110” and nothing changed.
Then I added "put the openStacks" into the mouseUp
handler where the answer dialog is called from. If it
is at the very beg
On 23/08/14 19:13, Earthednet-wp 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 to evaluate to -5. Probably trunc(myNum-1)
would almost do it
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 to evaluate to -5. Probably trunc(myNum-1)
would almost do it, but I'm not in LC to check all cases, e.
On 23/08/14 18:31, Alejandro Tejada wrote:
Really Nice! :D
If I had to do this effect, only will cutout the floating mountain and
use the sky and sea as static background.
Many Thanks for including in your Forum post
a download link to Bryce Personal Learning Edition:
http://www.freedownloadspl
>>
>> Will that let you position the ask and answer dialogs?
>>
>> John Balgenorth
>>
>>
Here's one way to position ask/answer dialogs on desktop:
[ in your stack script ]
on suspendStack
if "ask dialog" is among the lines of the openStacks then
set the loc of stack "ask dialog"
Really Nice! :D
If I had to do this effect, only will cutout the floating mountain and
use the sky and sea as static background.
Many Thanks for including in your Forum post
a download link to Bryce Personal Learning Edition:
http://www.freedownloadsplace.com/Bryce-Download-40177.htm
Back in 201
On 23/08/14 17:44, Earthednet-wp wrote:
I found this link. It might be easier to convert this code to LC.
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
Bill
William Prothero
http://es.earthednet.org
That looks very good indeed: but I don't understand what 'floor' means.
Richmond
I found this link. It might be easier to convert this code to LC.
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm
Bill
William Prothero
http://es.earthednet.org
> On Aug 23, 2014, at 5:17 AM, Richmond wrote:
>
>> On 23/08/14 15:13, FlexibleLearning.com wrote:
>> Yes. I have done this.
On 23/08/14 15:13, FlexibleLearning.com wrote:
Yes. I have done this. It is not a trivial exercise. It requires a lot of
complex solar geometry calculations as well as Julian calcs.
Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar
Calculator", extract the javascript in the web pa
Yes. I have done this. It is not a trivial exercise. It requires a lot of
complex solar geometry calculations as well as Julian calcs.
Go to http://www.esrl.noaa.gov/gmd/grad/solcalc, pick the "Solar
Calculator", extract the javascript in the web page, then translate it to LC
for use in your own w
I obtained a 10% speed increase by changing this:
repeat with n = 3 to 10
to this:
put "3,4,5,6,7,8,9,10" into nList
repeat for each item n in nList
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subsc
Well, I had fun anyway :)
http://forums.livecode.com/viewtopic.php?f=25&t=21381&p=109524#p109524
But I have the advantage of running Bryce 4 on my G5 iMac in Classic mode!
And . . . I had almost completely forgotten about PICT and TIFF image
formats . . .
Richmond.
_
Hi John,
No, but that should be easy. There are several ways to do this. For example,
create an invisible stack, set its location to the location where you want the
answer dialog. Set the defaultStack to this stack and execute the ask or answer
command. There may be more elegant ways.
set the
Anyone tried to install the app yet?
Does not seem to be available.
Marc
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mail
Wondering if anyone knows of any creative way to capture video on an
Android device through a LC app.
Thanks,
Richard Miller
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your su
http://livecode.com/blog/2014/08/22/koch-island-fractal-basics-with-livecode/
This is a lot of fun.
But, oddly enough, on about the 6th or 7th click on the Iterate button
the graphic is deleted!
Richmond.
___
use-livecode mailing list
use-livecode@li
On Aug 23, 2014, at 1:31 AM, Dick Kriesel wrote:
> putLine n & " things produce " & ( number of elements in
> tCountForPermutation ) & " of " \
oops. please replace "putLine" with "put"
___
use-livecode mailing list
use-livecode@lists.runrev.co
On Aug 22, 2014, at 1:17 PM, Beat Cornaz wrote:
> So a good example would be how to make all possible permutations of say 10
> different elements (0-9). This gives 3628800 different permutations.
> The resulting permutations will be in lines I guess, but what would be the
> best way to do thi
Nope, but this will help you calculate the Julian Date Number, which
you'll need:
put the date into tDate
convert tDate from date to dateItems
if ((item 2 of tDate = 1) or (item 2 of tDate = 2)) then
put 1 into tDay
else
put 0 into tDay
end if
put item 1 of tDate + 4
72 matches
Mail list logo