Re: Http Header question

2016-01-19 Thread Dave Cragg
Bill, Take a look at libUrlMultipartForm and libUrlMultipartFormAddPart in the dictionary. There are examples there that might help you. Cheers Dave Cragg > On 19 Jan 2016, at 22:44, William Prothero wrote: > > Folks: > I’m setting up a php sendmail script using phpSendmail an

Re: Clearing local variables

2016-04-25 Thread Dave Cragg
This is slight variation of Craig's solution. It works if you want to delete all local variables declared outside of handlers. (it's used inside libUrl) on ulDeleteLocals local e repeat for each item e in line 3 of the localNames get "delete" && "local" && e do it end repeat end ulD

Re: libURL gone mad

2016-09-02 Thread Dave Cragg
years ago this issue arose. Should we hope it's no longer relevant?) Cheers all. Dave Cragg ___ 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: Any characters wildcard or regex?

2016-09-22 Thread Dave Cragg
> On 22 Sep 2016, at 16:45, Keith Clarke wrote: > > Thanks Mike, pilot error here - replacetext(tData,"<.*>",empty) looks to be a > viable direction of travel once correctly typed. Time to rest my eyes, > methinks! 8-) > Best, > Keith.. I think you might need replacetext(tData,"<.*?>",empty)

Re: how are variables passed from functions?

2014-11-14 Thread Dave Cragg
Tiemo, Interesting. It looks like functions return the value of "the result" in the absence of a return statement. Other languages would probably return "void" or "null" or something similar, and we might expect Livecode to return "empty". I've no opinion on whether it is a bug or not, but I t

Re: EU VAT changes & small software businesses

2014-11-27 Thread Dave Cragg
Ian, For UK businesses, the link below gives some information of one way to handle this. I'm not sure how useful this is. Thankfully, I'm not affected at the moment. https://www.gov.uk/government/publications/vat-supplying-digital-services-and-the-vat-mini-one-stop-shop Cheers Dave On 27 Nov

Re: EU VAT changes & small software businesses

2014-11-28 Thread Dave Cragg
On 27 Nov 2014, at 12:52, Ian Wood wrote: > Hi Dave, > > I forgot to post that link. :-( > > It doesn't help much because I'm a sole trader under the UK VAT threshold - > VAT-registering the entire business for the sake of 1000€ in software > turnover would wipe out about half my income. At

Re: Different results in LC with a file from 2 FTP programs

2014-12-03 Thread Dave Cragg
On 2 Dec 2014, at 13:54, Tiemo Hollmann TB wrote: > Hello, > > I am downloading a ASCII txt file with "put URL tFile into tContent" from my > server. Then I filter the content of the file in LC 6.5.2 to get the wanted > data. I changed my FTP program on Windows to FileZilla because my old FTP >

Re: Politically correct . . .

2014-12-21 Thread Dave Cragg
u4Q> Cheers Dave Cragg ___ 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: Politically correct . . .

2014-12-21 Thread Dave Cragg
> I mean David Tynan O'Mahony, a.k.a Dave Allen. > I know. https://www.youtube.com/watch?v=jxo81Ok9Urk ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferenc

Re: Duplicate simultaneous calls to same handler

2015-01-23 Thread Dave Cragg
lvCount = 0 on mouseUp add 1 to lvCount put 5 into tTime put "start " & lvCount & cr after field 1 testHandler tTime, lvCount end mouseUp on testHandler pSecs, pCount wait pSecs seconds with messages put "end " & pCount & cr after field 1

Re: Reverse a list

2015-02-09 Thread Dave Cragg
.2 (21 ms vs 9ms). And while slower in 7.0.1, now much faster that Alex's method. (74 ms vs 446ms) The increase in speed of the "put before" method was interesting (from 242ms to 92ms) Cheers Dave Cragg > On 8 Feb 2015, at 23:37, Alex Tweedly wrote: > > Wow. I can se

Re: Reverse a list

2015-02-09 Thread Dave Cragg
Mark, It makes it faster, but it doesn’t return any data. :-) The number of lines in p = 0 Cheers Dave > On 9 Feb 2015, at 20:13, Mark Wieder wrote: > > Dave- > > Using 'repeat for each' for the loop makes this faster yet. > > function arevers p > local t > local tNumElems > > split

Re: Reverse a list

2015-02-09 Thread Dave Cragg
Mark Still no data. The problem is here: > repeat for each line l in p I would have been surprised if that had worked. I also tried the following, but it give the same speed as my original (not surprising as it’s doing much the same thing) function arevers p put the number of lines in p

