Geeks With Blogs
Blog Moved to http://podwysocki.codebetter.com/ Blog Moved to http://podwysocki.codebetter.com/ June 2006 Entries
.NET - Overriding Equals and Equality Operators
I've been a little absent recently due to a lot of training I have been attending. Too much to learn in such a short period. Anyways, let's get back to coding samples and best practices. Even though I like to be at the software architect level, I still love keeping my hands dirty with code and giving samples here and there. Today I will be covering overloading equality operators and the Equals method. When you are creating your entity objects or business objects, you should override and overload ......

Posted On Friday, June 30, 2006 1:46 PM

Windows Communication Foundation Workshop – Part 4 Schemas and Contracts
Robert Shelton of the Microsoft Developer and Platform Evangelist Team has released his fourth workshop involving Windows Communication Foundation (WCF) which covers handling data between the client and server. Moreover, this covers sharing schemas (contracts) between the two instead using classes. Robert will show how easy it is to do this with WCF. As always, each workshop can be built and ran independently of other workshops. The workshops can be found here. Once again, keep up the good work Robert ......

Posted On Friday, June 30, 2006 9:33 AM

.NET 3.0 June CTP Released - What's changed?
Microsoft has released the .NET 3.0 June CTP. Please note that this CTP does not have a "Go-Live" license available with this release. Here are the links for the software required for this CTP plus some extras: * .NET 3.0 Runtime Components June CTP * Windows SDK June CTP * VS.NET 2005 Extensions June CTP * Workflow Foundation RC and Extensions June CTP So, what has changed in this CTP? The Windows Communication Foundation (WCF) team has blogged about the changes: * Some Changes for Channels and ......

Posted On Friday, June 30, 2006 8:38 AM

Windows Communication Foundation Workshop – Part 3 Transactions
Robert Shelton from the Microsoft Federal Development and Platform Evangelist Team has released the third installment of his Windows Communication Foundation (WCF) Workshops. The third installment deals with distributed transactions. In this exercise, the customer (Bank) has decided that they are going to offer a new service to their ATM users, and the new feature requires Transactions. The source code does not rely upon earlier code, so you can start at any lesson. As always, the workshop code can ......

Posted On Friday, June 30, 2006 8:04 AM

Final IE7 Beta Released
Microsoft released the Final Internet Explorer 7 Beta on Thursday. This update allows users to add the e-mail button back to the toolbar, enables users to reorder the tabs by dragging them to the left or right, and enables horizontal scrolling while zooming. As mentioned before, Microsoft is urging people to test the product and give feedback often. I'm not 100% sure if the support calls will still continue to be free, however. Get it today ......

Posted On Friday, June 30, 2006 7:55 AM

Windows Communication Foundation (Workshop) – Part 2
Robert Shelton has posted part two of his Windows Communication Foundation (WCF) Workshop. The workshop is located here in case you missed it yesterday. This session covers holding Session State in your WCF application. As stated before, each lab can stand on its on and you can forego part 1 if you wish. Part 3 will cover implementing transactions within a WCF application. Great job Robert ......

Posted On Friday, June 23, 2006 2:18 PM

15 Working with Data in ASP.NET 2.0 Tutorials
Scott Guthrie has posted a good link with 15 ASP.NET Data Tutorials that were created by Scott Mitchell. These tutorials found here, cover the following: Introduction Articles Creating a Data Access Layer using Typed DataSets Creating a Business Logic Layer Using Master Pages and Site Navigation for Consistent Look and Feel of the Data Samples Basic ASP.NET Data Reporting Displaying Data with the ObjectDataSource Using ObjectDataSource Declarative Parmeters Programmatically Setting ObjectDataSource ......

Posted On Friday, June 23, 2006 2:10 PM

