Re: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The mobile sensor reading is having a problem when combined with the plist hack. When I hit the home button to put the app in pause mode, and then go back into the app, the device thinks that north is in whichever direction the phone is facing when the app resumes. It is strange. Sent from my

Re: Raspberry Pi help needed soon

2017-05-27 Thread Mark Rauterkus via use-livecode
Yes Richard. Sing it again and again. Wow to that news. LiveCode needs to show up there, with bells on. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preference

Very naive URL question

2017-05-27 Thread Graham Samuel via use-livecode
Hi - I’m using LC 8.1.4 rc2 Indy on a Mac with Sierra. I am confused about something so fundamental that I am embarrassed to have to ask for help, but there it is… I own a website, www.mydomain.com Mostly it serves web pages, which works fine. I decided to put a tiny text file onto the server

Re: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The problem might be on my phone - the compass app does the same thing! Sent from my iPhone > On May 27, 2017, at 8:31 AM, jonathandly...@gmail.com wrote: > > The mobile sensor reading is having a problem when combined with the plist > hack. > > When I hit the home button to put the app in pau

Re: Very naive URL question

2017-05-27 Thread Mike Bonner via use-livecode
You can embed a username and password in the request, I believe the form is ftp://*username*:*password*@hostname/.. this can be dangerous though, so i'm not sure you should necessarily do that. If you can set up a read only ftp account, that might be ok. In this case though, you're placing a file

TreeView widget - designed for general use?

2017-05-27 Thread Richard Gaskin via use-livecode
The TreeView widget seems to do okay for the purpose it's used for in the IDE, but is it designed for us to use in our projects as a general solution for tree views? If so, perhaps I should file a series of bug reports, unless you folks know of a way to work around these: - Frequent "chunk i

Re: Very naive URL question

2017-05-27 Thread Graham Samuel via use-livecode
Thanks Mike - I take your point about having the password etc embedded, so I am going for your “http” solution. I had naively thought that “http” was exclusively involved in the serving of web pages, and i imagined that a simple text file isn’t one of those. Thanks to you, I now know better. An

Re: Very naive URL question

2017-05-27 Thread Mike Bonner via use-livecode
If you have full reference to the file, and it works in your browser, you should be able to put "http://your.domain.com/text.txt"; and have it appear in the msg box If you use "get" it'll put the page into "it'. Even if the server returns an error, it'll end up in "it" so the result being empty is

Re: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
If it helps anyone - one can apparently recalibrate the compass by facing north, stopping sensor tracking, and restarting sensor tracking. It is only a temporary solution. Sent from my iPhone > On May 27, 2017, at 10:21 AM, jonathandly...@gmail.com wrote: > > The problem might be on my phone -

Re: Very naive URL question

2017-05-27 Thread Graham Samuel via use-livecode
Thanks Mike Somehow my testing managed to wreck the command, because when I reloaded LC 8.1.4 rc2, it worked, when neither my original call nor the Google one worked at all before. This is a bug in the IDE perhaps, since a bit of script testing should not affect what the Message Box can do. If

Re: TreeView widget - designed for general use?

2017-05-27 Thread Ali Lloyd via use-livecode
You should file bug reports for all of those, please! A couple of them would make good projects for people wanting to learn a bit of LCB and make an open source contribution - namely adding a property to change the disclosure icon (relatively easy) and a property for sort orders of subkeys (medium)

Apparently, mobile phone compasses do not work well

2017-05-27 Thread Jonathan Lynch via use-livecode
After a bit of experimentation with different devices, and researching online, I have come to realize that the device simply cannot consistently detect one's bearing with accuracy. I am going to mimic the way Pokémon Go lets the user spin the view around at will, but still auto adjusts the posi

Re: TreeView widget - designed for general use?

2017-05-27 Thread Richard Gaskin via use-livecode
Ali Lloyd wrote: > You should file bug reports for all of those, please! Done - see inline below: > On Sat, May 27, 2017 at 4:09 PM Richard Gaskin wrote: ... >> - Frequent "chunk index out of range" errors when double-clicking >> lines http://quality.livecode.com/show_bug.cgi?id=19753 >>

Answer file under OSX and cross platform file names

2017-05-27 Thread Paul Dupuis via use-livecode
OSX allows the slash character in file and folder names. LiveCode uses the slash as the delimiter between path items in file paths. So when you execute: answer file "Pick an OSX file with a slash in the name" put it Livecode substitutes a colon for the slash in the name. Colon is an illegal chara

File - read from EOF

2017-05-27 Thread JB via use-livecode
I want to read a file as binary of any size but as crazy as it sounds I want to read in sections form the EOF and stop at the beginning of the file instead reading from the start to EOF. I have no problems opening, reading and closing files or reading in sections. Does anyone know the easiest way

Re: File - read from EOF

2017-05-27 Thread Mike Bonner via use-livecode
I think you need to do the following First get the length in bytes of the file get the number of bytes in url ("binfile:" & yourfile) I have a file that I just did this on and there are 289558088 bytes Then you can either start reading at byte -whatever to -1 to grab the last part, adjusting the

Re: File - read from EOF

2017-05-27 Thread JB via use-livecode
Hi Mike, That sounds really good! thank you very much, JB > On May 27, 2017, at 7:50 PM, Mike Bonner via use-livecode > wrote: > > I think you need to do the following > > First get the length in bytes of the file > get the number of bytes in url ("binfile:" & yourfile) > > I have a file t

Re: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-27 Thread Sannyasin Brahmanathaswami via use-livecode
Richard Gaskin via use-livecode" wrote: ("ftp://FTPusername:ftppassw...@mydomain.on-rev.com/somepath/somefile.ext";) Would that be "ftps://..."? @ Charles I have the same (or perhaps similar) question. If using sftp://username:password@mydomain/sompath/somefile.ext is the user na

Re: Open Inv Stack on iPhone

2017-05-27 Thread Sannyasin Brahmanathaswami via use-livecode
we have been playing with this open, close, show, destroy, stacks on mobile for several months FWIW, if you use dispatch to a stack, even if it has GUI on card 1… it just opens in memory but not visible. if you run "go" later the stack will top level (as you would expect) #stack MyLibraryWGUI