root

PHP root folder

rename('/images/old_name.jpg', '/images/new_name.jpg'); This code gives file not found. Script, where files are called is placed inside /source/ folder. Files can be opened from http://site.com/images/old_name.jpg How to get these files from root? ...

Why the links are not working when moving a page outside the root directory?

My website is in the root directory, which is /www.lebmotor.com/web/content/. I am using this: Dim appPath As String = HttpContext.Current.Request.ApplicationPath Dim directory As String = appPath & "/upload/" & Left(TableName, 2) & "/" to get the path and it's working very well. But when I create a new sub-folder and copy some ...

jboss server root folder

how can i find which folder is the jboss root dir? where can i find the root folder variable mentioned in a war file ...

Builder::XmlMarkup add multiple elements to root

I already create a xml documnt by using Builder::XmlMarkup lib and add elements something like that <sportVenueNextBookingConfigurations> <sportVenue id ='23'> <numberOfMonthsForBookings> <value type='staff'>8</value> <value type='normal'>7</value> <value type='booking_start_date'>2010-09-01...

Increase space for /root in Ubuntu Wubi

Hi, I have ubuntu installed inside Windows 7 through Wubi. I need to increase the size of /root or root.disk. How can I do this? wubi-add-virtual-disk does not work since root.disk is already present. THanks, SM ...

How do you map a sub domain to a webapp on Tomcat 6 (including the root webapp)?

Hello, subject says it all. What I want is to map each sub domain to a webapp like: http://root.domain.com:8080 -> http://domain.com:8080/ http://manager.domain.com:8080 -> http://domain.com:8080/manager http://abc.domain.com:8080 -> http://domain.com:8080/abc http://def.domain.com:8080 -> http://domain.com:8080/def on a localhost ma...

Estimating the square root

Hello- I am writing an iPhone app that needs to calculate the square root of a number about 2000 times every 1/30th of a second. sqrt() works fine on a computer, but the frame rate drops to around 10 FPS on an iPhone or iPad, and I have already optimized the rest of the code. I have heard that this can be sped up dramatically by estimati...

Programmatically requesting elevated rights in Linux

(This question has identical title, but question body asks it in scripting point of view, e.g. su -c, don't dupe this to that) I have a Qt GUI app that needs to perform some file operations in /etc based on user input. One option would probably to use system() with sudo, but even that requires messing with sudoers file in some point. I ...

Symfony: Images still save in web/uploads after I changed web root to public_html

In my symfony project, I changed my webroot directory to public_html to fit with a specific host. However, in the admin generator, when saving a file, the system creates a web folder, then stores the image in web/uploads How can I tell the system to now save in public_html instead? ...

Using celery in a django app to run script with root priviliges?

I need to run some commands on my ubuntu box where my django project resides that requires root privileges, from within my django project. I'm using celery to fire off an asynch process, this process in turn calls shell commands that requires root privileges to succeed. How can I do this without risking creating huge security holes? P...

Running a local instance of apache without admin rights on Mac OS X

Hi! I'd like to make a portable version of apache/php to develop locally. But the problem is about binding a port. That process requires admin rights, which I don't have on my workstation. I'd like to compile an apache/php version which I'd transfer on my workstation and run it without any rights requirements. I read about privbind, ...

iphone run app as root

I am writing a gui wrapper for gcc for a jailbroken iphone, etc. and it is almost done. However, I get this output when it is run ld: can't open output file for writing : a.out, errno=1 collect2:ld return 1 exit status. I believe this has to do with the privelages the app runs with. I have tried the setuid trick in the cydia developer fa...

n-th Root Algorithm

What is the fastest way to calculate the n-th root of a number? I'm aware of the Try and Fail way, but I need a faster algorithm. ...

Absolute path issues in PHP on localhost in OS X

I'm having some issues with defined absolute paths in PHP. I define the SITE_ROOT and APP_PATH like so: defined('SITE_ROOT') ? null : define('SITE_ROOT', str_replace('//','/',dirname(__FILE__)) ); defined('APP_PATH') ? null : define('APP_PATH', SITE_ROOT.DS.'application'); When using the APP_PATH in an application like so: echo APP...

Python garbage collection can be that slow?

Hi, I have a problem with my python application, and I think it's related to the python garbage collection, even if I'm not sure... The problem is that my application takes a lot of time to exit and to switch to one function to the next one. In my application I handle very large dictionaries, containing thousands of large objects whic...

What is the css / html `root` element?

I have just recently started using NetBeans IDE (6.9.1) and have used it to add a stylesheet to my site-in-progress. To my surprise, one element was automatically added: root { display: block; } Looking around, I could find some information about the :root pseudo-class but nothing about the root element itself. What is the root...

How to get vectors working in a created tree - root

Hi, This is a Root question, but I thought I'd try my luck in-case anyone has experience! I have created a piece of code that will filter out final particles from a sample into a new tree. I have succeeded in doing so by creating a tree with repeated fields ie. event number, but am trying to make it better for analysis by using vectors ...

Setting up CERN ROOT with an IDE

I'm interested in setting up an IDE (preferably Eclipse or Netbeans) for a project that uses C++ and ROOT and have it be able to compile for me. Is this possible? Source code is available for ROOT, so there should be some way of hooking these things together... ...

changing CF9 root directory wwwroot to Sites on mac

Hi, I have installed CF9 development edition and would like to change the web folder to Sites on my mac rather than wwwroot in the coldfusion 9 folder. Any ideas how I can achieve this? Thanks, R. ...

Good Resource for rooting an Android Tablet (Archos or Samsung Galaxy Tab)

Not sure if "rooting" is the right term, but I'm looking to take an existing tablet device (such as the Archos), wiping their Android build and apps from it, and putting my own build of the Android kernel on it. (This build would be very minorly modified, but I'd want it to support the hardware of the tablet) Are there any good resourc...