Re: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-09 Thread Ken Ray
On Jan 5, 2012, at 2:41 PM, Pete wrote: > There was a discussion recently on preventing SQL injections in LC. Here's > an email I got from the support center on a bug/enhancement concerning this. I've responded to this, Pete… Michael's comment is a bit misguided since the documentation even st

Re: Sorting Advice

2012-01-09 Thread stephen barncard
I think one has to make multiple passes - the doc say for "sort container": *The sort container command is a stable sort. This means that if the sortKey for two items or lines is the same, sorting does not change their order, so you can do two successive sorts to create subcategories within the ma

Sorting Advice

2012-01-09 Thread Marty Knapp
I have a list that I'm currently sorting as follows: --item 2 may be a word or a number --item 1 is a date sort the lines of myList by item 2 of each --sort any words alphabetically sort the lines of myList numeric by item 2 of each --sort the numbers (any words go to the top of the list in the

Re: MP3 Tag Editor

2012-01-09 Thread stephen barncard
Swami, yes, the late and recently mentioned Mark Smith made a well-documented stack for that purpose. It's been tested by me and it also works on Livecode server with no modifications. http://revonline2.runrev.com/stack/80/id3lib-v1-0-2 On 9 January 2012 19:45, Sivakatirswami wrote: > Ha

MP3 Tag Editor

2012-01-09 Thread Sivakatirswami
Has anyone tinkered with using LiveCode to edit MP3 tags? I could surely use it. Sivakatirswami ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: htt

Re: Second set of eyes needed.

2012-01-09 Thread Mark Wieder
Mike- Monday, January 9, 2012, 2:28:24 PM, you wrote: > put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex ...and if I'm not wrong about this, that would be put (((yy - 1) * W) + xx - 1)* 4 into myindex -- -Mark Wieder mwie...@ahsoftware.net __

LC database locking commands

2012-01-09 Thread Pete
I see a revDatabaseCommit and a revDatabaseRollback command for databases but I don't see one that issues a BEGIN command. Not a big deal since I can issue one with revExecuteSQL but am I missing something or does LC not provide such a command? -- Pete Molly's Revenge

Re: Zen of Computer Programming

2012-01-09 Thread Peter M. Brigham, MD
I think this comes from neuropsych research, and the proposition is that it takes 10,000 hours to master a field, whether music, math, coding, painting, gymnastics, whatever -- because that's how long it takes to rewire the brain in a fundamental way. 10,000 hours is 5 years full time work, 40h/

Re: Zen of Computer Programming

2012-01-09 Thread Pete
I've read a statistic in various places that it takes 10,000 hours of practice to become a genius in some skill or other, always assuming you have the skill in the first place of course. Pete On Mon, Jan 9, 2012 at 5:06 PM, Alejandro Tejada wrote: > Hi All, > > Many thoughful comments and funny r

Re: Zen of Computer Programming

2012-01-09 Thread Alejandro Tejada
Hi All, Many thoughful comments and funny replies! Thanks a lot for sharing your insights. So it is completely possible that exists programmers with skills like Mozart, who according to his biographers, could create a whole composition in his mind and then, sit down to transcript it. Then... a r

Re: Shell question

2012-01-09 Thread Bernard Devlin
Ah. The beauty of Livecode's OS X/Unix "return" substitutions. OS X is unix. Kind of. Until you shell out from Livecode. On Mon, Jan 9, 2012 at 5:42 PM, Pete wrote: > OK, I got this working.  In order to get the correct linefeed characters > for Unix, ___

Re: Zen of Computer Programming

2012-01-09 Thread Bernard Devlin
It's all about change. Who needs test-driven development when testing is development. On Mon, Jan 9, 2012 at 7:02 PM, Peter M. Brigham, MD wrote: > So the vendor makes him a deluxe pizza and the Dalai Lama hands him a $20 > bill. After a moment he says, "Where's my change?" The vendor says, "Ch

