Run a program in a new window with sublime text 2 - sublimetext2

I'm programming using Sublime Text 2 and I was wondering if there is a way to run programs in a new window. For a while I was using Geany as my python editor and when I would run a program, the program would start in a window called geany_run_script.sh. Is there a way to acheive what I would like? Thanks.
(If it helps, Im running Linux and programming with Python)

If by window you mean a new tab/buffer then this:
https://github.com/vhyza/exec-in-window
is exactly what you want. You can get it via Package Control.

Related

How do I execute a program in Sublime Text 2?

I know this is terribly simple. I'm on Windows 10. I have tried Enter, CTRL-Enter, and others. I have created a JS build environment using Node, but I just can't seem to run code and get any output.
You need to install Terminal. You need to have Package Control first.
Sublime Text is a great editor.

Run web application as program in Windows and MacOS

I'm looking for a way to create an executable program where I can use HTML as UI instead of native elements like in a Windows Form application, or a Java form application.
One requirement is that I also need to be able to create text files locally. These text files will be created when a button is pressed somewhere in the HTML UI.
Another thing is that it should be able to run on both Windows and MacOS.
So I'm really looking for something like PhoneGap/Cordova. But then for a desktop OS.
Anyone any idea if something like this is possible?
Chromiumembedded might be what your'e looking for.
You could also have a look at Titanium.

Exporting Sublime Text configuration and installed packages

I have spent considerable time to tune up Sublime Text 2 configs. Now I would want to share my configurations (one file) and installed packages list with my friend. What would be the best way to do this? Manually pick related folders in Packages and zip them or something else? Preferably I'd like to create an automated script which could be copy-pasted to my friend and others.
My friend is using Linux. I am using OSX, which may cause some extra problems.
If you are using Package Control, send your friend Package Control.sublime-settings. In fact, the easiest way to transfer settings between machines is to move the User package between machines. This, in combination with package control, makes setting up on a new machine relatively quick and painless. The only issues your friend might have is mismatched key binding or other system specific settings. These files have the notation some_name (platform).extension. Other than that, I wouldn't forsee any issues (unless you are using OS X specific plugins).
Package control has a good doc talking about how to sync Sublime settings and install packages: https://packagecontrol.io/docs/syncing
Using Windows
Open a new Command Prompt and type the following at the command line:
cd "C:\Users\<name>\AppData\Roaming\Sublime Text 3\Installed Packages" dir
Then copy and paste to an editor (e.g. Sublime Text) and filter out the relevant parts. Not great but working.

Using an IDE to develop OpenSplice DDS applications

I keep trying to configure Open Splice on the Eclipse platform but I'm not making any progress. I use the Open Splice DDS in the Java Standalone mode. The Eclipse platform I work on is the Eclipse edition for Java EE developers (Helios).
The problem is: when I try to create a run configuration I need to select an application type from the left hand side menu. It seems that none of the available application types can be used to create a working run configuration for a batch file. I want to be able to start, stop, and open splice from inside Eclipse as well as to run the preprocessor and my applications without having to use a cmd console. I'm new to both Eclipse and OpenSplice and any help would be really important to me.
Thanks in advance.
If you are developing Java applications can now use OpenSplice Mobile which is a pure Java DDS implementation for j2se and Android.
OpenSplice Mobile comes with a mvn build system that can be easily used to create eclipse project (or simply imported into eclipse or IntelliJ).
You can find some examples at:
https://github.com/kydos/mobile-dds-demo
And get OpenSplice Mobile at:
http://www.prismtech.com/opensplice/software-downloads
A+
The problem is: when I try to create a run configuration I need to
select an application type from the left hand side menu. It seems that
none of the available application types can be used to create a
working run configuration for a batch file.
This explanation assumes you are in the Java perspective. Other perspectives will be very similar or the same.
Do not use the Run Configurations dialog box. In stead, select Run in the menu, which will show External Tools as its bottom item, which has a sub-item External Tools Configurations.... Clicking that will display a dialog box showing a list of possible configuration types on the left-hand side. Select the type Program, followed by clicking the New Launch Configuration icon on the top-left of your list. On the right-hand side, a number of edit boxes will appear allowing you to change the name of this launch configuration (which you can set to something like ospl start) set the launch command (like ospl.bat to be selected via Browse...), its arguments (like start) and several others like working directory and environment variables.
Click apply when done. From now on, the ospl start command can be run via the Run menu item, External Tools and then ospl start. Make this a favorite so it will be moved up in the menu to decrease the number of clicks.
The process can be repeated for any number of applications you want to start.

A way to create command line program with Air 2?

Is there any way to create an Air 2 program that runs just in the command line? (no windows, no gui, etc)
Something similar to Windows Ping program. It would accept arguments and then output std out.
No, AIR is not really meant for creating command-line applications - it's just not the right tool for the job.
You would be better off looking at implementing your application in Java, C#/VB.NET, Python or Groovy (and innumerable other more suitable languages).
If you really have your heart set on Actionscript/Javascript-style syntax then you should look into Haxe.
You might want to check out CommandProxy as a possible solution.