Re: htpasswd creation in Livecode

2013-01-16 Thread stephen barncard
Thanks, Pierre! sqb On Wed, Jan 16, 2013 at 9:47 PM, Pierre Sahores wrote: > function hexDigest pvalue >put "" into tRes >put md5Digest(pValue) into tMD5 >get binaryDecode("H*",tMD5,tRes) >return tRes > end hexDigest > > If i right remember, rev version credits goes to Mark Wiede

Re: htpasswd creation in Livecode

2013-01-16 Thread Pierre Sahores
function hexDigest pvalue put "" into tRes put md5Digest(pValue) into tMD5 get binaryDecode("H*",tMD5,tRes) return tRes end hexDigest If i right remember, rev version credits goes to Mark Wieder Le 17 janv. 2013 à 05:08, stephen barncard a écrit : > I need to make my own MD5 pass

htpasswd creation in Livecode

2013-01-16 Thread stephen barncard
I need to make my own MD5 password generator to use with htpasswd password encryption. MD5Digests doesn't seem to cut it. php has a function called crypt( $password = crypt($clearTextPassword, base64_encode($clearTextPassword)); seems like this should be simple in livecode. What's the encryption

Datagrid help - change value in form

2013-01-16 Thread Gerry Orkin
Hi all I've only just got my head around datagrids (and I'm loving them), but I can't find an easy way to update a field in a specific row in a form. I know which row needs to change, but I don't have that row highlighted. As far as I can see all the examples in the documentation assume you hav

Re: accessing mysql within on-rev

2013-01-16 Thread Jim Lambert
Mike Bonner wrote: > If you don't actually put something on the page you can get that error. > > Just for a quick test, put something (anything) outside your > section and see if if shows. If so, that was the issue. If not, well.. its > something else. Mike, That was it. Duh! I usually try to

Re: accessing mysql within on-rev

2013-01-16 Thread Mike Bonner
If you don't actually put something on the page you can get that error. Just for a quick test, put something (anything) outside your section and see if if shows. If so, that was the issue. If not, well.. its something else. On Wed, Jan 16, 2013 at 6:56 PM, Jim Lambert wrote: > Hi, > > I have

accessing mysql within on-rev

