Can I use a web based IDE like Eclipse che for connecting to a server maintained by my university for python programming ? - web-ide

I want to edit the code through the IDEs text editor and debug and run it on the server.

Download Notepad ++ here
Download WinScp here
Connect to your school's server with winscp, then navigate to whatever file you would like to edit. Right click and set the default editor to notepad ++. Now everytime you open any file, you can hot edit inside notepad ++.
I know i perhaps strayed from your full request, but i like this method for quickly updating code and testing on the server.

Related

Sublime Text 3 File Sync (connection manager)

Recently I've moved from Aptana to Sublime Text 3. In Aptana there was a nice connection manager which allowed me to connect my local files to a different Drive, and I could then upload my local changes to that Drive.
I'm wondering if there is anything like that for Sublime. I can't find anything at the moment. It would also be ideal to have one where I upload the file myself (not done automatically).
Something like the sublime SFTP package, but runs with two local directories.
Any help is appreciated.

How to dynamically reload file in Visual Studio ?

I have include an xml file included in my solution in visual studio. I am adding new nodes in my file at runtime. But when i am recieving this message all the time The file has been modified out the source editor. Do you want to reload the file? Is there any solution that I can dynamically reload file in my code instead of showing this message ?
As far as i know, no. But if you dont want to see it, my advice is to close the xml on VS while running the app, and open it when finished. It will save you from a ton of times clicking "yes" on the alert message.

How to execute an exe or a file in local machine using a website or html (like clone in windows in github)

These are my requirements
How to open an pdf file which is located in my local machine using html page?
How to execute an exe file which is loacted in my local machine using a website?
This is like what github does when we do clone in windows option.
I need to implement exact same operation . I have a button and when I click that it need to run an application.
Thanks in advance.
You installed GitHub for Windows on your computer. And this installation registered the protocol github-windows: with the GitHub for Windows executable as handler. Nothing special going on here.
The only chance I see is to register your own URL scheme (as you said myapp-pdf: or something like it).
Then you can redirect (or open a new window) to a URL with your custom scheme and the browser should start your application giving you the URL as a command line parameter.
Create custom Url Schema and Map to the application
I just explain some thing I got after your inputs.
As all guys mentioned above, I need to generate a url schema for my application
I need to register the schema and application path to be executed in Windows registry. This need to handle during the installation .
http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
This link will show how to add the particular schema in windows registry and we can specify the application to be executed like mailto: for Outlook.
Thanks for SO to provide the details from here.
how do I create my own URL protocol? (e.g. so://...)
Pros
Need to check about the security issues which may occur if we are using this approach.

Is there a program that lets me edit web files with a native editor?

Before I attempt to program the following function myself, I wonder if something already exists.
What I would like to do is click an edit link on my website for a given document, and have that document launch in the native editor on my local machine (via a temporary file mechanism).
When I save the document in the native editor, the document is HTTP PUT back to the website. This can be accomplished by watching the file for writes, or watching the editor process for exit.
This way I can more easily edit documents on the web (instead of going through the download / edit / upload cycle).
My design would work as follows:
Register .webedit files on the local machine.
When a .webedit file is downloaded, launch webedit.exe with the file.
The file contains a URL (http://server/document) which is checked against a security database to ensure we're only opening allowed URLs.
The URL is downloaded to a temporary location.
The temporary file is launched in the native editor.
The file is watched for changes, and uploaded (HTTP PUT) on change detection (or when the editor is closed, if it's not a single-instance multiple-document editor).
Lots of FTP / SCP GUIs have this type of functionality, but I have not been able to find it for the web in general, or a shared library that allows you to plug in to this function.
Has anyone seen a program that does this?
SharePoint works like this.
It's great for managing shared documents in corporate environments.
Users can even checkout/checkin documents & the features are very extensible..you can customize pretty much anything if you know how.
Edit:
Since you're on Linux..i've heard that Alfreco is a great alternative.
I've never used it, but I know a couple organizations using it instead of SharePoint.
It integrates with Microsoft Office as well.
Also, it will definitely be cheaper.

Open word document from ASP.NET application

I use the following code snippet to open a local docx file and it runs fine when I press Ctrl+F5 in Visual Studio. I just click the button and the Word2007 on my machine is opened and the docx is displayed there. But after I publish the application to the production server, it didn't work. After I click the same button, nothing happened. Could someone tell me why?
What I want is to open a local stored docx in client side's Word 2007 from asp.net application. I don't want to use office COM object.
My code:
ProcessStartInfo psi = new ProcessStartInfo(#"winword.exe",#"/test.docx");
Process.Start(psi);
Many thanks.
Your code is attempting to open Word on the server and not on the client. The only reason it works in development is the the client and server are on the same machine.
You cannot open Word on the client due to browser security restrictions. However if you provide a link to the file, the user will be able to download and open the file if they have Word installed.
If you want to open a local stored document, on the client's machine, you should create a link to the document (using the path on the client's harddisk). The browser will ask the user for permission to open it, but this should work.
The reason your code worked, was because the server and the client are the same machine when debugging. The development server even runs using your profile.
In production the server can be on the other side of the world. The C# code you show in your snippet is executed on the server.
Check if the file exists in the same location.
ProcessStartInfo psi = new ProcessStartInfo()
is working on server and it is trying to pick the file from server location and it can never run client side file.
The only thing you can do is let them download the file. If they don't have office, or don't have the right compatability pack, they won't be able to open it.

Resources