administration

CouchDB backups and cloning the database

冷暖自知 提交于 2019-12-02 17:17:16
We're looking at CouchdDB for a CMS-ish application. What are some common patterns, best practices and workflow advice surrounding backing up our production database? I'm particularly interested in the process of cloning the database for use in development and testing. Is it sufficient to just copy the files on disk out from under a live running instance? Can you clone database data between two live running instances? Advice and description of the techniques you use will be greatly appreciated. CouchDB supports replication, so just replicate to another instance of CouchDB and backup from there

Cannot connect to Tomcat's MBeanServer via jconsole in Java6

痞子三分冷 提交于 2019-12-01 11:19:09
I'm on a vista machine. I've started tomcat 5.5.27 with these options: CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=9003 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false" When I connect via jconsole and added the following service url service:jmx:rmi:///jndi/rmi://localhost:9003/jmxrmi it would not connect. Any ideas ? On Ubuntu 10.04, using OpenJDK 6 and Tomcat 6.0.29, I was unable to activate JMX for a local jconsole session, no matter how many com.sun.management.jmxremote.* options I passed to java with CATALINA_OPTS. The problem was the

Cannot connect to Tomcat's MBeanServer via jconsole in Java6

ぃ、小莉子 提交于 2019-12-01 09:37:21
问题 I'm on a vista machine. I've started tomcat 5.5.27 with these options: CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=9003 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false" When I connect via jconsole and added the following service url service:jmx:rmi:///jndi/rmi://localhost:9003/jmxrmi it would not connect. Any ideas ? 回答1: On Ubuntu 10.04, using OpenJDK 6 and Tomcat 6.0.29, I was unable to activate JMX for a local jconsole session, no

How to open Neo4J Webadmin to remote control?

女生的网名这么多〃 提交于 2019-12-01 03:29:57
I have installed a Neo4J instance on my server on port 7474. My domain is also using that server and I want webadmin to be used remotely with a username and a password like this: example.com:7474 Is there a way to do that? I could not find any guideline in the Neo4J documentation. Did you get a chance to go through Neo4j Server Configuration documentation ? It says: #allow any client to connect org.neo4j.server.webserver.address=0.0.0.0 This line in conf/neo4j-server.properties is commented by default and limits access to port 7474 to localhost or 127.0.0.1 (which probably is the reason why

Administrating internationalized wicket applications

混江龙づ霸主 提交于 2019-11-30 18:24:51
问题 Is there a good/right way to maintain/administrate the internationalization of a Wicket application? At the moment there are several *.properties-files with the translations in it just as you do it in Wicket. Can you access these on runtime and change the values so that the changes take place without restarting the app? (Another way would be to store the values in a database but I just leave that for now.) 回答1: You can write your own implementation of IStringResourceLoader and register it

How to check if the program is running with Administrator privileges in JavaScript

爱⌒轻易说出口 提交于 2019-11-30 16:02:57
问题 Is there any way to check in JavaScript if the current program runs with administrative privileges? For example in C# i can do it with the following code: bool isRunningWithAdminApprovals; WindowsIdentity identity = WindowsIdentity.GetCurrent(); WindowsPrincipal principal = new WindowsPrincipal(identity); isRunningWithAdminApprovals = principal.IsInRole(WindowsBuiltInRole.Administrator); However I need to check it with a current running script of javaScript. If i try to run an exe or a

How to check if the program is running with Administrator privileges in JavaScript

心不动则不痛 提交于 2019-11-30 15:52:15
Is there any way to check in JavaScript if the current program runs with administrative privileges? For example in C# i can do it with the following code: bool isRunningWithAdminApprovals; WindowsIdentity identity = WindowsIdentity.GetCurrent(); WindowsPrincipal principal = new WindowsPrincipal(identity); isRunningWithAdminApprovals = principal.IsInRole(WindowsBuiltInRole.Administrator); However I need to check it with a current running script of javaScript. If i try to run an exe or a wrapper of the C# code, the UAC will prompt me to approve it and then i will already be in Administrative

Rails application settings?

℡╲_俬逩灬. 提交于 2019-11-30 13:11:42
I am working on a Rails application that has user authentication which provides an administrators account. Within the administrators account I have made a page for sitewide settings. I was wondering what the norm is for creating these settings. Say for example I would like one of the settings to be to change the name of the application name, or change a colour of the header. What I am looking for is for someone to explain the basic process/method - not necessarily specific code - although that would be great! For general application configuration that doesn't need to be stored in a database

When to develop using Powershell vs C#?

送分小仙女□ 提交于 2019-11-30 12:02:36
I'm just getting started in PowerShell and one of my sysadmins told me that Powershell can do as much as C# can for systems management, if not more. Please forgive the ignorance of this question, but when would I use Powershell over C#? When I worked in the Windows build lab a LONG time ago (1997) the rule I was taught that if the code satisfies either of these two conditions write it in interpreted script, otherwise write it in compiled code: there's more overhead than code (using/include lines, function declaration, etc) there's a better than 10% chance that the code will change before it

How can I delete a service in Windows?

一世执手 提交于 2019-11-30 10:03:00
问题 I have a couple old services that I want to completely uninstall. How can I do this? 回答1: Use the SC command, like this (you need to be on a command prompt to execute the commands in this post): SC STOP shortservicename SC DELETE shortservicename Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above about not having the necessary access rights to stop and/or delete the service, run