Re: Reverse a list

2015-02-09 Thread Dave Cragg
Yay. But the speed is the same as my original. (On both 6.0.2 and 7.0.1) > On 9 Feb 2015, at 22:25, Mark Wieder wrote: > > Note to self - paste the actual code... > > function arevers p > local t > local tNumElems > > put the number of lines in p into tNumElems > split p by cr > pu

Re: Reverse a list

2015-02-09 Thread Dave Cragg
In this case, I don’t think there’s an advantage in "repeat for each" as we’re iterating through array elements and not chunks. Are you really seeing it work faster? I was using a 24519-line list of 555Kb. Dave > On 9 Feb 2015, at 22:36, Mark Wieder wrote: > >

Re: Reverse a list

2015-02-15 Thread Dave Cragg
Peter, I don’t follow. If I change the repeat portion of your code to use repeat n times as below, the speed doesn’t change. And the speed scales linearly in both cases if the size of the data set is increased. put the keys of pList into indexList put the number of lines of indexList into i put

Re: Reverse a list

2015-02-17 Thread Dave Cragg
Alex, Thanks for that. Disbelieving soul that I am (sorry), I puzzled for a while over the results of these two versions. on mouseup put empty into msg put "abc" & CR & "def" & CR & "ghi" & CR into t repeat for each line L in t put the number of chars in L && L &CR aft

Re: ABC of arrays

2015-04-01 Thread Dave Cragg
repeat for each line tKey in tTopKeys put tPeople[tKey] into tPerson put the keys of tPerson into tPersonKeys repeat for each line tPersonKey in tPersonKeys put tPersonKey & ": " & tPerson[tPersonKey] & cr after field 1 end repeat put cr after field 1 end repeat end mouseUp --- Cheers Dave Cragg ___ 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: [OT] False timeout error after URL retrieval

2015-05-05 Thread Dave Cragg
> On 5 May 2015, at 21:24, Trevor DeVore wrote: > > Transfer-encoding =chunked is used in situations where content is being > dynamically generated on the server. There should be a > number specifying the size of the chunk being sent to LiveCode. That > doesn't appear to be in your header. Tre

Re: [OT] False timeout error after URL retrieval

2015-05-06 Thread Dave Cragg
> On 6 May 2015, at 02:43, J. Landman Gay wrote: > I agree. I compared the headers that work with the ones that don't, and the > working transmissions do include a content length header. There must be a > difference in how the data is being sent. We'll probably do some testing > tomorrow. But

Re: [OT] More on false timeouts and headers

2015-05-20 Thread Dave Cragg
> On 20 May 2015, at 22:38, J. Landman Gay wrote: > > On 5/20/2015 2:06 PM, J. Landman Gay wrote: >> we're trying to figure out how to avoid Passenger's addition of the >> "chunking" header. Does anyone know of a related header we can include >> that will make Passenger think we want a content-l

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Dave Cragg
> On 21 May 2015, at 04:17, J. Landman Gay wrote: > > Thanks for this, Dave. I don't see any chunk markers in the file with the > version of libURL I'm using, I see rows of plain text. But even though the > Content-Encoding header indicates it's a gzip file, it isn't coming in as > one. The d

Re: [OT] More on false timeouts and headers

2015-05-21 Thread Dave Cragg
> On 21 May 2015, at 20:07, J. Landman Gay wrote: >> >> I think that will pick up any Content-Transfer-Encoding header if it >> exists before a Transfer-Encoding header, and therefore miss the >> "chunked" value, and so not try to de-chunk the data. (I guess that >> might be considered a bug in

Re: LC-only 'POST' file upload code?

2015-05-22 Thread Dave Cragg
> On 22 May 2015, at 02:02, Phil Davis wrote: > > Does anyone have a LC code you're willing to share that uploads a file to a > server via POST? I'm looking for pure LC code, not where LC is used to build > an HTML form that uploads a file in revBrowser or other browser. > > Here's hoping! Ot

Re: Save Image to mySQL and Retrieve Image?

2015-06-08 Thread Dave Cragg
> On 8 Jun 2015, at 23:10, JOHN PATTEN wrote: > > Hi All, > > I have a a mobile app that takes a photo and POSTs the base64Encoded image to > an .lc server script that saves it to a mySQL field. > > set the vis of templateImage to false > mobilePickPhoto "camera" > put the last image into

Re: Could someone explain this por favor ?

2015-08-07 Thread Dave Cragg
> When I run this simple test on my Mac (no client / server), > it works no matter how many successive "get URLdecode(it)" > lines : > > get "the sky is blue" > get compress(it) > get base64encode(it) > get URLencode(it) > get URLdecode(it) > get URLdecode(it) > get base64decode(it)

Re: mySQL: PHP or direct access?

2015-08-13 Thread Dave Cragg
me server). And only the server side script needs to know the database credentials. Cheers Dave Cragg ___ 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: mySQL: PHP or direct access?

