Hello,
I want to delete particular property of IIS wen directory from Metabase.
Can any one plz help me, how can we do that with DirectoryEntry class in C#?
We have the following URL:
URL: https://dev-01:8555/svn/Shop
We have the following structure in SubVersion
Shop
--trunk
--branches
--tags
The problem is, when I do a build, under the buildagent directory, I get every single tag in the repository copied over to the buildagent.
Is there a way to only retrieve the HEAD revision to effect the build on.
I'm developing a project with two different sites, divided by
language. Maybe I was terribly wrong, but now my directory structure
looks like:
/ruapp/settings.py # SITE_ID = 1
/ruapp/manage.py
/enapp/settings.py # SITE_ID = 2
/enapp/manage.py
/common/urls.py
/common/ # almost every other file
/common/templates/ # templates with {% trans %}
/locale/ # with locales ru-ru and en-us, generated by calling
makemessages from the root of all this structure
How to tell django about the locale? It does not seem like it will
find the /locale/ folder by itself
Hi, I'm trying to display standard file/directory context menu in WinForms application - I'd like to enable the user to do things with files in my application as he could in Explorer.
There should be two options
popup the context menu with some system call
read everything from the system context menu and insert it into my context menu
Could you please point me in the right direction? Thanks
My directory structure is as follows
Project
-- .hg
-- src
-- tests
When I ran hg init on the Project path, everything got added into the repo. However, inside src, there are directories like bin and obj which I'd not like to track. How do I exclude them now? I've tried hg forget src\bin - it says path not found.
Please guide.
I have a directory with files that look like this:
001_something.php 002_something_else.php
004_xyz.php 005_do_good_to_others.php
I ultimately want to create a new, empty PHP file whose name starts with the next number in the series.
LIST=`exec ls $MY_DIR | sed 's/\([0-9]\+\).*/\1/g' | tr '\n' ' '`
The preceding code gives me a string like this:
LIST='001 002 004 005 '
I want to grab that 005, increment by one, and then use that number to generate the new filename. How do I do that in BASH?
In my Perl code, I need to copy a directory from one location to another on the same host excluding some files/patterns (e.g. *.log, ./myDir/abc.cl).
What would be the optimum way of doing this in Perl across all the platforms?
On windows, xcopy is one such solution. On unix platforms, is there a way to do this in perl?
Hey guys,
I've been trying to cross-compile Spidermonkey and I am stuck with the problem wherein prtypes.h(NSPR) is unrecognizable. I alread triedy modifying Makefile.ref/config.mk/jsconfig.mk to point to a desired NSPR/DIS directory. I must have missed some basic steps because it still won't make things work.
Do you have any ideas on how to properly modify the makefiles to point my spidermonkey to the right NSPR libraries?
Thanks!
Hi All,
Is there a way to display pdf from local directory or database in a object tag.
My problem is I am trying to display pdf print dialog after pdf is loaded.
This is possible if I load pdf using object tag, but currently my pdf is getting loaded dynamically using response.binarywrite.
Any help will be highly appreciated.
regards
Nilesh
I just ran these two commands:
sudo gem install rails --pre
sudo gem install railties --pre
Now when I run rails myapp, I get this:
-bash: /usr/local/bin/rails: No such file or directory
Here's some system info:
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
$ sudo gem update --system
Updating RubyGems
Nothing to update
I tried copy/pasting the bin/rails file into /usr/local/bin/rails, and changing permissions to sudo chmod 755 /usr/local/bin/rails, but that doesn't work.
Any ideas how to get up and running?
how many files in a diretory will be decrease server performance? I have a website that contain hundreds thousand of images ( a million in separated directory). I wonder if it will effect the performance.
server detail:
centos, apache, php 5
Most examples show how to redirect all subdomain traffic to a primary domain, maintaining the directory structure. I actually don't want this. I want to redirect all subdomain traffic (the site is going away) to the primary domain. This is not working:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/ [R=301,L]
What happens, is if you go to this:
http://sub.newdomain.com/some/path/
You get this:
http://www.newdomain.com/some/path/
I want it all to go to the root.
With the environment variable %allusersprofile% I can get the directory where common settings are stored. But most programs store their settings in the sub-folder "anwendungsdaten" (German, application data). Is there a way to get the direct path to this folder? The problem is that its name is language dependent.
Thanks.
I'm currently using NSFileManager setAttributes to change the permission of a directory. My problem is that it doesn't appear to do so recursively. Is there any way to force it to do so?
With the new Eclipse 3.5.2 Update manager, I am not able to find, how do I specify installation directory for my plugins. I use it, so that I can manage multiple installation of eclipse, without installation plugins again. Can anybody provide me settings, so that I can specify location for plugin, while installing it ?
Hai vivin., O God., I just restart after my system when it happens., and i install some recovery software like gpart. is theri any possibilities to recover my www directory and files., bcos its includes more of web development documents. pls pls pls i'm very afraid about that issue. let me know asap. Thnaks in Many more advance,
I have overcome all problems with setting up gcov on my iPhone project but now I am getting the following:
profiling:/Users:Cannot create directory
Does anyone have any suggestions as to what I might be doing wrong?
I originally setup gcov following Google's instructions: http://code.google.com/p/coverstory/wiki/UsingCoverstory
Is there a way to notify MediaScanner service on Android platform not to scan certain directories? I have application that encrypts images on SD card and after I do that MediaScanner goes wild in LogCat (writing out "not JPEG" exception... and there are time I have over 1000 pics in directory).
Thanks
I would like to convert my Subversion repository to Mercurial. I have a pretty big web project divided into many different folders. In Subversion I was able to set per directory permissions for a repository. For example, I could say that a new developer could only read and write a subset of all the project's directories. Is it possible to have a similar setup in a single Mercurial repository?
I want to copy the entire contents of a directory from one location to another in C#.
There doesn't appear to be a way to do this using System.IO classes without lots of recursion.
There is a method in VB that we can use if we add a reference to Microsoft.VisualBasic:
new Microsoft.VisualBasic.Devices.Computer().
FileSystem.CopyDirectory( sourceFolder, outputFolder );
This seems like a rather ugly hack. Is there a better way?
I'm developing an application using Java, Tomcat, Spring Framework and Spring LDAP 1.2.1 for LDAP access.
According to our LDAP administrator, it is not possible to find out programmatically, if a specific user is locked out in the directory - the user is just not returned. This makes life difficult for me, as I need to identify locked out users.
Is our administrator right, or is it possible somehow to find out, if a particular user is locked out? If yes, how?
Due to a Hard disk problem I am trying to shift a partition from one hard disk to another. I am following http://www.ibm.com/developerworks/library/l-partplan.html article to do that. In the copying part I would like to ignore one particular sub directory. How can I accomplish that keeping in mind when copying I have to preserve my owner group and time stamp. There is around 700 GB of data that needs to be copied if I do not ignore a particular subdirectory.
Hello,
Visual Studio C++ 2008
I have downloaded a sample project.
I converted the project from VS 7 to VS 9.
However, when I compile I get this error:
c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory
Under project properties preprocessor definitions. I have WIN32 defined there.
I have never had this error before.
Many thanks for any suggestions,