Home Contact RSS

Archive for January, 2008

Live Writer - Open Source Insert Tag Snippet Plugin

InsertTagSnippet I felt like developing my first Live Writer plugin last night then I checked this page to see if someone requests any useful plug-in that I would like to spend my time developer. There were a few ideas about <pre> tag. I thought that it was a good idea to develop such a plugin to insert any tag snippet at anytime because I also need <code> and <pre> tags to share code parts on my blog.

I used an XML file as the data store so it might be a good sample of you seeing how to store settings data of your own plugin.

If you need to see how to develop a Live Writer plugin using C#, you can see its code on CodePlex: http://www.codeplex.com/InsertTagSnippet

If you just want to download and install the plugin, you can do that here: http://gallery.live.com/liveItemDetail.aspx?li=[...]

Windows Live Writer

wlwriterMartin has told me a lot about Windows Live Writer and I wanted to give it a try. The UI looks perfect, it supports a lot of blog types and most importantly, it doesn’t need you to make a lot of experimental settings.

What I did to set it up was just writing my blog’s URL, username and password. I could not believe that it was all!

You can click the screen shot of the UI above to see the bigger version of it so you can have an idea what it really looks like.

When you look at the screen shot, you will see that it is not just a basic Rich Text Editor replacement of your blog’s admin panel. It download the CSS files that your blog uses and you write your post like you are editing the content directly on the post page.

Visual Web Developer 2008 and Visual C# 2008 Express Editions

This is not a recent news, Visual Web Developer 2008 Express Edition and Visual C# 2008 Express Editions have been available for download for a long time and as you know, they are for FREE. I just wanted to confirm that all my visitors are aware of this news.

Product links:

ConfigSource Property: Dividing configuration files into pieces

If you need to divide the web.config or app.config file into pieces for any reason - imagine you just don’t like a lot of settings of components that you will never need to change - it is even possible in .NET. The only thing you have to find out is how to use “ConfigSource” property of System.Configuration.SectionInformation (MSDN: Contains metadata about an individual section within the configuration hierarchy.) class.

Each configuration section that derives from this class has the ability of getting its configuration settings from a separate “config” file.

In a case that you would like to store your connections strings in a different “config” file, the way you have to follow is shown in the example below.

web.config file:

<?xml version="1.0"?>
<configuration>
  <connectionStrings configSource="ConnectionStrings.config" />
  <system.web>
    <!-- settings... -->
  </system.web>
</configuration>

ConnectionStrings.config file:

<connectionStrings>
  <clear />
  <add name="SqlServer" connectionString="..." />
</connectionStrings>

.NET Framework source code is now open to the public

I know that we all have been waiting for this great news for a long time. Now you can download symbols for .NET Framework source code and you can see or even debug the framework’s itself.

ScottGu has a long post describing how you can access this feature in Visual Studio 2008.

This is what he says:

Last October I blogged about our plan to release the source code to the .NET Framework libraries, and enable debugging support of them with Visual Studio 2008. Today I’m happy to announce that this is now available for everyone to use. Specifically, you can now browse and debug the source code for the following .NET Framework libraries:

.NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, etc).
ASP.NET (System.Web, System.Web.Extensions)
Windows Forms (System.Windows.Forms)
Windows Presentation Foundation (System.Windows)
ADO.NET and XML (System.Data and System.Xml)
We are in the process of adding additional framework libraries (including LINQ, WCF and Workflow) to the above list. I’ll blog details on them as they become available in the weeks and months ahead.

To read the rest of the post, please follow this page.

Language change of blog content

If you are not a first time visitor of my blog, you may have already realized that I started to post in English instead of Turkish. I even changed the language of the navigation and pages - ok, most of them.

It was not so easy to take the decision to change the mother language of my blog. But I don’t think it was fair not to share my experiences with other people all around the world. I am aware of that there is a high risk of loosing my current Turkish visitors. I just really want to give it a chance to keep writing in English and Turkish at the same time. I will try to implement a multilingual feature on my blog system as soon as possible and I will again start posting in Turkish, I promise.

I would like to apologize from my visitors for not being able to post in two different languages at the moment and you still know that you can contact me using the contact page.

Why Does Server.GetLastError() Return NULL

If .NET Framework insist on not telling you what the exception was then you have to start checking Context.AllErrors.

I wanted to check what can be the reason to make GetLastError() method angry with myself and tried search engines to see what other people say about it. Most of the people keep writing that GetLastError method of Server object returns null if you want to call it inside a page’s load or in the error page that causes a redirection and makes you loose the Exception object.

Well, I really don’t try to implement a page specific error handling architecture. What I am doing is simply trying to access the last error within the Error event of the Context instance in my custom IHttpModule.

Read the rest of this entry »

VirtualPathProvider In Precompiled Web Sites

After finishing a project and deploying it on a public server, it is normal that you expect some problems or to-dos like some configuration changes in “web.config” file or somewhere else if you preferred implementing your own configuration architecture.

The question is that if you would expect something to break depending on your choice of deployment, e.g. Precompiled deployment or not. My answer was no until 3 days ago but it is a screaming “YES” for now.

What I am talking about is System.Web.Hosting.VirtualPathProvider class located in System.Web assembly. This class insists on not registering itself to the HostingEnvironment (System.Web.Hosting.HostingEnvironment) if you prefer deploying your website using precompilation.

Read the rest of this entry »

Yerel Yazılım Ekonomisi ve Microsoft

Değerli arkadaşlarımın da katkıda bulunduğu DevTr‘deki yazılara göz atarken çok güzel bir video paylaşımına denk geldim. Başlığı da değiştirmeden, aflarına sığınarak video’yu sizinle paylaşıyorum. Dilerseniz yazının orjinal halini de http://devtr.spaces.live.com/blog/cns!9DB6E0C68D0E8C29!219.entry adresinde okuyabilirsiniz.


Video: Turkey LSE Summary