Posts

I watched the ted video on "flow" by Mihaly Csikszentmihalyi

http://www.ted.com/talks/mihaly_csikszentmihalyi_on_flow?language=en#t-801325   Mihaly Czikszentmihalyi asks, "What makes a life worth living?" Noting that money cannot make us happy, he looks to those who find pleasure and lasting satisfaction in activities that bring about a state of "flow."

How to avoid increasing and decreasing the volume of songs when you are listening to different music tracks.

Image
If you are a music fan, you would have definitely faced an issue where some songs are too loud and when you decrease the volume...voila! The next song volume is too low. How do you avoid the small (but really irritating) task of increasing and decreasing the volume? Solution: Normalization to the rescue! Right click on sound icon on the task bar. Click "Playback devices". Select "Speakers". Right click on "Speakers" and click on "Properties". You will see four tabs a. General b. Levels c. Enhancements d. Advanced Click on "Enhancement" tab. You will see four types of enhancements a. Bass Boost. b. Virtual surround c. Room correction d. Loudness Equalization. Click on "Loudness Equalization" to select it. Click on Ok. You are done!! Now try playing two music files recorded at different amplitudes. You will find that both play at the same loudness. Problem solved! Next question: You want to play these music fi...

Using simple methods for data extraction

Image
Here is a simple problem IMDB publishes movies of all time. The list contains 250 movies. Problem : In the web page, there is no sorting based on rating or votes. Goal : I want to sort it by year, so that I can watch movies from latest to the old ones. And year is not a field at all in their table. It will be good to have sorting by votes,rating as well. How to go about it? We can use very simple methods to achieve the solution instead of writing a full fledged program. Steps The first step is to copy the data into excel and separate it out into columns. (Excel can separate it out into columns if we copy the data into a text file and use the import operator.) But there are problems with importing into excel. The two broad types of import are "fixed width" and "delimiter". The length of the movie name is not fixed. So we cannot use fixed width column import. We cannot use space as delimiter. Since movie names contain space. Alternate Solu...

Clearing all event logs

Here is the code to clean up all event logs in the current machine/server. The code is in power shell, as some people feel this is the best language to write scripts on Windows. strComputer = "." Set oWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate,(Security)}!\\" & _ strComputer & "\root\cimv2" ) Set cLogFiles = oWMIService.ExecQuery _ ("SELECT * FROM Win32_NTEventLogFile" ) For Each oLogfile in cLogFiles Wscript.echo("Clearing Logfile " + oLogFile.Name) oLogFile.ClearEventLog() Next

Web driver script

Hasan from Trainline shared with us Selenium WebDriver script. I was using Selenium before Web Driver came into the picture. Need to try this out.   using System; using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.IE ; using OpenQA.Selenium.Remote; using OpenQA.Selenium.Support.UI; namespace WebDriver {     [TestFixture] class TrainlineTest     {         [Test] public void webDriverTest()         { var ieCapabilities = DesiredCapabilities.InternetExplorer();             ieCapabilities.SetCapability(InternetExplorerDriver.IntroduceInstabilityByIgnoringProtectedModeSettings, true); var driver = new InternetExplorerDriver(ieCapabilities);             driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));       ...

The best file search utility–fast and free

Image
I have come across Agent Ransack and it was really fast. Works well if you want to search for text inside a particular file. Initial screen Searching for the text “sync tool is run”.

Visual Studio 2008 Load Test Gotchas!

  I really like this link: http://www.codeproject.com/KB/testing/VS2008LoadTestGotchas.aspx This was shared by our NFT SME.