HEXtoBIN for pure HEX-files

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: HEX2BIN for pure HEX-files

Post by rbytes »

Yes, microphone input would have been a nice bonus. And Bluetooth, etc.

Considering Apple's actions toward Smart Basic, I can't blame Mr. k for feeling persecuted by them. I feel only contempt for the low-level staffers he has dealt with. Can they really be so dense that they don't realize the difference between xCode code and the program scripts of Smart Basic? Are they so lacking in computer knowledge that they really thought that they could prevent "code" importing by blocking files with .txt extenders? It took Forum members only a few seconds to figure out the workaround. There are dozens of computer language apps on the App Store, and I can import "code" into any of them with a simple copy/paste. Pythonista has several free scripts that will import "code" directly from GitHub.

But these Apple minions say that Mr. K allowed cheating by allowing importing scripts with different file extenders. They insist on banning all file imports (with the exception of photos). What are they afraid of? It seems they don't understand the iOS sandbox concept. I find it a refreshing mental exercise to figure out ways to circumvent their foolishness.
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: HEXtoBIN for pure HEX-files

Post by Dutchman »

I started the topic Quo Vadis about future use of SB. See viewtopic.php?f=26&p=11816#p11816
And I changed the name of this topic from HEX2BIN to HEXtoBIN, it was more or less suggested by rbytes :lol:
Last edited by Dutchman on Thu Jan 19, 2023 3:25 pm, edited 1 time in total.

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

Re: HEXtoBIN for pure HEX-files

Post by Dutchman »

I cleaned HEX2BIN from multiline adaptations and changed the name to HEXtoBIN.
Some error-handling is added.
For larger files a bar is drawn during decoding in order to show the progress.
The screenshot shows result after decoding and testing "hardy.mp3HEX":
hardy screenshot.PNG
hardy screenshot.PNG (141.65 KiB) Viewed 2727 times
The file "BIN to HEX procedure" has been updated with info on windows app "sfk.exe'
sfk.exe has been attached to the initial post in this thread.
Contents of the Dropbox-folder have been updated.

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

Re: HEX2BIN for pure HEX-files

Post by Dutchman »

rbytes wrote:
Sun Sep 10, 2017 2:36 pm
… I find it a refreshing mental exercise to figure out ways to circumvent their foolishness.
I borrowed your remark as signature :lol:

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: HEXtoBIN for pure HEX-files

Post by rbytes »

That is the best signature line on the Forum. :D
The only thing that gets me down is gravity...

User avatar
GeorgeMcGinn
Posts: 435
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10
Location: Venice, FL
Flag: United States of America
Contact:

Re: HEXtoBIN for pure HEX-files

Post by GeorgeMcGinn »

Until my service provider started to require a sign-in for every user, I have been using SmartBASIC's browsers to bypass dropbox, to Google Drive, or any time I needed to upload a file or download a file.

What most people do not know is that games such as GAW or TWG Golf, even Thrones all use external servers for everything from allowing the user to purchase game monies, and to stage battles.

Very little i done in the app. everything is done on the server.

A while back Rbytes and I did some work on a server which would allow users of any language (SmartBASIC to start with, the TechBASIC, Lua, etc) to act as a file storage wit both a public file access, and a private (container) access, and I had written scripts that the SB browser would execute to upload, download, replace and delete files, update, add, and delete records from random access files, and create new datafiles.

Apple had no issues with this as the server created the container and even the public files were a container for just the app (maintaining system game files).

For Apps that need to maintain just regular data files for processing (such as tax returns, order/delivery.invoicig etc) should also not cause a problem with Apple.

Dutchman wrote:
Sun Sep 10, 2017 3:00 pm
I started the topic Quo Vadis about future use of SB. See viewtopic.php?f=26&p=11816#p11816
And I changed the name of this topic from HEX2BIN to HEXtoBIN, it was more or less suggested by rbytes :lol:
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)

Post Reply