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."

Wednesday, March 03, 2010

Introducing SelectorGadget: point and click CSS selectors

Danny Burkes showed this in a demo today.

Introducing SelectorGadget: point and click CSS selectors: "SelectorGadget is an open source bookmarklet that makes CSS selector generation and discovery on complicated sites a breeze. Just drag the bookmarklet to your bookmark bar, then go to any page and press it. A box will open in the bottom right of the website. Click on a page element that you would like your selector to match (it will turn green). SelectorGadget will then generate a minimal CSS selector for that element, and will highlight (yellow) everything that is matched by the selector. Now click on a highlighted element to remove it from the selector (red), or click on an unhighlighted element to add it to the selector. Through this process of selection and rejection, SelectorGadget helps you come up with the perfect CSS selector for your needs."

Tuesday, March 02, 2010

Glimmer: a jQuery Interactive Design Tool - Home

I heard about this on April 29, 2009, but I'll blog about it now.

Glimmer: a jQuery Interactive Design Tool - Home: "Without having to touch a piece of JavaScript code, harness the power of the jQuery. With Glimmer: a jQuery Interactive Design Tool, easily create interactive experiences and use the tool to discover ways to add animation and other effects to your site in new and unexpected places. Glimmer is a Windows application which generates jQuery, XHTML and CSS. If jQuery is the “write less, do more” JavaScript library, then Glimmer is the “write none, do more” jQuery design tool."

Quick and Dirty Guide to Configuring Log4Net For Web Applications

This line of code is a gem:
private static readonly ILog Log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

Quick and Dirty Guide to Configuring Log4Net For Web Applications


My code:
private static readonly ILog Log { get; set; }

static ClassConstructor()
{
    Log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
    log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(HttpContext.Current.Server.MapPath("~/log4net.config")));
}

Monday, March 01, 2010

The Kayak Framework: An easy way to speak HTTP with .NET

I'll have to look into this. It's like a thttpd for .NET/CLR.

The Kayak Framework: An easy way to speak HTTP with .NET: "Kayak is a lightweight HTTP server for the CLR, and the Kayak Framework is a utility for mapping HTTP requests to C# method invocations. With Kayak, you can skip the bulk, hassle, and overhead of IIS and ASP.NET. Kayak enables you to do more with less syntax, and is easy to configure to work in any way you care to dream up."

Thursday, February 25, 2010

Rich Internet Application Screen Design | UX Magazine

Great article!

Rich Internet Application Screen Design | UX Magazine: "Designing a rich Internet application (RIA) can test even an experienced design team. The hardest challenge is to blend Web and desktop paradigms to create a responsive and intuitive experience. Some paradigms that exist in the desktop environment are ill-suited for the Web, while many of the Web paradigms people are familiar with (paging, explicit refresh) are no longer necessary with RIA technologies like Flex and Ajax. As this space matures, we are learning more and more about which boundaries can be pushed, and which patterns transcend time and technology. While working on the book Designing Web Interfaces, Bill Scott and I explored hundreds of Web applications searching for these patterns. Armed with a crazy amount of examples, we distilled the patterns into six principles:
  • Make It Direct
  • Keep It Lightweight
  • Stay in the Page
  • Provide Invitations
  • Use Transitions
  • React Immediately"

Wednesday, February 24, 2010

Flapjax

Very, very interesting:

Flapjax: "Flapjax is a new programming language designed around the demands of modern, client-based Web applications. Its principal features include:
  • Event-driven, reactive evaluation
  • An event-stream abstraction for communicating with web services
  • Interfaces to external web services
Flapjax is easy to learn: it is just a JavaScript framework. Furthermore, because Flapjax is built entirely atop JavaScript, it runs on traditional Web browsers without the need for plug-ins or other downloads. It integrates seamlessly with existing JavaScript code and other frameworks."

F# Web Tools | Projects | TomasP.Net

F# Web Tools | Projects | TomasP.Net

Looks interesting. There's a commercial product similar to this whose name escapes me at present.

Object Oriented JavaScript Class Library in C#/.NET Style - CodeProject

Object Oriented JavaScript Class Library in C#/.NET Style - CodeProject

This is a really good guide on C# coding style in Javascript! He shows how to make classes, public, private, event handlers, enums, etc. Smart guy!