outcoldman

Stories kicked by outcoldman

Small sample of using Code Contracts(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 8 months ago

I had read about Code Contracts long time ago, but I didn’t see a reason to use contract instead of simple tests and argument's check with Exception's throws. Only now I’m trying to use them at real project. I didn’t see why I need to write:Contract.Requires read more...

add a comment |category: |Views: 6

tags: another

Register hotkey in system for WPF application(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 8 months ago

Couple days ago I got a question about how to register hotkey in Windows for WPF application. I remembered that one year ago I was solving the same problem in WinForms application, I was registering hot keys for my application, it was Vista Keys Extender project. I knew that my project worked, so I suggested author of question to use code of my project to solve his problem. But as we learned later in WPF message handle mechanism different from WinForms. So I started to find solution for WPF application. ... read more...

add a comment |category: |Views: 47

tags: another

Config Transformation Tool: Parameters support(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 8 months ago

Couple of weeks ago I wrote about my small utility Config Transformation Tool, which I wrote with base of web.config transformation task. In those moments I was thinking about opportunity to pass parameters to transform file, to tool can replaces parameters in transformation file with special values. Yesterday I resolved this issue. From now I use class Microsoft.Web.Publishing.Tasks.XmlTransformation which works with strings and XmlDocuments instead of files. I had two tasks: (a) I need method which will replace parameters on values, (b) I need method which will be parse command line and create dictionary of parameters. read more...

add a comment |category: |Views: 5

tags: another

Wrox–Professional WCF 4–Windows Communication Foundation with .NET 4(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 8 months ago

Couple of weeks ago I got a paper copy of book Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner - Professional WCF 4: Windows Communication Foundation with .NET 4. This book has not a lot of pages, just about 400. Really, I don’t remember when I saw so thin book about some technology. But maybe this book has not a lot pages, but a lot of interesting themes. read more...

add a comment |category: |Views: 11

tags: another

Config Transformation Tool(ctt.codeplex.com)

submitted by outcoldmanoutcoldman(100) 1 year, 9 months ago

Config Transformation Tool gives opportunity to use XDT Transformation Syntax like at Deployment Web Application Project for any files. read more...

add a comment |category: |Views: 4

tags: another

Working with CodePlex. How to save password for project?(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 9 months ago

I want to make public one small project on CodePlex. Everybody knows that you can work with CodePlex like with TFS client and with SVN client as well. But really I can’t work with it from SVN client. When I tried to add some binary file (it was dll) I got the error “Server sent unexpected return value (200 OK) in response to PUT request for …”. How to solve this problem I don’t know, I found thread at CodePlex's discussions Can't commit binary files using TortoiseSVN, but last message was at past year. O... read more...

add a comment |category: |Views: 8

tags: another

Schedule a daily backup with SQL Server Express(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 9 months ago

As you know MS SQL Server Express Edition hasn’t Agent Service, which can be used to schedule daily backups or other periodic administrative tasks. But you can use for this standard Windows Schedule tool. read more...

add a comment |category: |Views: 15

tags: another

RESTful WCF Service – How to get browser version at server code(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 9 months ago

At our product we have a client Silverlight part and server-code part, which contains a lot of WCF methods. We don’t use ASP.NET Compatible mode, because we want to leave an opportunity to deploy server part to server without web-server role (without IIS). Really, I don’t know why we chose this way, because all of our installations at current moment are on IIS. But we have what we have, so we haven’t ASP.NET Compatible mode, and as an expected result we can’t get HttpContext.Current instance at server WCF methods. One of WCF Service is a RESTful service, which at his methods returns report files, so it can handle GET-queries from browsers. read more...

add a comment |category: |Views: 5

tags: another

C# 4.0 in a Nutshell, Fourth Edition(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 1 year, 11 months ago

Just became a lucky owner of this book C# IN A NUTSHELL 4th edition. This is a fourth edition of this book’s series. I should say that I didn’t read this book by end, but already I was surprised. Why? Why I heard a lot about Richter CLR via C#, and just a few words about C# IN A NUTSHELL, at least in my sphere. My opinion is - you should read Richter if you want to develop with .NET. But if you want to develop on .NET with C# you should read C# IN A NUTSHELL too. read more...

add a comment |category: |Views: 4

tags: another

Export data to Excel from Silverlight/WPF DataGrid(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 2 years, 1 month ago

At this article I'll show you how to work with Excel object from .NET 4 and Silverlight 4 with dynamic objects and give you an approach which allow you to export data from DataGrid Silverlight and WPF controls. read more...

add a comment |category: |Views: 291

tags: another

Developing web application with time zones support(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 2 years, 1 month ago

When you develop web application you should know that client PCs can be located anywhere on earth. Even if you develop app just for your country users you should remember it (in Russia now we have 9 time zones, before 28 of March we had 11 time zones). On big sites with many members do it very easy – you can place field “time zone” in member profile, in Sharepoint I saw this solution, and many enterprise app do it like this. But if we have simple website with blog publications or website with news and we... read more...

add a comment |category: |Views: 13

tags: another

Method extension for safely type convert(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 2 years, 2 months ago

Recently I read good Russian post with many interesting extensions methods after then I remembered that I too have one good extension method “Safely type convert”. Idea of this method: int i; i = "1".To<int>(); // i == 1 i = "1a".To<int>(); // i == 0 (default value of int) i = "1a".To(10); // i == 10 (set as default value 10) i = "1".To(10); // i == 1 read more...

add a comment |category: |Views: 6

tags: another

Regular Expressions. Remember it, write it, test it.(outcoldman.ru)

submitted by outcoldmanoutcoldman(100) 2 years, 2 months ago

I should say that I’m fan of regular expressions. Whenever I see the problem, which I can solve with Regex, I felt a burning desire to do it and going to write new test for new regex. Previously I had installed SharpDevelop Studio just for good regular expression tool in it. But now I’m a little wiser, and for each Regex I write a separate test. Now I want to show you little samples of regular expressions and want to show you how to test these samples. read more...

add a comment |category: |Views: 9

tags: another

Deep Zoom Composer in production(msmvps.com)

submitted by outcoldmanoutcoldman(100) 2 years, 7 months ago

Recently Konstantin Kishinsky (Microsoft Russia) presented in his blog Deep Zoom Composer 1.0 (in russian), which everyone can download from Microsoft site. What is it and how it works - you can find in user guide. And now i want to show you how we can use it in production. read more...

add a comment |category: |Views: 10

tags: another