Categories
Uncategorized

Connection Issue: Visual Studio 2010 Express, MS SQL Server 2008 and Windows 7

I installed VS2010 Express Edition which installed SQL Server 2008 Express edition along side. But I was failing to add a connection to the SQL Server 2008 Instance from Visual Web Developer. I was getting the notorious error 40 on my Windows 7 Ultimate.

Searching the web came up with too many details. I went through them and tried them one by one blindly as I am new to the .NET platform.

Finally, what worked for me is to download and install SQL Server 2008 again, this time with the default instance name. Then in Visual Web Developer, I navigated to Tools > Options. I checked the “Show all settings” box to view all the options. In the Database Connection section, I removed the existing value. An empty field falls back to the default value.

That did the trick for me. I can now connect and create databases using the Visual Web Developer 🙂

Categories
Uncategorized

SQL Injection: A comic strip

An interesting comic from XKCD. This one portraits a nice joke about SQL Injection. Check out!

Categories
Uncategorized

For Web Developers: How to force high quality images despite GP’s data optimization!

I have an exam tomorrow and haven’t prepared well for that. So, I need to run 🙂 Here’s the summary : If you’re concerned about Grameen Phone forcing low quality image into the pages and making your website look ugly, here’s the solution. Just put the following code anywhere after the head tag and your visitors will always see full quality images.

The JS I wrote will force high quality images on your website 🙂 Remember, this might not affect any images residing in iFrame, eg. The facebook fan box. I need to write it from scratch for that. Currently it’s just a stupid hack 😀