gpeipman
Name: gpeipman
Score: 3,910.06
Last Seen: 773 days, 1 hour, 14 minutes ago
Member Since: 3 March, 2009
DotNetShoutout
atom rss
2
Shouts

Using ExcelPacke to create Excel sheets on server

published 1090 days, 14 hours, 28 minutes ago posted by gpeipmangpeipman 1091 days, 14 hours, 33 minutes ago
Monday, May 31, 2010 10:39:44 AM GMT Sunday, May 30, 2010 10:35:28 AM GMT
In one of my community projects I needed to output some listings as Excel file. As installing Excel to server is non-sense that I was easily able to avoid I found simple solution for Excel 2007 files – open-source project called ExcelPackage. In this posting I will show you hot to create simple event attendees report in Excel 2007 format using ExcelPackage. (more)
category: Web Dev | clicked: 0 | comment | | source: weblogs.asp.net
tags: Excel, ASP.NET
3
Shouts

JavaScript: Creating timestamps with time zone offsets

published 1090 days, 14 hours, 28 minutes ago posted by gpeipmangpeipman 1091 days, 14 hours, 34 minutes ago
Monday, May 31, 2010 10:39:44 AM GMT Sunday, May 30, 2010 10:33:59 AM GMT
I was converting the example code of my Windows Azure session to Visual Studio 2010 solution called MVC Time Planner when I discovered some date and time offset issues in my JavaScript code. In this posting I will show you some useful tricks you can use to convert JavaScript dates and times to timestamps. (more)
category: Smart Client | clicked: 0 | comment | | source: weblogs.asp.net
tags: client-side development, JavaScript
6
Shouts

Code Contracts: validating arrays and collections

published 1092 days, 14 hours, 1 minute ago posted by gpeipmangpeipman 1093 days, 4 hours, 57 minutes ago
Saturday, May 29, 2010 11:06:50 AM GMT Friday, May 28, 2010 8:10:29 PM GMT
Validating collections before using them is very common task when we use built-in generic types for our collections. In this posting I will show you how to validate collections using code contracts. It is cool how much awful looking code you can avoid using code contracts. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio
5
Shouts

Clean Code: A Handbook of Agile Software Craftsmanship – book review

