Start pgAdmin4 in different browser Ubuntu 18 - pgadmin-4

Can't find where to change the default startup browser on Ubuntu. When I start pgAdmin4 the default browser opens, but I would like to start a different browser (eg: Firefox). In windows you can right click the service, but I'm stuck finding the way to change this on Unbuntu.

With the latest version of pgAdmin4, developers have added copy URL option on right click on tray icon, Download the latest version then right click on pgAdmin4 tray icon which will give you option to Copy URL, once you click that option then open your desired browser and paste the URL and hit Enter.
And you are good to go :)
Also, there is an option to run the custom browser command also.
In new chrome versions you can run pgAdmin 4 as "native" desktop app. While the pgAdmin v4 web server is running, right click the icon in the Windows System Tray and select Configure... In the Browser Command input add the following:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=%URL%
Note: Above path can change for you in Ubuntu.
If you want to run in chrome browser window, configure command like this:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" %URL%
Note: Above path can change for you in Ubuntu.
Hope this helps.

It is kind of a trick. It is quite fast to change the default browser in ubuntu, then run pg admin and change the default browser back. Did not found how to do it like in windows.

Related

How to open the browser that you want as default with "npm start" on Windows 10

When you try to "npm start" your react app for the first time on Windows 10, it will launch on internet explorer / Edge as default. Do you want to ALWAYS launch on a different browser?
You can simply change your default browser like below: (see this for how to do it step by step with images).
Navigate to Settings. You can get there from the Start menu.
Select System.
Click Default apps in the left pane.
Click Microsoft Edge under the "Web browser" heading. ...
Select the new browser (ex: Chrome) in the menu that pops up.
If you want to keep your default browser and "npm start" with another browser, see this thread.
If you are using create-react-app:
You need to set the BROWSER .env variable:
By default, Create React App will open the default system browser, favoring Chrome on macOS. Specify a browser to override this behavior, or set it to none to disable it completely. If you need to customize the way the browser is launched, you can specify a node script instead. Any arguments passed to npm start will also be passed to this script, and the url where your app is served will be the last argument. Your script's file name must have the .js extension.
See: https://facebook.github.io/create-react-app/docs/advanced-configuration

Chrome Netbeans Plugin only shows blank page

I'm learning AngularJS at the moment and thought I would install netbeans as it supports debugging in chrome via a plugin. Or claims to at least...
I have followed the user guides and tutorials that I've found and always seem to falter at the same point:
Install Netbeans
Install chrome plugin
Create a simple sample project
Set the default web browser to Chrome with Plugin
Click run
At this point I always see a blank page loaded in Chrome. I suspect that this is a bug as all of the resources online seem sure that I should be able to see the default index.hmtl page in my browser...
I'm running on a MAC:
And my plugin version is:
My Netbeans version:
My Default Browser in Netbeans:
Does anyone know of any issues with running this configuration? No matter what I do I just see a blank page with a mangled URL like so when I hit run:
http://file:///private/var/folders/4l/3gq9477n6_952q1ztvz5ngdckcdyx4/T/blank2587611836421039861.html
When I open this file in VI I see one line in it:
<html :netbeans_temporary="true"></html>
This seemed to work as a workaround for me:
Open the project configuration and change the browser from Chrome with netbeans connector to Chrome
Run the project (the correct page should come up in Chrome)
Click on the Netbeans Connector in the upper right corner of the Chrome window
Select "Debug in Netbeans" (You should get the yellow information notice across the top of the window)
Go back to Netbeans and click on the 'debug main project' button.
My configuration is os/x High Sierra, Netbeans 8.2

WebExtension Firefox - Disable temporarily other add-ons

I'm looking to disable (for a few seconds) other add-ons installed on the browser, then to re-enable them.
My option right now:
Management API (https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/management) - doesn't work on Webextensions Firefox.
Are you familiar with a method of either :
a. Disabling a specific add-on for a short time.
b. Opening a new window with all add-ons disabled.
Thanks,
Harlan
There is no way to accomplish what you desire from a WebExtension. Even in Firefox 55, where management.setEnabled() exists, that API is only permitted to enable and disable themes, not regular extensions.
You can accomplish this from other types of Firefox extensions, but not a WebExtension.
If your purpose is debugging/testing an addon, then here is two ways to achive
b. Opening a new window with all add-ons disabled
1. using web-ext tool
There is a command line tool called web-ext to help develop web-extensions for Firefox. This tool allows run your addon on a temporary default profile. Since a default profile does not have any user-installed extensions, it is what you could use.
Install web-ext
Go to your addon directory cd <your_addon_directory>
Run web-ext web-ext run
From MDN:
web-ext run Builds and then temporarily installs an extension on Firefox so it can be tested. By default, this will also watch all extension source files and reload the extension in Firefox as files change.
More info about using web-ext on Mozilla Developer Network: Getting started with web-ext
2. Manually
With this option you need to run a default profile manually using Firefox Profile Manager. Here you can read instruction how to work with Firefox profiles. You can create a separate profile specially for testing your addons. After starting Firefox with that profile go to about:debuggingpage and load your addon.

Try Jupyter loads a blank browser

I now have Jupyter installed on Debian 8, but would also like the ability to run it without installing on other machines.
When at tryjupyter.org and I click on the "Try it in your browser" button, the tab is a blank page. I've tried this in Firefox, Chrome and Chromium. Any suggestions? Also happens on my Windows 7 guest in VMWare.
Make sure you visit https://try.jupyter.org instead of http://try.jupyter.org. The http link didn't used to work (this has been fixed recently by redirecting to https), but the https link will work.

Examples not working in downloaded Extjs 6.2.0 framework

I have a licensed version of extjs 6.2.0. I tried to run examples by opening index.html in folder ext-6.2.0\examples . The similar page gets opened like shown in the link http://examples.sencha.com/extjs/6.2.0/examples/, but when I try to go further by clicking on options shown on page say Kitchen Sink (Classic), instead of showing page like http://examples.sencha.com/extjs/6.2.0/examples/kitchensink/#all, directory structure (...\ext-6.2.0\examples\kitchensink) gets opened in browser.
You need some kind of web server to make this work. Luckily enough, Sencha Cmd has a built in one. So, assuming you have Sencha Cmd installed, here are the steps to get this working:
from your terminal navigate to the ext-6.2.0 folder (cd ext-6.2.0);
from there, run the sencha web start command;
open the address where the server has started (by default should be http://localhost:1841/)

Resources