Options for running code on a smart phone

Click For Summary

Discussion Overview

The discussion revolves around options for implementing a Fortran-63 code for relativistic kinematics on smartphones, focusing on alternatives to traditional app development for both Apple and Android platforms. Participants explore various methods, including web applications and personal web hosting, as potential solutions for making the code accessible in a laboratory setting.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests rewriting the Fortran code in a modern language like Java and testing it on a PC before transferring it to a smartphone.
  • Multiple participants propose using a web page with JavaScript or PHP as a straightforward method to run code on smartphones.
  • Concerns are raised about the administrative aspects of hosting a web application, with some participants noting the availability of free hosting options.
  • Another participant mentions the possibility of utilizing university resources for web hosting, suggesting that Notre Dame may have facilities for personal web pages.
  • Some participants discuss the feasibility of running a personal web server on a Windows PC or Mac for local testing, with varying levels of certainty about current capabilities.
  • A participant introduces QPython as a tool for creating Python applications that can run on smartphones, along with MIT App Inventor for building graphical user interfaces quickly.
  • Google Apps Script is mentioned as another option for publishing code as a web app, leveraging JavaScript.

Areas of Agreement / Disagreement

Participants express a range of opinions on the best approach to implement the code on smartphones, with no clear consensus on a single method. Various alternatives are discussed, indicating multiple competing views on the most effective solution.

Contextual Notes

Participants highlight limitations regarding personal web hosting experience and the need for specific arrangements with ISPs or university network staff to make web servers publicly accessible. There are also unresolved questions about the current capabilities of running personal web servers on different operating systems.

alliecat
Messages
2
Reaction score
0
Hello everyone!

I am an undergrad currently doing research for a nuclear physicist at the University of Notre Dame.

My current project is taking a code (written in Fortran-63 in 1967 ?:)) that calculates relativistic kinematics for two-body nuclear reactions and converting into some sort of phone application that can be easily used in the laboratory.

The problem I've run into is that after looking into Apple and Android app development, it looks like a program like this (especially when it's written by an undergrad without a ton of experience in user-interface) will not make into an app store.

Does anyone have any suggestions on how to implement code on a smartphone without having to go through the app store? My thought was maybe through a mobile-friendly web page or something along those lines, but I wouldn't know where to begin implementing that.
 
Technology news on Phys.org
I would start by rewriting the code in a modern language (e.g. Java) and get it to work on a PC. There you can easily experiment with the user interface. When you are satisfied, you can start thinking about transferring it to a smartphone.
 
A web page with JavaScript or PHP should work. There are multiple ways to make smartphones run your own code, but web pages are by far the easiest one.
 
  • Like
Likes   Reactions: mheslep
mfb said:
A web page with JavaScript or PHP should work. There are multiple ways to make smartphones run your own code, but web pages are by far the easiest one.
I agree - but then you are left with the administrative details of getting someone to host the application...
 
There are many free and easy-to-use options for that.
 
mfb said:
There are many free and easy-to-use options for that.
I am planning on converting the code to C++ or Java, but it is the hosting that I've never had experience with.
Do you have any suggestions on any resources for this?
 
I don't want to suggest specific web hosters as I don't have the overview for that. There are many lists. You can choose one, you often get ftp access and/or some web upload interface. Both are easy to use.
 
alliecat said:
it is the hosting that I've never had experience with.

At a school the size of Notre Dame, I bet the department or university runs a web server that faculty / staff / students can use for hosting personal web sites or pages.
 
Once it was possible to run a personal web server on a Windows PC (I have done it). I do not know whether it is possible anymore...
 
  • #10
That's probably still possible. I have no experience with doing it under Windows, but I'm running a web server on my Mac at home right now, for local testing of web pages before I publish them on a publicly accessible web server. The main issue for his purposes would be making it publicly accessible which would probably require an arrangement with the university's network staff, or with his ISP if he uses a home internet account.
 
  • #11
Yes, you can run a home web server on Windows OS (I'm not sure about Windows 10). And it's much easier than it once was because of the availability of free installers. However, to make the server public your ISP must allow inbound connects on port 80. You may need a business account with a static IP.

Although I've never done smart phone applications, I tend to agree with the others, using a web server would probably be the easiest route.
 
  • #12
Svein said:
Once it was possible to run a personal web server on a Windows PC (I have done it). I do not know whether it is possible anymore...

jtbell said:
That's probably still possible. I have no experience with doing it under Windows, but I'm running a web server on my Mac at home right now, for local testing of web pages before I publish them on a publicly accessible web server.

You can simulate running a server on a Windows machine, and access it through "localhost". You need to set up things using Internet Information Services (IIS) Manage, one of the Administrative Tools in Windows.
 
  • #13
The program you are talking about is not this one by any chance?
http://web.ornl.gov/info/reports/1967/3445605159119.pdf
There are many different ways of putting this on a phone.
e.g. You could use QPython - qpython.com
That allows you to create a python program that can run as a console app, web app or "normal" app. You can even edit the python code on the phone.
But by far the simplest way of creating an app with a graphical user interface is appinventor.mit.edu. With that you can click together an interface in less than 5 minutes and than add some code with the built in programming "language".
If you want to make it a website you have the choice between lots of different web hosters. But since you are at the university of notre dame, why not use their own web publishing services? oithelp.nd.edu/web
Just create a small website consisting of only an html and a javascript file and upload it there.
Google Apps Script is another option. It uses javascript and you can publish your code as a web app. Additionally you can also use the same code inside a spreadsheet using google's office products. https://www.google.com/script/start
 
Last edited by a moderator:

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
6K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 80 ·
3
Replies
80
Views
69K
  • · Replies 19 ·
Replies
19
Views
10K
  • · Replies 13 ·
Replies
13
Views
4K