QUO VADIS?

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

QUO VADIS?

Post 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 :lol:
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) :D

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. ;)
Last edited by Dutchman on Thu Jan 19, 2023 3:26 pm, edited 1 time in total.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post 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. :D
Last edited by rbytes on Sun Sep 10, 2017 5:15 pm, edited 1 time in total.
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post 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().
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post 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 ;)
Attachments
ironman.mp3
(2.06 MiB) Downloaded 234 times
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post 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. :idea:
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: QUO VADIS?

Post 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. :idea:
Yes, but this brings another question: what is the server?
Programs posted on Forum can be downloaded, but what about personal data of users?

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post 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.
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: QUO VADIS?

Post 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 :?:

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: QUO VADIS?

Post by rbytes »

Yes. I can see adding a few functions to it - download a file, upload a file and download a web page.
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: QUO VADIS?

Post 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?

Post Reply