Microsoft Identity Integration Server (MIIS) Resources
Well, I survived giving a presentation of some of the coding that you can do with MIIS last night at the MICSUG meeting. Overall, it was a great meeting and it was good to see some new faces there. Joe Francis from Microsoft gave a presentation of the current functionality and future plans for MIIS. He also briefly went over other Identity solutions at Microsoft. Paul Laudeman of TCSC presented a case study of an MIIS implementation which included some very valuable lessons learned, some high points ......

Posted On Friday, June 23, 2006 8:59 AM

Resource Application Block v2.0
Steve Phillips has recently released version 2.0 of his Resource Application Block. This block provides a simple interface to use resources, which include not only strings, but also images, etc, without the need of knowing where they came from. Your application resources can be stored in many files, and now even databases and you will have access through this block. If your application is resource intensive, this may be a way to go. If you are still working with .NET 1.1, Steve also has a version ......

Posted On Thursday, June 22, 2006 3:41 PM

Introduction to Windows Communication Foundation (Workshop) – Part 1
Robert Shelton of the Microsoft Federal Government Developer and Platform Evangelism Team is working on a set of workshops which teach Service Oriented Architecture (SOA) development with Windows Communication Foundation (WCF). He is making each one a standalone and includes: * Source Code * What to do in each step and why * Before and after code with comments Stay tuned to this location here for the workshops including Part 1 and their blog ......

Posted On Thursday, June 22, 2006 2:49 PM

