Page 1 of 2
QUO VADIS?
Posted: Sun Sep 10, 2017 2:57 pm
by Dutchman
I propose to concentrate the approach for abandoning Dropbox in a single topic: Quo Vadis, where to go, or "Whither goest thou" according to Google translate
Latest discussions are on
viewtopic.php?f=20&t=1938
The problem of importing resource-files is more or less solved, although it is clumsy with respect to the existing facility with Dropbox.
Transfer of the HEX-file can be simplified as proposed by rbytes:
rbytes wrote: ↑Sun Sep 10, 2017 12:47 am
… an option to HEXtoBIN to paste the hex data directly from the clipboard, that would reduce the number of steps in the transfer process to just two…
There might be a solution via Dav's browser.
I tried to access the "…HEX.txt"-files with DAV's browser, see
viewtopic.php?f=20&t=854
If you touch in that browser the download-link of the attached file "alarm.wav.txt" in the HEXtoBIN-topic, then the content is visible on the screen. I don't know however how to save that. It requires a Java-Script command in the command "
BROWSER_TEXT$ (N$, T$)" and I am not familiar with that.
I will add the clipboard-suggestion to HEXtoBIN (Previous HEX2BIN)
Another topic is the transfer of codes to/from the computer and the forum. It would be much easier if it would be possible in SB to zip and unzip folders with contents especially if the program uses a lot of parts and resources. Both OSX and Windows have this facility.
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 4:01 pm
by rbytes
I had a "Eureka" moment this morning. I recalled that I had a script that could download any image from the web using a Smart Basic HTTP command. Took me a bit of searching, but I think we may have the other half of the transfer process, with no copy or paste required.
Try this code. It will download "alarm.wavHEX" and save it as a file in Smart Basic in a couple of seconds.
Code: Select all
fname$="alarm.wavHEX"
web$="http://kibernetik.pro/forum/download/file.php?id=2517"
HTTP web$ GETDIM M
FILE fname$ WRITEDIM M
This code will download "hardy.mp3HEX" and save it in Smart Basic - it takes about 20 seconds for this much larger file.
Code: Select all
fname$="hardy.mp3HEX"
web$="http://kibernetik.pro/forum/download/file.php?id=2521"
HTTP web$ GETDIM M
FILE fname$ WRITEDIM M
If we combine the essentials of Dav's browser with those of HEXtoBIN, we could have an all-in-one solution that allows browsing to a Forum file, selecting it, and saving that file in Smart Basic.
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 4:10 pm
by rbytes
As a side bonus, we can copy web pages from the Forum and save them. I just copied this page to a text file. There was a lot of HTML to wade through, but the program scripts were there, nicely sandwiched between <code> and </code> tags. It would be very easy to extract and save just the code chunks using INSTR().
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 4:16 pm
by rbytes
I am attaching ironman.mp3 so that I can test how long it takes via the http download technique. It is 2.1 MB. I will post my results. A progress bar will likely be desirable
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 4:29 pm
by rbytes
I downloaded the binary file "ironman.mp3" in under 5 seconds using the four lines of code posted above, and it played just fine. It did not require conversion to hex and back.
Mr. K, I hope you are watching this thread. This method is easier and faster than Dropbox.
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 5:23 pm
by Mr. Kibernetik
rbytes wrote: ↑Sun Sep 10, 2017 4:29 pm
I downloaded the binary file "ironman.mp3" in under 5 seconds using the four lines of code posted above, and it played just fine. It did not require conversion to hex and back.
Mr. K, I hope you are watching this thread. This method is easier and faster than Dropbox.
Yes, but this brings another question: what is the server?
Programs posted on Forum can be downloaded, but what about personal data of users?
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 5:40 pm
by rbytes
I assume that most of us have our own personal web spaces. I will do some tests on uploading to my space using HTTP commands. I believe there has been some sb code posted on the Forum about this.
Is there a way you can suggest for us to have common shared web space for Smart Basic and SPL? Then we could move our own files around and also share them with others.
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 5:44 pm
by Dutchman
Mr. Kibernetik wrote: ↑Sun Sep 10, 2017 5:23 pm
Programs posted on Forum can be downloaded, but what about personal data of users?
I have no knowledge of browser commands, but if download is possible then upload should also be possibble. In the browser on my computer I can download AND upload files from/to Dropbox.
So the problem is how to adapt Dav's browser isn't
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 5:51 pm
by rbytes
Yes. I can see adding a few functions to it - download a file, upload a file and download a web page.
Re: QUO VADIS?
Posted: Sun Sep 10, 2017 6:38 pm
by Dutchman
If you now touch an 'active' text-attachment-link, then the content of that attachment is displayed on screen. So it is downloaded to screen. How can it be downloaded to a file or folder by simply touching the link?