1. Running Eu programs in web browser

For anyone who might be interested:

EuGTK programs run just fine in Firefox using broadway.

You just start the broadway server > broadwayd then connect to http://localhost:8080, and run your EuGTK program. It will appear instantly on your html5 browser, looking just like it did running 'natively'.

Presumably, if you're running a server on the net, people anywhere should be able to run your Eu program as well. Perhaps even from an Android phone.

Below are some links that explain what broadway does:
http://techgage.com/news/gtk_30s_broadway_feature_allows_applications_to_run_in_a_browser

Here's how to run your program. Just replace the gedit in the example with eui test0 (or whatever).
http://www.webupd8.org/2013/06/how-to-install-gtk3-with-broadway-html5.html

Should work on Windows, too, but like everything Windows, it's a bit more complicated:
http://www.tarnyko.net/en/?q=node/8

new topic     » topic index » view message » categorize

2. Re: Running Eu programs in web browser

Neat!

http://i.imgur.com/Z4mMAL4.jpg

-Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Running Eu programs in web browser

https://sites.google.com/site/euphoriagtk/

The screen shot on the web page above is Pete's Wee editor, editing and running test40.ex, all in a Firefox window.

My next step is to see if I can run WEE on my tablet, via wifi.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Running Eu programs in web browser

Works fine. I can edit, save and run Eu programs using Wee from my google tablet by connecting the browser to 192.168.1.100:8080 (YMMV).

For editing, a bluetooth keyboard is pretty much necessary if you expect to get anything done.

Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).

new topic     » goto parent     » topic index » view message » categorize

5. Re: Running Eu programs in web browser

Is Euphoria running as client-side or server-side?

new topic     » goto parent     » topic index » view message » categorize

6. Re: Running Eu programs in web browser

GreenEuphorian said...

Is Euphoria running as client-side or server-side?

My tablet doesn't have Eu. Just Firefox.

Edit: to further clarify, my computer running Eu doesn't have apache or other webserver installed, just broadwayd, which I think comes already installed as part of GTK3 (in Ubuntu, at least).

new topic     » goto parent     » topic index » view message » categorize

7. Re: Running Eu programs in web browser

irv said...

Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).

They could also use it to trash the crap out of your network without the proper security measures in place. Does Broadway offer anything in the way of user authentication? If not, you could probably put nginx in front of the Broadway server. This would have the added benefit of allowing you to listen publicly on port 80 (HTTP) or 443 (HTTPS) and then redirect to 8080 if and only if the user is authenticated.

-Greg

new topic     » goto parent     » topic index » view message » categorize

8. Re: Running Eu programs in web browser

ghaberek said...
irv said...

Now, if I had a spare old computer, and a fixed internet address, people could use that to write and run Eu programs without downloading anything at all (hint).

They could also use it to trash the crap out of your network without the proper security measures in place. Does Broadway offer anything in the way of user authentication? If not, you could probably put nginx in front of the Broadway server. This would have the added benefit of allowing you to listen publicly on port 80 (HTTP) or 443 (HTTPS) and then redirect to 8080 if and only if the user is authenticated.

-Greg

https://developer.gnome.org/gtk3/stable/broadwayd.html

Obviously, password protection wouldn't be enough. I seldom deal with network security issues. There's probably a better way.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Running Eu programs in web browser

Well... I just 'ported' a Linux accounts receivable program I wrote so that clerks can use their ipads/tablets to check on customers' balances, etc.

I was dreading having to do a total rewrite, but as it turns out, it works fine using broadway without having to change any code at all. (Of course, I'll have to add some file locking, so 2 people don't try to change the same account simultaneously)

Print previews don't work properly, but I can just disable the previews, and go straight to printer.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu