Don't do as Johnny don't does.

Originally from dotnet-snippets this lovely piece of code shows the power and danger of LINQ in one go:

var files = from file in new DirectoryInfo(@"C:\").GetFiles()
            where file.Name.StartsWith("_")
            select file;

Sure, you could use that piece of code to search for files… but don't.

(Although surely it can't be long before someone adds deferred execution support for a filesystem? Maybe it's coming in WinFS Forever?)

Tags:

posted @ Thursday, October 02, 2008 8:37 PM | Feedback (0) |

Tweaking machine.config for production deployments

Tweaking .NET Machine.Config For Production Deployments is a useful summary post for anyone deploying ASP.NET applications to production who wants to do a bit of performance tweaking to IIS without spending too much time on it.

Tags:

posted @ Tuesday, September 30, 2008 11:06 PM | Feedback (0) |

Live Writer's latest release doesn't support 64bit XP, again..

I'm getting a little frustrated by Windows Live Writer's seemingly on again off again support for 64 bit operating systems (and I'm talking 64 bit XP here, not sure whether 64bit Vista support is still patchy or not).

This latest beta release once again doesn't support XP 64, whereas this previous one does. I'd be happy enough running the older version, but it seems to have a weird error where posting to Subtext gives me "Illegal Characters Found" when I post, even though the post makes it up onto the site without problems.

Live Writer is such a great tool, I really wish they'd get these recurring installer issues sorted for 64bit Windows XP.

posted @ Monday, September 29, 2008 9:22 AM | Feedback (0) |

jQuery and Microsoft

A while ago I did a bit of exploring into jQuery. I really liked what I saw, and was trying to decide whether to invest a bit of time into knowing it better - but with so many JavaScript frameworks and libraries out there it's hard to know which ones are worthy of attention.

It looks like Microsoft and jQuery have made that decision a lot easier, with this announcement from Scott Guthrie:

I'm excited today to announce that Microsoft will be shipping jQuery with Visual Studio going forward.  We will distribute the jQuery JavaScript library as-is, and will not be forking or changing the source from the main jQuery branch.  The files will continue to use and ship under the existing jQuery MIT license.

We will also distribute intellisense-annotated versions that provide great Visual Studio intellisense and help-integration at design-time.

There's more info in Scott's post, but it looks like set to make ASP.NET AJAX even more compelling. Looks like it's time to dive deeper into jQuery!

Link: Scott Guthrie - jQuery and Microsoft

Link: John Resig - jQuery, Microsoft, and Nokia

posted @ Monday, September 29, 2008 9:10 AM | Feedback (0) | Filed Under [ ASP.NET AJAX Web Development ]

…and while I'm here

At the computer on a Saturday night, waiting for the game to start, there's only one thing left to say – Go the Warriors.

That is all.

posted @ Saturday, September 27, 2008 8:32 PM | Feedback (2) |

The leaving of Xtra's interleaving

A friend pointed out to me last week that Xtra have finally turned off interleaving for customers. The result is a rather noticable drop in ping times to New Zealand sites, as one would expect. However I'm curious to know why they chose to do it, and why they didn't make a bit more noise about it – or am I the only one of their customers who was at all interested?

Tags:

posted @ Saturday, September 27, 2008 8:11 PM | Feedback (0) |

Silverlight 2 Release Candidate Now Available

As the title says, the just announced RC version of Silverlight brings the final release of Silverlight 2.0 one step closer. The RC release looks packed full of fixes, and unfortunately also contains a few breaking changes.

It's one of the hazards of writing code against a beta product, and something I knew would need fixing one day – and it looks like that day might have to be tomorrow!

Link: Scott Guthrie - Silverlight 2 Release Candidate Now Available

posted @ Saturday, September 27, 2008 8:05 PM | Feedback (0) |

Rich Text Editor Recommendations

I've worked with a fair few web based rich text editor controls over the past few years, and I really haven't picked an absolute favorite yet.

I need to pick one shortly for a current project and would welcome some recommendations or comments around past experiences. All I'm after is a basic WYSIWYG editor for small chunks of HTML which is simple enough for use by users who aren't overly technical.

So far I've used: CuteEditor (commercial, and over the top for my requirements), FCKEditor (free, but over the top again), and the yui rich text editor (which I liked, and is free, but it's in beta and seemed to need quite a lot of yui on the page before it could run). I've also looked at a few markdown editors which are pretty appealing in that they're lightweight, however they're not too user friendly.

Any thoughts or recommendations would be appreciated.

posted @ Saturday, September 27, 2008 6:48 PM | Feedback (4) |

XmlUnit

I came across XmlUnit quite by accident the other night, when it was mentioned as a way to programmatically validate and correct HTML. It's actual intended use is to enable unit testing against XML, which is potentially useful too, but right now it's HTML sanity checking that I have a need for. Unfortunately it seems this is something that's only currently available in XmlUnit for Java, and not in it's .NET counterpart.

I've actually seen a JavaScript attempt at something similar and it wasn't pretty, so to the good folks working on this project, please know that you've got a new fan eagerly awaiting an update for the .NET version! :)

(specifically speaking, the TolerantSaxDocumentBuilder)

posted @ Thursday, September 18, 2008 5:43 PM | Feedback (0) |

DNN Inter-Module Communication

If you're working with DotNetNuke, then you're probably writing modules. If you're writing modules, then the chances are that at some point you're going to want them to communicate with each other in some way.

Apparently this is one of those subjects which has a bit of confusing coverage out there, however the good news is that if you know where to look it's incredibly easy. DotNetNuke Inter-Module Communication or: How Your Modules Can Get Their Chat On contains all you'll need to know to implement inter module communication in C# or VB. Nice.

posted @ Thursday, September 18, 2008 5:26 PM | Feedback (0) |

About me

My name is Ross Hawkins and I'm a Developer, Consultant and Writer based in Auckland, New Zealand. My current work revolves around ASP.NET, C#, Ajax, SQL Server, and a mix of other Microsoft development technologies. Previously I spent about 11 years working with Lotus Notes/Domino.


Popular Content

Troubleshooting WebResource.axd

The .NET 2.0 framework changed the way clientside JavaScript is delivered to the browser. Previously, ASP.NET 1.1 used the aspnet_client directory whereas now 2.0 uses WebResource.axd.

Published on October 8, 2006

Microsoft AJAX Extensions: Sys.Debug is null or not an object

One of the breaking changes which was made with the 1.0 release of the Microsoft Ajax Extensions was the renaming of the 'Debug' class to 'Sys.Debug' for reasons of compatiability with other frameworks. Breaking changes like this can often be a source of frustration..

Published on May 22, 2007

Simple ASP.NET Character Counter

A textbox character counter is a pretty simple piece of functionality, and there's a lot of different ways to apply one to your application. The following method is nice and simple, and can be done using only clientside JavaScript if required, or combined with server side code in order to create a more dynamic effect

Published on December 4, 2006

Adding Tooltips to Gridview Headers

As the title says, this is a very simple but dynamic way of achieving tooltip text on a header column. It's not overly flash, but it's lightweight and quick to implement.

Published on April 15, 2007

SQL Server Web Report Viewer Issues on Windows 2008 Server/IIS7

A fix for another AXD related issue, this time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Windows 2008 server.

Published on June 2, 2007
Updated on April 10, 2008


Search


Archives

October, 2008 (1)
September, 2008 (12)
August, 2008 (9)
July, 2008 (6)
June, 2008 (24)
May, 2008 (13)
April, 2008 (16)
March, 2008 (8)
February, 2008 (10)
January, 2008 (1)
December, 2007 (14)
November, 2007 (11)
October, 2007 (11)
September, 2007 (13)
August, 2007 (11)
July, 2007 (5)
June, 2007 (15)
May, 2007 (11)
April, 2007 (9)
March, 2007 (9)
February, 2007 (10)
January, 2007 (8)
December, 2006 (18)
November, 2006 (11)
October, 2006 (14)
September, 2006 (9)
August, 2006 (10)
July, 2006 (4)
June, 2006 (4)
May, 2006 (6)
April, 2006 (3)
February, 2006 (6)
January, 2006 (10)
September, 2005 (2)
August, 2005 (4)

Post Categories

ASP.NET
AJAX
Amusing
NZ
NZ Trains
Notes/Domino
Visual Studio
Web Development
Miscellaneous
Me
Rugby
C#
SQL