Category · 80 posts
.Net 2.0
2009
-
Using Explicit Arrange,Act,Assert scopes in tests – thoughts?
What are your thoughts on this style of writing? Specifically the “Explicit” way of defining arrange, act and assert scopes. also, given the name of the test, where should the call to “OnApplyTemplate” be (if you’ve…
-
Daily news blogs about .NET and related creatures
A friend asked me how I know about so many things that happen in the .NET sphere. the answer is very very simple. All you have to do is follow a few blogs on a daily basis, and you’ll have access to a whole world of new…
-
Test Review #2 – ASP.NET MVC Unit Tests
See other reviews: Review #1: NerdDinner Here’s the second video review of Unit Tests. This is another one written by Microsoft – ASP.NET MVC ( source ). First, it’s important to state how surprised I was by the high…
2008
-
Finding Deadlocks with ReaderWriterLock and Typemock Racer
This feature was just added to the Racer Alpha . Given the following method: Can you see a potential for deadlock in this method? Here’s the answer . I wonder if it will find this one as well ..
-
ALT.NET Israel Wrap up
The first Israeli ALT.NET Conference was great and finished without a hitch! Current videos from the (un) conference: Alt.net Israel - Hallway chat - performance Alt.net Israel - Refactoring Alt.net Israel - Distributed…
-
VS Addins Revisited: Declarative button order and location with a DSL
First, here is the code with the updates . In the previous post I showed how you can declaratively create buttons with captions and icons in a visual studio addin. the next problem to solve in that space is how to you…
-
Declarative Visual Studio addin buttons with icons
in the previous pos t I said how I hated doing custom icons for addins and showed how you can make it work. In this post I’ll show what I feel is a better way of managing the actions on the buttons, and how to…
-
Deadlock detectors
This is a pretty interesting approach to a deadlock detector: It uses sos (son of strike debugger) and automates it under the covers and parses its output to discover runtime deadlocks on processes. At the comments…
-
Howto: Set custom Visual Studio Addin menu icons without a satellite dll
Update : Here is a more full featured declarative example of doing buttons with icons . OK. Setting icons on your visual studio addins is officially a sucky process and I wish MS would make this a much less painful…
2007
-
Mocking LINQ Queries, Extension methods and Anonymous Types
One of the things I wanted to show at my Interactive session on unit testing tips and tricks at TechEd this year was how you can "Stub" out results from LINQ Queries, or mock\stub Extension methods in .NET 3.5 ( what's…
-
What's IoC good for, Really?
Oren has one of the best one liners about the benefits of Inversion Of Control Containers in a project in this post : "Other people on my team keep adding components, and they aren't even aware that they have IoC there.…
-
Dave Platt In Israel - CAB Fans Prepare yourself
Dave Platt just pinged me to tell me that he'll be doing a 4 day Composite Application Block Workshop over at Idag in Israel . Dave is seriously one of the funniest and most knowledgeable speakers I've met (got to meet…
-
ALT.NET - Rule of Tool Composition
There is much discussion about What ALT.NET really stands for. Most of the things discussed were very "fluffy" in their description and mostly meant some state of mind and openness. Here's another possible explanation:…
-
Microsoft gets Design For Testability with new MVC framework for ASP.NET- Finally.
The big news out of the ALT.NET Conference so far are from Scott Guthrie , who did a full hour on introducing the new MVP Framework for ASP.NET. My take away - finally they get it. I wish there were more guthries out…
-
Pimp My Visual Studio
I'll have to check out this list of things to make a Visual Studio Usable system (that is, what you should really install after you have Visual Studio installed to make you more productive). Basic stuff like unit…
-
Hotfix request Web Submission form could be a life saver
If Stefano is right , than this form by Microsoft should save plenty of time for people who just need the damn hotfix, yesterday . Microsoft Hotfix request Web Submission form (Request, get hotfix link direct by email…
-
Watching your computer breath using FileSystemWatcher
Breath is the only word that came to mind to describe the regular second to second operations your computer does just to keep itself in the current state while preparing for the next states (in terms of temporary files,…
-
Easier Winform UI Thread Safe Methods with DynamicProxy2 and Osherove.SimpleInterception
Wouldn't it be cool if you could write something like this in your winform apps? : [RunInUIThread] protected virtual void DoSomeUIStuff() { this.Text = "hey" } Download the binary files from here. (here are the source…
-
Code Generation using LINQ Expression Trees and .NET 3.0
via this thread on theServerSide I found this very interesting blog which talks a lot about C# 3.0 news features, including deep hacks and tricks using LINQ and Expression trees in .NET 3.0. For example, he shows how to…
-
NDepend 2.0 - Beast, not Beauty
NDepend 2.0 just came out , and it *looks* to be a really awesome tool for understanding your's architecture and status, especially dependencies between components, in a visual way. But from the demos on the site, it…
-
Cheat Sheets for ASP.NET, Regex, Mock Objects and more
Ah, I love cheat sheets! You can hang them up on a wall, and then look at them when you need to remember how to do something. Looks like there is some very thorough cheat sheets for regular expressions over here .(via…
-
Shell MegaPack version 8.0 is out
The guys over at Sky Software have updated the latest version of Shell MegaPack to v 8.0 . It's an impressive product that I've reviewed before as part of my "advertising I stand behind" campaign, and now I'm happy to…
2006
-
Catch me talking Agile at the Israeli .NET Architects user group
I will be giving two talks at the upcoming .NET Architects user group this month (December 24). More info here . The talks I will be giving(Guitar is still in question...): Part I: Introduction to Agile Methodologies…
-
Vote for the top talks to see at the upcoming MS Israeli Conference
Yosi Taguri is holding a little survey about the upcoming big Microsoft Developer Conference in Israel on January 31. You can rank the top five talks you'd be interested in (it's in Hebrew) going to. I'm giving two…
-
Html Agility Pack
Now, this is cool if you do a lot of html parsing! You can tell I was drawn to it by the word "Agile" hidden in there. I guess "Agile" is the new black. It goes with everything. HtmlAgilityPack is an open source project…
-
Unit Testing your ASP.NET Validators - Validation Everywhere
heynemann just posted about a very nice and testable validation framework for ASP.NET called " Validation Everywhere ". "The Validation Everywhere project was born because I have a very complex UI that I need to unit…
-
SQL Refactor looks cool
If you do any work with stored procedures and SQL databases, SQL Refactor should look very interesting to you...
-
How to run web services and sites on the same box as sharepoint (avoiding "404 Page Not Found" errors)
I just finished a 6 hour "chase-around" session after what seems to be the most annoying problem I've encountered. The problem I had was this: I was using the Virtual PC image that can be downloaded from MSDN Subscriber…
-
.NET Rocks: Regular Expressions with Roy Osherove
My .NET Rocks Interview about Regular Expressions in now officially online and I am excited! I'll have a good listen at my walk tonight, so if you get to listen to it first, your comments are welcome on this post. I'd…
-
Problem: Underlying HTML from a selection inside WebBrowser Control produces different HTML than the original page
here's a problem I've been trying to deal with: the WebBrowser control in .NET 2.0 Winforms. I'm trying to get the selected text's underlying HTML representation, and it works, kind of. IHTMLDocument2 doc2 =…
-
Faster builds of web projects with VS 2005
This goes out to all the folks who tell me that ever since they switched to VS 2005 - the time it takes to build their solution is very very long when talking about web projects. Stop blaming Resharper, folks. Here's…
-
Regulazy 1.02 is out and about
There's a new monthly version (1.02) out of Regulazy. You can grab it over here . (if the link is broken try http://tools.osherove.com/ ) Regulazy is a visual Regex Creation tool for beginners. It contains an easy…
-
How to create your own Auto Login Remote Desktop Application
Speaking of Multiple Remote Desktops - it's not really that hard to build such an application. Microsoft had a "Microsoft RDP Client Control" ActiveX control that you can use in your apps. I've even went ahead and…
-
Free E-Book: Developing Time-Oriented Database Applications in SQL
One of the books I mention in my Amazon Wish List is Developing Time-Oriented Database Applications in SQL (Morgan Kaufmann Series in Data Management Systems) . A few days ago I got an email from Steven Gravitz telling…
-
Nice Threading in .NET 2.0 E-Book and online reference
Update : Here's a little article that shows locking with Blocking Queues (an idea I refer to at the bottom of the article) I recently found this great online E-Book about Threading in .NET (also applies to .NET 2.0!),…
-
Understanding the different generic collections in .NET (List<T>, BindingList<T>, Collection<T>)
An innocent question came up in one fo the mailing lists I subscribe to. It was about when would you want to derive from the various generic collections in the framework. That also prompted another discussion about the…
-
Solution to: "Cannot add diagram to SQL Server 2005 DB: Database diagram support objects cannot be installed because this database does not have a valid owner."
I found the answer in this post via Larkware . There are some other alternatives over here . I came accross this problem a couple of times but never had the chance to delve too much into it. Next time I'll know what to…
-
This week at the C# User group - Hardcore ASP.NET 2.0 [Dan Amiga]
I'll be hosting the meeting of the Israel Visual C#/C++ User's group this week due to scheduling problems on part of the original hosts of the group, Shai Bar Lev and Moshe Raab. So what's the meeting about? Read the…
-
Got an MSBuild-SikdeKick wish? Post it on Matan's blog!
Matan Holtzer is one of the guys behind the new MSBuild SideKick , which is essentialy a visual editor for editing MSBuild and Team Build files instead of editing raw XML (and a tool like this comes out only now??). His…
-
Review: Shell MegaPack - Windows Explorer GUI Replacement Controls
This week I’m happy to put up an ad and review for Shell MegaPack by SSWare . I’ve used parts of Shell MegaPack by SSWare in a couple of small projects I did(Windows Forms), and was wonderfully surprised to find their…
-
Two Powerful Generic Collections And Algorithms Libraries
Two very good resource links that Oren pointed out to in at the end of his presentation about advanced use of Generics and Delegates are two powerful Generic Collection Frameworks: PowerCollections (by Wintellect, free…
-
CLR Generics Vs. C++ Templates - some good links
An interesting question in last night's talk triggered lost links I had about an interesting subject: What are the main differences between CLR Generics and C++ Templates? Here are some good links:…
-
Oren Ellenbogen rocked last night about Generics, Delegates and Anonymous Methods.
Update : His slides and demos are posted here . Last night was a very good meeting of the C#/C++ users group . Oren Ellenbogen spoke about Advanced usage of Generics, delegates and anonymous methods to a crowd who…
-
Small Tip: Getting the name of the current or calling method at runtime for debugging
Here's a simple little trick that you can use when using Debug Mode(though it does have its overhead, so turn it off when you don't need it). You know how you write those nasty trace messages that say "I'm…
-
Debugger Visualizer for MethodInfo, DynamicMethod, and MethodBase available for download
When I was preparing (still am) for my TechEd talk about Reflection 2.0, one of the coolest things I found was this nice DynamicMethod visualizer posted as a code sample. Taking apart the code for this project was a…
-
Windows Complication Foundation
I just thought of this term, and it may be the biggest problem developers will face with Vista and the whole WinFX stuff. this includes (but not limited to) Windows Presentation Foundation Windows Communication…
-
Code from DevDays Belgium available: Design for Testability & Smart Client Offline Caching and Synchronization
I had a good time at DevDays Belgium and would love to go back there again sometime in the future. I just hope the crowd enjoyed my sessions. In any case, I'm making available the demo code from two of my presentations…
-
The 3 ways to create a Thread-Safe GUI with .NET 2.0, with one clear winner.
With .NET 2.0 and with the new "anonymous delegates" feature in C#, doing multi threaded responsive GUIs is now easier. In fact, you get multiple choices on how to accomplish this task. But which choice is the best? and…
-
FIX: error message while rebuilding a solution and trying to view a Windows Form in Design view (VS 2005)
"One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. TypeLoad failure. Unable to load one…
-
.NET 2.0 certification study group in Israel? Your choice.
Justin Angel is in the process of creating a "study group" for the new Microsoft .NET 2.0 certifications. If you're interested, head on over to his post (in Hebrew) and post a comment. The more reactions he gets, the…
-
Finally a "stable enough" build of Resharper 2.0 Alpha?
"I'm not uninstalling this one. 215 is "good enough" right now to boost my productivity. 2.0 has NUnit test-running capability through a UI widget, but I find that I still prefer the crude text output of TestDriven.Net…
-
This week at the C# Users Group: Windows Communications Foundation (“Indigo”) with Ido Samuelson
Topics : Windows Communications Foundation (“Indigo”) Lecturer : Ido Samuelson, Advantech (Magen) Date: Wednesday, January 18, 17:00 - 20:00 Place: Microsoft Israel Hapnina 2 ( Amdocs Building ) Ground Floor Raanana…
2005
-
New XML Features in VS 2005 and .NET 2.0
I attended a session hosted by Alan Griver a few weeks ago at the Israel C# Users Group (IVCUG). It was a lovely talk, who's first part centered around the new XML features in VS 2005. Amazingly, I don't think I've…
-
[Slides and code] VS Launch Israel: .NET 2.0 Things You Need To Know
You can download the code demos and presentations from my talk with Jackie Goldstein at the VS Launch in Israel about .NET 2.0 things you need to know. Jackie played the part of the VB Fanatic, while I played th part of…
-
December at IVBUG: Xml Editing and Debugging + LINQ
Here's the email I got from Jackie , head of the Israel VB User Group on the upcoming meeting. --- This month I was able to arrange for a special speaker from Microsoft in Redmond . Yair Alan Griver is the Group Manager…
-
A Better XML Visualizer
Here's another cool visualizer for your use. It's a better XML Visualizer than the one currently in the VS IDE, written by Howard van Rooijen .
-
Ask The Pros: Debugging Tips
The latest round of VisualStudioHacks.Com 's "Ask The Pros" article is out, and this time it's about debugging . While I did contribute my own tips into the mix, I was pleasantly surprised how much new information I…
-
Announcing Regex Kit: Regular Expression Visualizers for VS 2005
I've been hibernating with everything relating to regular expressions for quite sometime now. I'm still working on the Regulator 3.0 (built on .NET 2.0), but for now, I thought I'd release these: Regex Debug Visualizers…
-
SQL 2005 management studio lacks.. lots of stuff.
Looks like the SQL 2005 Management Studio needs some work too these days. Just a quick heads up. I can't say my experiences with it are much different, unfortunately.
-
Slides Available for my talks on C# 2.0, LINQ, Agile Methodologies and TDD Best Practices
Here are the slides for the IVCUG Talk I did last week. The slide topics were "What's new and cool in C# 2.0 and Visual Studio 2005" and "Language Integrated Query".…
-
Test Driven .NET's new version supports all versions of VS 2005 including Express
Jamie Cansdale is a a pretty sharp guy. He's released the latest version of TestDriven.NET, one of the most productive addins for testing and debugging your code, and it works with Visual Studio 2005. Not only does it…
-
Cool Error Correction Dialog in VS 2005
I didn't know this, and this is something I could have used ... " For most of the System errors that the compiler is reporting if you place your cursor over the little glyph at the end of the error squiqqle you get an…
-
Microsoft solves my RTM Bug (By Design..)
Microsoft did a hell of a job following up on the obscure bug that I posted (I'm sure that the fact the post was published on eWeek , The Register and other places helped a bit in speeding things up..) . It involved…
-
I'll be speaking at IVCUG this month: New stuff in .NET and C# 2.0 + Deep LINQ Preview
I'll be presenting at this month's upcoming C++/C# user's group meeting about new stuff in .NET 2.0 and a deep introduction to the LINQ project. The LINQ presentation will be different than the one I did at the…
-
A better BackgroundWorker : CancelImmediately and other goodies
One of the nice new features you get in .NET 2.0 Winforms is the new BackgroundWorker component. It allows safely executing long tasks in a different thread than the GUI, while allowing an easy event-driven interface to…
-
A better Safe Cast using Generics
Update : the code has changed a bit in the C# version to reflect *exactly* the same behavior as "as". See the comments. Here's a nice way to make something like the "as" word in C# apply to both value types and…
-
My first real frustration with VS 2005 RTM
Update: This bug was reviewed and solved by MS as soon as is humanly possible (probably due to the huge amount of exposure it got). See this post for details . It's completely amazing to me that VS.NET 2005 RTM, after a…
-
Amazoner 1.0.1 - Larger Images for Books and a dedicated website
A new version of Amazoner is out. Not many changes, but the main thing is that the book images are now bigger, oh and it's compiled using Visual Studio 2005 RTM out 2 days ago (relies on .NET 2.0 final). I Created a…
-
Strongly Typed Reflection Calls in .NET 2.0
Oren Eini is trying to cheat Reflection , that is, create his own, "strongly typed" version of reflection, and what he's done so far seems like a very cool and nice workaround: " I don't like strings and Reflection. In…
-
Representing void methods with generic delegates
Generics are cool. Learn about them . I want to talk about a specific query that I had which right now I can only guess the answer. To begin, here's the scenario. You can create a Generic Delegate to point to a method…
-
Nice Guidance Automation kit hands on lab from TechEd (with a fix for a build problem it contains)
There's a nice guidance automation hands-on-lab available from teched, created by Daniel Cszzulino . Unfortunlately, if you tried to compile the source from the download on a VS 2005 Beta 2 or later without VSIP…
-
Early experiences from .NET 2.0 Winforms
One of the reasons I wrote this little application is to get to know the .NET 2.0 Winforms API a little better. Here are some of the things I have on my mind after playing with it for a while: Data Binding The Data…
-
Introducing Amazoner: Create Amazon Associate Links with ease
Update (30/10/2005) There's a new version of this tool available . This tool also has a dedicated site from now on. For the latest version downloads and information, go to this URL: / Thanks, Roy. A while ago I posted…
-
.NET CLR Data counters are wrong - Official
"Original counters (in V1.0 and V1.1) reported wrong numbers in almost all scenarios." http://www.gotdotnet.com/team/changeinfo/Backwards1.1to2.0/default.aspx#00000123 "We’ve created a new set of Performance Counters in…
-
[Audio Interview] Brian Noyes: Deep .NET Q&A
Brian Noyes -Getting Technical about .NET (April 25, 2005) What would you do if you had an experienced architect and consultant sitting right next to you? You'd start asking him all kinds of questions that have been…
-
Debug Visualizers in VS 2005: Almost there, one big feature missing
One of the coolest new features in VS 2005 is Debug Visualizers, which allow you to "see" various data as it is being debugged in your IDE. For example - you can see a dataset presented as a real table in a grid (just…
-
Whitepaper: Introducing System Transactions, by Juval Lowy
Juval Lowy is out with a new white paper at the Microsoft download center . It's 50 (-10 for introduction) pages full of good information about the upcoming features of Indigo, as reflected in the System.Transactions…
-
Data Binding with .Net 2.0 : upcoming coolness
Brian Noyes posts a little nugget on Data Binding with .Net 2.0 from his upcoming book. Generics are indeed very cool.
-
[Interview] Jonathan de Halleux on mbUnit and model based testing
You may have noticed that lately I've started to interview people I find interesting. Such was the case with Johanna Rothman, and now it's Peli's turn. All interviews will be hosted from now on on Team Agile's interview…
-
Making ClickOnce publishing work in VS.Net 2005 Beta 1+
The following helps in cases when you get the following error messages: "Deployment manifest requires publisher and product specified" or "files missing from deployment" Here's what I needed to do on my Win Server 2003:…