2015-08-13 Thread Dave Cragg
> On 13 Aug 2015, at 23:56, Peter Haworth wrote: > > Thanks Dave. That's good info. > > My questions are specifically related to mySQL which is able to accept > remote connections by design. Sorry if I wasn't clear. I was suggesting that it's generally a bad idea to allow remote connections.

Re: MySQL: PHP or direct access?

2015-08-14 Thread Dave Cragg
Ralph, See Peter's comments about non-security considerations too. Also note I have no security qualifications other than a mix of paranoia and a sometimes suspicious mind. > 3) The client uses https requests. I am assuming that the URL itself is > encrypted so any of the commands to my web se

Re: JSON, URL-encode, and UTF-8

2015-08-20 Thread Dave Cragg
> On 21 Aug 2015, at 00:33, J. Landman Gay wrote: > > On 8/20/2015 6:25 PM, Peter W A Wood wrote: > >> You’re content is no longer valid JSON once you have inserted the >> “json=“ (at the PHP developer’s request). There may be a conflict >> between the header and the actual content. What happen

Re: JSON, URL-encode, and UTF-8

2015-08-21 Thread Dave Cragg
> On 21 Aug 2015, at 02:27, J. Landman Gay wrote: > > On 8/20/2015 6:45 PM, Dave Cragg wrote: >> What happens if you remove the httpHeader setting and also UrlEncode >> tData? > > Still errors I'm afraid. Instead of removing the httpHeaders setting, what

Re: put URL

2015-09-18 Thread Dave Cragg
> On 18 Sep 2015, at 22:16, Peter Haworth > wrote: > > I guess I spoke to soon. > > The put URL code is in a button's mouseUp handler and the resetAll is at > the start of handler. Pete, I found this from a post from 8 years ago. (Oh dear.) It refers to libUrlResetAl

Re: Dumb XML library question

2014-08-05 Thread Dave Cragg
of xml text put revXMLCreateTree(tData,true,true,false) into tID put revXMLChildNames(tID, "person/aliases/", cr, "name" ,true) into tNameNodes put "" into tOut repeat for each line tNodeName in tNameNodes put "person/aliases/" & tNodeName into

Re: Dumb XML library question

2014-08-05 Thread Dave Cragg
On 5 Aug 2014, at 16:54, Mark Wieder wrote: > You can also step through them with revXMLFirstChild and > revXMLNextSibling. > > put field 1 into tData //source of xml text > put revXMLCreateTree(tData,true,true,false) into tID > put revXMLFirstChild(tID, "person/aliases") into tChild > brea

Re: sort lines by length

2014-09-23 Thread Dave Cragg
On 23 Sep 2014, at 20:07, Klaus major-k wrote: > Hi Larry, > > Am 23.09.2014 um 20:53 schrieb > : > >> Hello, >> >> this line doesn't work: >> sort lines of field "myField" by length of each >> >> Can someone please tell me the code for sorting a field by length of line? > > this compiles

Re: sort lines by length

2014-09-24 Thread Dave Cragg
se when you might want to sort alphabetically on length() is when demonstrating the behaviour of the sort command. :-) Cheers Dave Cragg ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manag

Re: libURLsetVerification

2014-11-06 Thread Dave Cragg
Jacques, Does you application do anything that might reset local variables in libUrl. For example, using resetAll or libUrlResetAll. In that case, if libURLSetSSLVerification is not set again, I think subsequent secure sockets will have verification set to true. Cheers Dave On 6 Nov 2014, at

Re: libURL hangs after getting response with keep-alive header

