Using Atom to run C programs - editor

Almost very time I Run a program in atom, it opens 2 Consoles.
The first when I click Enter and disappears, then I can use the second properly, but I want to know why it happens.
Thank you

Related

PyCharm (i)Python Console: "Stop current command" of "Execute Selection in Python Console" (=Alt+Shift+E) process without losing variables in memory?

I am used to being able to force-stop the running of a selection of code. This is possible in vscode and Spyder without losing the variables in memory.
Example from Spyder, which is using iPypthon console: you run a command with the same "Run selection or current line" (in Spyder: F9) process, you realise that it takes too long and you want to stop it. You simply use "Stop current command" (red square).
After the stop, the memory is not lost, all variables are still in memory that have been known at the stop moment. Proof:
When you go on in Spyder, you can choose whatever code line that has been passed till the stop moment to go on with (you can also choose later code lines, but that usually makes no sense). For example, if you stop a long running loop, change the code of that loop and then run it again, or you go back 10 code lines to start from there instead.
You are simply free to go on from any code line to execute a new selection.
In Contrast, in PyCharm, I only find the red square "Stop Console" which stops the console completely, no action possible after this, all variables in memory are lost.
After pressing the red square or pressing Ctrl+C in the "Python Console" the console is closed.
The console prints
Process finished with exit code 0
and no input is possible anymore. After this stop, there is also no option anymore to "Execute Selection in Python Console" (Shift+Alt+E) either, it leads to:
"Rerun" / "New Console" both restart the kernel, the variables in memory are lost:
Using iPython console instead of the standard Python console (you can install this under [File>Settings>MyProject>Project Interpreter], see How To Add The IPython Console To PyCharm), same issue:
And this happens even though in Spyder, which uses iPython, a "stop" puts me back to the iPython shell without losing the variables in memory. I guess that this thread Can I stop execution of current module in ipython without leaving ipython is about a similar problem, though not paticularly related to PyCharm.
How can I get a stop option in PyCharm that is similar to the "Stop current command" option of Spyder so that the "stop" keeps the variables in memory and I can go on from where it has stopped?
Mind that the thread Keyboard interrupt in debug mode PyCharm is not a duplicate of this, since its accepted answer leads to a closed kernel as well.
While it is possible in PyCharm to pause the script when running via the run/debug configuration, unfortunately the "pause" action is not available when running a selection in console, neither is the "stop" button you've requested. The current implementation of the "stop" button sends SIGTERM/SIGKILL.
A feature request has been created for this issue: https://youtrack.jetbrains.com/issue/PY-44346
Debugger has the pause action, which can be accessed from the toolbar, or from the menu.
https://www.jetbrains.com/help/pycharm/pausing-and-resuming-the-debugger-session.html
The only option here would be to use breakpoints. You can add them by clicking the area to the right of the line number.
Credit: How to pause script execution in PyCharm Community?
How to pause program execution in Pycharm (pause button not working)?

How to disable automatic function docstring generation in Spyder?

Spyder (the Python IDE) generates a function docstring automatically when you click Enter after the first line of the function def. How can one disable this feature?
I've looked around in Tools (for instance in Tools -> Preferences -> Editor) and did not find a way to do it. But there are tons of features in Spyder so maybe I'm missing it.
Are you using an anaconda install with kited running in the background? Opening task manager and stopping this from running fixed the problem for me.
Edit: This may be incorrect
When you type in the triple quotes, an icon will pop up that says Generate docstring. When this happens, do not hit Enter. Just hit esc.
Until we can just deactivate it in settings, that's what I've been doing.

Unable to open files in octave GUI

I've updated to octave 4.1.0+ on my mac via homebrew.
Two (related?) problems that I'm seeing:
Now when I type octave on a command line the Octave GUI opens fine, but I don't seem to be able to open any files (.m or otherwise). When I double-click a file nothing seems to happen, and there are no messages on the command line window, even if I use the --verbose switch to start it up.
When I try to close the GUI's window, octave just blocks, and the only way I can get it to close is to kill the process on a command line.
How can I debug this to understand what's going on?

visual studio 2012 takes very long time to run any project for first time

When I run any project solution for first time; it takes very long time to load.
On the bottom status bar it shows its load numbers of dll's, few also from temp folder (which I think is quite unnecessary) {It takes somewhat like 5-7 min to load all those dll's}
After that a popup opens saying "Attempting to cancel will disable further symbol loading", which takes additional around 4-5 mins.
But while running project second time, it run fast (no loading as in first time)
AND same project file on other machine loads very fast.
Is there any way, that I can disable these unnecessary loading?
I have also full-scaned my pc, to check if its due to any spam or virus infection.
Any Help will be appreciated.
You can tell Visual Studio not to load Symbols for external (typically MS, but if you have a corporate Symbol Server you might also have other library code) code - this will speed up the run time, but it does mean you won't be able to "step-into" core Framework code:
Tools | Options | Debugging | Symbols:
You can either clear the check-box entirely, or set it to "Only specified modules" for the .dlls you are interested in.

how to execute two exe files at the same time in delphi 7

I have two exe files and I want to run them at the same time. Is it possible to do it in delphi 7? I've searched it in the internet but I couldn't find any answer...
Iman said in a comment:
NO, I run two exe files, the first one take some files and produce an output for each file. the second exe run at the same time and wait for output of the first one, so when the first exe file is working on second input the second exe is working on first output of first exe :) something like pipeline
What I would do then, is start the 2nd program first. It will then be ready for the output of the first one as soon as the output is produced and there will be no delay.
Just execute one, and then the other. It's very difficult to make computers do anything at exactly the same time, a millisecond apart shouldn't kill you.

Resources