Re: Zen of Computer Programming

2012-01-09 Thread Michael Kann
Alejandro, Now we know what Oetzi was doing in the Alps when he died. http://en.wikipedia.org/wiki/Oetzi --- On Mon, 1/9/12, Alejandro Tejada wrote: From: Alejandro Tejada Subject: Zen of Computer Programming To: use-revolut...@lists.runrev.com Date: Monday, January 9, 2012, 10:59 AM Hi all,

Re: Second set of eyes needed.

2012-01-09 Thread J. Landman Gay
On 1/9/12 5:27 PM, Bob Sneidar wrote: Many on the list will be very thankful indeed to know just how many times I had to close an email without saving because in the process of compiling all my information I discovered what I had done wrong. :-) The same thing happens with bug reports. Believe

Re: Second set of eyes needed.

2012-01-09 Thread Bob Sneidar
Many on the list will be very thankful indeed to know just how many times I had to close an email without saving because in the process of compiling all my information I discovered what I had done wrong. :-) Bob On Jan 9, 2012, at 2:52 PM, stephen barncard wrote: > Just kidding - my point is

Re: Second set of eyes needed.

2012-01-09 Thread stephen barncard
Just kidding - my point is, and this happens to me all the time, by the time I get the problem defined and stated on the list, the thought processes involved in explaining it usually enable the solution by myself. On 9 January 2012 14:50, stephen barncard wrote: > we're always glad to help. > > >

Re: Second set of eyes needed.

2012-01-09 Thread stephen barncard
we're always glad to help. On 9 January 2012 14:28, Michael Doub wrote: > After taking a break for a while and coming back I found it. > > put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be > > put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex > > > > Stephen Barncard San Franc

Re: Second set of eyes needed.

2012-01-09 Thread Michael Doub
After taking a break for a while and coming back I found it. put ((yy - 1) * W ) + ((xx - 1) * 4) into myindex needs to be put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex On 2012-01-09, at 4:54 PM, Michael Doub wrote: > getitback needs to be passed W not L (width not the length) but

Re: Rotate around Center of Mass

2012-01-09 Thread BNig
Hi Mark, first thanks to Jim Hurley for his solution to turn the image around an arbitrary point. As always I would never have figured it out. This code is a slight adaption of Jim's code so you can put it into the script of an image and click on the image and the image will turn around the click

Re: Second set of eyes needed.

2012-01-09 Thread Michael Doub
getitback needs to be passed W not L (width not the length) but the problem still exists. On 2012-01-09, at 4:33 PM, Michael Doub wrote: > I have been trying to figure out why I have not been able to retrieve valid > RGB values from an image. > I decided to generate my own image so I would be

Second set of eyes needed.

2012-01-09 Thread Michael Doub
I have been trying to figure out why I have not been able to retrieve valid RGB values from an image. I decided to generate my own image so I would be able to track down my issue. I thought that would be straight forward, Several hrs later and i am still at an impasse. I am trying to und

Re: Caching on iOS

2012-01-09 Thread Roger Eller
On Mon, Jan 9, 2012 at 4:14 PM, Dan Friedman wrote: > Roger, > > The file I am writing is tiny... about 75 bytes! More info... I posted > the file then asked the application to download the file every thirty > seconds. It is getting the older version of the file every time... It's > been about

Re: Caching on iOS

2012-01-09 Thread Dan Friedman
Roger, The file I am writing is tiny... about 75 bytes! More info... I posted the file then asked the application to download the file every thirty seconds. It is getting the older version of the file every time... It's been about 15 minutes so far and it's still getting the old file. On m

Re: the selection returns empty

2012-01-09 Thread Roger Eller
On Mon, Jan 9, 2012 at 3:02 PM, Devin Asay wrote: > Roger, > > For list fields use the hilitedLine(s) instead of the selection or the > selectedLine. > > Devin > > Thanks! Back on track. :) ~Roger ___ use-livecode mailing list use-livecode@lists.runre