2011-04-22 Thread Dave Cragg
David Unless something has changed in the recent versions of libUrl (and I can't find anything obvious), libUrl will ignore any "Connection: keep-alive" header in the response. By default, it will keep connections open unless there was a "Connection: close" header in the response. Could there

Re: libURL hangs after getting response with keep-alive header

2011-04-22 Thread Dave Cragg
David As an after thought.. Does it help if you set the httpHeaders to "Connection: close"? Dave On 22 Apr 2011, at 20:00, David Beck wrote: > > Before I report this as a bug, maybe somebody can shine some light on what is > going on here. > > It looks like libURL hangs after getting a res

Re: libURL hangs after getting response with keep-alive, header

2011-04-24 Thread Dave Cragg
On 24 Apr 2011, at 18:19, David Beck wrote: > If I send a "Connection: close" with the httpHeaders, everything works as > expected with no hang. In this case, by using using the logging feature in > libURL, I could see that the response header have "connection: close" instead > of "connection:

Re: How to generate user passwords

2011-04-27 Thread Dave Cragg
Mark's method has the additional advantage that it can be used to generate names for your next science fiction novel. Best wishes Kgime Bogbu (Commander 4th Class, Warmifa Federation) ___ use-livecode mailing list use-livecode@lists.runrev.com Please vi

Re: Unicode and revDatabase Library, SQLite

2011-06-01 Thread Dave Cragg
On 1 Jun 2011, at 01:04, Slava Paperno wrote: > put uniDecode(locTarget, "UTF16") into locSQLParams --now locSQLParams is > UTF-8 To get UTF-8, I think that should be: put uniDecode(locTarget, "UTF8") into locSQLParams Dave ___ use-livecode mail

Re: the mouseText and Unicode: a 3-char puzzle

2011-06-21 Thread Dave Cragg
On 21 Jun 2011, at 07:40, Slava Paperno wrote: > VAR UTF-8 > 194 > 171 > 226 > 128 > 148 > 194 > 187 > > The FIELD and the VAR UTF-16 reports are entirely predictable, but the VAR > UTF-8 list is puzzling to me. I expected six bytes, not seven. I didn't follow the earlier thread, so apologies i

Re: [OT] Text analysis and author, anyone done it?

2011-07-01 Thread Dave Cragg
On 30 Jun 2011, at 23:42, Bob Sneidar wrote: > Since the subject was broached using textual analysis > Software cannot fix that. Well, I just put your text through my analogue software text analyzer, at it says there's a 96.2% chance it was written by Elvis. That sounds pretty convincing to

Re: object beneath mouseLoc?

2011-07-04 Thread Dave Cragg
On 4 Jul 2011, at 14:11, Ken Ray wrote: > The only current way is through polling during > mouseMove, which, although ugly, is usually fast enough even if you have > hundreds of objects: > > > on mouseMove >if the mouse is down then >repeat with x = 1 to the number of controls >

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread Dave Cragg
On 26 Jul 2011, at 07:40, paolo mazza wrote: > Thank you all. Trying to get rid of the browser cache setting the > proper headings (as Shao Sean suggested) , I came up with these 2 > solutions: > > PHP: > > header("Cache-Control: no-cache, must-revalidate"); > header("Expires: Fri, 30 oct 1998

Re: previous page button of browser opening on-rev server page

2011-07-26 Thread Dave Cragg
On 26 Jul 2011, at 14:54, paolo mazza wrote: > Actually the script suggested by Jan works, and I get a page with 2 > new headers. However, for some reasons, the browser do not reload the > page. > > Dave, you are right, I was unfair with PHP... still, at least "put > the long date" is pretty e

Re: iRev mySQL and a Revdberr?

2011-07-29 Thread Dave Cragg
On 30 Jul 2011, at 00:28, John Patten wrote: > Hi All! > > I have a basic insert mysql query in an irev file. It manages to insert the > new record but it returns a revdberr too. > > The table consists of 5 fields with the last field auto-updated incrementally. > > put "INSERT INTO opentrades

Re: FTP To and From My Mac

2011-08-09 Thread Dave Cragg
On 9 Aug 2011, at 21:31, Gregory Lypny wrote: > Hello everyone, > > I’ve got my Mac at work running as a server of sorts and would like to be > able to read and write files to it via FTP. I used the simple GET URL > command below and it worked for a 6 KB file but not for a 200 KB file. > > g

Re: Back to LC & Inventive Users

2011-08-12 Thread Dave Cragg
On 11 Aug 2011, at 23:01, Judy Perry wrote: > If you had a month, meaning, 4 long sessions or 8 shorter sessions, to get an > absolute Joe Public to make something small but semi-interesting in LC, i.e., > something they couldn't do in PowerPoint, what are the top 5 things you'd > want them to

Re: Collapse (?) An Array?

2011-09-01 Thread Dave Cragg
On 1 Sep 2011, at 10:53, Scott Rossi wrote: > Sorry, I don't know the correct verbiage here... > > If I script this: > > put "A" into theArray[1] > put "B" into theArray[2] > put "C" into theArray[3] > > > And then script this: > > delete variable theArray[2] > > > I essentially get an arr

Re: Collapse (?) An Array?

2011-09-01 Thread Dave Cragg
On 1 Sep 2011, at 13:13, Colin Holgate wrote: > Try this in the multiline message box: > > put "A" into theArray[1] > put "B" into theArray[2] > put "C" into theArray[3] > delete variable theArray[2] > put theArray[1] &"*"&theArray[2] &"*"& theArray[3] > > > You'll see that although theArray[2

Re: Collapse (?) An Array?

2011-09-01 Thread Dave Cragg
On 1 Sep 2011, at 14:16, Dave Cragg wrote: > It seems using any key on an existing array will produce an empty value. (I > don't know if that's how it should behave. I guess the alternative would be > throwing an error.) Update: it seems the array doesn't even

Re: Collapse (?) An Array?

2011-09-01 Thread Dave Cragg
On 1 Sep 2011, at 14:48, Admin wrote: > So, if A,B,C,D is the array with positions 1,2,3,4 > > and you > delete array variable 2 > > It will now look like this: > > A,C,D > > and the > array numbers are now: > > 1,3,4 > > He needs it to be > > A,C,D > > and > > 1,2,3 Looking ba

Re: please tell me why this is stupid

2011-09-02 Thread Dave Cragg
On 2 Sep 2011, at 16:33, Richard Gaskin wrote: > So it occurs to me that before the authentication data is sent, the first > request to the server app could be to ask for a token. This token would be a > hash (probably SHA1) of the client app's IP address, the time in millisecs, > and other a

Re: Tell me I'm not crazy

2011-09-20 Thread Dave Cragg
On 20 Sep 2011, at 16:45, Tereza Snyder wrote: > > Is it crazy to assume that if "=" works, then "<>" (or in other languages, > "!=") would also? Not crazy, but we know we shouldn't assume too much. Some of us don't have six hours of hair to lose. :-) If it is intended to be taken literall

Re: Managing the hilite color of selected text

2011-09-27 Thread Dave Cragg
On 27 Sep 2011, at 21:19, Pete wrote: > So far I have tried to use an openField handler to achieve this. Right now, > I'm just trying to deal with the situation where the user clicks back into > the field, by setting the background color of the field to either empty or > white, but neither metho

Re: Reading multiple identical nodes in an XML file

2011-10-17 Thread Dave Cragg
On 17 Oct 2011, at 05:45, Sivakatirswami wrote: > I am an XML newbie: > > if you want to extract data from a series of identical nodes in a XML file, > how do you set up the repeat function? > Here's one way. I'm sure there are others. (It returns a list of names and ages) Dave function na

Re: [OT?] ADOBE DROPS FLASH for HTML5

2011-11-11 Thread Dave Cragg
On 11 Nov 2011, at 14:29, Richard Gaskin wrote: > > > AIR is fundamentally flawed by requiring the installation of the engine > separately from the apps that use it. Richard, maybe I misunderstand what you are describing, but I like the idea of installing a single runtime engine to run much s

Re: Filter

2011-12-09 Thread Dave Cragg
On 9 Dec 2011, at 19:15, dunb...@aol.com wrote: > What am I doing wrong? If I have: > on mouseup > put "abcdef" into temp > filter temp with "c" > put temp > end mouseup > I get empty. I don't need more empty. Filter works on lines. From the docs: "Filters each line in a container, removi

Re: French Ears

2011-12-15 Thread Dave Cragg
On 15 Dec 2011, at 01:41, Tim Selander wrote: > But the voice can rise in pitch, stay flat, or drop in pitch for each > syllable. To foreign ears, it is a very, very slight change -- but of course > a very obvious change to native speakers. And that slight change in pitch can > completely chang

Re: is among the words AND find words

2011-12-22 Thread Dave Cragg
Late to the thread. If the purpose is just to see whether the word exists in a string, would this work (using regular expressions)? on mouseUp put "Some timely text with time, and more." into tString put "time" into tTarget put containsWord(tTarget, tString) end mouseUp function conta

Re: Looking for beta testers import of passwords to InfoWallet

2012-01-23 Thread Dave Cragg
On 23 Jan 2012, at 03:16, Bill Vlahos wrote: > put uniDecode(uniEncode(tData, "UTF8")) into tData Bill, Using this approach assumes that the original text is either UTF-8 encoded or that it is plain ASCII with no "funny" characters with a charToNum value above 127. I don't think it will work

Re: Why him does not use a natural language for programming?

2012-02-23 Thread Dave Cragg
On 23 Feb 2012, at 22:01, Bob Sneidar wrote: > I find his arguments ludicrous. Let me see some examples of english like > programming languages where a command could mean two different things without > any arguments supplied. What a preposterous thing to say! I can only think he > came right o

Re: Why him does not use a natural language for programming?

2012-02-23 Thread Dave Cragg
I may have misunderstood him too. But I interpreted the second video in the context of a teacher having run through the students' first programming lesson (in this case Python), and then asking generally, "so why do we have to learn a computer language rather than use a language we already know

Re: Automating Javascript Web Form Input

2012-02-27 Thread Dave Cragg
On 27 Feb 2012, at 00:52, Kay C Lan wrote: > If I manually enter the pdf file I wish to convert, from the resulting web > page I can see how I can use LC to download the converted text file, what I > don't know is how to us LC to feed the website my pdf file so I can > automate the entire process

Re: Automating Javascript Web Form Input

2012-02-27 Thread Dave Cragg
On 27 Feb 2012, at 10:05, Dave Cragg wrote: > > I tried it and it seems to work, but it returns an html page from which you > need to extract the url which will download the text file. I just took a look at the resulting text file. It was full of "weird stuff" and no rea

Re: Translation needed.

2012-02-27 Thread Dave Cragg
On 27 Feb 2012, at 15:16, Klaus on-rev wrote: > Hi friends, > > could some pelase translate this into spanish and french? > And correct my english, if neccessary ;-) > Thanks a lot in advance! > > -> Please wait until the movie download has finished. Klaus, you know you're asking for trouble.

