Prash's Blog

“Congratulations you have won” audio in Chrome March 6, 2012

Filed under: Uncategorized — prazjain @ 9:36 pm
Tags: , , , ,

Few days back I heard an audio playback “Congratulations you have won” on my laptop and since then it just persisted. Normally it used to happen when I am surfing web, suddenly a loud audio will play in background saying “Congratulations you have won”. After a day or two I noticed that my youtube page was not being displayed properly, i.e. I noticed some extra bits in the page that should not be there or they did not fit in with the rest of the page design.

This got me convinced that I have some malware or virus on my computer and I checked my computer for malware and viruses but could not find anything, over the time the playback audio just became more and more frequent like once every 5 minutes.

Eventually I found that this is because of one of the extensions that are installed with chrome, and I disabled that extension as below :

And my computer and youtube were restored in correct state, no more annoying audio!


Restore of database failed : Operating System returned error Access denied March 5, 2012

Filed under: C# — prazjain @ 12:13 pm
Tags: ,

I was restoring a database backup in sql server after a long time, and hit upon this error. Well how difficult can restoring a db backup be in sql server express.
Hmm, not that difficult, here is what happened.

Error Message:

System.Data.SqlClient.SqlError: The operating system returned the error '5(Access is denied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\MDS.mdf'. (Microsoft.SqlServer.SmoExtended)

The backup creator had MSSql version 10 installed, so when he took the backup it also stores the original file path (to be able to restore it in same location), but I had version 11, so it could not find the destination directory.

So I changed the output file directory to C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\, and it was able to restore the database successfully.