Re: Find nearest color in an RGB list

2012-01-11 Thread Nonsanity
Yeay! One always worries about code written IN the email... :) ~ Nonsanity On Tue, Jan 10, 2012 at 3:31 PM, Michael Doub m...@doub.com wrote: This works like a charm! Thanks, Mike On 2012-01-10, at 3:03 PM, Nonsanity wrote: Both look like good suggestions for getting the closest

Re: Find nearest color in an RGB list

2012-01-10 Thread Nonsanity
it into ClosestDist put c into ClosestColor end if end repeat return ClosestColor end GetClosestColor You'd have your colors in gColorList like this: 32,32,128 255,255,255 0,0,0 128,128,256 (etc) ~ Chris Innanen ~ Nonsanity On Tue, Jan 10, 2012

Re: PRINTING PROBLEM

2011-09-30 Thread Nonsanity
I used to walk the aisles at a local Target every day at work as a break, so I would find all the great deals and clearances. I got several all-in-one inkjet printers at the $30 price point that way. So I was doing just what you suggest. HOWEVER, new printers don't usually come with fully-loaded

iOS Card Scrolling with Bounce

2011-09-13 Thread Nonsanity
that they are already very used to... It's better not to even try. If that's the case, then LiveCode has failed me. Can't have that! :) I checked the revOnline example and library stacks, but didn't see anything for this. ~ Chris Innanen ~ Nonsanity ___ use

Re: Shell and Background Jobs

2011-08-24 Thread Nonsanity
, that's better than using AppleScript, and being able to generate it inside LC is a plus too. I'll go test that later. :) ~ Chris Innanen ~ Nonsanity On Wed, Aug 24, 2011 at 5:48 AM, Klaus on-rev kl...@major.on-rev.comwrote: Hi Chris, Am 23.08.2011 um 22:32 schrieb Nonsanity: Now

Re: Shell and Background Jobs

2011-08-23 Thread Nonsanity
~ Nonsanity On Tue, Aug 23, 2011 at 4:53 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Chris, Surely the open process command works on Mac OS X. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com

Re: Shell and Background Jobs

2011-08-23 Thread Nonsanity
Okay, the Applescript intermediary sounds like it might work. I'll give that a go. ~ Chris Innanen ~ Nonsanity On Tue, Aug 23, 2011 at 5:14 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Chris, Don't believe everything that's written. I can imagine that some command

Re: Shell and Background Jobs

2011-08-23 Thread Nonsanity
on Macs or Linux systems. Maybe it's just me... ~ Chris Innanen ~ Nonsanity On Tue, Aug 23, 2011 at 5:16 PM, Nonsanity f...@nonsanity.com wrote: Okay, the Applescript intermediary sounds like it might work. I'll give that a go. ~ Chris Innanen ~ Nonsanity On Tue, Aug 23, 2011 at 5:14 PM

Re: Money Script

2011-08-10 Thread Nonsanity
cheese ~ Chris Innanen ~ Nonsanity On Wed, Aug 10, 2011 at 12:40 PM, Peter M. Brigham, MD pmb...@gmail.comwrote: On Aug 10, 2011, at 10:52 AM, Bob Sneidar wrote: Mark, it must have been you in an alternate timeleine. I have socks I never bought in my drawer

Re: How to sort on keydown

2011-08-03 Thread Nonsanity
end if end repeat end keydown Does that do what you want? You might want to limit the keys it works with by putting an if statement around the entire guts of the handler like so: if theKey 64 and theKey 91 then ... end if ~ Chris Innanen ~ Nonsanity On Wed, Aug 3, 2011 at 2:24 AM

Re: using TAB, ENTER or RETURN to advance fields by force

2011-08-03 Thread Nonsanity
. It tends to vary be the needs of the program. ~ Chris Innanen ~ Nonsanity On Wed, Aug 3, 2011 at 2:26 AM, Admin ad...@mfelkerco.com wrote: Hello again. I want the user to go to the next field (by force) by pressing either the TAB key, the ENTER key or the RETURN key. How do I do

Re: How do I remove part of a path?

2011-08-01 Thread Nonsanity
set itemdel to / put into item 4 of it There should be no double slash then. That line removes that whole item. ~ Chris Innanen ~ Nonsanity On Sun, Jul 31, 2011 at 10:55 PM, Michael Kann mikek...@yahoo.com wrote: Pete, I checked to see if the itemDelimiter trick left behind

Re: Where does survive the inventive user ?

2011-08-01 Thread Nonsanity
of a cryptic text-only Python script... ~ Chris Innanen ~ Nonsanity On Wed, Jul 27, 2011 at 5:09 PM, Francis Nugent Dixon effe...@wanadoo.frwrote: Hi, Craig said : who might fall in love with LC if they only were simply exposed to it Amen to that ! This was my point - Who IS exposed

