July 2011

Sql Server - The log for database 'CRC1' is not available. Check the event log for related error messages.

Databases: 

This week 2-3 days back, I got a really strange Sql Server error when browsing to one of my ASP.NET applications in the brower on my development server. As soon as I opened the app, the following error greeted me: M8ZWJBN5J8RV

 

 

The log for database 'CRC1' is not available. Check the event log for related error messages. Resolve any errors and restart the database.

 

Javascript - Some quick javascript utility methods for XSS filtering

Tags: 
Web 2.0: 

I often find myself needing to "eval" some content in javascript, where the content happens to be the name of a callback method (sometimes from another iframe on the same web page, e.g. parent.Portal.onWallRendered). You see I create a lot of frameworks that can be hosted by external apps, so those frameworks allow passing in the name of the method to be invoked back when it has rendered on the page (often dynamically on demand) as a query-string parameter.