Re: the selection returns empty

2012-01-09 Thread Devin Asay
Roger, For list fields use the hilitedLine(s) instead of the selection or the selectedLine. Devin On Jan 9, 2012, at 12:59 PM, Roger Eller wrote: > I am probably missing something simple, but if I select a line in a list > field, then click a button that puts the selection into a variable, it

Re: AltIDs

2012-01-09 Thread stephen barncard
I've had image names fail where ids worked. I have no idea why. On 9 January 2012 10:20, Bob Sneidar wrote: > If I have it right, you wouldn't need to. The objects would be able to > find their images without having to relink them all. > > Bob > > > On Jan 9, 2012, at 9:37 AM, stephen barncard w

the selection returns empty

2012-01-09 Thread Roger Eller
I am probably missing something simple, but if I select a line in a list field, then click a button that puts the selection into a variable, it works the first time. However, if focus changes to another object, but the selection is still visibly shown in the list field, the button now returns empt

Re: Zen of Computer Programming

2012-01-09 Thread Peter M. Brigham, MD
On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > I can't answer your question (my software has plenty of flaws), but I can > offer this: > > Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me > one with everything?" The rest of the joke goes: So the vendor makes him a

Re: AltIDs

2012-01-09 Thread Bob Sneidar
If I have it right, you wouldn't need to. The objects would be able to find their images without having to relink them all. Bob On Jan 9, 2012, at 9:37 AM, stephen barncard wrote: > if we're talking about image linking, why not just name the images, and > just usethe id of img "imagename

Re: Zen of Computer Programming

2012-01-09 Thread Bob Sneidar
Too funny! Bob On Jan 9, 2012, at 9:34 AM, Colin Holgate wrote: > You get that joke. I get that joke. The Dalai Lama doesn't though: > > http://www.youtube.com/watch?v=GogjFO8GNEo > > > On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > >>> Recently, the Dalai Lama went into a pizza shop and

Re: Zen of Computer Programming

2012-01-09 Thread René Micout
This was in France in 1993 ! And it is not the really story... During his holidays in his granMother's house in French mountain "Pyrénées" he write 60 pages of math and algorithms. After his holidays he write the program in C++ on his computer... Sorry this page is in French : http://www.alquier.o

Pick any Two

2012-01-09 Thread FlexibleLearning
Similar: On Budget On Time Features Hugh Senior FLCo Ken Corey wrote: I've always believed in the project triangle: Pick any two: Cheap Fast Good ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit thi

Re: Caching on iOS

2012-01-09 Thread Roger Eller
On Mon, Jan 9, 2012 at 12:21 PM, Dan Friedman wrote: > Hello... > > Does anyone know if there is a setting for caching on iOS? Here's what's > happening: I post text to a file on a server (via ftp) using a simple > "put" command in a LC project on my iPhone. The data IS writing to the > server

Re: Shell question

2012-01-09 Thread Pete
OK, I got this working. In order to get the correct linefeed characters for Unix, I had to open the output file in binary mode. Once I did that, everything worked fine. Pete On Sun, Jan 8, 2012 at 11:00 PM, Pete wrote: > The command is in a variable, eg put shell(myCommand) into myResult. I'm

Re: AltIDs

2012-01-09 Thread stephen barncard
if we're talking about image linking, why not just name the images, and just usethe id of img "imagename" ?? On 9 January 2012 09:04, Bob Sneidar wrote: > Hmmm... this got me thinking about how to go about creating a new stack > while maintaining image ID's. If you keep all the images

Re: Zen of Computer Programming

2012-01-09 Thread Colin Holgate
You get that joke. I get that joke. The Dalai Lama doesn't though: http://www.youtube.com/watch?v=GogjFO8GNEo On Jan 9, 2012, at 12:12 PM, Scott Rossi wrote: > >Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me > one with everything?"

Re: Zen of Computer Programming

