How do i get the tmp directory on the iPhone or iPad?
if i use NSTemporaryDirectory() to create a file it does not save to the simulator temp directory.
What's the best way to get a temp directory name in Windows? I see that I can use GetTempPath and GetTempFileName to create a temporary file, but is there any equivalent to the Linux / BSD mkdtemp function for creating a temporary directory?
I use R under Windows on several machines.
I know you can set the working directory from within an R script, like this
setwd("C:/Documents and Settings/username/My Documents/x/y/z")
... but then this breaks the portability of the script. It's also annoying to have to reverse all the slashes (since Windows gives you backslashes)
Is there a way…
I would like to get the path to the execution directory of a windows forms application (ie: the directory in which the executable is located). Does anyone know of a built-in method in .Net to do this?
I would like to know from Java code if the machine that I'm on is running active directory or that it has active directory installed (e.g. service may be stopped). Is there a reliable registry key to inspect? This is specifically for Windows 2008.
I found info on the web that mentions HKLM\SOFTWARE\Microsoft\MSDTC\Security\DomainControllerState,…
Hi,
I want to programatically create a directory on the server using ASP.NET.
I have done this using System.IO's Directory.CreateDirctory. however, the newly created folder is not accessible in the code.
after searching a bit, I came to know that the newly create folder is not included the project and hence not accessible.
Can anyone…
Hello folks
I have an issue here, I guess you all know what is AD service account and why it is used for, if not please see the below description ?
SSL-Explorer requires a dedicated Active Directory account to use for authenticating AD users. This account serves as a link to your Active Directory database. If the Service Account is not…
hi i want to use svn commands only for property of a directory not for the whole
directory .
e.g. svn revert
please tell me what command is used for this purpose.
thanks
How do i write a loop in ruby so that I can execute a block of code on each file?
I'm new to ruby, and I've concluded that the way to do this is a do each loop.
The ruby file will be executed from a different directory than the directory I want to loop through.
I've tried the Dir.foreach and I couldn't get it to work.
I have a directory named reports inside my winform project in .net. My project name is AccountingReports and inside that Directory reports exists. So i need the way to access this path via code. In Asp.net we use Request.PhysicalApplicationPath property. So is there any method or property exists that will give me the root of my project
I want to stop people from viewing the contents of my images directory. I've built an app using Codeigniter and notice that they just have index.html pages with a 403 Forbidden message in all directories - is this a secure method to use? Is an index.html page in the directory sufficient or do I need to update config or .htaccess?
Hi, I have a main directory like :
/import/
and in /import/ i have lots of sub directories, containing audio files.
I would like to create a php script to move all the audio files from the sub directories into the main directory.
Thanks guys :)
My application needs to access files on a remote machine that requires a username and password for accessing it.
I'm trying to find out if a directory exists (using Directory.Exists) to verify I can make the 'connection.
Is there a way to supply the username and password when working with remote directories? Currently Exists returns…
Hey
I'm trying to set up a backup feature for the users in a Active Directory Domain.
The wish is for the clients "my docuemnts" folder to sync to a folder on the file server.
Is this doable using Active Directory only, or do one need any third party applications?
If its doable, what steps is needed to set this up, on the server,…
I have a directory like this :
/images/
and then I have another directory like this
/waiting/pack1/
but I have a bunch of packs, so I was wondering how I could make a script to dump all the contents of these /pack* directories into the /images/ one.
Hi everyone.
I would like to run dhcpd3 from a chroot jail on Debian Lenny. At the moment, I can run it as root from my jail.
Now I want to do this as non-root user (as "-u blah -t /path/to/jail" Bind option).
If I start my process like this :
start-stop-daemon --chroot /home/jails/dhcp --chuid dhcp \
--start --pidfile…
I'm writing a PHP script that downloads a series of generated files (using wget) into a directory, and then zips then up, using the zip command.
The downloads work perfectly, and the zipping mostly works. I run the command:
zip -r /var/www/oraviewer/rgn_download/download/fcst_20100318_0319.zip…
I have Eclipse projects and ".project" file in them, the directory structure looks like 'myProject/.project'. I want to copy these '.project' files to another directory, but I want the enclosing directory name to be preserved.
Let's say I have 'a/myProject/.project', I want to copy…
I need Active Directory Use My Own Custom Database (or shell or ...) for Authentication Users.
Is there any extention or something like this to change User Passwords Database of active directory?
I need this Because My Accounts Are In simple Database And I don't Want to Sync them…
I'm using the following code on Windows Vista Ultimate SP1 to query our active directory server to check the user name and password of a user on a domain.
public Object IsAuthenticated()
{
String domainAndUsername = strDomain + @"\" + strUser;
DirectoryEntry entry = new…
I created a form that asks you to log in, then verifies the user/pass against the ldap server/active-directory, if successful, it creates a session, which will be checked on every page.
Now I want to check the session, which is the username of the person who is logged in, and…
Hi!
I am developing an application using ASP.NET MVC 1 and VS2008. When I deploy it to the default web-site in my IIS6 on WinXP, all images are shown correctly, path to any given image is localhost/Content/ImagesUI/[image].[ext]
When I deploy it to the virtual directory,…
I merely have the file name, without extension (.txt, .eps, etc.)
The directory has several subfolders. So, the file could be anywhere.
How can I seek the filename, without the extension, and copy it to different directory?
In shell script,
I want to clear only text files and log files in the following structure with out removing the directory as well as subdirectories
|
|------bar/
|
|---file1.txt
|---file2.txt
|
|---subdir1/
| |---file1.log
| |---file2.log
…
hi. i am facing some problems in accessing Active Directory from my winform app. what I want is to create a user and query user from Active Directory.
here is code snippet for find user
public bool FindUser(string username)
{
using (PrincipalContext…