how to execute code in server from browser - turtle-graphics

This is a question out of curiosity.
Does anybody know how repl.it is executing python code in a virtual desktop environment (especially turtle code)?
We have an application hosted in AWS, can Amazon workspaces be handy for the purpose?
Came to know that repl.it uses x11-vnc for the purpose, any clue on how this is implemented?

Related

Alternative to Windows and cloud for Ruby on Rails

I'm starting to learn Ruby on Rails and after a week I still cannot get the installation right. I've since moved to a cloud bases system, but it is extremely slow and rather a waste of time.
I do have a website and saw there's Ruby on Rails. Is it perhaps possible to set it up in a domain or sub domain and start and start learning/programming that way?
Any other alternatives is also welcome. I do now own a mac or Ubuntu, which makes it a little difficult.
Looking forward to your responses. In the meantime I'm installing/uninstalling and trying to see if I can somehow make it work on Windows.
Doing RoR development on Windows is a pain. I would suggest just uninstalling Windows and going for some Linux distribution if you are serious about learning RoR. Linux is free software so the only thing holding you back from having it on your computer is your self.
Developing with Ruby on Rails is say'd to be really easy for beginners but I would disagree with it. Developing on this framework requires you to actually understand the whole stack. The server, backend, client, database and ofcourse a new weird language called Ruby. Now most of this stuff is learnable and doable on every OS. But once you start messing with more advanced databases and servers, you will need some GNU utils from Linux.
For instance if you have made your first deployment to some external server, you will often need to know what is going on in there. The only way to do this is usually by going in that server with SSH and reading the logs. But doing that is difficult without a nice GUI. So now you have to learn some stuff like the tail and grep commands and Linux piping to find your info easily.
Also if the computer you use is not completely yours and you cannot do it on it, then try installing a virtual machine software like Virtual box.
With that you can install Ruby on a Linux that sits on your VM and use it like that. It will still be a bit slower but if your computer has decent hardware in it, you will still be happy with it.
Here is a guide on how you could do it: Guide for VM development

Is it possible to run an ImageJ script on heroku?

I want to be able to upload images to a server through something like a RESTful API, which then processes the image using an ImageJ script and then returns numerical results (no image is returned)
Can this be done easily? and can it be built on Heroku?
ImageJ works well headless; see http://imagej.net/Headless. So you could certainly build a server application which uses ImageJ based on any of several different Java server platforms (JBoss, Glassfish, Jersey, etc.). Especially if you leverage the new ImageJ2 API, there is a good separation of concerns which would allow you to build an effective client-server application.
To my knowledge, however, no one has created such a thing yet. I started playing with the idea using Jersey, but there is nothing really there right now, nor any time to work on it. Contributions in this area would be most welcome!
See also the ImageJ-OMERO project, which exposes ImageJ commands (including scripts/macros) as OMERO scripts which run on the server side.

Best Way to Host a Rails App on a Windows Server?

I have a simple rails app that I need to deploy on a Window Server 2008 R2 server. I have looked around but have not found much on the topic. What are some simple / best ways of accomplishing this? Thanks!
I'm not sure if you can use Capistrano to deploy on windows. Otherwise you may want to have a look at kwatee (self-promotion). I haven't looked at deploying Rails app yet since Capistrano is the tool of choice there but kwatee is a free tool that can deploy pretty much anything from stand-alone applications, web applications on any platform, including windows.

Ruby on Rails: Developing in the cloud

I've taken over a rails site, and learning along the way.
It's been a real pain getting the site pulled down from git and working properly in OSX (mysql, REE, ruby_inline gem etc). It seems can be a little fiddly to get some of this stuff working cross os.
Our live production runs on ubuntu.
I have been developing on a cloud hosted server using vi / git etc and it's working quiet well, but it's a little slower (not much) to refresh pages etc and test.
I'm curious, is anyone developing in the cloud? Or do you run a local linux VM. Curious to hear about thoughts and experiences from the battlefield.
Many thanks,
b
It's a "default" environment when you have OS X on local and Linux on production servers. Many of rails-developers use it for everyday development and testing process.
You told "It's been a real pain getting the site pulled down from git and working properly in OSX", just ask a question here what exactly had a pain to setup? Ruby? Rails? Git?
No, it's almost the same platform, OS X is a BSD-based system.
Homebrew will help you to setup DB engine, GIT
RBEnv - multiple Ruby version handle
Rubygems - crossplatform GEM packaging
"I have been developing on a cloud hosted server using vi" - what does it mean? It's actually not a pattern of development process. What if you broke something straight on production server while business users are doing a demonstration to clients?
"I'm curious, is anyone developing in the cloud" - rather no, than yes. You can develop anywhere, but the code snapshot should be available to test and preproduction usage.
If we are talking about standard approach and typical task, it already has typical patterns and solution to achieve the goals
I think you will find most people develop on osx, some on linux, but by far the normal way to do it is locally rather then on a remote server

What are good application servers for LAMP stacks?

I need recommendations for good application servers for monitoring and debugging PHP and Mysql running on linux. It should have a GUI, query profiling (log slow queries etc.) and capture PHP errors with environment coniditions.
I am aware only of the Zend Platform that provides those features and I'm looking for alternatives.
I don't have a good answer for you, but as far as I know Zend Platform really is the only PHP app server that does everything you list, with an integrated reporting GUI. My background is doing pretty serious enterprise PHP stuff (clustered app and DB stacks) for nearly a decade, following the space closely, and running an Alexa top-1000 site.
Now I'll waste a paragraph pointlessly stating what you probably already know. :) You can do all the things you list -- log PHP errors with request/environment data, do MySQL slow query logging, and do analysis and application profiling -- relatively easily without Zend Platform from the CLI, and I've always done it by building logging hooks into the application, and then things like shell scripts, Mon and Monit for alerts/status GUI. But that's because my experience with really high-demand applications is scaling/clustering a single app or stack -- versus running servers where there are lots of random apps/scripts running, which is where I would think Zend Platform would really shine. If you're into SNMP, you can set that up then use a GUI client to do a lot of what you're talking about, but again, that's not the same level of "out of the box" that Zend provides, either.
I modded your question up and will be really interested if you get a better answer about a Zend Platform alternative, but I don't think there's an integrated server product that comes close.

Resources