Re: Countdown HH:MM:SS

2011-07-20 Thread Nonsanity
) into countdown return countdown end CountdownCalc Pretty much the same as the other samples, but more accurate over the long haul in those final seconds. ~ Chris Innanen ~ Nonsanity On Wed, Jul 20, 2011 at 3:19 PM, Roger Eller roger.e.el...@sealedair.comwrote: On Wed, Jul 20, 2011 at 1:06 PM

Re: Countdown HH:MM:SS

2011-07-20 Thread Nonsanity
, s ) into countdown return countdown end CountdownCalc on MouseUp -- cancel button set the targetTime of me to empty end MouseUp ~ Chris Innanen ~ Nonsanity On Wed, Jul 20, 2011 at 3:19 PM, Roger Eller roger.e.el...@sealedair.comwrote: With only a few tweaks like handling

Re: repeat with i=

2011-07-13 Thread Nonsanity
I like Pete's best - closest to what I was thinking - but I'd change the put empty line to delete item y of x. I think the put empty would just put into that item, but the item would still be there, like: 1,2,,4,5,6 ~ Chris Innanen ~ Nonsanity On Wed, Jul 13, 2011 at 9:25 PM, Pete p

Re: Rev Customer Databased Hacked?

2011-07-11 Thread Nonsanity
the whole DB. ~ Chris Innanen ~ Nonsanity On Mon, Jul 11, 2011 at 10:44 AM, Mike Kerner mikeker...@roadrunner.comwrote: So that doesn't strike you as curious, Mike? Think about it. It doesn't make you wonder what the structure is if some customers have their records compromised

Re: Gottit!

2011-07-07 Thread Nonsanity
. It's a new feature - I imagine they'll fix that before long. ~ Chris Innanen ~ Nonsanity ~ (Yes, it's really me.) On Wed, Jul 6, 2011 at 3:33 PM, stephen barncard stephenrevoluti...@barncard.com wrote: Richmond, this is off-topic, but I use google mail and your messages are being tagged

Re: defining and using globals in an application

2011-07-07 Thread Nonsanity
) and more clear about scope. Hope that helps, ~ Chris Innanen ~ Nonsanity ___ 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

Re: defining and using globals in an application

2011-07-07 Thread Nonsanity
, in all ways, for globals. (I never did like having those single lines of code (aka global TestVar) living outside of any handler in my scripts. They were - if I may use the past tense - an ugly feature of the language too...) ~ Chris Innanen ~ Nonsanity On Thu, Jul 7, 2011 at 11:01 AM, Richard

Re: defining and using globals in an application

2011-07-07 Thread Nonsanity
to be inside the LiveCode scope they do not have access to the variables in that scope unless the specifically request access to one by name with the global keyword. Sux to break the pattern, but there ya go... :) ~ Chris Innanen ~ Nonsanity ___ use-livecode

Re: Setting up Mac LiveCode apps on an iPad ?

2011-07-07 Thread Nonsanity
Any my experience is that even after a provisioning profile expires, an installed app will continue to function. But you won't be able to re-install it, say after an upgrade. Apple is lacking an economic method of developing iOS apps for personal in-house use. ~ Chris Innanen ~ Nonsanity

Re: Upper/Lower case issue

2011-07-05 Thread Nonsanity
is the property you fill with the %m etc). ~ Chris Innanen ~ Nonsanity On Sat, Jul 2, 2011 at 12:43 PM, Pete p...@mollysrevenge.com wrote: Hi Craig, Just to be clear, the button names are not identical - one is upper case and one is lower case. In its wisdom, LC treats them as identical

Re: command group fails when objectList is a string

2011-07-05 Thread Nonsanity
Might want to put a select empty at the top too, or the end group might be a bit bigger than you think. (Or better yet, save off the current selection(s), and restore them afterwards. Bonus points.) ~ Chris Innanen ~ Nonsanity On Sat, Jul 2, 2011 at 8:04 PM, Klaus on-rev kl...@major.on

Re: What is the LiveCode equivalent property for the HTML a title=some hover text parameter?

2011-07-05 Thread Nonsanity
to empty end if end mousemove ~ Chris Innanen ~ Nonsanity On Tue, Jul 5, 2011 at 12:35 PM, J. Landman Gay jac...@hyperactivesw.comwrote: On 7/5/11 11:22 AM, J. Landman Gay wrote: On 7/5/11 11:15 AM, Richard Gaskin wrote: Keith Clarke wrote: I was using the a link description

Re: why does lock screen doesn't locks the screen?