Re: when to close a socket?

2012-02-29 Thread Dave Cragg
On 29 Feb 2012, at 09:49, Terry Judd wrote: > Hi guys - we have a reasonably complex Livecode app that makes lots of server > requests - typically initiated by posting data to php routines on a secure > (https) server. Generally things work well but occasionally things go awry > and we start

Re: unresponsive sequential post requests - libURL problem?

2012-03-01 Thread Dave Cragg
On 1 Mar 2012, at 00:51, Terry Judd wrote: > Hi guys (Dave hopefully you're not too far away) - earlier on I asked about > explicitly closing sockets to try and prevent Livecode becoming unresponsive > following repeated post (over https) requests. Dave Cragg suggested

Re: HELP! - Unable to acquire FTP file list...

2012-03-01 Thread Dave Cragg
On 1 Mar 2012, at 21:26, Keith (Gulf Breeze Ortho Lab) wrote: > > ]libURLSetFTPListCommand "LIST" > get > libURLftpCommand("LIST","ftp.mydomain.com","myusern...@mydomain.com","mypassword") > answer it > > Implementing the above, I keep getting: > > “425 No Data Connection” Unfortunately, the

Re: HELP! - Unable to acquire FTP file list...

2012-03-01 Thread Dave Cragg
On 1 Mar 2012, at 22:16, Keith (Gulf Breeze Ortho Lab) wrote: > Hi Dave, > > You wrote: > > "Does it work if you add a "/" after FTPHOST. > > e.g. > > constant FTPHOST = "ftp.mydomain.com/" > > Dave" > > Unfortunately, no. I tried that previously, as well as various other things, > but sti

