How to have Spyder open on the 'variable explorer' by default - ide

When I open Spyder (4.0.1) the 'Files' tab opens by default, rather than the 'Variable explorer' that's hosted in the same pane.
How do I make Spyder open on the 'Variable explorer' by default instead?

What I ended up doing:
In the Spyder menu, under View -> Panes, I disabled panes that I didn't need and then arranged the remaining panes so that the variable explorer was by itself.

Related

How to set React_Editor to PhpStorm so that when you click on the error it jumps to the code?

I'm using PhpStorm in Mac to code and i want to debug my errors. I have a message in my terminal to set the editor for React Native tools.
PRO TIP
When you see Red Box with stack trace, you can click any
stack frame to jump to the source file. The packager will launch your
editor of choice. It will first look at REACT_EDITOR environment
variable, then at EDITOR.
To set it up, you can add something like
export REACT_EDITOR=atom to your ~/.bashrc or ~/.zshrc depending on
which shell you use.
I've added these lines to ~/.bashrc but nothing happened when i click on the error :
export PATH=$PATH:/usr/local/bin/pstorm
export REACT_EDITOR=pstorm
How can i set correctly REACT_EDITOR to PhpStorm so that when i click on the error it jumps to my code?
For mac os you need to add to ~/.bashrc or .zprofile:
Add export REACT_EDITOR="webstorm" or pstorm
Don't forget to close all of your terminal windows and restart the react-native packager before you try it.
Create a shortcut to open WebStorm:
Open WebStorm
Press ⇧ twice to open the search window
Type “Create Command Line Launcher…” and press Enter
Click OK
That's it.
/usr/local/bin should be in the PATH environment variable by default. You should be able to run webstorm from anywhere in the shell. Run webstorm /usr/local/bin/webstorm to test the command.
You can find a code which opens editors here or in your project node_modules/#react-native-community/cli-tools/build/launchEditor.js
I solved this problem by creating symlink.
sudo ln -s /Applications/WebStorm.app/Contents/MacOS/webstorm /usr/local/bin/webstorm

VB.net Open new IE window

another one I cannot seem to find. But in vb.net, how do I force a new instance of IE or Chrome when clicking a button?
I may have already existing windows open, but I want to make it where when I click my button, it opens either Chrome, IE, etc. open new instance.
Is this even possible? Thanks!
The exe's should be in path so you can just run them like this
Process.Start("chrome.exe", "--new-window http://www.bing.com")
Process.Start("iexplore.exe", "http://www.bing.com")
If they aren't in path, you'll need to provide the full path to the exe, like c:\program files\internet explorer\iexplore.exe
By default on my system chrome opens up a new tab if you run chrome.exe without the --new-window parameter. When I run iexplore.exe, it always opens up a new window by default.

Bypassing World Menu with shortcuts

Is it possible to open the tools in world menu using shortcuts ?
I am interested especially for Workspace , Browser (without selecting a message) , Finder , Monticello and of course all the others.
On OSX you have (on Windows and Linux you might change Cmd to Ctrl or Alt I never remember):
Monticello: Cmd+O,P
Workspace: Cmd+O,W
Browser: Cmd+O,B
Transcript: Cmd+O,T
Settings: Cmd+O,S
Test Runner: Cmd+O,U
AFAIK there is no shortcut for the Finder, we can assign it Cmd+O,F.

How to add keyboard shortcuts to nemo?

I want to add gloobus to nemo in linux mint. But native support is not available therefore I want to add a keyboard shortcut to nemo to open gloobus with selected element.
I already found this where is described how to change shortcuts and I found this where is described how to add an action to the context-menu.
Does anybody know how to add KEYBOARD shortcuts to do the same?
for Nemo 2.2.4 under Linux Mint 17 I do this:
Go to: /home/yourusername/.gnome2/accels --- NOTE: .gnome2 is a hidden folder!
Open the "nemo" file with your text editor
Add your shortcut: for example, when having 2 panes to move a folder or file from one pane to the other using "CTRL+j":
(gtk_accel_path "/DirViewActions/Move to next pane" "j")
Note: remove the ";" at the beginning of the line
Restart the GTK system: sudo killall -u yourusername
Open Nemo, to test my example: press "F3" choose different folders on each pane, select one folder or file from one pane and press "Ctrl+j", that folder or file should move from one pane to the other one.
There are a lot of different commands to customize in that file, be careful not to use a current shortcut!
Hope this helps!