2011-07-01 Thread Nonsanity
the screenmouseloc to word a of 202,398 290,270 168,222 363,594 wait 50 end repeat end mouseUp Hope that helps. ~ Chris Innanen ~ Nonsanity On Fri, Jul 1, 2011 at 4:14 AM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hello, In a function I set the screenMouseLoc to four different locations

Re: [OT] what RGB is blue?

2011-07-01 Thread Nonsanity
of instructions turns on and reshapes it further. That's evolution for you... Perfection it ignores in favor of just good enough to breed. :) ~ Chris Innanen ~ Nonsanity On 1 jul 2011, at 11:39, Tiemo Hollmann TB wrote: Hello, I am taking the mousecolor at different points from an image

Re: [OT] Amiga OS in 2011

2011-06-29 Thread Nonsanity
So the sundial is solar powered, and the bike is rocket powered? :) ~ Chris Innanen ~ Nonsanity On Wed, Jun 29, 2011 at 10:20 AM, Richard Gaskin ambassa...@fourthworld.com wrote: Peter Brigham MD wrote: I have a sundial in my back yard. Sure, it's not quite as convenient as a watch

Re: [OT] Amiga OS in 2011

2011-06-29 Thread Nonsanity
On Wed, Jun 29, 2011 at 12:27 PM, Richmond Mathewson richmondmathew...@gmail.com wrote: Do all my mathematics with a British Thornton slide-rule from 1976. If you install the latest firmware update for it, it comes with some really nice plugins... ~ Chris Innanen ~ Nonsanity

Re: Wondering about LC and HTML5

2011-06-28 Thread Nonsanity
There was a Revolution. Now the pawns are in charge with a representative democracy. Their rallying cry is Anyone can be a queen! I think it needs work, myself... ~ Chris Innanen ~ Nonsanity On Wed, Jun 22, 2011 at 5:54 PM, Chipp Walters ch...@chipp.com wrote: Is the King the one

Re: [OT] Amiga OS in 2011

2011-06-28 Thread Nonsanity
Oh yeah? Well... well... MY wristwatch is a PDP-11, so NYAH! :) ~ Chris Innanen ~ Nonsanity On Tue, Jun 28, 2011 at 1:56 AM, Jeff Reynolds j...@siphonophore.comwrote: I still have my transparent developer's newton! talk about looks when i use to plop that down on a conference table

Re: thanks for the tools

2011-06-17 Thread Nonsanity
LiveCode Live! Show off your favorite add-ons to LC. :) ~ Chris Innanen ~ Nonsanity On Fri, Jun 17, 2011 at 2:21 PM, Andre Garzia an...@andregarzia.com wrote: Folks, This is just a little email to show some appreciation for Ken Ray, Richard Gaskin, Chipp Walters, Mark Wieder and Jerry

Relational Layouts (was: Re: nuther new newbie nuisance)

2011-06-15 Thread Nonsanity
, the docs I always wanted to write but never did have been wiki-compiled by fans here: http://cs.elderscrolls.com/constwiki/index.php?title=Category:Oblivion_XMLredirect=no ~ Chris Innanen ~ Nonsanity On Wed, Jun 15, 2011 at 12:50 PM, Roger Eller roger.e.el...@sealedair.comwrote: On Wed, Jun

Re: Why No Built in GetMyIP call in LiveCode?

2011-06-10 Thread Nonsanity
://www.whatismyip.org; into myExIP [dyndns.org] put url http://checkip.dyndns.org; into resp set itemdel to : put word 1 to -1 of item 2 of resp into resp set itemdel to put item 1 of resp into myExIP ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 1:05 PM, John Patten johnpat...@mac.com wrote: Hi

Re: Why No Built in GetMyIP call in LiveCode?

2011-06-10 Thread Nonsanity
haha I completely failed to grasp that. :) How about: put char 2 to -2 of word 3 of shell( ping -n 1 word 2 of shell(ping -n 1 localhost) ) into msg ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:20 PM, John Patten johnpat...@mac.com wrote: Actually Chris I wanted the local

Re: Why No Built in GetMyIP call in LiveCode?

2011-06-10 Thread Nonsanity
that properly for some reason. But pinging your hostName will be sure to return the IP address other computers on the LAN will see you as. One-twenty-seven Zero dot zero dot one There's no place like home ~ Chris Innanen ~ Nonsanity On Fri, Jun 10, 2011 at 2:53 PM, Bob Sneidar b...@twft.com wrote

Re: [OT] Apple at it again

2011-06-09 Thread Nonsanity
these limitations. But the market has been established under their control, and is likely to not drift too far from their desired model after they relinquish control. I think Apple planned to revoke those limits after a few months from the get-go. ~ Chris Innanen ~ Nonsanity On Thu, Jun 9, 2011 at 9:02 AM

