Sunday, April 02, 2006

.NET: Introducing Generics in the CLR -- MSDN Magazine, Visual Studio 2005 Guided Tour

.NET: Introducing Generics in the CLR -- MSDN Magazine, Visual Studio 2005 Guided Tour: "Generics are a shipping feature of the Microsoft� .NET Framework 2.0, and managed code is faster, more maintainable, and more robust because of it.
Generics are an extension to the CLR's type system that allow developers to define types for which certain details are left unspecified. Instead, these details are specified when the code is referenced by consumer code. The code that references the generic type fills in the missing details, tailoring the type to its particular needs. The name generics reflects the goal of the feature: to enable the writing of code while not specifying details that might limit the scope of its usefulness. The code itself is generic. I'll get more specific in just a moment.

A First Look at Generics

As with any new technology, it is helpful to ask just why it's useful. Those of you who are familiar with templates in C++ will find that generics serve a similar purpose in managed code. However, I hesitate to draw too much of a comparison between CLR generics and C++ templates because generics have some additional benefits, as well as some limitations.
Some of the strengths of CLR generics are compile-time type safety, binary code reuse, performance, and clarity. I'll briefly describe these benefits, and as you read the rest of this article, you'll understand them in more detail. As an example let's take two hypothetical collection classes: SortedList, a collection of Object references, and GenericSortedList, a collection of any typeT."

.NET Profiling: Write Profilers With Ease Using High-Level Wrapper Classes -- MSDN Magazine, April 2006

.NET Profiling: Write Profilers With Ease Using High-Level Wrapper Classes -- MSDN Magazine, April 2006: " Profiling API of the common language runtime (CLR) provides services that exceed the needs of typical function and memory profilers. The latest extensions of the Profiling API for the Microsoft� .NET Framework 2.0 increase this functionality even further. These extensions enable tools to trace not only method calls at the class level, but also data flow across assembly boundaries without the need to instrument Common Intermediate Language (CIL) code for that purpose.
However, the powerful functionality and technical details of this API compromise its simplicity and usefulness. Programming with the CLR Profiling API can be laborious and error-prone because the numerous services are organized in an interface that applies a primarily functional design at a low level of abstraction.
In this article we will present a high-level, easy-to-grasp, and easy-to-apply profiling API, based on the CLR Profiling API, that conceals the mechanisms necessary to filter elementary profiling data and to rejoin them into semantically coherent concepts. Programming with the high-level API should considerably reduce the development effort required to construct various types of tools that profile a program, as it affords an abstraction level close to that of high-level languages within the .NET Framework."

Service Station: Migrating to WSE 3.0 -- MSDN Magazine, April 2006

Service Station: Migrating to WSE 3.0 -- MSDN Magazine, April 2006: "Major Changes in WSE 3.0

MSDN� recently published an article entitled 'What's New in WSE 3.0,' written by Mark Fussell, Lead Program Manager on the WSE team. This article summarizes the major changes and improvements to the product since WSE 2.0, including integration with the .NET Framework 2.0 and Visual Studio� 2005, simplified security through a new-and-improved policy architecture, and support for sending large amounts of data with Message Transmission Optimization Mechanism (MTOM). Additional changes include improved session management (via WS-SecureConversation), support for hosting ASMX services outside of IIS, and support for the latest WS-* specifications.
Although the WSE team tried hard to ensure backward compatibility, some of these changes affect the core programming model that you must address to update existing WSE 2.0 solutions.
The good news is, once you've migrated to WSE 3.0, you'll have more communications options. WSE 3.0 supports the latest WS-* specifications�the same ones supported by Windows� Communication Foundation (WCF)�making WSE 3.0 and WCF wire-compatible. This means WCF clients can interoperate with WSE 3.0 services and vice versa, removing the need for continued migration."

The Architecture Journal - Issue 6: Behavioral Software Architecture Language

The Architecture Journal - Issue 6: Behavioral Software Architecture Language: "Behavioral Software Architecture Language
by Behzad Karim
Summary: Software architecture is a hot keyword these days for people in our profession. It seems everyone is out to discover the true potential of the software architecture and what it can bring into play for them. The basic idea of architecture definition is to design software structure and object interaction before the detailed design phase. Although serious architecture definition is being suggested for large projects only, arguably any software construction or implementation work must be preceded by an architectural design and approval phase. Get acquainted with BASL, a language that unifies software architecture definition with software implementation (coding)."

The Architecture Journal - Best Practices for Rule-Based Application Development

The Architecture Journal: "Best Practices for Rule-Based Application Development
Dennis Merritt
Amzi! Inc.
January 2004
Summary: Takes a high level view of knowledge and looks at different types of knowledge and their mappings to executable computer code to gain insights into when and why rule engines provide advantages over conventional software development tools. "

Saturday, April 01, 2006

Working with Skins and new controls in .NET 2005

I was helping the team in getting a proper UI.