What Would You Like in the Enterprise Library for .NET Framework 3.0?
Tom Hollander from Microsoft Patterns & Practices group is asking for suggestions for what is to be in the Enterprise Library 3.0 release. Since Microsoft has announced .NET 3.0, the Patterns & Practices group would like to get a head start on the next release of the Enterprise Library. To give guidelines, they are looking for suggestions in the following areas: New blocks (please specify what these blocks should do) New providers for existing blocks (please specify which blocks and what ......

Posted On Wednesday, June 21, 2006 1:43 PM

Webcast - Model-Driven Development in Visual Studio 2005
Microsoft has introduced very powerful tools for architects with Visual Studio 2005 Team Edition for Software Architects. Among these is the ability to define, generate and customize your own set of visual modeling tools that are built upon the same infrastructure as those provided with Visual Studio. There is an MSDN Webcast available entitled Domain-Specific Language Tools for Model-Driven Development in Visual Studio 2005 which goes over this in detail. This webcast covers the following: * Visual ......

Posted On Wednesday, June 21, 2006 1:27 PM

Compression and GZipStream
When I was studying for the 70-536 exam, I concentrated heavily on streams as it was a good portion of the exam. One stream that stuck in my mind the most was the GZipStream which encompasses the industry standard for lossless file compression and decompression in the GZip format. As I always did during the reading process was to whip up little examples of using each technology. I decided to create a little example of how to use the GZipStream in a few lines of code while compressing a known document. ......

Posted On Wednesday, June 21, 2006 1:06 PM

Tips on Writing Reusable Code
As I wandered the net this morning for my usual tech tips and such, I always found that I can be a sucker for lists. I came across this blog post 10 tips on writing reusable code in which Hosky elaborates upon what he feels should be concentrated upon. The basic list boils down to this: 1. Don't repeat code 2. Make code do one thing 3. Break down logic by test case 4. Remove business logic from frameworks 5. Hide code dependencies with abstract classes and interfaces 6. Code for extensibility with ......

Posted On Wednesday, June 21, 2006 12:16 PM

Looking at SQL Server 2005 Service Broker (SSB)
During the last MICSUG meeting, Geoff Snowman gave a great presentation on "When to Use What" with regards to which remoting and messaging technologies should be used in certain scenarios. The SQL Server 2005 Service Broker (SSB) was mentioned a couple of times in regards to messaging systems and it got me a little intrigued to look at it. So What Is SSB? From the Microsoft SQL Server Books Online: Microsoft SQL Server 2005 Service Broker helps developers build scalable, secure database applications. ......

Posted On Tuesday, June 20, 2006 3:41 PM

C++ - Dipose with Null Pointers
Nishant Sivakumar recently wrote in his blog about NULL pointers and C++/CLI in his post "You *can* delete a NULL pointer!". What I did know is that delete works fine on unmanaged code, but I wasn't 100% sure about managed, and now this confirms that it works exactly as I thought it would. Take for example this code: public ref class MyClass { public: MyClass(); ~MyClass(); }; And this calling code: MyClass myClass = nullptr; delete myClass; In this above case, the destructor would not be called ......

Posted On Tuesday, June 20, 2006 2:36 PM

MSDN Architecture Webcast: Exposing Your Content as a Service Using Windows Communication Foundation
Tomorrow at 11AM EST, 8AM PST, there is an MSDN Webcast entitled Exposing Your Content as a Service Using Windows Communication Foundation to discuss migration of existing services such as RSS, mashups and scrapes to Windows Communication Foundation (WCF). This webcast targets the enterprise architect as it discusses how WCF can be leveraged to expose more of your site as a service in multiple formats and transports. Clemens Vasters will walk through several examples on how WCF can help you. ......

Posted On Tuesday, June 20, 2006 1:59 PM

SecurePasswordTextBox and SecureString
A while back, I covered in detail some of the things you could do with SecureString in my post .NET Code Access Security - SecureString. Dan Sellers of Microsoft had a post about his webcase entitled Least Privilege and New System.Security Features in which the SecureString was used. The webcast in question can be found here. The source code is available for the SecureString demo can be found here. In this webcast, the SecureString is used to read in the password, character by character from the ......

Posted On Tuesday, June 20, 2006 1:47 PM

C++ - Where is STL/CLR???
When Visual Studio 2005 was still in Beta, Visual C++ had a concept of STL .NET (now called STL/CLR), which in short is a porting of the STL to the CLR. One may ask, so why STL/CLR? As you may or may not have noticed, C++ will not accept managed types inside of an STL container. Nikola Dudar explains more about the differences in his post "What is STL/CLR". Stan Lippman had a great introduction of this great library in an article on MSDN called STL .NET Primer. Nick Weinholt also had a good introduction ......

Posted On Monday, June 19, 2006 9:36 PM

5 Days With Windows Presentation Foundation (WPF)
With all the information out there floating about, it's difficult to know where to begin when learning Windows Presentation Foundation (WPF). Karsten Januszewski has made things easy with a 5 Day Lesson entitled "My Five Day Course For Hitting the WPF Curve/Cliff ". This five day lesson includes a detailed agenda for each day and has many presentations and links to tutorials. This is a must for anyone who is looking into getting started with WPF. Also, be sure to see the rest of the posts on this ......

Posted On Monday, June 19, 2006 8:05 PM

SharePoint Tips and Tricks - Traverse and Fix All My Sites Document Library
Recently, for a very large customer, I had to fix some issues with regards to SharePoint My Site lists. Destroying and recreating each person's My Site was not an option. This scenario actually happened due to the fact that should you get the dreaded SPException which indicates a "Save Conflict" while updating a SPList object, it will wipe out some of your properties. I will show an example in code in a Console Application. So, let's start with the Main method: [STAThread] static void Main(string[] ......

Posted On Monday, June 19, 2006 7:52 PM

Day 10 of the Background Intelligent Transfer Service (BITS) Managed Wrapper
Update: Put a comment in if you want the C# version of this code and I will get it to you In the previous installment, I actually gave the source code which is available if you go to the Day 9 post. Anyhow, what we're going to cover today is setting up your IIS to allow for BITS upload functionality. Several things must be done in order for uploads to be supported on your machine. First, we need to install the BITS Extensions for IIS. In order to do so, you must do the following: Go to Add/Remove ......

Posted On Sunday, June 18, 2006 8:05 PM

Know Your Enterprise Design Patterns
Enterprise Design Patterns are a way of life now as software architects. The "Gang of Four" laid the groundwork for proposing and enumerating these design patterns in their book "Design Patterns: Elements of Reusable Object-Oriented Software". Make sure you have this book. Sometimes it's good to keep it underneath your pillow, or something like that... Microsoft Press has of course also released a book entitled "Enterprise Solution Patterns Using Microsoft .Net: Version 2.0 : Patterns & Practices" ......

Posted On Friday, June 16, 2006 4:58 PM

Passed Exam 70-536 - Application Development Foundation
A few days ago, I posted some links for study guides and links for the 70-536 exam. Well, it worked nicely for me as I passed with a 982! I know I missed one question on COM Interop because the way they were talking about returning an HRESULT to a COM caller is not the way I would do it. I chose the C# version since I've done most of my work in C# so far with Visual Studio 2005, although I could have done the C++ version just as easily. I already have the MCSD and the MCDBA, but I thought I'd try ......

Posted On Friday, June 16, 2006 11:15 AM

Why Vista Slipped
Phillip Su of Microsoft posted a great rant called Broken Windows Theory about why Microsoft Vista shipment date slipped. It's a very heated topic that caught the attention of Robert Scoble on his blog. Lately, Vista's dates have kept slipping and people have started to notice. In there, he named the usual suspects of why Windows shipments are delayed, such as: * Windows code is too complicated * Windows has gone thermonuclear when it comes to process He also claims that it is cultured to slip and ......

Posted On Thursday, June 15, 2006 9:17 PM

GMaps Pedometer - A Google Maps Based Pedometer
Since I'm a pretty avid runner, I love the ability to keep track of how much I run per day and what distances. My brother of all people sent me the GMaps Pedometer which is based upon Google Maps which allows you to record your walking (or in my case, running) path with just a simple double click. It's by no means perfect, but it gives you a pretty good idea where you run and how far. The line connector works in straight lines only, so if you run on a curvy road, good luck on getting it to be the ......

Posted On Thursday, June 15, 2006 3:47 PM

MSBuild Sidekick - A GUI for MSBuild
In my continuous integration practice implementation, I've mostly used NAnt for building and deploying my applications. Since I have been relatively happy with the results, I haven't looked at MSBuild until very recently. I don't think there is much of a learning curve though going between the two products if I recall correctly. Setting up your MSBuild files has now been made just a bit easier. Trivium Technologies has created a tool called MSBuild Sidekick which is distributed by Attrice under the ......

Posted On Thursday, June 15, 2006 3:33 PM

Microsoft Certified Architect Program Now Live
In the latest Microsoft Certified Professional Magazine, it was announced that after a little delay, that the Microsoft Certified Architect Program (MCAP) has gone live. This program takes those with at least ten years of experience in the architecture field with both Microsoft and non-Microsoft products. In the first year, they are only announcing 250 slots, so get in line!. To this date, Microsoft has certified 66 and plans to grant 3,000 within the next five to seven years. The cost of this program ......

Posted On Thursday, June 15, 2006 3:04 PM

Simplifying XMLHTTP programming with ASP.NET “Atlas”
Marc Schweigert, from the Microsoft Federal Government Developer and Platform Evangelism Team Blog, has posted a screencast on MSDN Channel 9, in two parts addressing XMLHTTP programming, which has been around for a while, and working with ASP.NET Atlas. What these screencasts accomplish is allowing the browser to make web service calls from client-side script. Very cool and well worth checking out! The screencasts are available in two parts at the following location: * Simplifying XMLHTTP programming ......

Posted On Thursday, June 15, 2006 1:14 PM

Questions All BizTalk Developers Should Know
In previous posts, I have talked about the "What All Great .NET Developers Should Know" as well as my own list of questions. This time I'm looking for questions that Great BizTalk Developers Should Know. Naveen Karamchetti had created a list off CodeProject entitled "BizTalk 2004/2006 Interview questions that every developer must know...". Unfortunately for us he already had the answers posted, but if you stay here for just a minute, you can ponder the questions on your own. I'm adding some to his ......

Posted On Wednesday, June 14, 2006 8:43 PM

.NET Security Best Practices - ASP.NET 2.0 Security Practices
Microsoft has published a set of security best practices in an article entitled "Security Practices: ASP.NET 2.0 Security Practices at a Glance". Let's go over briefly what this guide can do for you as you design your applications. First of all, it covers a wide array of topics from what is new in ASP.NET 2.0 and the .NET 2.0 framework when it comes to security. Each of the following sections includes at least a couple "How to" articles on the most basic topics. I'll cover each topic in bullet points, ......

Posted On Wednesday, June 14, 2006 3:58 PM

.NET Security - Argument Validation Revisited
In a previous post, I shared my ArgumentValidator class as well as an overview of Regular Expressions. I want to revisit this topic because of the fact that I hadn't really optimized it for ASP.NET 2.0. There are some features now offered in .NET 2.0 that help the process of keeping your messages standard. Also, I'd like to re-address some of the regular expression things as well. Let's go ahead and create a new ASP.NET 2.0 Web Site. From here, we have the basic Default.aspx/cs. From this page we ......

Posted On Wednesday, June 14, 2006 2:45 PM

MSDN Channel 9 Security Code Examples
It seems security is becoming more and more of a focus at Microsoft. This of course is a very good thing and interests me a lot since I focus on security issues as one of my top priorities. The MSDN Channel9 Security Wiki has introduced a set of .NET code examples to do common security tasks. These tasks are separated into different categories according to what function they perform. The categories for the code samples are: * Authentication * Cookies * Cryptography * Data Access * I/O * Input Validation ......

Posted On Tuesday, June 13, 2006 1:58 PM

Microsoft .NET 3.0 Community Home Site
Now that Microsoft has renamed WinFX to the .NET 3.0 Framework, the new site containing all of these has been launched at the Microsoft .NET Framework 3.0 Community (NetFx3). This site combines all previous sites as well as some new ones. The linked sites are: * Windows Communication Foundation (WCF) * Windows Presentation Foundation (WPF) * Windows Workflow Foundation (WF) * Windows CardSpace (WCS) This site also combines the latest news, blog posts and forum discussions from each subsite as well ......

Posted On Tuesday, June 13, 2006 11:58 AM

SharePoint 2007 E-Learning Courses
In my sparse spare time, I have been looking at SharePoint 2007 and what it has to offer. I think that saying that it is a great improvement is a vast understatement. Anyhow, there are some e-learning courses available now from Microsoft to get a head-start on it. Course 3370: Getting Started with Microsoft Office SharePoint Server 2007 (Beta) In this clinic, you'll explore the 2007 Microsoft Office System to understand how it provides many benefits to an organization, including enhanced collaboration, ......

Posted On Tuesday, June 13, 2006 11:26 AM

Resources for the 70-536 Certification Exam: Microsoft .NET Framework 2.0 - Application Development Foundation
As I am studying for the 70-536 exam, I came across this really helpful link that has a lot of reference material linked from the MSDN that contains general topics that will be covered in the exam which can be found here. Mike G. did a really great job! I'm definitely using this to my advantage in terms of study material. This is not a brain dump, but instead a good study guide that provides links to classes that will be covered as well as several "How-Tos" that will be essential to pass this exam. ......

Posted On Tuesday, June 13, 2006 6:19 AM

Test Driven Development - Using CruiseControl .NET to Automate Your Builds
Jean-Paul Boodhoo has posted so far in 8 parts on how to automate builds using NAnt. The post entitled Automating Your Builds With NAnt - Part 8 (Enter CruiseControl) is highly informative about how to introduce CruiseControl .NET into your build procedures. In previous projects I have worked with CruiseControl and found it to be very helpful. Cruise Control .NET can be used to do the following from my own previous experience: * Get latest code from source control (VSS) * Perform a build which registered ......

Posted On Monday, June 12, 2006 12:37 PM

Microsoft Identity Integration Server 2003 Extensions
At the June Capital Area Microsoft Integration and Connected Systems User Group (MICSUG) meeting on the 22nd, I will be presenting on how to use Extensions to perform custom tasks such as migrating users from one SharePoint Web Site to another, transforming identity information, etc. I found a useful link on MSDN which contains some of the code samples that come with the MIIS installation. Under the Using Microsoft Identity Integration Server 2003 page, listed are the following of note at least to ......

Posted On Monday, June 12, 2006 11:28 AM

MICSUG Meeting - June 22nd
Geoff Snowman has announced that Joe Francis, a longtime Microsoft employee and expert on the Windows platform, has agreed to speak at the MICSUG meeting on June 22. Joe, a principal product specialist with Microsoft Corporation, specializes in identity management and Windows infrastructure. One of the most challenging issues in integration is cross-platform management of identity, and Joe will describe Microsoft's approaches for addressing this issue, including Microsoft Identity Integration Server ......

Posted On Sunday, June 11, 2006 6:52 PM

MSDN Wiki - Visual Studio Documentation, Wiki Style
Have you ever been frustrated with the documentation on MSDN sometimes? Many times I have tried to do some of the more interesting .NET Framework classes such as SecureString and not finding much documentation on it. Microsoft has just introduced the MSDN Wiki Beta which allows a collaborative effort to document the framework with code samples, tips and tricks from developers. This is the really cool part to be able to contribute samples of things that I have used in the past that really isn't documented ......

Posted On Saturday, June 10, 2006 1:59 PM

WinFX renamed to .NET 3.0?
There seems to be a bit of confusion out there as to what WinFX is and how it compares to .NET. Well, according to Somasegar's WebLog, Microsoft has decided to rename WinFX to the .NET Framework 3.0. The logic behind it being that WinFX really was the next generation of the developer framework. The .NET 3.0 framework will still include all functionality from WinFX and just have a name change. It still includes Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows ......

Posted On Saturday, June 10, 2006 11:36 AM

MSF versus RUP - What is the difference?
Very recently my current client has been pushing for Agile for MSF adoption throughout the development organization. Previously things were at or below chaos here in some areas. This of course has been no issue for me since I have studied MSF 3.0 and passed the Microsoft 70-301 exam. I also went through Rational University some years ago when I first started my career. I was lucky enough to have an employer that had enough money to send me to that training. So, easily for my first couple of years ......

Posted On Friday, June 9, 2006 2:24 PM

Best Practices - Static or Instance?
Two days ago I posted about the Static Members Best Practices, I now realize I might need to step back just a little bit and get into the debate of why to have static members in the first place. It's an interesting debate worth having especially when it comes to your designs. Why Use Static Members? When I have conducted code reviews in the past, I found many times that people would use static methods and properties all over the place. The only real justification that was used was that it cut down ......

Posted On Friday, June 9, 2006 11:58 AM

Unsolicited Car In Backyard - The Day After
I posted the pictures yesterday of the night of the crash, so today I thought I'd post on what it looks like today. It might give you a clearer picture of what I have to deal with going forward. The fun of it all! The first picture is the actual crash path. As you may notice, I do live in a little bit of a curve. It's not huge, but when someone is speeding, and the road is wet, this might happen. So, the path is quite clear, and the hole in the ground is where the fire hydrant used to be. The hydrant ......

Posted On Friday, June 9, 2006 8:18 AM

Day 9 of the Background Intelligent Transfer Service (BITS) Managed Wrapper
Update: Put a comment in if you want the C# version of this code and I will get it to you Well, I was having troubles connecting to CVS on my Managed BITS Sourceforge Project over my VPC, so while I figure it out, I decided to upload the source code plus binaries to SaveFile for the time being. Let me know if you have any questions or problems regarding this. Now that I got that out of the way, let's get back to where we left off. In the previous lesson, we talked about implementing the IBackgroundCopyCallback ......

Posted On Thursday, June 8, 2006 3:34 PM

An Unexpected Car in My Backyard
Ok, so it was about 12:30AM this morning when I was doing some research on custom ASP.NET Membership Providers when I heard squealing tires, which wasn't unusual because we get those "Fast and the Furious" idiots around here all the time. This was a little different because I heard scraping then some of the loudest bangs I've ever heard in my life. So I called 911 and the rest ensued. I don't want to get into the full details of what happened pending the police investigation and trial, but I thought ......

Posted On Thursday, June 8, 2006 10:35 AM

The Federal Government Moving from Java to .NET?
I found a little light reading entitled "Java Succumbing to .NET in my Organization" by Neil Chaudhuri in which a local Federal Government contractor is moving towards .NET. If you really want to hear arguments on both sides of the aisle, this is it! Talk about light reading... As for me, I prefer .NET technologies which is why I'm starting with Microsoft in about a week. I make no qualms about being an advocate for Microsoft products including .NET, BizTalk, SharePoint, etc. I've done both and I ......

Posted On Wednesday, June 7, 2006 9:04 PM

Static Members and Threading Best Practices
After reviewing some code examples out there, I decided it was time to look into static members and threading best practices. I see a lot of the same mistakes being made over and over. We can think of many times when we create static methods and properties that sometimes we forget that problems can arise. Let's look at a code example: private static int currentNumber = 0; public static int NextNumber{ get { int newNumber = currentNumber; newNumber += 1; // Do more stuff here currentNumber = newNumber; ......

Posted On Wednesday, June 7, 2006 1:23 PM

Reminder - June 10th Reston Code Camp
Just as a reminder that the Reston Code Camp is on June 10th. The Code Camp Schedule has been posted which looks to be a full day of good stuff. I, unfortunately, cannot attend the whole day as I have a concert to go to that night, but I'll try to catch what I can. If you missed signing up, you missed out! They have a wait list, and they will try to do their best to get you in... Hope to see a good crowd there ......

Posted On Tuesday, June 6, 2006 5:46 PM

Script# - Microsoft's Answer to Google Web Toolkit?
A month or so ago, Google released the Google Web Toolkit (GWT) which enabled people to build AJAX-enabled applications in Java. This GWT compiler created browser-compliant Javascript and HTML based upon the Java code which allowed for much easier creation of AJAX applications. Nikhil Kothari from Microsoft, has introduced Script#, which is a compiler which takes C# code and compiles to Javascript instead of IL which the .NET compilers do. The goal is to make the code to have Intellisense, compile-time ......

Posted On Tuesday, June 6, 2006 3:33 PM

Convert any unmanaged string with Managed C++
UPDATE 6/7/2006 Nishant Sivakumar had a project on Code Project entitled StringConvertor which allows the implementer to convert System::String objects to unmanaged char pointers, STL strings, etc in C++/CLI. This is a very handy class to have when dealing with unmanaged code and translating back and forth. I came across the need for some of these things when working with ISAPI technologies where I wanted to easily go between managed and unmanaged strings. I was only using Visual Studio 2003, and ......

Posted On Tuesday, June 6, 2006 12:43 PM

What is an Architect? - Skyscrapr
There is a lot of confusion out there about what an architect is and what kinds of architects there are. Microsoft has introduced a website called Skyscrapr which is designed for architecture which focuses on the different kinds of architecture. This site defines the different types of architects: * Solution Architecture * Infrastructure Architecture * Strategic Architecture * Industry Architecture From this site, they also have blogs for each type of architecture listed above, links to various other ......

Posted On Tuesday, June 6, 2006 8:42 AM

ASP.NET - Project Atlas Toolkit
Microsoft has launched a community development website called CodePlex (Beta) on May 1tth. James Newkirk announced the launch on his May 16th post. This site currently has 23 active projects with a couple that are tests that will go away shortly. The most popular projects are here: * Ajax.NET Professional Starter Kit* Project SharePoint Forums Web Part* Project MSBuild Extras - Toolkit for .NET 1.1 "MSBee"* Project "Atlas" Control Toolkit The one that interests me most at the moment would be the ......

Posted On Tuesday, June 6, 2006 7:36 AM

.NET Code Access Security - Assembly Design Considerations
In previous posts, I talked about designing your classes with security in mind. Designing assemblies is no different when it comes to keeping security in mind at all times. Today I will cover what things to keep in mind when designing secure assemblies. The basic points we will be covering today with regards to assembly security is: * Who is the target for the assembly * Identify Potentially Sensitive Code * Identify the Resources Needed * Explore Trust Levels * Abstract or Sandbox Highly Privileged ......

Posted On Monday, June 5, 2006 2:34 PM

The Most Powerful Language for .NET Programming
Kenny Kerr wrote an article for the MSDN entitled C++: The Most Powerful Language for .NET Framework Programming which is definitely an interesting read. The point of the article is to compare and contrast C++/CLI and its functionality to that of C#. This article focuses on the changes in C++ from the C++ with Managed extensions which came with Visual Studio 2003 that make C++/CLI a much more viable alternative than in the past. When going between Managed C++ and C#, your code could look drastically ......

Posted On Monday, June 5, 2006 10:38 AM

.NET Best Practices - Constrain User Input
In previous posts, I talked about one of the major pillars of security is to never trust user input. We need to verify at every level the data that is in our system. One way of doing this is to implement a validation class that does the heavy lifting for you. I have written a common class that follows the pattern introduced in the Common library from the Enterprises Library to do just this task. This class validates the parameters and throws the appropriate exception type based upon the values given. ......

Posted On Friday, June 2, 2006 2:53 PM

Day 8 of the Background Intelligent Transfer Service (BITS) Managed Wrapper
Update: Put a comment in if you want the C# version of this code and I will get it to you Well, I finally managed to get a spot for the Managed BITS Wrapper on SourceForge.net. I have not uploaded any files just yet, as I am cleaning up one or two things as well as trying to add some test cases to it. I will let people know when I actually have a release out there available. The first available release will be in Managed C++ and then the second release will be in C++/CLI. I left off last time looking ......

Posted On Friday, June 2, 2006 11:44 AM

Assembly Hijacking Presentation
Rocky Heckman did a screencast about Assembly Hijacking that is well worth checking out. It is available in Flash format here: http://www.rockyh.net/Assem... He covers the following topics: * Understanding Attackers * Testing for SQL Injection * Testing for SQL Account Privileges * Probing the file system * Replacing low level libraries (such as logging) * Inference Attacks It is a very good presentation which can open eyes especially to security risks mitigations that ......

Posted On Thursday, June 1, 2006 5:43 PM

Automating SharePoint Deployment Through Post-Build Events
When working on enterprise level applications and even smaller ones, I tend to automate everything for my builds as much as possible. My recent experience with an enterprise SharePoint rollout is no different. I'll walk through a basic scenario where I can deploy my web part library to my local instance through build events. The prerequisite of this of course is that you have the templates installed. If you do not, they can be found here: http://www.microsoft.com/do... ......

Posted On Thursday, June 1, 2006 4:25 PM

Security Tools - Microsoft Threat Analysis & Modeling v2.0 RC1 Released
The ACE Team at Microsoft has released Microsoft Threat Analysis & Modeling v2.0 RC1 this week. Talhah Mir and his team have done a great job with this product. The new features include the following: New Tutorials Auto-generation of use cases Threats sortable by attributes Import Component definitions from Visual Studio Team System for Software Architects (VSTA) SDM Deployment Report Export Countermeasures and Test Cases as Work Items for Team Foundation Server (TFS) Improved Graph and Attack ......

Posted On Thursday, June 1, 2006 12:54 PM

Copyright © Matthew Podwysocki | Powered by: GeeksWithBlogs.net | Join free