How to disable remote cache completely for all bazel rules? - bazel

My network is very very very slow. I do not want to use Remote cache.
Is there any flag to prevent using remote cache?

"--noremote_accept_cached" option seem to work for me

Look in your .bazelrc file for --remote_cache
build --remote_cache=http://replace-with-your.host:port
Comment it out!

Related

How to lock down the Bazel filesystem sandbox?

The default Bazel sandbox allows read access to /. How can I further restrict that? E.g. I would like to prevent non-hermetic tests from accessing the /search directory.
There was a --sandbox_block_path flag but it was removed in 0.5.
Thanks for reporting that the removal of this feature is a problem for you. I found a way how to make it work reliably on Linux and macOS and will bring it back. Code review is already sent to a colleague. I'll make sure it gets cherry-picked into Bazel 0.5.0.

Docker reload does not reflect changes in CSS files

I've configured docker to reload automatically when i make changes to my project files. It works fine when i make changes in HTML or .py files but does not reflect any changes to CSS files. this question has also been asked here but there is no answer yet. Please help!
I'm using Flask python with gunicorn. Exactly following this course on udemy.
Figured that this error is unpredictable. Its a problem with virtualbox used by Docker. The simplest workaround i found was to run another parallel application which apparently resets virtualbox. Clearing browser cache after doing that solved the problem for me.
While this is just a workaround, if anyone has a clear solution, please share it here.
I had the same problem and solved it using this suggestion by #famelis:
The problem, IMHO, is with the browser. It is using the cache for css and js.
If you are in development environment you can use google chrome and open the programmer's tools (Ctrl+Shift+I)
Then in the Network tab the "Disable cache" must be checked, and this solves the problem.
In production you need to have different paths/names for the files, possibly with version number, for the browser to re-read the files and not use the cache.

how to enable remote shell with embedded db on SDN4?

Hi I'm using the following configuration
driver=org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver
URI=file:///data/graph
in ogm.properties file
how can i enable remote shell with it?
thanks
There's no way to pass custom configuration to the embedded driver. Please feel free to open a feature request at https://github.com/neo4j/neo4j-ogm/issues

Grails - Externalized Configuration Restart

If I externalize part of my Grails configuration, must I restart my container for the change to be found? Is there any workaround to this if so? Thanks.
No, there's no automatic watch for changes to external config files. There's a good solution here that involves making a controller request to trigger a reload: http://jetlet.blogspot.com/2011/02/reload-external-config-file-dynamically.html
There's also this plugin, which looks like it hasn't been updated in a long time and may not work: http://www.grails.org/plugin/reloadable-config
Chiming in late here, but there's also
http://www.grails.org/plugin/external-config-reload

Rails how to automatic check if a link is broken?

How is it possible to automatic check if a link is broken?
What is the best solution (Screenscraping or other)
You could try selenium which is an automated testing framework.
You could also try monit which is a monitoring application (daemon). Sometimes I just use that service to check if a particular website or link is up. You can set it to check periodically.

Resources