Thursday, June 17, 2010

Friday, June 11, 2010

Cookieless Session Problems in ASP.NET

A web app needs to embed my web app in an IFrame. IE doesn't trust cookies from inside the IFrame, thus necessitating cookieless browsing. The caveats of cookieless browsing are discussed in this article.

Cookieless Session Problems in ASP.NET

Thursday, June 10, 2010

Git Reference

Wow -- this is great. From GitHub, an essential Git reference. Their documentation tends to rock.

Git Reference

Tuesday, June 08, 2010

Parameterized unit tests using Pex - reducing code written

Peli's Farm - Pex, Stubs, Moles, QuickGraph, MbUnit, Reflector Addins - Test Driven Development With Parameterized Unit Tests: "The key difference is the shortcut from step 4 (generating unit tests) to 3 (fix the code), without passing through step 1 (write a new test). This is illustrated by the yellow feedback loop in the diagram below:"

Thursday, May 06, 2010

Debugging classic ASP web application with Visual Studio 2010

If you Google that, you should be referred instead to Monster.com or to a mental health clinic.

Why, oh why, do people still use classic ASP?

Thursday, April 29, 2010

Using .NET: Tame Your Software Dependencies for Flexible Apps

It's from Microsoft, right, so it must be authoritative?

This uses Castle Windsor and Binsor, a Boo (!) DSL for wiring up dependencies.

Using .NET: Tame Your Software Dependencies for Flexible Apps

Wednesday, April 21, 2010

Git autocrlf problem revisited -- and solved!

Sometimes when switching from one branch to another, Git will pick a seemingly random set of files and complain that they've changed, when it's just line endings that apparently it doesn't like. The key symptom here is that "git diff" shows a ton of files whose entire contents have changed, while "git diff -w" shows no changes in those same files.

The following commands, issued in a row, will work:

git add -u
git config core.autocrlf false
git reset
git config --unset core.autocrlf


This assumes that you've got core.autocrlf normally on by default in the global settings file. If you do not, then replace the last line with the following:

git config core.autocrlf true

Or, to consolidate in one command, the first version is:

git add -u && git config core.autocrlf false && git reset && git config --unset core.autocrlf

while the second is:

git add -u && git config core.autocrlf false && git reset && git config core.autocrlf true

Reblog this post [with Zemanta]

MSLinqToSQLGenerator fails when there's a partial class having a Using at the top of the file | Microsoft Connect

Finally. Resolution!

MSLinqToSQLGenerator fails with partial class having a Using at the top of the file | Microsoft Connect: "If you add a partial class declaration to a Linq-To-SQL Data Classes context object, and then put a 'using' statement at the top of the file outside the namespace declaration, the following error occurs when you run the custom tool:

'The custom tool 'MSLinqToSQLGenerator' failed. Unspecified error'

Also, Visual Studio will then delete the corresponding '.designer.cs' file for your data context and nothing will compile after that point."

Thursday, April 01, 2010

Tuesday, March 30, 2010

Jeffrey rambles about Rx, .NET and programming in general. : Time flies like an arrow in Script#

Jeff Van Gogh of Microsoft demonstrates Reactive Extensions for Javascript (RxJS) and Nikhil Kothari's Script#

Jeffrey rambles about Rx, .NET and programming in general. : Time flies like an arrow in Script#: "Time flies like an arrow in Script#

As kouPhax requested this on the Rx forum, I decided to post a port to Script# of the Time flies like an arrow sample that ships with Rx for JavaScript.

Rx for JavaScript already ships with a binding for Script#, so that will make our lives a lot easier (you can find the binding in \Redist\ScriptSharp\RxJs.dll)"

Friday, March 19, 2010

Tsung

Tsung: "It can be used to stress HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP and Jabber/XMPP servers. Tsung (formerly known as IDX-Tsunami) is a free software released under the GPLv2 license.

The purpose of Tsung is to simulate users in order to test the scalability and performance of IP based client/server applications. You can use it to do load and stress testing of your servers. Many protocols have been implemented and tested, and it can be easily extended. WebDAV, LDAP and MySQL support have been added recently (experimental).

It can be distributed on several client machines and is able to simulate hundreds of thousands of virtual users concurrently (or even millions if you have enough hardware ...).

Tsung is developed in Erlang, an open-source language made by Ericsson for building robust fault-tolerant distributed applications.

Tsung is supported by Process-One"

Wednesday, March 17, 2010

Create a self-signed SSL certificate with IIS 6.0 Resource Kit SelfSSL

Create a self-signed SSL certificate with IIS 6.0 Resource Kit SelfSSL: "The IIS 6.0 Resource Kit version 1.0 was released 5/30/2003. It contains a utility called SelfSSL.exe for instantly creating and installing a self-signed testing certificate into IIS. The resource kit is freely downloadable from the Microsoft website. Although the tool is intended for IIS 6.0, it works just as well on IIS 5.1. It is so simple to use that no instructions are required beyond the pointer to the download."