2013-01-16 Thread Jim Lambert
Hi, I have created a mySQL database on on-rev and can successfully access it using the LiveCode IDE: put revOpenDatabase("mysql", "myaccount.on-rev.com", "mydatabase", "myuser", "myuserspassword") into DB But when I try to access it from the on-rev server itself, like so: put revOpenDatabase("m

Re: Strange contents of long name

2013-01-16 Thread Peter Haworth
Thanks Scott. Yes, the loop checking the owner of the control is what I had in mind if the control name was empty so thanks for the unnamedControl function. Pete lcSQL Software On Wed, Jan 16, 2013 at 4:33 PM, Scott Rossi wrote: > I would suggest a loop of checking the

Re: Strange contents of long name

2013-01-16 Thread Scott Rossi
I would suggest a loop of checking the owner of the control until you find (or don't find) the data grid property of the parent group. FWIW, if you still want to determine if a control has no name, you might try: -- pControl is the long id of a control function unamedControl pControl return (na

Re: Asynchronous Audio on Windows?

2013-01-16 Thread tbodine
If LiveCode is to be a serious option for multimedia work, it has to have solid audio support. (It's not *multi*media if it's just for the eyes.) And LiveCode needs native support for compressed sound (mp3). For those of us who provide a try-before-you-buy product, a restart is one more (big) step

Re: Strange contents of long name

2013-01-16 Thread Geoff Canyon
On Wed, Jan 16, 2013 at 6:14 PM, Peter Haworth wrote: > Well after reading this and Alex's post, I think this is a bug I don't think this can be considered a bug, however inconvenient. At the most basic level, you are able to say something like control 2 of this cd Should that respect groups

Re: Strange contents of long name

2013-01-16 Thread Geoff Canyon
On Wed, Jan 16, 2013 at 5:49 PM, Richard Gaskin wrote: > FWIW, I submitted a request some time ago for a "truncated ID" option > which uses the stack name instead of the stack path, similar to what the > engine does when storing behavior references: > >

Re: Strange contents of long name

2013-01-16 Thread Peter Haworth
Well after reading this and Alex's post, I think this is a bug since the hierarchy of owners is not being observed. It's kinda like delivering mail to the first street number and name found in any city rather the one in the address city :-) Be that as it may, I concur that using ids is much bette

Re: Printing to PDF (format of options???)

2013-01-16 Thread Roger Eller
Thanks Colin. It looks like I'll either need to redesign my card with the default 1 inch margin built in, or use page scaling. Scaling looks easier. Sent from my Pipo M2 On Jan 16, 2013 5:38 PM, "Colin Holgate" wrote: > They seem not to be page layout options. Slightly lower down in the > dictio

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Geoff Canyon wrote: Long IDs are your friend here, especially given that you can use them so cleanly in a variable: set the label of tID to "HA" This works a treat, although you have to watch out for changing file references if you store a long id from one session to the next (and maybe even d

Re: Strange contents of long name

2013-01-16 Thread Geoff Canyon
On Wed, Jan 16, 2013 at 3:36 PM, Alex Tweedly wrote: > I've always realized there was an issue if the two contols with the same > name were at the same level in the control hierarchy - but that is always > easily avoidable, and seems (almost) acceptable since they have an > ambiguous long name;

Re: Printing to PDF (format of options???)

2013-01-16 Thread Colin Holgate
They seem not to be page layout options. Slightly lower down in the dictionary entry it says this: The options array which can be optionally specified when opening a print loop for pdf allows you to add entries to the resulting PDF's Document Information Dictionary. The following keys are supp

Printing to PDF (format of options???)

2013-01-16 Thread Roger Eller
*From the 5.5.3 docs:* open printing to pdf "filename.pdf" with options tOptionArray Ok, what exactly goes into tOptionsArray? I don't see any specification for the format of the options. I would like to set the margins of the PDF to .5" all around. How can I do that without user input via pag

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Mark Wieder
Scott Rossi writes: > I would agree, but the software I'm building isn't audio software. I just > have a need for audio feedback: push a button, hear a click. On the user > side, it may be acceptable to restart after installing my app, but in my > book, requiring a restart is disruptive and a l

Re: Strange contents of long name

2013-01-16 Thread J. Landman Gay
On 1/16/13 3:37 PM, Richard Gaskin wrote: In the olden days, text properties were bound together in such a way that changing any single attribute would cause the others to be reset to their defaults. Actually, when I first came on board with MetaCard, it behaved the way LiveCode (finally) doe

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Peter Haworth wrote: There was a thread a couple of days ago about changes in the way text properties were handled in a recent release. That's not three but my point was that the "backwards compatible" argument isn't a hard and fast rule, as I think you're saying with reference to the shared gr

Re: Strange contents of long name

2013-01-16 Thread Alex Tweedly
It's worse than that. The problem still happens with the following test script. on mouseup ask "new text" put it into field "F" put the Id of field "F" && the long name of field "F" & CR after msg end mouseup So I can both see the text appear in the field, and then see its ID and long

Re: Strange contents of long name

2013-01-16 Thread Mark Wieder
Richard Gaskin writes: > Respectfully, Mark, I would suggest this may be a case of running a > slightly different recipe. nvm. I missed the last part in the recipe about a field with an empty name. -- Mark Wieder mwie...@ahsoftware.net ___ us

Re: Strange contents of long name

2013-01-16 Thread Peter Haworth
There was a thread a couple of days ago about changes in the way text properties were handled in a recent release. That's not three but my point was that the "backwards compatible" argument isn't a hard and fast rule, as I think you're saying with reference to the shared group message change. As

Re: Strange contents of long name

2013-01-16 Thread Mark Wieder
Richard Gaskin writes: > If you're seeing different results on Linux than we see on Mac and Win, > we have something far more onerous to be concerned about. ? I'm reporting seeing the same thing that Geoff and Thierry are reporting. -- Mark Wieder mwie...@ahsoftware.net _

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Peter Haworth wrote: Richard, Just saw your note on this. That's great, thanks for getting it done! I wish I could take credit for this, but this is all Mark Waddingham. Over the last year or so I'm seeing a lot of these sorts of "paper cut" issues being addressed with little more than a pol

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 09:38 PM, Mike Bonner wrote: Hmm, Worked for me with the sample data posted, so not sure what happened. When you retyped it thx to google not liking my paste, does case 2 still say put tline & cr before tTmp? (before, not after) Not sure where I went wrong. The other method using s

Re: [OT] reOrdering text

2013-01-16 Thread Mike Bonner
Hmm, Worked for me with the sample data posted, so not sure what happened. When you retyped it thx to google not liking my paste, does case 2 still say put tline & cr before tTmp? (before, not after) Not sure where I went wrong. The other method using sort is far better anyway since it will work e

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Scott Rossi
Hi Bob: I would agree, but the software I'm building isn't audio software. I just have a need for audio feedback: push a button, hear a click. On the user side, it may be acceptable to restart after installing my app, but in my book, requiring a restart is disruptive and a less-than-desirable us

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 07:16 PM, J. Landman Gay wrote: On 1/16/13 9:06 AM, Richmond wrote: I have a socking great text file that reads in part something like this: Cook my cheese fishface1 finish Shave my legs fishface2 finish Paint my fingernails fishface3 finish Wax my arms fishface4 finish and so it

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 05:19 PM, Mike Bonner wrote: Assuming the data is always in the same order something like the following works well. *on* mouseUp *put* field 1 into tData *put* 1 into tCount *repeat* for each line tLine in tData *switch* tcount *case* 1

Re: opening txt files

2013-01-16 Thread Robert Sneidar
I will hazard a guess, that when you open the file for reading, you can open binary first and see if the first two characters amount to FE FF, yes? If so, treat as UTF-16. If not, treat as UTF-8. I have not tested this strategy myself, but your second point seems to give the clue to solve this m

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Robert Sneidar
Scott, I think at some point Livecode applications become so *complex* that an installer is needed. I don't think users are all that averse to restarting their computers after software is installed, especially Audio based software. It's very common to have to restart even OS X computers after a

Re: opening txt files

2013-01-16 Thread Robert Sneidar
I did not see an RTF export option in Pages. Besides, I think he is dealing with reading text files, the nature of which he does not control. Bob On Jan 16, 2013, at 9:22 AM, Richmond wrote: > On 01/16/2013 07:15 PM, Nishok Love wrote: >> Thanks, Bob. Your command works but the same results o

Re: [OT] reOrdering text

2013-01-16 Thread Robert Sneidar
Sorry Richmond, you are probably not going to get good advice about personal hygiene from a bunch of livecode developers. ;-) Bob On Jan 16, 2013, at 7:06 AM, Richmond wrote: > I have a socking great text file that reads in part something like this: > > Cook my cheese > fishface1 > finish > S

Re: [OT] reOrdering text

2013-01-16 Thread Robert Sneidar
Without looking at any other solutions first: repeat with i = 1 to the number of lines of myText step 3 put line i+1 into templine delete line i+1 of myText put tempLine & cr before line i of myText -- not sure if you need the cr bob On Jan 16, 2013, at 7:06 AM, Richmond wrote: > I have a sock

Re: Strange contents of long name

2013-01-16 Thread Peter Haworth
Richard, Just saw your note on this. That's great, thanks for getting it done! Pete lcSQL Software On Tue, Jan 15, 2013 at 1:22 PM, Peter Haworth wrote: > > On Tue, Jan 15, 2013 at 1:09 PM, Mark Wieder wrote: > >> Peter Haworth writes: >> >> > Here's a recipe. >> >> W

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Scott Rossi
That's the route I'm taking. At this point my plan is to load all sounds into buffers and have them available at all times. My *hope* is that this setup is essentially the same as having a bunch of embedded sounds loaded in a stack. It's a bit overkill as the external is designed to manage 3d

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Mark Wieder wrote: > Wednesday, January 16, 2013, 10:15:43 AM, you wrote: > >> Mark - I don;t know why you're not seeing this problem. What >> version of LC are you running? > > LC 5.5.3 on Fedora Core 16 xfce spin. Respectfully, Mark, I would suggest this may be a case of running a slightly di

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Peter Haworth wrote: > Richard - Thanks for the pointer to the bug report, I will add a note > too. The whole "backwards compatibility" thing is a sorry excuse, at > most of the time. RunRev make changes all the time that cause things > to behave differently. Actually, it's pretty rare that the

Re: Strange contents of long name

2013-01-16 Thread Mark Wieder
Alex- I just re-read the bit about stopping at the lowest layer irregardless of the long name. Sheesh. Is that because you specified "of this card" or is it worse than that? -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-li

Re: Asynchronous Audio on Windows?

2013-01-16 Thread J. Landman Gay
On 1/16/13 12:14 PM, Klaus on-rev wrote: Hi Jaqueline, Am 16.01.2013 um 19:08 schrieb "J. Landman Gay" : On 1/15/13 5:40 PM, Klaus on-rev wrote: The "controller" part of the player object is a QuickTime feature and not available without it. Klaus, do all the script commands work on Windows

Re: Strange contents of long name

2013-01-16 Thread Mark Wieder
Peter- Wednesday, January 16, 2013, 10:15:43 AM, you wrote: > Mark - I don;t know why you're not seeing this problem. What version of LC > are you running? LC 5.5.3 on Fedora Core 16 xfce spin. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livec

Re: Strange contents of long name

2013-01-16 Thread Mark Wieder
Alex- Wednesday, January 16, 2013, 10:03:23 AM, you wrote: > Am I missing something ? It seems like this would be a serious > impediment to reliable custom controls. > Do we need to convert everything to use IDs rather than names ? It has always been thus. Create a new button on a stack. Creat

Re: Strange contents of long name

2013-01-16 Thread Peter Haworth
Folks, I've missed a bunch of email over the last couple of days due to an abortive attempt to try Google Apps For Business. Never mess with MX records unless you really know what you're doing!!! Mark - I don;t know why you're not seeing this problem. What version of LC are you running? Richard

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Klaus on-rev
Hi Jaqueline, Am 16.01.2013 um 19:08 schrieb "J. Landman Gay" : > On 1/15/13 5:40 PM, Klaus on-rev wrote: > >> The "controller" part of the player object is a QuickTime feature and >> not available without it. > > Klaus, do all the script commands work on Windows even though there is no > cont

Re: Asynchronous Audio on Windows?

2013-01-16 Thread J. Landman Gay
On 1/15/13 5:40 PM, Klaus on-rev wrote: The "controller" part of the player object is a QuickTime feature and not available without it. Klaus, do all the script commands work on Windows even though there is no controller? I.e., can a script pause, set the currentTime, etc. when QT is not ins

Re: Strange contents of long name

2013-01-16 Thread Alex Tweedly
On 16/01/2013 08:21, Kay C Lan wrote: Interestingly if you: put "z" into fld "Field" of group "group" of card "card" no warning it just goes into the first field you named "Field" in the first group you named "group" of the first card you named "card". I wouldn't be surprised if someone on th

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Follow-up: I was delighted to receive moments ago this update to RQCC #2629 from Mark Waddingham: I've made this change for the next build - if it breaks too many things we might need to revert, otherwise it should be fine. Kudos to Mr. Waddingham for taking the time to address this.

Re: Asynchronous Audio on Windows?

2013-01-16 Thread tbodine
Here's a link to the Franklin Audio external page . Is that the only solution out there? I'm concerned about the audio issues on Windows, too. It could sideline a number of projects I have in the works. -- Tom Bodine -- View this message

Re: opening txt files

2013-01-16 Thread Richmond
On 01/16/2013 07:15 PM, Nishok Love wrote: Thanks, Bob. Your command works but the same results occur. Further investigations here found this When Pages is used to export as "Text", the resulting file may be of two kinds: (1) if the document contained only characters included in Apple MacRoman

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 07:16 PM, J. Landman Gay wrote: On 1/16/13 9:06 AM, Richmond wrote: I have a socking great text file that reads in part something like this: Cook my cheese fishface1 finish Shave my legs fishface2 finish Paint my fingernails fishface3 finish Wax my arms fishface4 finish and so it

Re: [OT] reOrdering text

2013-01-16 Thread J. Landman Gay
On 1/16/13 9:06 AM, Richmond wrote: I have a socking great text file that reads in part something like this: Cook my cheese fishface1 finish Shave my legs fishface2 finish Paint my fingernails fishface3 finish Wax my arms fishface4 finish and so it goes for about 72 pages (!!!) Now what I need

Re: opening txt files

2013-01-16 Thread Nishok Love
Thanks, Bob. Your command works but the same results occur. Further investigations here found this When Pages is used to export as "Text", the resulting file may be of two kinds: (1) if the document contained only characters included in Apple MacRoman charset, the file is a pure text file base

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 05:19 PM, Mike Bonner wrote: Assuming the data is always in the same order something like the following works well. *on* mouseUp *put* field 1 into tData *put* 1 into tCount *repeat* for each line tLine in tData *switch* tcount *case* 1

Re: [OT] reOrdering text

2013-01-16 Thread Richmond
On 01/16/2013 05:34 PM, Colin Holgate wrote: There's something you're not allowing for: the paint on your fingers will take some time to dry, and should probably be done after you have shaved your legs. ___ use-livecode mailing list use-livecode@lists.

Re: Asynchronous Audio on Windows?

2013-01-16 Thread Chris Sheffield
Do you have this latency with all sound files played, or just the first one played? The reason I ask is because I've noticed that sometimes there is a delay while the very first sound file is "loaded" (maybe buffered is a better term; not sure). Anyway, a trick I've used in the past (not sure w

Re: [OT] reOrdering text

2013-01-16 Thread Colin Holgate
There's something you're not allowing for: the paint on your fingers will take some time to dry, and should probably be done after you have shaved your legs. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: [OT] reOrdering text

2013-01-16 Thread Mike Bonner
Assuming the data is always in the same order something like the following works well. *on* mouseUp *put* field 1 into tData *put* 1 into tCount *repeat* for each line tLine in tData *switch* tcount *case* 1 *put* tLine & cr into tTmp *put* 2

Re: [OT] reOrdering text

2013-01-16 Thread Craig Newman
Richmond. Replace "finish" with some char to use as a delimiter and switch lines 1 and two in each item. Then rereplace the "finish" and you are finished. Craig Sent from my iPhone On Jan 16, 2013, at 9:06 AM, Richmond wrote: > I have a socking great text file that reads in part something

[OT] reOrdering text

2013-01-16 Thread Richmond
I have a socking great text file that reads in part something like this: Cook my cheese fishface1 finish Shave my legs fishface2 finish Paint my fingernails fishface3 finish Wax my arms fishface4 finish and so it goes for about 72 pages (!!!) Now what I needs is a reordered lilst like this: fi

Re: Strange contents of long name

2013-01-16 Thread Richard Gaskin
Peter Haworth wrote: > Here's a recipe. > > Create a couple of fields on a card. Open the inspector for one of > them and set the name to empty - when you tab out, it will have a > name in the form "field id ", which is LC's way of indicating > that the name is blank. Leave the name for the

[ANN] Modified Table Field

2013-01-16 Thread BNig
modTableField version 0_1_9 beta modTableField evolved from the Basic Table Field provided by LiveCode. It is an attempt to provide a straightforward means for displaying tabular data without having to resort to the DataGrid. Which of course is a lot more powerful. It displays tabular data, include

[OT] New Travel Site

2013-01-16 Thread Michael Kann
http://www.wikivoyage.org/ ___ 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: opening txt files

2013-01-16 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Hi Nishok, If you are a nit-picker, and REALLY want to know why you have this problem, then my response is simple - I don't know ! If you want a work-around, it's simple - select your text when you are in Word, and paste it into a new text file (TextEdit), and save it

Re: Strange contents of long name

2013-01-16 Thread Thierry Douez
Hi, did the same test except for 4. 4. Create another button and set its script to: on mouseUp create button in group "tad" of this stack put the long name of it end mouseUp with result: button "New Button" of group "tad" of card id 1002 of stack "/Users/tdz/Desktop/dupond" Regards, T

FT: FieldTrip reg codes

2013-01-16 Thread Curry Kenworthy
If the code from your payment email doesn't work, just write me offlist and I'll look it up and send back the right one; sometimes PP may have provided the user with a different code than the one it gave me. Best wishes, Curry K. ___ use-livecod

FT: Quick Fix, FieldTrip list items

2013-01-16 Thread Curry Kenworthy
Howdy, Strange, but after multiple rounds of testing and retesting pre-release, an error message popped up the very first time I tried the stack after upload. It must have been related to a last minute change, or it may not have fired when I was in Debug mode. The error happens when selecti

FT: Quick Fix, FieldTrip list items

2013-01-16 Thread Curry Kenworthy
Howdy, Strange, but after multiple rounds of testing and retesting pre-release, an error message popped up the very first time I tried the stack after upload. It must have been related to a last minute change, or it may not have fired when I was in Debug mode. The error happens when selecti

Re: Strange contents of long name

2013-01-16 Thread Geoff Canyon
Tested in the latest dp and 5.5: 1. Create a stack and name it "steve" 2. Drag in a button. 3. Group the button and call the group "tad" 4. Run the following in the message box: create button in group "tad" of stack "steve";put the long name of it the result is something like: button id 1006 of

Re: Strange contents of long name

2013-01-16 Thread Kay C Lan
On Wed, Jan 16, 2013 at 4:44 AM, Peter Haworth wrote: > Here's a recipe. Pete, again thanks for pointing this out. Now that I've had time to think about this, I'm starting to appreciate why LC creates all those unique IDs. If you take your recipe and: Add a further fld called "Field" to the or