Is there a way to keep Spyder's Window Layout when changing environment? - spyder

The Window Layout changes to Spyder Default layout every time I change the virtual environment.
(I'm using python 3.7.10, conda 4.12.0, and Spyder 5.0.5 on Windows 10.)
Is there a way to keep the same layout (e.g., Matlab layout) regardless of the environment?

Related

Is there a way to get nomachine to better show the caret in terminal?

Host machine: Debian 10 running NoMachine 7.2.3
Settings:
Specified H264
User Hardware Encoding enabled
Use Specific Frame Rate enabled (60FPS)
Use Acceleration enabled
Client: Windows 10 running NoMachine 7.2.3
Both machines have monitors attached.
Using NX protocol for connection.
FullScreen / Scale to Window / Desktop is currently 2560x1440 (reduced from native while testing this issue)
Specific issue:
I do a ton of work in the terminal and when viewing desktop via nomachine, the terminal caret is randomly not visible. The same issue is less noticeable with right click menus and other areas of "visual updates in small screen space." If this were another remote desktop vendor I would try to find the "don't update just regions" setting to force the entire display to update regularly, but I can't find similar settings for nomachine. I have a dedicated gigabit connection between the two machines with no other traffic on that line, so bandwidth is not an issue.
To recreate:
I disabled caret blink (using universal access / accessibility settings) so the caret is a solid block in terminal / vi. If I edit a text file in vi and move up and down, the caret will only update visually every other line or so (verified on the physical screen it is moving correctly). Same if I highlight or insert, etc. You inevitably miss a character or so or lose your place).
I have tried changing speed vs quality slider, resolutions, swapping from h264 to VP8, etc.
I have disabled:
multi-pass display encoding
frame buffering on decoding
client side image post-processing
Nothing seems to change this specific issue. Yes I can make dragging a quarter-screen-sized terminal window smoother, but that doesn't help me follow the caret in vi/vim. Both machines are nicely spec'd (client has 16G / RTX2080, server has 32G / GTX1080)
Is there a way to get nomachine to update all the screen all the time, or at least better refresh small areas like a terminal caret?
(OP): Based on a night of troubleshooting, the issue seemed to be either:
An issue with the Debian install of the nvidia drivers
The server machine is a laptop with a broken main screen (but with an HDMI external monitor plugged in). The Debian X-server may have been confused as to whether it was headless or not and caused issues with nomachine (which tries to detect headless and start a virtual session).
The solution to this exact problem would be to disable the GUI and force a virtual session, per https://www.nomachine.com/AR03P00973 (dummy dongles won't work because the laptop's main display is not a standard plug).
In my specific case, I needed GUI access on the server at times so I couldn't use the above methods, and I could not remedy the problem with Debian, so I wiped the system and installed Ubuntu 20.04, which is more forgiving with graphics drivers and monitors. After setting up the Ubuntu system as similarly as possible to the Debian system and letting the proprietary nvidia drivers auto install, nomachine connected at the same resolution and worked perfectly, without the lag in small screen areas.

Is there a way to run Cytoscape in non-graphical (no view) mode?

I am trying to use Cytoscape command line to run a script which imports and exports networks, as the following:
cytoscape.bat -S "script_for_cytoscape.txt"
The script works and performs the required tasks, however, Cytoscape is displayed and we can see the networks and GUI.
I want to run this as a background job without displaying Cytoscape. I tried "-noView" option but it does not work.
So I am wondering if there is a way to run Cytoscape in non-graphical (no view) mode?
Thank you very much in advance!
Unfortunately, there is no "no GUI" mode for Cytoscape, so you will need to have a graphical display. What I've done in the past is to use X Windows across ssh to provide the required display, but driven everything from command scripts, so no interaction is necessary.
-- scooter

Dual Delphi IDEs

I use two monitors on my development system and I would like to run Delphi XE2 on both left and right. This seems to work alright and allows me to develop a client on one side and matching server on the other.
The only problem is that the IDEs seem to get confused on which monitor to start on in both design and Run time.
I have a Desktop Speed setting for left and right and I have two completly separate projects setup. Is there a setting I have missed?
When you run an application in the IDE, the IDE switches to what is by default named as Debug Layout in the IDE layout dropdown. You can setup and save different debug layouts and then activate the one(s) you want after you started the applications. E.g. Debug in Left Monitor and Debug in Right Monitor.
Edit
However, for a layout to switch to the monitor it was setup on, it (the layout) can not be maximized.
There is no option in the IDE, a shortcut to the IDE, or a specific project, to specify which monitor the IDE/project starts on. If your app wants to start on a particular monitor at runtime, its own code has to manage that at startup (see this). Otherwise, it is at the mercy of the OS deciding monitor to start it on.

How can I setup and debug "instructure canvas lms" on my desktop using IDE

I want to do application development (i.e adding new features) of "instructure canvas lms" on top of existing open source code https://github.com/instructure/canvas-lms" avalible. For this I need a IDE with debugging and development ability. Also I need procedure to setup the avalible code on my desktop using the IDE.
RubyMine is a good IDE for working with Canvas LMS. I know that some of the Instructure engineers have used RubyMine when developing Canvas. Most of the other engineers use a text editor and the command line to do everything. And, of course, a browser is involved at some point along the way (usually Google Chrome).
As for setting up Canvas LMS to run on your desktop, I would point you at the Canvas LMS Quick Start Guide:
https://github.com/instructure/canvas-lms/wiki/Quick-Start

Emacs GUI for Mac, linux and windows

I'd like to start using emacs but I want also a GUI in which it will be available in windows, ubuntu linux (desktop) and mac osx. Is GNU/Emacs capable for this? What other choices are there and how different is for each OS?
Also is there any disadvantages of using emacs with gui (for example, I can't use some kind of widgets or use something else) and how most other programmers prefer to use emacs? I want to use it as a replacement for textmate for ruby on rails development, any other suggestions?
Emacs has a native GUI version of GTK+(GNOME's toolkit), OSX with Cocoa from Emacs 23+(there is used to be Carbon Emacs before that, but it's now en route to oblivion) and Windows version.
I personally use emacs in daemon mode(emacs --daemon) and use emacslient to connect terminal and X clients to the daemon. I spend most of the time in a X frame though, I find that much more productive - instead of running Emacs in a terminal like many people do, I run my terminal in Emacs. I don't used menus/toolbars - just a naked frame most of the time, split into many windows.
For rails development with Emacs you should have a look at rinari and nxhtml.
Yes. There is a Windows version of emacs, and you can use the X-windows interface on both linux and OS X. There are also several different versions with native OS X GUIs.
Emacs is essentially a terminal-based program; there are no real disadvantages to having it running in a nice window, and the advantage of using mouse clicks and the menus.

Resources