Reflections on Software Development

Personal Blog of Mustafa Basgun

How To Take Screenshots Of Windows Mobile Emulator

leave a comment »

Followings are the steps to take screenshots of your Windows Mobile emulator:

1. Start > All Programs > Visual Studio 2008 > Remote Tools > Remote Zoom In

2. In the “Remote Zoom In” tool, choose the appropriate emulator:

If this menu is not opened as default, go to Target > Connect in “Remote Zoom In” tool.

3. Click on the Refresh (F5) button to take a new screenshot.

Written by Mustafa Basgun

June 7, 2009 at 6:33 PM

Posted in Mobile Experiences

Getting Connection String From Web.Config Inside A DLL Code

leave a comment »

I have been working on creating some .NET dlls at work which would commonly be utilized by our web applications. And, one of the requirements was getting the connection string information from web.config file. Simply making the call by using the ConfigurationManager class wouldn’t work since it was giving some kind of compile time error when you try to build the dll. So, I needed to find a workaround to retrieve the connection string from either connectionStrings or appSettings elements. Here is the solution that I have figured out so far.

Necessary namespaces:

Generic function that grabs the information based on your connection string name:

Sample usage:

To understand the ConnectionStringSettingsCollection and NameValueCollection classes, followings links would be helpful:

- http://msdn.microsoft.com/en-us/library/system.configuration.connectionstringsettingscollection.aspx
- http://msdn.microsoft.com/en-us/library/system.collections.specialized.namevaluecollection.aspx

Written by Mustafa Basgun

March 22, 2009 at 7:20 AM

Posted in ASP.NET, C#, Web Development

Best Practices for Speeding Up Your Web Site

leave a comment »

There are tones of programming practices that I have been doing while developing an online application without even knowing or thinking about the technical reasons behind them; such as placing stylesheets at the top between the head tags, preferring CSS sprites to create menu items, utilizing <link> instead of @import, putting or linking the heavy JavaScript code at the bottom, etc.. This list can easily get longer.

While googling a solution to fix an issue in one of my development projects, I just found a very useful article from Yahoo Developer Network which explains all the things that I mentioned above along with some other cool practices.

Click here to read it, and then print and bookmark it.

Written by Mustafa Basgun

February 12, 2009 at 6:04 AM

Here Comes Another Bubble v1.1 – Sit Back and Enjoy!

with one comment

Written by Mustafa Basgun

January 1, 2009 at 9:45 AM

Posted in Miscellaneous, Personal

Everything You May Want to Know About Azure Briefly

leave a comment »

Here are two introductory presentations by David Chou about Azure. They both give a great overview of Microsoft’s Cloud Computing platform.

Written by Mustafa Basgun

December 7, 2008 at 10:44 AM

Posted in Web Development