Re: how to shorten a case structure?

2011-06-06 Thread Nonsanity
switch myVar case foo1 case foo2 myFunction (last char of myVar) break ... If that's what you mean? ~ Chris Innanen ~ Nonsanity On Mon, Jun 6, 2011 at 8:14 AM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hi, I just don't know if I don't see the obvious

Re: How to replace just the first found space with tab for all lines in a variable?

2011-05-25 Thread Nonsanity
if space is not in line a of myText then next repeat put tab into char (offset( space, line a of myText )) of line a of myText end repeat return myText end StripFirstSpace2 ~ Chris Innanen ~ Nonsanity On Wed, May 25, 2011 at 6:11 AM, Keith Clarke keith.cla

Re: How to replace just the first found space with tab for all lines in a variable?

2011-05-25 Thread Nonsanity
through are large, then modifying the data in-place saves time and memory over copying large quantities of text between two variables. Just sayin'. :) ~ Chris Innanen ~ Nonsanity On Wed, May 25, 2011 at 11:14 AM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Thanks to Roger, Ken and Chris

Re: How to replace just the first found space with tab for all lines in a variable?

2011-05-25 Thread Nonsanity
special tests for those cases as they appeared. ~ Chris Innanen ~ Nonsanity On Wed, May 25, 2011 at 11:41 AM, Alex Tweedly a...@tweedly.net wrote: Beware this will get the (possibly) wrong result for some data. For instance, a comma will terminate a word, so a,b def will give you a key

Re: Syntax to increment variable names in repeat loop

2011-05-24 Thread Nonsanity
merge( [[var whichVar ]] ) into msg ~ Chris Innanen ~ Nonsanity On Tue, May 24, 2011 at 7:47 AM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Thanks, Jim, The 'do' command looks useful as a mechanism for combining disparate elements - I'll add it to my armoury. The multi

Re: Livecode Crashes with Image Source Set to a URL

2011-05-19 Thread Nonsanity
https://www.dropbox.com/help/167 ~ Chris Innanen ~ Nonsanity On Thu, May 19, 2011 at 2:45 PM, Ray Horsley r...@linkit.com wrote: Wouldn't that be my email (r...@linkit.com)? (stepping out for a few hours.) Thanks, Ray -Original Message- From: use-livecode-boun

Re: Livecode for Digital Signage

2011-05-19 Thread Nonsanity
On Thu, May 19, 2011 at 4:51 PM, Jim Schaubeck jimschaub...@yahoo.comwrote: Problem solved: Use a Mac I've been saying that for years... ;D ~ Chris Innanen ~ Nonsanity ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: Livecode for Digital Signage

