Is there easy standart way to take open source program and port it to web to make in accessible and usable from everywhere? - web

Is there easy standart way to take open source program and port it to web to make in accessible and usable from everywhere? If there are no general way to do it then how could I port GIMP. Or for example wrap photoshop in web interface.
I noticed that usially sites use flash but may be it is not right answer because Apple apparently do not use flash.

Related

Can a Flash executable file be used for SCORM?

A client's just asked if a Flash-based training tool I created a few years ago can be made SCORM-compliant. The tool is very image-heavy and is therefore usually held on the user's PC, rather than being hosted online.
I know that an SWF file on an HTML page definitely can fit the bill, but is it possible to do the same using a Flash executable (EXE) file with web access, and without any HTML? The training tool is designed to run as a full-screen application and my client would want it to stay that way if at all possible (i.e. not in a browser window).
No, you can't, you need a SWF to use Flash content in SCORM.
Maybe your option is use a decompiler program (only if you are the owner of the copyrights)
I think if you can trade SCORM for TinCan, you can achieve what you're looking for. SCORM is designed for object to be run from within the LMS, while TinCan supports external communication, so you can send usage data from EXE over web to the LMS.

Gtk conversion to html

In order to have a OS with a uniform interface, allowing better mutual interoperabilities, I'm looking for a way to build a system in which all interface would be in html5.
For example, starting from the gtk library (in order to use the existing), it could be possible to translate code such as:
gtk_window_set_title (GTK_WINDOW (window1), "the title");
in
document.title = "the title"
I would like to know if there were any tools that could help me achieve this goal
edit
to clarify my question, and let understand what I'm looking for, I found this study
The first step may be to use/build a semantic ontology of what is formerly an ui. Then I could integrate the gtk library (or another desktop gui library) and the web interface languages into a same base. So I could make bijections between gtk and web methods.
I do not see that as a simple problematic, and I'm asking for ideas, tools, which could helps me.
Once you introduce any complexity and interaction, you run into the need to convert from C\Python\Whatever-is-running-GTK into Javascript.
Your best bet is to do everything in native HTML5, have your "desktop app" be a wrapper for a web browser, which runs against (1) a remote website or (2) a local web server. Your "desktop app" would include a small web server, and automatically select an open port on localhost.

Read USB data and display in browser

We have a USB scale that sends very simple binary data for the weight of whatever is on it.
We want to auto-populate this data on a web form. Some work will be required on translating the bytes into a decimal number.
What programming language would be the easiest to implement this with? We will want a client based solution that is compatible with many browsers preferably.
We are pretty flexible with technology to use. I was thinking a java applet might be simplest? Anyone tried something like that before?
Thanks,
Gareth
If you want to access low-level APIs via a browser, you should implement a BHO or ActiveX which will run in browser context and could have low level access to windows APIs like USB devices.
Overally you'll need browser extension, but implementation and method of use depends on you.
I suggest you to use ActiveX, but don't forget it just runs in IE. You can create a windows application which could communicate with Firefox extension, chrome extension or even a IE extension (BHO or ActiveX)
You can choose, if you want more details, you can ask here.

Proprietary USB device access via browser… possible? Silverlight maybe? (Java is excluded for now)

Probably there are a lot of similar questions around, but since I know only few solutions to this which I am not sure will work for us, I am looking for something else, maybe new technologies...
What we have is this USB device which is not so fancy (of course, it requires a driver to be loaded), and it has couple of C++ dlls to help getting certain output from it. On top, we made a C# desktop application which makes use of the device in a more attractive way (plenty of interop inside).
So far so good, but to have the application lifted up to the web in order to gain more flexibility... What options are there?
Known solutions are:
1) ActiveX - kinda old technology and not cross-browser;
2) .Net 'applet' - not so common (is this even a solution?)
3) Java applet - well known, but JVM needed (since we went for C++ C#
maybe is out of scope);
4) Web service on the usb device itself - our device is very
light, we cannot have it there.
Are there other ways? Is Silverlight 4, 5 (maybe "out of browser") a feasable solution? What about these new technologies nowadays? Html 5 or something?
EDIT1: In particular I am interested in Silverlight. Is there a way using Silverlight?
EDIT2: I found this question: Can Silverlight access a .Net library that accesses a USB port? . What shall I understand from that? Is really Silverlight not a feasable solution for my scenario?
EDIT 3: VERY IMPORTANT!
These devices need to be used on customer side! People browsing must use them locally on their PCs!
Thanks in advance.
to have the application lifted up to the web [...]
Simple solution: Let the webserver (http server) run on the PC connected to the USB device, and use one of the webserver's interfaces like CGI to talk to your USB device. This way you need to code only a USB-to-CGI wrapper program, which can be C++ or C#.
Another way is to write a browser plugin.
The issue that you're going to face is that content in a browser is often run in a sandbox, in such a way that the web app does not have access to the computer. There are good reasons for this - security, primarily. One way to have some code running in the context of the computer is to have a browser plugin that can access the computer's hardware resources, but that can interact with browser content. Unfortunately, you may end up writing a different plugin for different browsers.
There do exist frameworks out there that make writing browser plugins more manageable. A simple search should turn up some of those candidates.
You can use Silverlight 5, it can give you access to your file system and USB storage device. If you want to get control for other USB device (printer, scanner, etc), you should give a device type. I know, Silverlight 5 works fine with a file system and web-cams...)

Can Flash/Flex be used to create a Windows Explorer type file tree browser?

I'm interested in using Flash or Flex to create a File Explorer/Tree which the user can point to a directory on their hard drive, and keep open while they do other things. Similar to TextMate's project drawer, or the file trees on many code editors.
Is it possible to create a local file browser using these technologies, and are you aware of any examples or tutorials using file-structure access, if so?
Please note that this is for a web application, and the file explorer needs to be in the web page. Having a user install an AIR application is not an option.
This can't be done in a SWF within the browser. The only thing you can do for filesystem stuff within the browser is use FileReference, which simply opens the system default open/save dialog and tells you what file the user selected. All other filesystem functionality is restricted to only AIR applications.
The one option is that a web page can trigger the launch of an AIR application. That could run minimized/hidden and do the filesystem stuff and use LocalConnection to communicate back with a SWF within the browser. This would still require the user to install an AIR app though. It also has some security implications and you'd have to be fairly careful with it to make sure you don't accidentally expose filesystem access to SWFs other than your own (else someone else could exploit it).
I wouldn't recommend that, but it's the only thing I can think of that would allow you to do this within a SWF. Flash/Flex simply isn't the right technology to use for some things due to its security (and other) restrictions.
I advice you to use Adobe Flex, it is very suitable for what you are willing to do. And there is a built-in Tree component.
But I do not believe that using the file system functions of Flex for a web application is easy. The best solution for you would be to deploy it using AIR, users would have to install the application on their system, so the file “explorer” becomes less of a security problem. When deploying for the web, security is a little more stringent.
The adobe air file system example:
http://blog.everythingflex.com/2008/02/25/air-filesystem-components/
Your best bet is to attempt this in Flex.
It has the controls you need...but I'm not positive as to what level of access it will give you to the user's file system.
I know a tree has been done nicely with javascript
the source code is here, An explanation is here. You could probably edit it to your needs. Remember if you use it on a website you must provide the source code.
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=14426

Resources