Search inside files under Windows

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.

Test your speakers with these sounds

Recently I was looking to buy a good computer speakers and was wondering how to test the sound. Then I found these:

Configure FreeNAS iSCSI and VMWare ESXi (w/AUDIO!)

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

TRUNCATE Log File in SQL Server 2008

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

How to upgrade to VMware ESX 4.1 or VMware ESXi 4.1 using esxupdate

Watch the video here:

or download it from here.

VMware ESXi

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

How To Download YouTube Videos

  1. find the URL of your favorite YouTube video
  2. go to VideoDownloadX.com and paste the video URL into their download box
  3. now click “Download” and it will present a list of links to download video in different formats / quality