associate the .gt1 filetype for web autoloading

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
User avatar
ECL
Posts: 26
Joined: 01 Feb 2020, 17:56

associate the .gt1 filetype for web autoloading

Post by ECL »

one could automate https://gigatron.io/emu further to allow loading a .gt1 binary straight from a URL suffixed like in

https:// gigatron.io/emu/?load=ggt_binary.gt1&?address=filehost.xyz/binar0123.dat

or similar to have clickable Ggt binaries. To make firefox understand it, one can use the extension https://addons.mozilla.org/firefox/addo ... ype-fixer/ from M$hub at https://github.com/jscher2000/Content-T ... -extension to make definitions required.

Also register .gt1 like .gt2 is registered here :arrow: https://file-extension.net/seeker/file_extension_gt2 by just sending those dudes an e-mail. It will then automatically be used by virustotal.com and others who use the definition library and give users the impression of security if hackers try to emulate spectre/meltdown vulns on a Gigatron :lol:

I am under the impression that .gt1 is little-endian byte order, is that correct? should be info to put into the registration of .gt1 filetype.
User avatar
marcelk
Posts: 488
Joined: 13 May 2018, 08:26

Re: associate the .gt1 filetype for web autoloading

Post by marcelk »

While we try to use little-endian where possible, for practical reasons GT1 segment headers are big-endian. Details are in Docs/GT1-files.txt

You seem to know how to do this, so the usual applies: good idea, don't wait for others to pick it up and feel free to go ahead!
dwesti
Posts: 15
Joined: 31 Jan 2020, 05:37

Re: associate the .gt1 filetype for web autoloading

Post by dwesti »

For old emulator .gt1 works fine: copy one to folder, launch program, press L, choose file.
User avatar
ECL
Posts: 26
Joined: 01 Feb 2020, 17:56

Re: associate the .gt1 filetype for web autoloading

Post by ECL »

in KDE Linux and Windows one can associate the .gt1 filetype with the emulator binary (.exe in win) such that if the .gt1 is clicked, it could launch the emulator without going through another file navigation process. Like you open any .odt file with the OpenOffice binary just with a double-click.

But ./gtemuAT67 does not seem to accept a filename.gt1 as a commandline parameter so that the .gt1 actually gets launched right away:
- Supports Gigatron TTL loading of external vCPU code [BUT ONLY] with a file browser.<br/>
at67
Site Admin
Posts: 647
Joined: 14 May 2018, 08:29

Re: associate the .gt1 filetype for web autoloading

Post by at67 »

I'm adding this functionality to gtemuAT67 now, it's probably better if you make requests/post ideas/bugs etc, into the at67 emulator thread, that way I won't potentially miss them.
User avatar
ECL
Posts: 26
Joined: 01 Feb 2020, 17:56

associate the .gt1 filetype for web autoloading

Post by ECL »

https://addons.thunderbird.net/en-US/th ... hunderlink

could be useful as a basis for implementing such .gt1 links
User avatar
marcelk
Posts: 488
Joined: 13 May 2018, 08:26

Re: associate the .gt1 filetype for web autoloading

Post by marcelk »

ECL wrote: 16 Feb 2020, 21:24 https://addons.thunderbird.net/en-US/th ... hunderlink

could be useful as a basis for implementing such .gt1 links
Maybe you need to explain a bit more. Is that something you have experience with applying in a similar context? Is it your project?
User avatar
ECL
Posts: 26
Joined: 01 Feb 2020, 17:56

Re: associate the .gt1 filetype for web autoloading

Post by ECL »

we all know that a weblink like http://rt.com can be opened with firefox because firefox is associated with http links as well as ftp:// links , possibly gopher:// links and so forth.

the guy who made the thunderlink extension (thunderlink is not my project) demonstrates how he defines his own new type of link to be opened by thunderbird. Like there are mumble-links like mumble://1.2.3.4/chat55 which will enter the voice-chat room "chat55" on 1.2.3.4 using the mumble program, a voice chat client.

at67 has already enhanced the emulator such that it can be locally associated with .gt1 files. Associating .gt1 files is just like 5 clicks or so in the dolphin KDE filemanager, very easy in Windows as well.

On top of that it would be cool to also associate .gt1 links with the online emulator https://gigatron.io/emu/ which can be done along the lines of the thunderlinks plus the https://gigatron.io/emu/ website needs some adaption.

meaning I can post in this forum a ggt://coolBinary.gt1/mysite/file345 or similar link and the .gt1 will load from "mysite" and run in the emulator https://gigatron.io/emu/ without any further clicking or navigating or uploading et cetera.

the idea is simply to save clicks and not worry about what is the right application-program with which to open a particular file.
User avatar
marcelk
Posts: 488
Joined: 13 May 2018, 08:26

Re: associate the .gt1 filetype for web autoloading

Post by marcelk »

Don't take this wrong: As those surely are fine suggestions, mind that here we've come to expect the originator to take the lead on their own ideas and kickstart execution on them. This forum started as a show-and-tell place for a group of committed contributors, and we like to retain that spirit. A little effort, e.g. a demo, goes a long way in drumming up support for suggestions, especially since we can't tell who you are and where you came from. May I for example kindly invite you to introduce yourself, tell about your interests, your background and other projects?
Post Reply