Debugging in OpenERP 7.0

How to do debug in OpenERP v7?
In previous versions of OpenERP, it was easy to debug. But in the latest version it's tough to debug.
To debug your OpenERP+python code in eclipse, start eclipse (helios/indigo only) in debug perspective and follow the given steps:
1: Stop your openERP running server by pressing "ctr+c".
2: In eclipse go to Menu "Run/Debug Configurations". In configuration window under "Python Run", create new debug configuration(Double click on 'Python Run').
3: After creating new debug configuration follow the given steps:
3.1: In "Main" tab under "Project", select the "server" project or folder (in which Openerp Server resides) from your workspace.
3.2: Write location of 'openerp-server' under "Main Module".
Ex: ${workspace_loc:server/openerp-server}.
3.3: In "Arguments" tab under "Program Arguments", click on button "Variables" and new window will appear.
3.4: Then create new "Variable" by clicking on "Edit Variables" button and new window will appear.
3.5: Press on "New" button and give your addons path as value.
Ex: --addons ../addons,../your_module_path
3.6: Press Ok in all the opened windows and then "Apply".
4: Now into "PyDev Package Explorer" view go to 6.1/server and right click on "openerp-server" file, Select 'Debug As --> Python Run'.
5: Now in "Console" you can see your server has been started.
6: Now open your .py file which you want to debug and set a break-point.
7: Now start your module's form from 'gtk' or 'web-client' and execution will stop when execution will reach to break-point.
8: Now enjoy by debugging your code by pressing "F5, F6, F7" and you can see value of your variables.
You can refer following link: Debug OpenERP Code from Eclipse
Go to Administrator(in right top corner) in that click on About OpenERP in that you will find a link Activate the Developer Mode.
or
you can add a parameterdebug in of URL like
http://localhost:8069/?debug
both the way will let you open the developer mode.
You can also use the Odoo Debug pro chrome extension to toggle the developer mode using the keyboard shortcuts.
To debug openERP 7 from eclipse just Stop openERP server and rename the main file named openerp-server.py.From "Run/Debug Configurations" make a new configuration selecting Project and main module such as ${workspace_loc:openerp7/src/openerp-server.py} then press Apply.After that /openerp7/src/openerp-server.py 'Debug As --> Python Run' using new configuration.Server is running where pydev debugger is also started.Now run 'gtk' or 'web-client'.Then select the python file of that module where want to debug and give breakpoints.That's all.
Debugging is quite simple in interface.
For Programmers
By Default when you login to openerp, your url will look something like this
http://localhost:7373/?db=Test_July_25#menu_id=107&action=97
Edit the url and add debug=&
localhost:7373/?debug=&db=Test_July_25#menu_id=107&action=97
For Functional Users
Navigate mouse to top right corner and select About OpenERP
Now Activate Debug Mode
You Should be done now with interface debugging.
For Code Debugging (along with arya's method these images may help you)
You can use browse button to select the project and the openerp server file
Finally place breakpoints in your code where ever necessary
Navigate through
administrator(top Right)>>about OpenERP
Dialog Open Click on Activate Developer mode
Their is more complexity and less control by adding more fancy tools try and go low level and use python pdb and if you are debug geek then use winpdb with pdb which gives extreme contorl over your code navigation.
And for simple value abd flow use print or pprint module from python.
Bests.
Start debug mode on browser ??
In URL you can type ?debug after web
OR
go to About OpenERP select Activate Developer Mode
If You want to debug from eclipse then
go to PyDev Package Explorer --> openerp(odoo) --> Right click on openerp-server file
Select Debug as --> Python Run
It will ask for change current perspective from PyDev to Debug click "Yes" and its Done
Activate the Debug mode and use some print statements to debug the variable values