2011-05-18 Thread Nonsanity
Innanen ~ Nonsanity On Wed, May 18, 2011 at 1:17 AM, Jim Schaubeck jimschaub...@yahoo.comwrote: Chris, Thank you for sending your sample !!! I worked with your code a bit and changed this line: put dTime / 300 into pTime-- changed to 300 This made the test move a similar speed (faster than

Re: Livecode for Digital Signage

2011-05-18 Thread Nonsanity
the video was first loading/caching. If you've got a Mac to test on, give it a try. :) ~ Chris Innanen ~ Nonsanity On Wed, May 18, 2011 at 10:54 PM, Jim Schaubeck jimschaub...@yahoo.comwrote: Thanks Bill! For the first one, that may be a good alternative. I have not tested it but I do appreciate

Re: Obscuring password data in a data grid

2011-05-13 Thread Nonsanity
. ~ Chris Innanen ~ Nonsanity On Fri, May 13, 2011 at 9:13 AM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Thanks Mike, some useful grist to the mill there. FYI I already have the problem solved for a single password field - by using a PasswordEntry font (that has bullets set for all

Re: Simple way to read the livecode list

2011-05-13 Thread Nonsanity
too, if they have two-finger scrolling - which mine does. ~ Chris Innanen ~ Nonsanity On Fri, May 13, 2011 at 6:33 AM, stgoldb...@aol.com stgoldb...@aol.comwrote: I've been following this great livecode (runrev) comments list for years and could kick myself for not using this simple way

Re: In Need of Assistance (URGENT)

2011-05-12 Thread Nonsanity
the risk trust brings with some crowd-sourced safety. :) Home my tips help you, JYST, and good luck on your assignment. We're here to answer SPECIFIC questions you may have. :) ~ Chris Innanen ~ Nonsanity 2011/5/12 Björnke von Gierke b...@mac.com this sounds like a school assignment. What

Re: Highlight list line on hover?

2011-05-12 Thread Nonsanity
mousemove The lock screen prevents a flicker. ~ Chris Innanen ~ Nonsanity On Thu, May 12, 2011 at 8:52 AM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Hi folks, I've found mouseEnter, mouseLine and Highlight in the dictionary but can't seem to get the syntax correct to highlight a line

Re: What does Windows 'shell' expect?

2011-05-12 Thread Nonsanity
what the h*ll I was thinking. Bob ~ Chris Innanen ~ Nonsanity ___ 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

Re: In Need of Assistance (URGENT)

2011-05-12 Thread Nonsanity
Well Michael Jackson DID own a monkey. But Bubbles wasn't very good at Livecode. (Not the frail attempt to make this on-topic for the list!) ~ Chris Innanen ~ Nonsanity On Thu, May 12, 2011 at 12:40 PM, Bob Sneidar b...@twft.com wrote: The first thing I notices was that monkey, jackson

Re: Need Assistance

2011-05-09 Thread Nonsanity
will mostly be spent getting the look and content of the application how you want it, I'm sure. Check out some of the education stacks in the Rev Online directory for examples. ~ Chris Innanen ~ Nonsanity On Mon, May 9, 2011 at 1:30 PM, Jonathan jon.land...@gmail.com wrote: Hi guys, I am

Re: Can Message Box retain messages?

2011-05-07 Thread Nonsanity
be sure that only my script knows about field output and so the data collecting there won't be tainted by output from some other script writing to msg. ~ Chris Innanen ~ Nonsanity On Sat, May 7, 2011 at 8:00 PM, Jim Ault jimaultw...@yahoo.com wrote: The arrow up and down works for me on Rev 4.0

Re: Hide group on click

2011-05-06 Thread Nonsanity
be surprised to find things in the dictionary that violate even these simple rules... The language is growing by many hands, after all. ~ Chris Innanen ~ Nonsanity On Fri, May 6, 2011 at 10:48 AM, Colin Holgate co...@verizon.net wrote: You may be right, and visible should be removed and replaced

Re: Can Message Box retain messages?

2011-05-06 Thread Nonsanity
such hidden fields to track my data as it moves through an app, particularly if the data is large and not easily viewed in the debugger. ~ Chris Innanen ~ Nonsanity On Fri, May 6, 2011 at 2:04 PM, tbodine lvhd...@gmail.com wrote: Hi All. Can the Message Box retain messages I put there? Right now

Re: Database Encryption Key

2011-05-06 Thread Nonsanity
So is your question Does a encrypted stack also encrypt all its variables in memory? ~ Chris Innanen ~ Nonsanity On Fri, May 6, 2011 at 12:30 PM, Warren Kuhl warrenk...@gmail.com wrote: I have a database encryption key that is required by my RunRev application. Currently I just have

Re: Long-term Planning UI Ideas

2011-05-05 Thread Nonsanity
months for the projects are in the project graphics' custom properties. See the script comments for more details. Feedback from anyone is always appreciated. :) ~ Chris Innanen ~ Nonsanity On Wed, May 4, 2011 at 10:51 PM, David Glass dgl...@graymattercomputing.com wrote: Not sure how many

Re: Long-term Planning UI Ideas

2011-05-05 Thread Nonsanity
, you can ignore this version. The code is a bit more complex now due to speed tracking. But that swipe to scroll through time is sorta nice... :) ~ Chris Innanen ~ Nonsanity On Thu, May 5, 2011 at 2:20 PM, David Glass dgl...@graymattercomputing.comwrote: That is *very* cool. Almost exactly

Re: Staying on a field

2011-05-04 Thread Nonsanity
~ Nonsanity On Wed, May 4, 2011 at 12:14 AM, Bill Vlahos bvla...@mac.com wrote: I do a validity check on a field to see if the user entered a valid date. If the user entered a valid date and presses TAB or RETURN the focus moves on to the next field. However, if the user enters an invalid date I want

Re: [revServer] should revdelete work

2011-05-04 Thread Nonsanity
Perhaps there should be: delete folder delete empty folder ~ Chris Innanen ~ Nonsanity On Wed, May 4, 2011 at 10:57 AM, Pierre Sahores psaho...@free.fr wrote: Yes, if really needed but about the unability of delete folder and/or revdeletefolder, to work against non empty folders, does

Re: Live LiveCode Event #21

2011-04-29 Thread Nonsanity
If you still don't have anyone else offer, I think I can now do the talk. The Saturday plans are later in the evening (5pm EDT) so the usual start time for the LLCCE (2pm EDT) should be fine. ~ Chris Innanen ~ Nonsanity On Thu, Apr 28, 2011 at 4:05 PM, Mark Schonewille m.schonewi...@economy

Re: select after the selectedText

