administration

What do you do if the file in TFS is locked by someone else?

十年热恋 提交于 2019-11-28 16:36:44
问题 Someone left the organisation but before leaving, he locked all the files for an unknown reason. How do you unlock them all so that the other developers can work? 回答1: For the following operation, you will need to be either a project administrator for the project you want to undo the check-in on or a Team Foundation Administrator if you want to do this across all projects. If you still have the username of the person, you can simply do something like this: Open up Visual Studio command prompt

Add/remove programs in Windows XP with Python script [closed]

让人想犯罪 __ 提交于 2019-11-28 14:41:12
I would like to add add/programs like adobe acrobat reader and other application in windows XP using Python script. Kindly looking for some help. Thanks in advance! Everest. Are you installing or uninstalling? Installing: Easy way: subprocess.Popen the installer. Nearly-as-easy way: subprocess.Popen the installer, with some Windows hackery so that the user doesn't have to click anything. Uninstalling: As above. Hard way: work out the files changed on the computer and revert them manually. 来源: https://stackoverflow.com/questions/3599213/add-remove-programs-in-windows-xp-with-python-script

How do I set up a local CPAN mirror?

心已入冬 提交于 2019-11-28 07:48:10
What do I need to set up and maintain a local CPAN mirror? What scripts and best practices should I be aware of? This could be useful: http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN CPAN::Mini is the way to go. Once you've mirrored CPAN locally, you'll want to set your mirror URL in CPAN.pm or CPANPLUS to the local directory using a "file:" URL like this: file:///path/to/my/cpan/mirror If you'd like your mirror to have copies of development versions of CPAN distribution, you can use CPAN::Mini::Devel . Update: The "What do I need to mirror CPAN?" FAQ given in another answer is for

Migrating R libraries

一曲冷凌霜 提交于 2019-11-28 03:20:51
I'd like to move several R libraries (*) from one drive to another, on Linux, and would like to know whether a simple move is feasible and safe or if I should uninstall and reinstall the packages. I realize that the locations of libraries are identified via .libPaths() and have looked through the "R Installation and Administration" manual to find out about migrating libraries, but don't see a recommended process. I perceive three options: Run remove.packages() for all of the non-base packages, and install anew via install.packages(lib = "/path/to/new/location") . Move the libraries

Listing each branch and its last revision's date in git

陌路散爱 提交于 2019-11-27 05:50:58
I need to delete old and unmaintained branches from our remote repo. I'm trying to find a way with which to list the remote branches by their last modified date, and I can't. Does someone know of an easy way to list remote branches this way? VonC commandlinefu has 2 interesting propositions: for k in `git branch | perl -pe s/^..//`; do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k -- | head -n 1`\\t$k; done | sort -r or: for k in `git branch | sed s/^..//`; do echo -e `git log -1 --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k --`\\t"$k";done | sort That is for local

how to get phyiscal path of windows service using .net?

*爱你&永不变心* 提交于 2019-11-27 03:15:08
问题 I have to get the absolute path of a windows service in a .Net Admin application. I am using ServiceController of .Net as shown below. ServiceController serviceController = new ServiceController(serviceName); But I don't see any property here to get the absolute path of the .exe of the service. Is there anyway to get this programmatically. 回答1: You can get this using WMI, which requires an assembly reference to System.Management: using System.Management; class Program { static void Main

Command line tool to delete folder with a specified name recursively in Windows?

瘦欲@ 提交于 2019-11-27 02:47:30
I want to delete every "_svn" in every folder and subfolder... For example c:\ proyect1 _svn images _svn banner _svn buttons _svn Then I run something like rm-recurse c:\proyect1 _svn And I should get: c:\ proyect1 images banner buttons The ideal thing would be a tiny stand-alone EXE or something like that. -- Thanks Grant, as soon as I posted the question I saw SVN documentation about the SVN export command, but I also want to delete the _vti_* folders stuff Visual Studio creates, so I'll also explore the for solution. Similar to BlackTigerX's "for", I was going to suggest for /d /r . %d in (

MongoDB won't start after server crash

最后都变了- 提交于 2019-11-27 02:36:50
My Ubuntu computer had crashed, and when I restarted it MongoDB wasn't working. I tried the following commands, and got the following output: $ mongo Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91 exception: connect failed $ service mongodb status mongodb stop/waiting $ service mongodb restart stop: Unknown instance: start: Rejected send message, 1 matched rules; type="method_call", sender=":1.57" (uid=1000 pid=2227 comm="start mongodb ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart"

How do I set up a local CPAN mirror?

£可爱£侵袭症+ 提交于 2019-11-27 02:03:33
问题 What do I need to set up and maintain a local CPAN mirror? What scripts and best practices should I be aware of? 回答1: This could be useful: http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN 回答2: CPAN::Mini is the way to go. Once you've mirrored CPAN locally, you'll want to set your mirror URL in CPAN.pm or CPANPLUS to the local directory using a "file:" URL like this: file:///path/to/my/cpan/mirror If you'd like your mirror to have copies of development versions of CPAN distribution, you

Access is denied when attaching a database

谁都会走 提交于 2019-11-27 00:10:35
I am using SQL Server 2008 developer edition. I was trying to attach the AdventureWorks2008 database. When I tried to attach, I received an "access is denied" error. According to the event log, it came from the O/S: Open failed: Could not open file D:\ProjectData\AdventureWorks\AdventureWorksLT2008_Data.mdf for file number 0. OS error: 5(Access is denied.). I thought "NTFS problem", but System (and I) have modify access to both files. I found that I can successfully attach the database if I log in as sa, but my user account won't work. I am a member of the local administrators group on my