administration
CouchDB backups and cloning the database
Another thing to be aware of is that you can copy files out from under a live database. Given that you may have a possibly large database, you could just copy it OOB from your test/production machine to another machine. Depending on the write load of the machines it may be advisable to trigger a … Read more
What is the best way to see what files are locked in Subversion?
What you’re looking for is the svnadmin lslocks command. I have this set up at work because we keep some Word documents in our Subversion repository (with svn:needs-lock). I have a cron job set up that every day, checks the list of locks and emails a report of all locks older than 7 days to … Read more
Running IIS Express with admin privileges
For Visual Studio 2015 and 2012 this solution will work. Go to Solution Explorer in Visual Studio, right click the web project and select “Unload Project” Next on the same project, right click and select ‘Edit Project File‘ Find the <DevelopmentServerPort>0</DevelopmentServerPort><IISUrl>http://localhost:56058/</IISUrl> xml tags and and remove them. Reload the project and run. Images to follow:
Can I just kill mongod to stop mongo?
It finally succeeded (Ubuntu 15.04) with //1.find process by name: $ pgrep mongo 1350 //2.kill mongod-process $ kill 1350
What do you do if the file in TFS is locked by someone else?
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 … Read more
SSL Multilevel Subdomain Wildcard
No, it is not possible. A wildcard inside a name only reflects a single label and the wildcard can only be leftmost. Thus *.*.example.org or www.*.example.org are not possible. And *.example.org will neither match example.org nor www.subdomain.example.org, only subdomain.example.org. But you can have multiple wildcard names inside the same certificate, that is you can have … Read more
MongoDB won’t start after server crash
The log file is telling you that you have an “old lock file”. MongoDB keeps a lock file while it’s running. It creates this file when it is started, and deletes it when it’s stopped. When the computer crashes (or MongoDB crashes, e.g. via kill), this file is not deleted, and thus the database does … Read more
Command line tool to delete folder with a specified name recursively in Windows?
Similar to BlackTigerX’s “for”, I was going to suggest for /d /r . %d in (_svn) do @if exist “%d” rd /s/q “%d”