2011-04-29 Thread Nonsanity
select after char -1 of fld 1 Also works. ~ Chris Innanen ~ Nonsanity On Fri, Apr 29, 2011 at 8:37 AM, dunb...@aol.com wrote: Richmond. Would changing to select after the text make this better? Craig -Original Message- From: Richmond richmondmathew...@gmail.com

Re: How to sync multiple functions / routines in parallel

2011-04-29 Thread Nonsanity
in memory by making a copy of it, then use the static copy to write to each database in turn. This keeps them safe from the continuous updates. ~ Chris Innanen ~ Nonsanity On Sat, Apr 23, 2011 at 11:12 AM, Glen Bojsza gboj...@gmail.com wrote: Hello, I have a database which I have created

Re: Creating a customkey from a variable

2011-04-27 Thread Nonsanity
with sets, not the contents of the properties. ~ Chris Innanen ~ Nonsanity On Wed, Apr 27, 2011 at 1:38 PM, Glen Bojsza gboj...@gmail.com wrote: Hi Mark, The do script produces what I want (myscore should be score in the example) though I am still working through your array structure to see

Re: Creating a customkey from a variable

2011-04-27 Thread Nonsanity
put myCustomProp[ x1 ] into msg -- 123 So there may be something to post as a bug here... ~ Chris Innanen ~ Nonsanity On Wed, Apr 27, 2011 at 1:55 PM, Nonsanity f...@nonsanity.com wrote: Remember that there is the customKeys set and if you do this: put ABC into myCustomPropNameVar put

Re: Linked List Code

2011-04-27 Thread Nonsanity
put item 2 to -2 of myList into msg -- B,3,C,D put myList into msg -- A,B,3,C,D,F You can also use arrays, though if you are deleting items, you need to access the list of keys. This can get more complex, since LC's arrays are actually maps. ~ Chris Innanen ~ Nonsanity On Sun, Apr

Re: How to generate user passwords

2011-04-27 Thread Nonsanity
put base64encode( random( 1 ) ) into msg :) ~ Chris Innanen ~ Nonsanity 2011/4/27 Björnke von Gierke b...@mac.com repeat for random(2) + random(2) + 4 times put any char of abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890+*%/)=?-_.:,; quote space after

Re: Linked List Code

2011-04-27 Thread Nonsanity
Ah, yes multi-dimensional arrays are fully supported by LC. put ABC into myMDArray[ 1 ][ 3 ][ 2 ] LC allows for nexting arrays, so basically this is an array of arrays of values, or a three dimensional array. ~ Chris Innanen ~ Nonsanity On Wed, Apr 27, 2011 at 3:20 PM, Pete p

Re: Linked List Code

2011-04-27 Thread Nonsanity
That should read nesting arrays... Putting one inside another. ~ Chris Innanen ~ Nonsanity On Wed, Apr 27, 2011 at 5:10 PM, Nonsanity f...@nonsanity.com wrote: Ah, yes multi-dimensional arrays are fully supported by LC. put ABC into myMDArray[ 1 ][ 3 ][ 2 ] LC allows for nexting arrays

Re: Menu Icons?

2011-04-04 Thread Nonsanity
of the additional menu options like icons was done with special text in the menu item's name. Maybe its still possible to add icons that way, though I'm not sure how you'd reference a graphic that way. ~ Chris Innanen ~ Nonsanity On Wed, Mar 30, 2011 at 5:28 PM, Trevor DeVore li

Re: Menu Icons?

2011-03-30 Thread Nonsanity
advise against it... It's definitely not standard UI practice. ~ Chris Innanen ~ Nonsanity On Tue, Mar 29, 2011 at 2:23 PM, Scott Rossi sc...@tactilemedia.com wrote: Am I imagining this, or was the ability to include icons/images in menus added to LC at some point? If yes, does anyone know

Re: Presenting with LiveCode instead of PowerPoint/Keynote

2011-03-18 Thread Nonsanity
Google Says: http://www.pecha-kucha.org/ ~ Chris Innanen ~ Nonsanity On Fri, Mar 18, 2011 at 4:20 PM, Richmond richmondmathew...@gmail.comwrote: On 03/18/2011 10:11 PM, Ben Rubinstein wrote: I moderate occasional 'Pecha Kucha'-style Umm; what are 'Pecha Kucha' sesions ? sincerely

Re: Best practice for creating a resizable HUD-style widget stack background?

2011-03-16 Thread Nonsanity
from the now-resized graphics and re-apply. (Hmmm, there sure were a lot of dashed-words in there...) ~ Chris Innanen ~ Nonsanity On Wed, Mar 16, 2011 at 4:14 AM, Keith Clarke keith.cla...@clarkeandclarke.co.uk wrote: Hi Scott, Thanks for the response, comprehensive clarification