We are using SKins and Themes for the same.

Getting a proper look for all controls was easy except for the following:
Grid View
Details View
Forms View

AFter a lot of experimenting and failures, I decided to get the desired look using the properties, and implement the code in Skin with changes. And it worked.

I am presenting the sample for different controls for convenience of those who need it.

Grid View, we need to give the Skin as below:





For Wizard, we need to give it as below:

StepPreviousButtonType="Link" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderWidth="1px" Font-Names="Verdana">


BorderWidth="1px" Font-Names="Verdana" Font-Size="8pt" ForeColor="#284E98" />

Font-Bold="True" Font-Size="8pt" ForeColor="White" HorizontalAlign="Center" />


For Buttons inlcuded in any of the Controls listed above, we need to mention in the source code where ever we see
or


ButtonClass is a class in the CSS file that defines the style. If this piece of code is not added, you may end up seeing small buttons on the screen.

One more thing I had found out while working is that Skin is having less effect on DetailsView.

Please correct me if I am wrong.

Monday, March 27, 2006

Learning-phase

The past few months has been really hectic. I was into new projects, in a different role. Could not make time to post here.
There were a lot many new things I had learnt during this phase, came across many a critical situation where thoughts and logic has to be utilized to the best. Finally, yes, all the situations were solved.

one of the main challenges we had faced was to create a PDF file dynamically using Crystal Reports 9 in VS.NET 2003, and display the dynamic images. Let me explain in detail. The requirement was to create a PDF file that displays the images stored on harddisk for a particular item in the database. These items will be decided based on criteria. All the process is automated.

We had decided to use Crystal Reports. Conversion to PDF was easy, if its displaying the report and then exporting. Runtime, we faced some issues. Thanks to the articles all over the internet, (Will post another article in detail), we solved the issue. Next, the chanllenge was to display images dynamically. CR 9 cannot display dynamic images. It can read only pre-defined images from a location or display from DB. But, we were not using DB to store images, as that would increase the DB load. MySQL was the DB and it has some restrictions regarding GIF, when it comes to CR.
we have to overcome all these issues, and finally, after much thoguh process, we came over. I intend to publish the details in another post, for the ease of developers who face the similar situation.

Next is another challenge, learning .NET 2005 and executing a project with in a short period. Well, we did it. And this time, we faced issues with DB. SQLServer 2005 is different from its earlier versions, and hence some of the regualr commands failed. we have to find our way out. The complexity of the queries that we executed was high. Also, there were lot of dynamic queries.
Thanks to our Database team, we were able to complete it, and it was a learning curve for all of us. A post on the issues we faced during development will done, to help others in work arounds. There are lot issues that we faced in .net 2005 and that was a learning curve.

Now, we are gearing up for the next challenge.

One thing is true, the more the technology advances, the more complex will be the tasks that we execute and complex tasks give immense satisfaction :-)

Thursday, August 04, 2005

Help required with Blogger software

Hey,

anyone who come across this post, I need a help.

We are planning to host Blogging software in our organization so that our colleagues would start posting their entries for intranet.

I am on lookout for a software that's suitable for corporate environment, but is open source.

After going through all the available Open source or GPL licensed software, am confused on which of the following is the best

1. Drupal
2. Wordpress
3. Textpatten
4. Pivot
5. b2Evolution

The numbering is not in the ranking of the prefrence, but, if someone can help me in the ranking, that would be a great help.

Thanks
Kiran

Monday, July 25, 2005

Developing Software in Visual Studio .NET with Non-Administrative Privileges

Developing Software in Visual Studio .NET with Non-Administrative Privileges

Security is important. No one argues with this and everyone spends a lot of time thinking about security issues, security bugs, and malicious users. However, very few people are willing make the effort to eradicate the largest single reason that e-mail viruses and cracks in general are so dangerous: everyone logs in as a user who is a member of the local Administrators group, and most services run as Administrators. The principle of "least privilege" states that running with the minimal set of rights needed to perform an action minimizes the damage done when something bad happens, whether it is a corrupt attachment in an e-mail received from Outlook, or a service that has a security risk. By running programs without Administrative privileges whenever possible, you ensure a more secure environment.

Currently available software often requires elevated privileges in order to run correctly. To end this situation, developers must take the first step and stop running as administrators. Then, if we all consistently log in, develop, and test applications as non-administrative users, the software we produce is more likely to be executable without artificial requirements of elevated privileges. Until developers fix the software they are writing and shipping, users will never be able to run in a secure environment, too!

Came across this while searching for some info and then it being a useful article, decided to blog it so that others who are facing problems with privilieges while working with Visual Studio.Net may find it useful

Thursday, July 14, 2005

How to write content on MSDN Blogs?

Hey,

I was trying to get an account for myself on MSDN blogs and atlast got an account. But, when I tried to see the way to post content, I couldnot find any.

Is there a way to post content there?


Please do let me know.