Neo4j: change default Browser settings - neo4j

I want "Do not use Bolt" checkbox being checked by default in Neo4j Browser Settings.
Setting dbms.connector.bolt.enabled=false doesn't affect this field in browser.
I'm using Neo4j 3.1.4
How can I change Browser Settings default values?

For now the only solution I found is to change the default settings in neo4j-browser-<version>.jar.
To change useBolt setting you need to change useBolt:!0 to useBolt:!1 in the JavaScript file located in browser/scripts folder of jar file.
This solution was tested for neo4j-browser version 2.0.0-M10.
Or alternatively you can try to clone neo4j-browser, make needed changes and build a jar file.
It would be nice to have an ability to change such settings via a configuration file.

Related

Display icons in Neo4j web browser

I would like to display icons within nodes of Neo4j web browser by using this repo: https://github.com/graphadvantage/neo4j-browser-icons/ but I can't make it work.
Could you help with the installation? (I'm using docker image of Neo4j 3.5)
You can use post_connect_cmd to set the style from the grass file that is available in the above GitHub repo.
No need to run the Cyphers, using the existing grass file will work.
For using above grass file you need to modify the neo4j.conf to whitelist the domain or allow CORS and add the post_connect_cmd to set the style:
Add the following lines at the end of the neo4j.conf file and restart the Neo4j.
#********************************************************************
# Custom Styling for Neo4j Browser
#********************************************************************
browser.remote_content_hostname_whitelist=github.com,githubusercontent.com
browser.post_connect_cmd=style https://raw.githubusercontent.com/graphadvantage/neo4j-browser-icons/master/graphstyle.grass
This works for me. You can verify by creating a node:
CREATE(n:Upload{name:'Upload'}) return n

Jenkins - change title of main page

How can I change the title in the Jenkins start page:
http://jenkinsserver.domain.whatever:9090/
As I see, the title is already in German with some special UTF-8 chars and this one makes trouble using selenium in the background to control Jenkins. I am quite sure the value is set somewhere - but where?
Jenkins runs on a Windows server.
You can just install the Simple Theme Plugin and then in Manage Jenkins > Configure System > Theme, point the URL of theme JS field to a .js file containing at minimum something like:
document.title = "Wathever title you prefer";
Save and reload the page.
It worked for me..
Jenkins is using the browser locale language settings, change that. Please also better specify the question, what do you mean by title? Local domain address? If so, this can be done in settings -> "Jenkins URL".

Where is the default login page for the spring security core plugin?

I have installed the spring security core plugin. I need to modify the login page to look like my existing website. I have searched the entire project and cannot find it. I am running grails 2.4 and spring-security-core:2.0-RC5. Where can this pesky little file be? Can someone who is not a complete greenhorn help a fellow out?
As #Abs points out, the file is at target/work/plugins/spring-security-core-2.0-RC5/grails-app/views/login/auth.gsp but you shouldn't edit plugin files. Other developers on your team won't have access to the modified files and if you delete the target directory you'll lose your changes since the target directory is only a temporary work location.
Instead, copy the file to the same relative location in your application and make changes there. Create grails-app/views/login and copy the file there and make whatever changes you want.
This technique works for most plugin files, not just GSPs. The compilation order and classpath are configured such that application files and classes override plugin files if they're in the same location/package.
You can find the default login page here
targt->work->plugins->spring-security-core-2.0-RC5->grails-app->views->login>auth.gsp

Read config settings from PhoneGap app

Apparently I'm terrible at Googling. All I want to do is have the ability to read my web service URL from a config file in my PhoneGap app. Also, be able to modify that value during the build process. Is this named alot different in Xcode? I think I need to save this value in the plist file. If that's the case, then I can just set a user-setting in my build configuration stuff to have it change depending on which build type, Dev/Release.
If that's true, how do I access this from PhoneGap?
I'm guessing this question will get closed, but where else do I go for help...
plist file for cordova project already depreciate since v2.2. Cordova v2.3 start using config.xml.
Target > Edit Scheme
You could probably use hooks to accomplish everything that you are trying to do without changing around the config.xml file, but I'm not entirely sure this is supported with Phonegap (it is with Cordova.)
Check out the official help page to use the /hooks/ folder to modify anything during the build process: https://github.com/apache/cordova-cli/blob/master/templates/hooks-README.md
This blog post also seems pretty useful: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ it talks about changing things based on the environment and I'm sure it'd be easy to extend that to changing based on dev/release.
You could store the link to your web service probably as a config variable. I'm trying to figure out how you can add a config variable and will report back if I get it. In the mean time you could probably just have something like a server.txt file that you change with hooks.

What's the quick way to make my change of firefox plugin take affect in windows?

Now I have to restart whenever I modified a single line...
Is there a way to make it refresh without restarting the firefox?
Yes, you use plain directories in your extension instead of a JAR file, add <em:unpack>true</em:unpack> to your install.rdf and add boolean nglayout.debug.disable_xul_cache/nglayout.debug.disable_xul_fastload preferences and set them to true. You also start Firefox with -purgecaches command line flag (for Firefox 4 and newer). Then you will be able to edit extension files directly in the profile and have these changes picked up immediately. If you have an own dialog window then closing it and opening it again will be enough. For browser window overlays you will have to open a new browser window. JavaScript modules and XPCOM component will still need a browser restart however, these are loaded only once per browser session. But at least you won't have to reinstall the extension.
More information: Setting up an extension development environment

Resources