Re: A peculiar character substitution problem with URL

2013-08-19 Thread Dave Cragg
is from the 'head' section of the page. So it looks like it may be 'obscure unicode characters'. :-) What happens when you do something like this: put URL "http://emergency.cdc.gov/disasters/wildfires/facts.asp"; into tTemp put uniDecode(uniEncode(tTemp, "

Re: Post command help (was: https problem)

2013-08-23 Thread Dave Cragg
ough a proxy were not supported in the past. I'm assuming that is still the case. Cheers Dave Cragg ___ 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: Using Post tData?

2013-09-23 Thread Dave Cragg
rrectly. The data you post needs to be formatted like this: doccode=19 So something like this: put "doccode=" & cd fld 1 into tPostdata post tPostdata to url "http://jpatten.on-rev.com/safetube_student/lc_lookup_list_exec_nc.php"; Or use libUrlFormData to format the d

Re: [OT] About the new movie on Steve Jobs

2013-09-24 Thread Dave Cragg
On 24 Sep 2013, at 18:20, Alejandro Tejada wrote: > http://en.wikipedia.org/wiki/Propaganda > > "Propaganda is a form of communication aimed towards influencing the > attitude of the community toward some cause or position by presenting > only one side of an argument. Propaganda statements may b

Re: SocketTimeOut message

2013-10-04 Thread Dave Cragg
On 4 Oct 2013, at 00:16, J. Landman Gay wrote: > But from Phil's answer, it sounds like the timeout message is just > informational, and libURL keeps trying to send until it goes through. So > maybe you don't need a resend? That's not my understanding. I think the transaction will stop if the

Re: How To Say ?This Is Crap? In Different Cultures

2014-02-27 Thread Dave Cragg
On 27 Feb 2014, at 08:59, FlexibleLearning.com wrote: > Whilst working in the garden And how should we interpret that, Hugh? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: HELP! - Linefeeds and Mac Vs Windows

2012-03-11 Thread Dave Cragg
On 11 Mar 2012, at 21:48, RevList wrote: > I have compared the two versions of the files in editors that allow me to > show the invisible characters and they look identical. > Comparing the two in BBEdit indicates the files are identical, yet when I > open them in NotePad, they clearly are not.

Re: [irev] passing a parameter

2012-03-22 Thread Dave Cragg
On 22 Mar 2012, at 08:54, Alex Tweedly wrote: > put URLdecode( $_GET["keyname"] ) into tData Alex, just a question for future reference. Is it necessary to URLDecode the $_GET values? I'm going on php experience here where $_GET values are already decoded. I was assuming it would be the same

Re: [irev] passing a parameter

2012-03-22 Thread Dave Cragg
On 22 Mar 2012, at 10:47, Alex Tweedly wrote: > > No idea - I've just always done it :-) > > Yep - a quick check says you're right, they are already urlDecoded Thanks for checking. ___ use-livecode mailing list use-livecode@lists.runrev.com Please v

Re: ANN and OT: Calling All SETI Enthusiasts

2012-03-27 Thread Dave Cragg
The weather is so nice here, it's hard to resist a good off-topic blether (discussion). On 26 Mar 2012, at 18:47, Roger Guay wrote: > given the vastness of our universe and the number of stars contained in it, > many argue that it is logical to assume a multitude of intelligent species > popul

Re: ANN and OT: Calling All SETI Enthusiasts

2012-03-27 Thread Dave Cragg
On 27 Mar 2012, at 21:19, Richmond wrote: > Of course there is a school of thought that there isn't life anywhere, just > an enormous great illusion being experienced by > nothing. Which for some reason made me remember this (from Monty Python): "The universe itself keeps on expanding and expan

Re: Upgrade to Lion

2012-05-28 Thread Dave Cragg
On 28 May 2012, at 19:19, J. Landman Gay wrote: > destroying 30 years of entrenched work flow I'm glad you posted this "grumpy old man of the year award" comment before I did. Remember when Metacard didn't even warn you about saving? And there's me telling the kids just to stick at it. "You

Re: Recreating complex interfaces and/or field formatting on preOpenCard

2012-06-05 Thread Dave Cragg
On 4 Jun 2012, at 17:39, Bob Sneidar wrote: > Seems counterintuitive doesn't it? Do some stuff on a card before ever > opening it? It's like saying drive to the store and get some milk before > unlocking the driver side door. ;-) Is that the right analogy? I think of it more like putting on s

Re: Password protecting a data file... how to cope with forgotten password?

2012-06-14 Thread Dave Cragg
On 13 Jun 2012, at 14:47, Richard Gaskin wrote: > MD5 has been known to be theoretically crackable for some years, and this has > become a reality as noted in recent news: > > MD5 password scrambler 'no longer safe' > > Summary: The MD5 password hash algorithm is “no longer considered >

Re: Password protecting a data file... how to cope with forgotten password?

2012-06-14 Thread Dave Cragg
On 14 Jun 2012, at 09:52, Igor de Oliveira Couto wrote: > Hi, Dave! > > On 14/06/2012, at 5:29 PM, Dave Cragg wrote: > > [...] > >> My first thought was that applying MD5 twice or more times would perhaps >> increase its security, but nowhere do I see th

Re: Password protecting a data file... how to cope with forgotten password?

2012-06-14 Thread Dave Cragg
Thanks Guglielmo I see I should change to Passwrd1,Passwrd2,Passwrd3 That should finally keep Mark Wieder out of my bank account. (old joke) Cheers Dave On 14 Jun 2012, at 10:45, Guglielmo Braguglia wrote: > Hi Dave, > about the "length" of password, this can help : > http://tech.dropbox.com/

Re: can the httpproxy setting include a username and password

2012-06-25 Thread Dave Cragg
On 25 Jun 2012, at 11:42, Terry Judd wrote: > Thanks Tiemo - so something like... > > set the httpHeaders to "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" yeah? > I think for a proxy, it should look like this: set the httpHeaders to "Proxy-Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" C

Re: Format Accented Characters for URL?

2012-09-25 Thread Dave Cragg
On 25 Sep 2012, at 21:29, Scott Rossi wrote: > Hi List: > > Wondering if someone has a suggestion for URL character formatting in LCŠ > > I'm trying to format a URL string to submit to Google Maps. The string is a > street address that needs to be delimited using "+". The complication > aris

Re: Put URL and garbage in result from PHP

2012-10-09 Thread Dave Cragg
On 8 Oct 2012, at 15:58, Mark Schonewille wrote: > Exactly every 8001 bytes (or 889 words, which are all different), I get some > garbage: > > 1f41 > A > B > [889 times] > C > 1f41 > P > Q > [889 times] > R > etc etc etc > X > 1e7d > > T

Re: Put URL and garbage in result from PHP

2012-10-09 Thread Dave Cragg
On 9 Oct 2012, at 10:12, Mark Schonewille wrote: > Hi Monte, > > I think you're right. The libURLLastRHHeaders return: > > HTTP/1.1 200 OK > Date: Tue, 09 Oct 2012 08:52:49 GMT > Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 > mod_fastcgi/2.4.2 > X-Powered-By: PH

Re: Put URL and garbage in result from PHP

2012-10-09 Thread Dave Cragg
9.4.4 No Content-Transfer-Encoding HTTP does not use the Content-Transfer-Encoding (CTE) field of MIME. - Dave On 9 Oct 2012, at 12:33, Dave Cragg wrote: > > On 9 Oct 2012, at 10:12, Mark Schonewille > wrote: > >&

Re: Help with ampersand in xml

2012-10-19 Thread Dave Cragg
On 18 Oct 2012, at 16:35, Chris Sheffield wrote: > For all you xml experts out there. Hoping someone has the answer for this... > > I need to use an ampersand character (&) in xml. It's in a company name like > Levi Strauss & Co. Everything I can find on the topic says to use the entity > ref

Re: Coding challenge

2013-01-31 Thread Dave Cragg
On 31 Jan 2013, at 05:40, Paul D. DeRocco wrote: > Now how would you do it if the available coin values were: > > 40,30,10,4,3,1 > > That's a more interesting problem, but probably a less interesting coding > test, because I think it would involve a more brute force approach, less > eleg

Re: just for fun: pop quiz

2013-02-03 Thread Dave Cragg
I had a vague memory of this and checked in an old script and found the following: read from file laFile[pUrl] for 4096 if the result <> empty and the result <> "eof" then ... Dave On 3 Feb 2013, at 00:36, Richard Gaskin wrote: > Without looking in the Dictionary, what would you expect the v

Re: Basic libURL bug?

2011-01-02 Thread Dave Cragg
On 3 Jan 2011, at 00:34, Mark Wieder wrote: > Chipp- > > Sunday, January 2, 2011, 4:26:40 PM, you wrote: > >> Even more interesting. On my Mac, it returns correctly, just not on my PC. > > Yep. I can verify that here. Returns 4558 every time on OSX. On XP I'm > getting different results. Somet

Re: Basic libURL bug?

2011-01-02 Thread Dave Cragg
On 3 Jan 2011, at 02:27, Chipp Walters wrote: > Dave, > > It's just a standard IIS logfile from a server. There's nothing funny about > it. In fact, I cut/pasted it into a text file and uploaded it to the server > it's on right now, so as to keep Chris from hollering at me! (It had the > problem

Re: OT: Are Microsoft really at it again!

2011-01-13 Thread Dave Cragg
On 13 Jan 2011, at 23:29, Douglas wrote: > How many people think that this is an unfortunate "mistake" on Microsoft's > part? 27 Cheers Dave :-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscr

  1   2   >