Re: LiveCode color map

2011-03-14 Thread Nonsanity
color name, the RGB values you get back will be something like Aquamarine,65,128 which is quite odd. So it's a good idea to make sure the named color is in colornames before applying it. ~ Chris Innanen ~ Nonsanity On Sun, Mar 13, 2011 at 7:59 PM, J. Landman Gay jac...@hyperactivesw.comwrote

Re: Coding Challenge

2011-03-12 Thread Nonsanity
I'll drop my code in LC and actually RUN it now. If you want to collaborate closer on it, I'd be happy to help. My AIM/iChat is FluffAndSuch. (Other LCers are welcome to use that too.) ~ Chris Innanen ~ Nonsnaity On Sat, Mar 12, 2011 at 3:39 AM, Malte Brill revolut...@derbrill.de wrote:

Re: Coding Challenge

2011-03-11 Thread Nonsanity
must be true if sRelations[pPers2][personB] = pRelation or sRelations[pPers2][personB] = = then return traverseList(personB,pPers2,pRelation) end if end repeat return false end traverseList ~ Chris Innanen ~ Nonsanity On Fri, Mar 11, 2011 at 8:26 AM, Malte Brill

Re: Coding Challenge

2011-03-11 Thread Nonsanity
On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity f...@nonsanity.com wrote: Try this. I haven't tested, but the logic looks sound enough... Actually, don't try that, try this. That one had flaws this one should fix. (But again, not tested at ALL.) private function resolveRelation pPers1,pPers2

Re: Coding Challenge

2011-03-11 Thread Nonsanity
On Fri, Mar 11, 2011 at 2:32 PM, Nonsanity f...@nonsanity.com wrote: On Fri, Mar 11, 2011 at 1:54 PM, Nonsanity f...@nonsanity.com wrote: Try this. I haven't tested, but the logic looks sound enough... Actually, don't try that, try this. That one had flaws this one should fix. (But again

Re: Efficiency question for list modification

2011-03-10 Thread Nonsanity
by having to cut out 1,000 different chunks. But this should show where the slowdown is, and offer a way to work around it. When the cookie is too big, break off what you can chew. ~ Chris Innanen ~ Nonsanity On Thu, Mar 10, 2011 at 1:51 PM, FlexibleLearning ad...@flexiblelearning.com wrote

Re: Efficiency question for list modification

2011-03-10 Thread Nonsanity
was there may be garbage or another bit of memory. It really gets ugly. Bob On Mar 10, 2011, at 11:42 AM, Nonsanity wrote: I made a quick test stack to try out a few ides: http://dl.dropbox.com/u/144280/Divide%20List%20Tests.livecode It generates 100,000 random integer pairs

Re: Efficiency question for list modification

2011-03-10 Thread Nonsanity
On Thu, Mar 10, 2011 at 4:40 PM, Bob Sneidar b...@twft.com wrote: How about chunking the data with the new method? I would put money on the notion that it won't matter much. Bob It didn't. :) ~ Chris Innanen ~ Nonsanity ___ use-livecode

Re: Coding Challenge

2011-03-08 Thread Nonsanity
is the oldest? ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 8:15 AM, Malte Brill revolut...@derbrill.de wrote: Hi folks, this is over my head. I have a problem I can not tackle alone, so please let me scream for help... HEELLLP Imagine a group of kids: Paul,Peter

Re: Coding Challenge

2011-03-08 Thread Nonsanity
On Tue, Mar 8, 2011 at 10:07 AM, Nonsanity f...@nonsanity.com wrote: Malte, are you looking for a general solution to problems such as this: Tom is younger than Rose, but older than Will and Jack, in that order. Rose is younger than Susie, but older than Jack. Jack is younger than Jim. Susie

Re: Coding Challenge

2011-03-08 Thread Nonsanity
data (Karen is the same age as Helen) should be substituted for a single variable, grouping them the same way you would a pair of unknowns, like J and W when I left out the one conditional statement. ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 10:41 AM, Nonsanity f...@nonsanity.com

Re: Coding Challenge

2011-03-08 Thread Nonsanity
On Tue, Mar 8, 2011 at 10:59 AM, Nonsanity f...@nonsanity.com wrote: Without it, there are TWO names missing from the youngest side of the list... Correction: ...from the OLDEST side of the list, and therefore are the youngest... Gotta keep things clear in stuff like this. I almost let

Re: Coding Challenge

2011-03-08 Thread Nonsanity
selecting two people. But once the data is input, the method I outlined should give you the results you want. ~ Chris Innanen ~ Nonsanity On Tue, Mar 8, 2011 at 1:49 PM, Malte Brill revolut...@derbrill.de wrote: Thanks for the head ups folks, Björnke and Mark: I do not have the exact ages

