I just found this article that helped me to find the answer about the weird results with my log files produced by ASP.NET application:
log4net contextual properties and ASP.NET
Big thank you to the author!
I just found this article that helped me to find the answer about the weird results with my log files produced by ASP.NET application:
log4net contextual properties and ASP.NET
Big thank you to the author!
A lot of people know how to restore an SQL Server database using the SQL Server Management Studio. Sometime it will not work if the database is in use. You have to close all active connections or even to take database offline and then online again.
It is much easier to restore the database via the attached script. Just unzip the file to a folder called C:\RestoreDB and copy the backup file to the same folder. Then edit RestoreDB.bat file and update it with the appropriate information – server name, user name, password, backup name, etc.
The last step is to run RestoreDB.bat – you can double-click it in Windows explorer or can oped a DOS prompt change the folder to C:\RestoreDB and run the script by typing its name and pressing “Enter” key.
Note: This post is more than an year old. You can still use it to install FreeNAS on USB but I strongly recommend you to read the new one first which is much simpler:
Installing FreeNAS to USB stick (new and simpler way)
FreeNAS is an Open Source Storage Platform based on FreeBSD and supports sharing across Windows, Apple, and UNIX-like systems. It comes with a lot of protocols and services
Do you know how to search for a piece of text inside multiple files in Windows. I do not – not anymore. Earlier versions of Windows had this feature but I cannot figure out how to do it in Windows 7. It seems you have to index your files and folders and then maybe you can find what you are looking for. I do not want to do this.
In Unix and Linux you can use grep for this. Luckily there are some similar programs for Windows too. I found this one: AGREP
Go to Download page and get the stand-alone executable for Win95 and Win/NT (link)
Extract the archive – there is one file called agrep.exe. I copied it to C:\Windows\System32. This folder by default is in the PATH environment variable so you will be able to run the command from everywhere (no matter which is your current working folder).
Open the command prompt and try to search:
c:\> agrep -r word_to_search_for .
This will search all the files in the currect folder and all sub-folders for the word word_to_search_for
If you just type agrep it will show help and usage information.
Recently I was looking to buy a good computer speakers and was wondering how to test the sound. Then I found these:
This is a very useful video that describes how to configure FreeNAS iSCSI as a data store for ESXi. The credits go to mrholverson
A copy of this video is available here
USE [TestDb]
GO
ALTER DATABASE [TestDb] SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(TestDbLog, 1)
ALTER DATABASE [TestDb] SET RECOVERY FULL WITH NO_WAIT
GO
Watch the video here:
or download it from here.
Step 1. Connect to ESXi console and press the Alt+F1 key combination.
Step 2. Type unsupported and then press . Note that nothing will appear on the screen whilst you type this.
Step 3. When prompted enter in the Root password and press.
Step 4. You will now be presented with a prompt on the console. From this prompt type vi /etc/inetd.conf
Step 5. vi (the file editor) has now opened the inetd.conf file. Using the direction arrows scroll through the lines until you reach the line that has #ssh and remove the hash (ie: #). This is effectively un-commenting this line so that the ssh service can be started.
Step 6. Now that you have made this minor file you want to save this change and exit out of the editor (vi). To do this press the ESC key (to put vi back into Command Mode) and then type :wq *Note: If you want to exit without saving any changes to the file then just press the ESC key (Command Mode) and then type :q!.
Step 7. With the SSH service now un-commented from this file we want to restart the