Search found 61 matches

by robl
Thu Dec 29, 2016 1:24 pm
Forum: Internet
Topic: FTP - force ASCII instead of Binary
Replies: 11
Views: 3002

Re: FTP - force ASCII instead of Binary

I think I found a solution, and it is very simple, but not documented in the LiveCode docs. libURLDownloadToFile "ftp://" & lServer & lServerPath & lServerFile & ";TYPE=A", lLocalFile,"downloadDone" That's it. No need to use any libURLftpCommand. No need to download the file twice. Just add the stri...
by robl
Thu Dec 29, 2016 3:13 am
Forum: Internet
Topic: FTP - force ASCII instead of Binary
Replies: 11
Views: 3002

Re: FTP - force ASCII instead of Binary

Did you try a small "wait" between setting to Ascii and getting the file? Indeed, I tried a delay of a varying amounts up to 10 seconds, still the same results. I'm almost wondering if I am missing something in the "raw" FTP commands that isn't fully initializing it correctly and the libURLdownload...
by robl
Wed Dec 28, 2016 8:10 pm
Forum: Internet
Topic: FTP - force ASCII instead of Binary
Replies: 11
Views: 3002

Re: FTP - force ASCII instead of Binary

Can you use libURLftpCommand to set it to ASCII before getting the file? Thank you! It almost works. I'm not sure if it is something I am missing, but I can get to download ASCII using your solution, but I have to download it TWICE! If I send a "QUIT" to the ftp server to formally disconnect, and t...
by robl
Wed Dec 28, 2016 8:02 pm
Forum: Internet
Topic: FTP - force ASCII instead of Binary
Replies: 11
Views: 3002

Re: FTP - force ASCII instead of Binary

Interesting problem. I've never worked with EBCDIC before, so I checked out the Wikipedia page on it, which includes a section titled "Criticism and Humor": https://en.wikipedia.org/wiki/EBCDIC#Criticism_and_humor It's such an odd and old format that I'm wondering: when you use text mode in other s...
by robl
Wed Dec 28, 2016 1:57 am
Forum: Internet
Topic: FTP - force ASCII instead of Binary
Replies: 11
Views: 3002

FTP - force ASCII instead of Binary

Ran into a situation here that I haven't figured out how to work around the issue. I am using FTP to talk to an old IBM Mainframe to retrieve some raw data. The problem is that if I use the following code put url "ftp://user:password@servername.server.com/SOME.DATA.REPORTS/REPORT1" into fld "output"...
by robl
Thu Oct 06, 2016 12:56 pm
Forum: SQL Yoga
Topic: DBConnection on hosted server drops after a few minutes
Replies: 6
Views: 1921

Re: DBConnection on hosted server drops after a few minutes

AxWald is correct. In general, best practice dictates that you should not retain or expect a database connection to remain alive. You should connect, run a series of queries (i.e. just what is needed to populate a screen or report) and then disconnect, and repeat as necessary. Maintaining an open co...
by robl
Thu Jun 04, 2015 12:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Basic Table Field (Link Query)
Replies: 5
Views: 1222

Re: Basic Table Field (Link Query)

The Database Query Builder has to be enabled in the Preferences. I strongly URGE you to not use it. It's very old, very buggy, very deprecated and just not maintained. It's bad. BAD! BAD! BAD! It only exists for backward compatibility with some very old scripts. Uncheck that box in the preferences a...
by robl
Thu Jun 04, 2015 12:05 am
Forum: Off-Topic
Topic: Next release (DP, Beta, RC, GM) of LiveCode 8.0
Replies: 2
Views: 1399

Next release (DP, Beta, RC, GM) of LiveCode 8.0

Not quite off-topic, but didn't quite seem to fit the other subforms... We've seen several releases of 7.X and 6.7.X since 8.0DP2, yet I've not seen much information on the next release of of 8.0. I'm a bit anxious to see the next release of 8.0 and all of the improvements it will bring, esp with LC...
by robl
Mon Jun 01, 2015 5:43 pm
Forum: iOS Deployment
Topic: Weird Audio Issues with iOS
Replies: 2
Views: 789

Re: Weird Audio Issues with iOS

Thanks for the suggestion, Joffery. I've seen the audio problems that were corrected with the volume / rotation lock trick (i.e. after upgrading to iOS 8), but that's not the problem here. In my circumstance, the issue is bad quality audio playback and it's on multiple iOS devices.
by robl
Sun May 31, 2015 2:37 pm
Forum: iOS Deployment
Topic: Weird Audio Issues with iOS
Replies: 2
Views: 789

Weird Audio Issues with iOS

I have a simple iOS application that I am working on, which is basically a customized podcast player. The app fetches the podcast rss/xml feed from a website, and populates a datagrid. Once an "episode" is selected in the datagrid, the app downloads an mp3 into a temporary folder and then attempts t...
by robl
Fri May 15, 2015 7:07 pm
Forum: Converting to LiveCode
Topic: Goodbye Filemaker. I will (sort of) miss you
Replies: 24
Views: 9013

Re: Goodbye Filemaker. I will (sort of) miss you

I have moved on from FileMaker as well. I had an Annual Volume Licensing agreement with FIleMaker for FileMaker Server and several copies of FileMaker. During the last year, all of the apps were re-created in LiveCode using MariaDB (MySQL fork) as the back end server. The cost savings has been subst...
by robl
Fri May 15, 2015 11:27 am
Forum: Databases
Topic: Check Connection
Replies: 15
Views: 2508

Re: Check Connection

I approach this a bit differently. My apps do not attempt maintain a database connection for a long period of time. Many times a database server will have a relatively short timeout period to close the connections, which is done to conserve resources (and on commercial database servers where you pai...
by robl
Mon May 04, 2015 4:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Parse user authentication
Replies: 3
Views: 1624

Re: Parse user authentication

Greg:

Good catch! I should have caught that myself, but I replied before my second cup of coffee in the morning. You are right, the urlEncode was "encoding" the = symbol, which is incorrect.

I am glad you got it working.
by robl
Mon May 04, 2015 11:24 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Parse user authentication
Replies: 3
Views: 1624

Re: Parse user authentication

Hi, Greg. According to your CURL example, it looks like they are using an HTTP GET, not a POST. (Otherwise, it would have started with "curl -X POST".) Below should be the LiveCode equivalent for the CURL example you provided. -- add the HTTP headers put "X-Parse-Application-Id: kMHGwB2beTg1AQCp93Gt...
by robl
Thu Apr 23, 2015 9:03 pm
Forum: iOS Deployment
Topic: LC 7.0.4 and Xcode 6.3 - once again broken?
Replies: 27
Views: 7314

Re: LC 7.0.4 and Xcode 6.3 - once again broken?

I just auto update Xcode from the AppStore and download the LC supported version from the Apple Developer's website. Both can be installed at the same time, which makes it easy to keep functioning.

Go to advanced search