Search found 19 matches

by scrabbles
Tue Feb 16, 2016 10:01 am
Forum: Internet
Topic: How do I test if an « open socket » is working or not?
Replies: 3
Views: 6423

Re: How do I test if an « open socket » is working or not?

hi, Do you need to add a callback to your "open socket" command? I see in the dictionary " If the callback parameter is specified then the call will return immediately and upon completion of the lookup, the callback will be invoked with the resolved address as a parameter " You might be able to also...
by scrabbles
Tue Jan 12, 2016 7:32 am
Forum: Talking LiveCode
Topic: Weird prompt with Answer
Replies: 6
Views: 5919

Re: Weird prompt with Answer

hi ya,

Just a stab in the dark at this, but does exiting the mouseup from a loop contribute to this behaviour? if you do "exit repeat" instead, and then let the mouseup exit by itself, does it still happen?

- mark
by scrabbles
Mon Jan 11, 2016 7:18 am
Forum: iOS Deployment
Topic: Getting the file date of a txt file
Replies: 4
Views: 4287

Re: Getting the file date of a txt file

Hi,

Check out "long" in the dictionary, as it can be used with file commands. e.g.

Code: Select all

set the defaultfolder to "/"
put the detailed files
A checksum or other hash might be more reliable than just timestamp.
by scrabbles
Sun Oct 25, 2015 10:08 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: urlencode() mystery
Replies: 7
Views: 5636

Re: urlencode() mystery

hi, might be a bug? i think both are incorrect, shouldn't it be z%E9ro.png. Using other langs or online urlencoders, i get z%C3%A9ro.png.

— Mark
by scrabbles
Thu Oct 22, 2015 10:22 am
Forum: CGIs and the Server
Topic: Modifying headers for CORS ?
Replies: 2
Views: 5670

Re: Modifying headers for CORS ?

Hi, some things i can think of to double check - mod_headers really is enabled? (if you are relying on apache to serve it) - header in script is not replaced by other code? (ie inadvertanlty choosing a different path in code so it's never set/overwritten by something else) - header returned is actua...
by scrabbles
Mon Oct 19, 2015 10:53 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to create a Sha1 Digest UUID from a string?
Replies: 2
Views: 3656

Re: How to create a Sha1 Digest UUID from a string?

Hi Will, That sha1digest code you found looks like it might work to me, but you should be able to use the uuid("sha1",uuid(),"api_secret") format as well, just depends on what you're supposed to use from cloudinary (maybe grep their doco for namespace_ i'm guessing it wll be url). I found this on SO...
by scrabbles
Sat Oct 10, 2015 10:21 am
Forum: Databases
Topic: Fastest method for CSV to MySQL table
Replies: 8
Views: 7741

Re: Fastest method for CSV to MySQL table

Hi, Do you have a way to put a file on the server? If so, the fastest way might be to just use mysql's import functions https://dev.mysql.com/doc/refman/5.7/en/load-data.html As for the int and date.. you sure the values are passed correctly, perhaps you are making the int a string inadvertantly? Th...
by scrabbles
Wed Oct 07, 2015 8:55 pm
Forum: LiveCode Builder
Topic: Icon Specification
Replies: 13
Views: 10958

Re: Icon Specification

Just my interpretation, but @mwieder might be referring to conventions such as Apple's where it is <ImageName><@scaling>.<ext> eg Icon-60@3x.png https://developer.apple.com/library/ios/qa/qa1686/_index.html Or Microsoft's <name>.<scale-100>.<ext> https://msdn.microsoft.com/en-us/library/windows/apps...
by scrabbles
Sun Oct 04, 2015 7:44 am
Forum: Talking LiveCode
Topic: Perform Basic Access Authentication
Replies: 5
Views: 4919

Re: Perform Basic Access Authentication

Hi, this is what i use and it works for me. You might have been missing the auth type of basic or missing a colon space, minor things like that can trip up things. put "https://" & myServer & "/api/xxxxxx/?q=" & urlencode(searchTerm) into myURL put base64encode("user:password") into userpass put "Au...
by scrabbles
Wed Sep 02, 2015 10:40 am
Forum: HTML5
Topic: Example HTML5 conversion
Replies: 20
Views: 21500

Re: Example HTML5 conversion

That was a good little game to play. Impressive it all transpiled, including graphics.
by scrabbles
Wed Sep 02, 2015 10:32 am
Forum: Bug Triage
Topic: How to clear the socket cache.
Replies: 13
Views: 5566

Re: How to clear the socket cache.

Hi ya,

If you are using the "load" command, there is a counterpart called "unload" that should clear the cache. Additionally, you can see what URLs have been cached by using "the cachedURLs" to verify.

Hope that helps.

- Mark
by scrabbles
Tue Aug 25, 2015 12:22 pm
Forum: Documentation and Tutorials
Topic: lcdoc & contributing to dictionary
Replies: 4
Views: 21206

Re: lcdoc & contributing to dictionary

Just to answer my own questions in case it benefits others: - lcdoc does seem to be the format going forward in v8 (I am unsure if changes get back ported to 6x though, i think they do for 7.1) - The LCv8 dictionary (open it in livecode) has a guide tab, which has a specifications section explaining...
by scrabbles
Fri Aug 21, 2015 3:11 am
Forum: Documentation and Tutorials
Topic: lcdoc & contributing to dictionary
Replies: 4
Views: 21206

lcdoc & contributing to dictionary

Hi, I've written a little script to create a Dash app "docset" as I noticed there wasn't already one ..anyway ... I didn't know what Livecode documentation to base it on—I can see 3 different types of livecode documentation: XML, lcdoc, and in LC8 I see json (locally installed, not on github). I use...
by scrabbles
Thu Aug 13, 2015 9:32 am
Forum: Off-Topic
Topic: Documentation Software
Replies: 6
Views: 6587

Re: Documentation Software

Hi Jack, Do you mean code documentation tools like doxygen/naturaldocs and the like that can generate "documentation" or more an editor that can be used for documenting systems like MS Word? Code gen tools — I'm not sure if they can handle livecode without some wrangling. Writing tools — There's a p...
by scrabbles
Sun Mar 08, 2015 9:57 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: backColor and indented text
Replies: 6
Views: 4259

Re: backColor and indented text

Thanks Craig, I played around with this for about half an hour. The negative "offsets" work a treat for fixing the backcolor, but then of course, I lose the indenting of my text. What I don't understand is why firstIndent works the way i want (except for wrapped lines), but normal indent does not. W...