published 1091 days, 14 hours, 35 minutes ago posted by gpeipmangpeipman 1094 days, 5 hours, 51 minutes ago
Sunday, May 30, 2010 10:32:51 AM GMT Thursday, May 27, 2010 7:16:52 PM GMT
Writing code that is easy read and test is not something that is easy to achieve. Unfortunately there are still way too much programming students who write awful spaghetti after graduating. But there is one really good book that helps you raise your code to new level – your code will be also communication tool for you and your fellow programmers. (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: Programming
9
Shouts

ASP.NET: Using pickup directory for outgoing e-mails

published 1091 days, 14 hours, 35 minutes ago posted by gpeipmangpeipman 1094 days, 6 hours, 41 minutes ago
Sunday, May 30, 2010 10:32:51 AM GMT Thursday, May 27, 2010 6:26:50 PM GMT
Sending e-mails out from web applications is very common task. When we are working on or test our systems with real e-mail addresses we don’t want recipients to receive e-mails (specially if we are using some subset of real data9. In this posting I will show you how to make ASP.NET SMTP client to write e-mails to disc instead of sending them out. (more)
category: Web Dev | clicked: 1 | comment | | source: weblogs.asp.net
tags: e-mail, ASP.NET
5
Shouts

Code Contracts: How they look after compiling?

published 1097 days, 12 hours, 28 minutes ago posted by gpeipmangpeipman 1099 days, 5 hours, 35 minutes ago
Monday, May 24, 2010 12:40:04 PM GMT Saturday, May 22, 2010 7:32:36 PM GMT
When you are using new tools that make also something at code level then it is good idea to check out what additions are made to code during compilation. Code contracts have simple syntax when we are writing code at Visual Studio but what happens after compilation? Are our methods same as they look in code or are they different after compilation? In this posting I will show you how code contracts look after compiling. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio, compilator
6
Shouts

ASP.NET MVC: Using jQuery context menu with tables

published 1097 days, 12 hours, 28 minutes ago posted by gpeipmangpeipman 1099 days, 6 hours, 21 minutes ago
Monday, May 24, 2010 12:40:04 PM GMT Saturday, May 22, 2010 6:47:13 PM GMT
I needed to add context menus to some tables of my intranet application. After trying some components I found one that does everything I need and has no overhead. In this posting I will show you how to use jQuery context menu plug-in and how to attach it to tables. (more)
category: Web Dev | clicked: 17 | comment | | source: weblogs.asp.net
tags: context menu, jQuery, MVC, ASP.NET
4
Shouts

ASP.NET MVC: Creating vCard action result

published 1098 days, 14 hours, 6 minutes ago posted by gpeipmangpeipman 1099 days, 10 hours, 18 minutes ago
Sunday, May 23, 2010 11:01:46 AM GMT Saturday, May 22, 2010 2:49:58 PM GMT
I added support for vCards to one of my ASP.NET MVC applications. I worked vCard support out as very simple and intelligent solution that fits perfectly to ASP.NET MVC applications. In this posting I will show you how to send vCards out as response to ASP.NET MVC request. (more)
category: Web Dev | clicked: 5 | comment | | source: weblogs.asp.net
tags: Action Filter, MVC, ASP.NET
7
Shouts

Using Sandcastle to build code contracts documentation

published 1098 days, 14 hours, 6 minutes ago posted by gpeipmangpeipman 1100 days, 13 hours, 6 minutes ago
Sunday, May 23, 2010 11:01:46 AM GMT Friday, May 21, 2010 12:01:38 PM GMT
In my last posting about code contracts I showed how code contracts are documented in XML-documents. In this posting I will show you how to get code contracts documented with Sandcastle and Sandcastle Help File Builder. (more)
category: How To | clicked: 2 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010, Sandcastle, Documentation
5
Shouts

Enabling XML-documentation for code contracts

published 1100 days, 12 hours, 45 minutes ago posted by gpeipmangpeipman 1101 days, 15 hours, 49 minutes ago
Friday, May 21, 2010 12:22:34 PM GMT Thursday, May 20, 2010 9:19:28 AM GMT
One nice feature that code contracts offer is updating of code documentation. If you are using source code documenting features of Visual Studio then code contracts may automate some tasks you otherwise have to implement manually. In this posting I will show you some XML documentation files with documented contracts. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, code documentation, visual studio 201
4
Shouts

Code Metrics: Number of IL Instructions

posted by gpeipmangpeipman 1102 days, 5 hours, 30 minutes ago
Wednesday, May 19, 2010 7:37:41 PM GMT
In my previous posting about code metrics I introduced how to measure LoC (Lines of Code) in .NET applications. Now let’s take a step further and let’s take a look how to measure compiled code. This way we can somehow have a picture about what compiler produces. In this posting I will introduce you code metric called number of IL instructions. (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: Code Metrics
6
Shouts

F# in ASP.NET, mathematics and testing

published 1108 days, 15 hours, 43 minutes ago posted by gpeipmangpeipman 1109 days, 17 hours, 2 minutes ago
Thursday, May 13, 2010 9:24:37 AM GMT Wednesday, May 12, 2010 8:06:12 AM GMT
Starting from Visual Studio 2010 F# is full member of .NET Framework languages family. It is functional language with syntax specific to functional languages but I think it is time for us also notice and study functional languages. In this posting I will show you some examples about cool things other people have done using F#. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Testing, mathematics, F#, ASP.NET
5
Shouts

Code contracts and inheritance

published 1109 days, 15 hours, 26 minutes ago posted by gpeipmangpeipman 1110 days, 3 hours, 49 minutes ago
Wednesday, May 12, 2010 9:42:25 AM GMT Tuesday, May 11, 2010 9:18:47 PM GMT
In my last posting about code contracts I introduced you how to force code contracts to classes through interfaces. In this posting I will go step further and I will show you how code contracts work in the case of inherited classes. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, Inheritance, Visual Studio 2010
5
Shouts

Invariant code contracts – using class-wide contracts

published 1111 days, 14 hours, 7 minutes ago posted by gpeipmangpeipman 1112 days, 6 hours, 6 minutes ago
Monday, May 10, 2010 11:01:12 AM GMT Sunday, May 09, 2010 7:01:35 PM GMT
It is possible to define invariant code contracts for classes. Invariant contracts should always hold true whatever member of class is called. In this posting I will show you how to use invariant code contracts so you understand how they work and how they should be tested. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010
5
Shouts

Interface contracts – forcing code contracts through interfaces

published 1111 days, 14 hours, 7 minutes ago posted by gpeipmangpeipman 1112 days, 7 hours, 9 minutes ago
Monday, May 10, 2010 11:01:12 AM GMT Sunday, May 09, 2010 5:58:34 PM GMT
Sometimes we need a way to make different implementations of same interface follow same rules. One option is to duplicate contracts to all implementation but this is not good option because we have duplicated code then. The other option is to force contracts to all implementations at interface level. In this posting I will show you how to do it using interface contracts and contracts class. (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010, interface contracts
5
Shouts

Code Contracts: Unit testing contracted code

published 1114 days, 12 hours, 8 minutes ago posted by gpeipmangpeipman 1115 days, 17 hours, 12 minutes ago
Friday, May 07, 2010 1:00:09 PM GMT Thursday, May 06, 2010 7:56:12 AM GMT
Code contracts and unit tests are not replacements for each other. They both have different purpose and different nature. It does not matter if you are using code contracts or not – you still have to write tests for your code. In this posting I will show you how to unit test code with contracts. (more)
category: How To | clicked: 1 | 8 comments | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010, Testing, Unit Test
6
Shouts

Windows Phone 7 development: Using isolated storage

published 1113 days, 17 hours, 29 minutes ago posted by gpeipmangpeipman 1115 days, 20 hours, 49 minutes ago
Saturday, May 08, 2010 7:38:35 AM GMT Thursday, May 06, 2010 4:18:56 AM GMT
In my previous posting about Windows Phone 7 development I showed how to use WebBrowser control in Windows Phone 7. In this posting I make some other improvements to my blog reader application and I will show you how to use isolated storage to store information in phone. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Windows Phone 7, Isolated Storage, Visual Studio
7
Shouts

Code Contracts: Hiding ContractException

published 1114 days, 12 hours, 8 minutes ago posted by gpeipmangpeipman 1116 days, 17 hours, 41 minutes ago
Friday, May 07, 2010 1:00:09 PM GMT Wednesday, May 05, 2010 7:26:51 AM GMT
It’s time to move on and improve my randomizer I wrote for an example of static checking of code contracts. In this posting I will modify contracts and give some explanations about pre-conditions and post-conditions. Also I will show you how to avoid ContractExceptions and how to replace them with your own exceptions. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Exception Handling, Code Contracts, Visual Studio 2010
7
Shouts

Using runtime checking of code contracts in Visual Studio 2010

published 1116 days, 15 hours, 20 minutes ago posted by gpeipmangpeipman 1117 days, 18 hours, 14 minutes ago
Wednesday, May 05, 2010 9:48:26 AM GMT Tuesday, May 04, 2010 6:53:48 AM GMT
In my last posting about code contracts I introduced how to check input parameters of randomizer using static contracts checking. But you can also compile code contracts to your assemblies and use them also in runtime. In this posting I will show you simple example about runtime checking of code contracts. (more)
category: How To | clicked: 0 | comment | | source: weblogs.asp.net
tags: Code Contracts, Visual Studio 2010
5
Shouts

How to configure Visual Studio 2010 code coverage for ASP.NET MVC unit tests

published 1117 days, 16 hours, 44 minutes ago posted by gpeipmangpeipman 1118 days, 1 hour, 51 minutes ago
Tuesday, May 04, 2010 8:24:06 AM GMT Monday, May 03, 2010 11:16:52 PM GMT
I just got Visual Studio 2010 code coverage work with ASP.NET MVC application unit tests. Everything is simple after you have spent some time with forums, blogs and Google. To save your valuable time I wrote this posting to guide you through the process of making code coverage work with ASP.NET MVC application unit tests. (more)
category: How To | clicked: 5 | comment | | source: weblogs.asp.net
tags: Visual Studio 2010, Code Coverage, MVC, ASP.NET