Re: A curious case

2011-03-03 Thread Nonsanity
Innanen ~ Nonsanity ___ 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: Just starting out in iOs and LiveCode

2011-03-03 Thread Nonsanity
to do that. Even a DropBox... You can get as complicated as you want from there on, but that lets you update all apps by updating one file. ~ Chris Innanen ~ Nonsanity On Thu, Mar 3, 2011 at 5:35 PM, Steve Jones stevejo...@mac.com wrote: Greeting! I am a novice LiveCode user, and even

Re: A curious case

2011-03-02 Thread Nonsanity
... :) ~ Chris Innanen ~ Nonsanity On Tue, Mar 1, 2011 at 7:40 PM, Bob Sneidar b...@twft.com wrote: Hi all. I just came across a curious issue where I had an if then else control structure inside another if then structure. I *thought* I used toe be able to use the form if statement

Re: What's the best way to do objects?

2011-03-01 Thread Nonsanity
. But to each their own... :) ~ Chris Innanen ~ Nonsanity On Tue, Mar 1, 2011 at 4:51 AM, Gerry gerry.or...@gmail.com wrote: Years ago I used to use Macromedia Director, and got to be pretty good at programming objects (the kind that operated independently once they were birthed...sort of OOP

Deflating Binary Data

2011-02-24 Thread Nonsanity
? I'm not against writing the data out to a temporary file, if that is necessary, though it's best to avoid that sort of thing. It's already in memory, so it's best to keep it there for the decode. ~ Chris Innanen ~ Nonsanity ___ use-livecode mailing

Re: runrev forums - internal server error

2011-02-21 Thread Nonsanity
that on Saturday and would manually edit the URLs after following them to a 404. Looks like both forms work now. ~ Chris Innanen ~ Nonsanity On Sun, Feb 20, 2011 at 11:17 PM, Mark Wieder mwie...@ahsoftware.netwrote: The forums seem to be back up again but rss feeds are still dead. Just an update

Re: Datagrid API

2011-02-18 Thread Nonsanity
Documentation IS where LiveCode gets its biggest (and arguably, only) major FAIL. ~ Chris Innanen ~ Nonsanity On Fri, Feb 18, 2011 at 1:13 PM, Bob Sneidar b...@twft.com wrote: I had a look at the datagrid API on the runrev site as Trevor suggested. Still a lot of stuff not there (only 3

Fold Operation on Arrays

2011-02-18 Thread Nonsanity
, manual iteration method.) ~ Chris Innanen ~ Nonsanity ___ 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

Re: Sample code for reading a CSV file

2011-02-17 Thread Nonsanity
) but then those are non-printable characters and not likely to be there to begin with. It should be fairly speedy, though I haven't tested it with a huge input. ~ Chris Innanen ~ Nonsanity On Thu, Feb 17, 2011 at 1:16 PM, Paul Dupuis p...@researchware.com wrote: So I am tired of reinventing

Re: Live LiveCode Code Event #10

2011-02-15 Thread Nonsanity
to the REST services I used: [1] http://qrserver.com/api/ [2] http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/v3/shorten ~ Chris Innanen ~ Nonsanity 2011/2/14 Björnke von Gierke b...@mac.com Alright. here's the wrap up info for event 10: I introduced my progress on BvG Docu 2

Re: AW: How to hilite a checkbox with send mouseup?

2011-02-15 Thread Nonsanity
, and this message has the same result as clicking the button (toggling the hilite in the process) and enacting the MouseUp handler. ~ Chris Innanen ~ Nonsanity On Tue, Feb 15, 2011 at 11:52 AM, Robert Brenstein r...@robelko.com wrote: On 15.02.11 at 17:24 +0100 Tiemo Hollmann TB apparently wrote

Re: Obtaining the public IP of a computer...

2011-02-09 Thread Nonsanity
URL with the same response isn't too hard, whatever your server flavor is. This has the added benefit of giving you some usage statistics if you want to collect them. ~ Chris Innanen ~ Nonsanity On Wed, Feb 9, 2011 at 8:35 AM, Paul Dupuis p...@researchware.com wrote: Okay, great suggestions

Re: Bullets in Script Editor Window

2011-02-09 Thread Nonsanity
. There are other sites that list the full range of ALL characters, but fonts that support all of those are few and far between. ~ Chris Innanen ~ Nonsanity On Wed, Feb 9, 2011 at 10:19 AM, Ray Horsley r...@linkit.com wrote: Typing bullets on a Mac is a simple option-8 (I believe) while on Windows

  1   2   >