2012-01-09 Thread Bob Sneidar
Hmmm... I am not sure that I agree with this. Doesn't the whole thing beg the question, what do you mean by "the best programmers"? Just because someone has a kind of photographic memory that others do not possess, does not necessarily make him a good programmer in my opinion. He might just prod

Re: Zen of Computer Programming

2012-01-09 Thread Ken Corey
I've been programming for a good long time now and I've only known one or two that could likely do it, but if I'm the one writing the paychecks, I'd *never* have paid them long enough to wrap their heads around the problem to do so. I've known lots of good programmers who got close enough, and

Caching on iOS

2012-01-09 Thread Dan Friedman
Hello... Does anyone know if there is a setting for caching on iOS? Here's what's happening: I post text to a file on a server (via ftp) using a simple "put" command in a LC project on my iPhone. The data IS writing to the server - I can verify that. However, if I re-read the data that was

Re: Zen of Computer Programming

2012-01-09 Thread Scott Rossi
I can't answer your question (my software has plenty of flaws), but I can offer this: Recently, the Dalai Lama went into a pizza shop and asked, "Can you make me one with everything?" Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Alejandro Tejada wrote: > Hi all,

Re: Rotate around Center of Mass

2012-01-09 Thread Bob Sneidar
Can you group it, then set the loc of the image to the center of the group plus or minus the horizontal and vertical distance to the point of distribution? The group should automatically change size to accommodate the relocated image and the group would then also be centered on the point of dist

Re: Zen of Computer Programming

2012-01-09 Thread Mark Schonewille
I know one who actually does it and one who could with sufficient time. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1

Re: AltIDs

2012-01-09 Thread Bob Sneidar
Hmmm... this got me thinking about how to go about creating a new stack while maintaining image ID's. If you keep all the images on a single card, you should be able to loop through all the images on a card, store their ID's in some kind of array or variable, copy the card, new stack/paste card,

Zen of Computer Programming

2012-01-09 Thread Alejandro Tejada
Hi all, Recently I was talking with one of my students from Macromedia FreeHand/Adobe Photoshop classes: http://www.facebook.com/media/set/?set=a.2733273854751.2150939.1344437396&type=1&l=7917ab7ac2 and he asked me if the following was true: "The best computer programmers could create a flawless

Re: What are the current LiveCode issues with the Mac App Store?

2012-01-09 Thread Bob Sneidar
Ick! Is this something that is going to be fixed in the future? How is Microsoft Office going to deal with that?? Bob On Jan 7, 2012, at 12:12 PM, Andrew Henshaw wrote: > The only issue Im aware of is the current livecode file dialogue will not > work with sandboxed apps, this is required b

Re: Trying to edit the script of field in one stack from a different (dialog) stack

2012-01-09 Thread Bob Sneidar
If you have the long ID, then don't refer to it as "field theFieldID" because the long ID already contains the word "field". That may have been the problem. I have tripped over that before. When I use the long ID or any value that contains the object type, I call it something like theObject, so

Re: SoCal LUG meeting: 2 February in Pasadena

2012-01-09 Thread Bob Sneidar
My Father is the president of the Railroad Club on Oahu. They have a full size box car they restored and built an HO scale digital system inside of. Very cool. He has a friend on the north shore, a retired Doctor named Jim Blateau who has an N scale western themed system that takes up his bottom

Re: Can't set Developer Root in LiveCode Prefs

2012-01-09 Thread Graham Samuel
The mother ship fixed this for me - the simple root /Developer is enough to tell LC what it needs to link with XCode etc for iOS development. I mention this just in case anyone else was confused. I am now stumbling over licenses, and the extent to which one needs them (from Apple). Looks like

Re: Rotate around Center of Mass

2012-01-09 Thread Ken Corey
I don't know why, but this question really stuck in my head. So much so, when I stumbled across the 'crop' command I just had to write. This isn't a full answer, unfortunately, but it's a start, methinks. First off, let's assume your image is at the rect 100,100,200,200. The center of the image