root

asp.net: refer to a page relative to root in normal non-server-side html controls

I've a page that is deeply nested. And one that is in the root path. Inside of the deeply nested page I have an anchor tag which is supposed to navigate to another page (which is not in the root, but it is easy to specify a root relative path). I've done the following trying to specify a root relative path: <a href="~/home/main.aspx">H...

XML root node with slash... unexplained??

Why would you have a rootnode in an XML document that looks like this: <return/> Why is that slash there? I have never seen an XML document like this, however in an application I am debugging, a root node looking like this one is created, and appending any child nodes seems to be failing. Removing the slash crashes the program. It ...

Dropping root privileges

I have a daemon which gets started as root (so it can bind to low ports). After initialisation I'd very much like to have it drop root privileges for safety reasons. Can anyone point me at a known correct piece of code in C which will do this? I've read the man pages, I've looked at various implementations of this in different applicat...

Append header and footer if they don't exist with XSLT

How can I have XSLT wrap input XML within a parent node, only if it doesn't already exist? For example, if my input is: <Project>...</Project> I want to wrap it with a prefix and a suffix: <?xml version "1.0" encoding="utf-8"> <Site> <Project>...</Project> </Site> If however, <Project> is not the root node of the input, I'd like...

On OS X, what is the proper setting for $QTDIR?

I'm trying to install QtROOT, and as part of the installation (specifically, the readme file in the QtROOT tarball at http://root.bnl.gov/QtRoot/downloads/qtFullRoot.tar.gz), it mentions to make sure that QTDIR is set. I've installed from the Qt 4.6.3 SDK installation for Mac OS X, and I have no such environment variable set. I've trie...

Xml root node not closed

Hi, I'm using xmlwriter to create an xml document. The xml document looks like this: <?xml version="1.0" encoding="utf-8" ?> <ExceptionsList /> How can i prevent the /> and appropriately end the root node? Because of this, i can't append anything to the root node. My code for creating the xml file looks like this: string formatD...

How to use sudo over SFTP with CyberDuck?

I'm copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck I am having the same issue and finding it hard to find an answer: I am using Cyberduck over SFTP. I can connect and browse files fine, but when I try to upload, I get a permissions error. Web host says ...

Giving public access to root directory of svn

Hello, i was wondering if it is possible to let people access subversion root directory trough apache and 'dav_svn' module. Now i can only access only repositories that are 1 level lover than root directory ("svn/game" "svn/something" but not "svn/"). My httpd.conf: <Location /svn> DAV svn SVNParentPath C:/SVN AuthzSVNAccess...

Rooting an android phone

I have 2 phones.An HTC Desire and a Sony Ericsson xperia X10.How do I go about rooting these phones to remove apps and add my own when I create them? ...

mysql root permission to update information_schema error

when i try to update one table(GLOBAL_VARIABLES) from information_schema db, i get an error : Access denied for user 'root'@'localhost' to database 'information_schema' Although I am root user with all privileges , how can i fix permission. ? or how can i update this table ? thanks. ...

How to run sudo command as root?

Hello, I only have root access to my server and the sudo command therefore does not work. I am trying to run a command that tries to use the sudo command and as I already have root access, it fails. command not found: sudo chmod +x /usr/local/bin/wkhtmltopdf Is there a way that I can get this command to run? Can I move out of roo...

Writing android app that executes linux commands

I have an compiled executable that is supposed to copy itself from the res folder, and into the /data/data/package-name/ folder, and change the permissions, and then execute. Every step completes all the way to the end. The output stream seems to be writing, etc. Except when I go check the file system, nothing has been done. I first trie...

PHP - Apache server config DocumentRoot

Recently on my web server I changed the index.php page to 301 to / for SEO purposes. Now that I'm offline and using XAMPP, the document root is set to http://localhost/xampp/ and trying to login is sending the form to / which is the xampp folder rather than that specific app's folder. I have many different folders for all the different ...

Remove the Root Password MySQL

On a test server I would like to remove the root password in order to test some security. I don't want to change the password or set it to blank (which is what every guide online seems to tell you to do) I just want root to not need a password to authenticate. ...

finding roots, minima, maxima using excel solver

The excel solver works for some functions but does not work for other simple functions. For example, f(x) = SQRT(A1^3-1), excel solver does not find roots. But other similar function works for example f(x) = A3^3-SQRT(A3)-1. Do you see any problem with the first function? Is it supposed to be expressed differently? ...

Python Script: Prevent normal users to execute

Hi, I need a better way to prevent that normal users execute my python script. I'm doing something like that: if __name__ == '__main__': if os.getenv('USER') == 'root': addUser = addUser() else: print 'Only root can run that!' It's working, but it's pretty ugly! My script is about user management in a Debian sy...

how can i access "Thing" class ???

In an ontology? i have an ontology that it doesnt have only one root class.it has 4 seperated classes(4 sub graph) ---1---- with listclasses() method i can't access 3 of them. this method lists one root class and its subclasses! i want to get all classes of ontology.then i want to get "Thing" class to access all of classes!!! is this ...

How to rewrite http root depending on development / production environment (htaccess question)

Hello, I have a development box which contains my site in: http://localhost/dev/ My production environment is just: http://mydomain.com/ I have all my PHP scripts adjusting to different paths automatically, but everytime I upload changes to my .htaccess file, I need to manually change any mentions of my http_root directory "/dev/"...

PHP secure root

My friend found a problem in my script, it gives acces to root files. This url gives passwd file: http://site.com/attachment.php?file=../../../../../../etc/passwd How to escape this security hole? ...

How can you detect if the device is rooted in the app?

On Launch of the application, I want to detect if the device running is rooted. Is there proper way of detecting it? I don't think trying to write a file to '\data' to see if rooted is a good solution. (Since even rooted devices may have that path unprivileged) ...