Monday, September 5, 2011
what’s new in the CLR 4.0 GC...
Concurrent GC has existed since CLR V1.0. For a blocking GC, ie, a non concurrent GC we always suspend managed threads, do the GC work then resume managed threads. Concurrent GC, on the other hand, runs concurrently with the managed threads to the following extend:
§ It allows you to allocate while a concurrent GC is in progress.
However you can only allocate so much – for small objects you can allocate at most up to end of the ephemeral segment. Remember if we don’t do an ephemeral GC, the total space occupied by ephemeral generations can be as big as a full segment allows so as soon as you reached the end of the segment you will need to wait for the concurrent GC to finish so managed threads that need to make small object allocations are suspended.
It still needs to stop managed threads a couple of times during a concurrent GC.
During a concurrent GC we need to suspend managed threads twice to do some phases of the GC. These phases could possibly take a while to finish
We only do concurrent GCs for full GCs. A full GC can be either a concurrent GC or a blocking GC. Ephemeral GCs (ie, gen0 or gen1 GCs) are always blocking.
Concurrent GC is only available for workstation GC. In server GC we always do blocking GCs for any GCs
Concurrent GC is done on a dedicated GC thread. This thread times out if no concurrent GC has happened for a while and gets recreated next time we need to do concurrent GC.When the program activity (including making allocations and modifying references) is not really high and the heap is not very large concurrent GC works well – the latency caused by the GC is reasonable. But as people start writing larger applications with larger heaps that handle more stressful situations, the latency can be unacceptable.
Background GC is an evolution to concurrent GC. The significance of background GC is we can do ephemeral GCs while a background GC is in progress if needed. As with concurrent GC, background GC is also only applicable to full GCs and ephemeral GCs are always done as blocking GCs, and a background GC is also done on its dediated GC thread. The ephemeral GCs done while a background GC is in progress are called foreground GCs
Wednesday, June 9, 2010
Understanding JSON:
JavaScript Object Notation.
And what does that mean?
JSON is a syntax for passing around objects that contain name/value pairs, arrays and other objects.
Here's a example of JSON:

and we will compare this by a XML so this will loo like this

and if you want to access these values as a object form
var result = (Country.State[0].name)
so by this we will get the result "U.P"
quiggles, Squares, Colons and Commas
1. Squiggly brackets act as 'containers'
2. Square brackets holds arrays
3. Names and values are separated by a colon.
4. Array elements are separated by commas
Comparison with an array object
Object literals are created with curly brackets:
var Beatles = {
"Country" : "England",
"YearFormed" : 1959,
"Style" : "Rock'n'Roll"
}
This is the equivalent of:
var Beatles = new Object();
Beatles.Country = "England";
Beatles.YearFormed = 1959;
Beatles.Style = "Rock'n'Roll";
Tuesday, June 8, 2010
Google Custom Search
http://code.google.com/apis/customsearch/docs/ui.html
you can use this this API after changing little bit as per your requirement.
Monday, May 31, 2010
Tools and Utilities for the .NET Developer
http://geekswithblogs.net/mbcrump/archive/2010/05/25/tools-and-utilities-for-the-.net-developer.aspx
Sunday, May 23, 2010
Implementation of MVC

This is new and effective design pattern for designing the Code structure.
This is defining my these three type
1.Model
2.View
3.Controller
MODEL: Model is responsible for data processing, like database connection, querying database, implementing business rules and other resposibilities related to the database.Model responds to the request made by controllers and notifies the registered views to update their display with new data.
VIEW: View basically related to the logical part of the structure this will having the logic of processing the data from the contoller ---> Model and after that processing the data from the Model --> Controller.
CONTROLLER:
Controller is responsible for Notice of action. Controller responds to the mouse or keyboard input to command model and view to change. Controllers are associated with views. User interaction triggers the events to change the model, which in turn calls some methods of model to update its state to notify other registered views to refresh their display.
Benefits:
#Since MVC handles the multiple views using the same enterprise model it is easier to maintain, test and upgrade the multiple system.
#It will be easier to add new clients just by adding their views and controllers.
#It is possible to have development process in parallel for model, view and controller.
Drawbacks:
#Requires high skilled experienced professionals who can identify the requirements
#It requires the significant amount of time to analyze and design.
Tuesday, May 11, 2010
New feature in .NET 4.0 called the Task Parallel Library
using System;
using System.Threading.Tasks;
namespace ParallelForSample
{
public class Multi
{
public static void Calculate(int val)
{
Utility util = new Utility();
util.Start();
int[,] G = new int[val, val];
Parallel.For(0, val,
delegate(int k)
{
Parallel.For(0, val, delegate(int i)
{
for (int j = 0; j < val; j++)
G[i, j] = Math.Min(G[i, j], G[i, k] + G[k, j]);
});
}
);
util.Stop();
}
}
}
Wednesday, February 24, 2010
" Slip Don’t Fall "
Even the most disciplined, motivated people in the world have days when they don’t take action and don’t follow through. The difference between those who succeed and those who fail is that successful people slip but they don’t fall.
Here’s a graph that shows how successful people progress towards achieving a goal:

As you can see from this graph, successful people DO slip up, but they always recover quickly. Compare this with the graph of people who fail:

Instead of recovering after a slip up, an unsuccessful person allows a slip to become a Fall.
Option 1: You can start thinking negative thoughts and criticizing yourself by saying things like, "I don’t have any will power" or "I’m just hopeless – I never follow through".
This is the approach of those who fail. Self criticism leads them into a downward spiral that inevitably ends in failure.
OR
Option 2: You can accept that you slipped up and simply say:
"OK, I slipped, but I will not fall!"
When you take this approach, you quickly overcome your slip up and get back on track towards achieving your goals.
So today, I’d like to encourage you to change your approach to dealing with slip ups. Instead of criticizing yourself, just accept the situation and make the decision that even when you slip, you will get back on track quickly and will not allow a slip to become a fall.
Until Next Time,
Dare To Dream
Monday, February 15, 2010
Create an iPhone Web App
When designing for the iPhone OS, you should use the iPhone simulator available in the SDK to get an idea of where your design is heading. You can also use Safari to get a pretty close representation, but nothing beats using a real physical device. It’s amazing how cool it feels and you really do get the impression it’s a native application.
you can also follow the this link...good article..
http://theappleblog.com/2010/02/12/how-to-create-an-iphone-web-app/
Sunday, September 27, 2009
Session Management in asp.net
There are 2 types State Management:
1. Client – Side State Management
This stores information on the client's computer by embedding the information into a Web page, a uniform resource locator(url), or a cookie. The techniques available to store the state information at the client end are listed down below:
a. View State – Asp.Net uses View State to track the values in the Controls. You can add custom values to the view state. It is used by the Asp.net page framework to automatically save the values of the page and of each control just prior to rendering to the page. When the page is posted, one of the first tasks performed by page processing is to restore view state.
b. Control State – If you create a custom control that requires view state to work properly, you should use control state to ensure other developers don’t break your control by disabling view state.
c. Hidden fields – Like view state, hidden fields store data in an HTML form without displaying it in the user's browser. The data is available only when the form is processed.
d. Cookies – Cookies store a value in the user's browser that the browser sends with every page request to the same server. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.
e. Query Strings - Query strings store values in the URL that are visible to the user. Use query strings when you want a user to be able to e-mail or instant message state data with a URL.
2. Server – Side State Management
a. Application State - Application State information is available to all pages, regardless of which user requests a page.
b. Session State – Session State information is available to all pages opened by a user during a single visit.
Both application state and session state information is lost when the application restarts. To persist user data between application restarts, you can store it using profile properties.
one more intresting link is there..
http://www.codeproject.com/KB/aspnet/SessionManagementAspNet.aspx
Monday, August 24, 2009
Jai Hind "ISRO Bhuwan"
News
But there is something special in Bhuvan that keeps Google Earth and Wikimapia aside. Bhuvan will have a greater zooming efficiency that will help you recognize details upto a 3 storey building and all its data will be updated every year, unlike Google and Wikimapia which updates in every 4 years.
As per official sites and TOI:
Bhuvan allows you to zoom far closer than the aerial view from a chopper. If Google Earth shows details upto 200 meters distance and Wikimapia upto 50 meters, Bhuvan will show images upto 10 meters, which means you can easily see details upto a three floor high building and also add information.
SO See is it better than google earth ?
JaiHind ...
DHTML Introduction
* HTML
* JavaScript
* CSS
For better under standing of the DHTML.
DHTML stands for Dynamic HTML.
According to the World Wide Web Consortium (W3C):
"Dynamic HTML is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated."
DHTML Technologies
HTML 4
The W3C HTML 4 standard has rich support for dynamic content:
* HTML supports JavaScript
* HTML supports the Document Object Model (DOM)
* HTML supports HTML Events
* HTML supports Cascading Style Sheets (CSS)
DHTML is about using these features to create dynamic and interactive web pages.
JavaScript
JavaScript is the scripting standard for HTML.
DHTML is about using JavaScript to control, access and manipulate HTML elements.
You can read more about this in the next chapter of this tutorial.
HTML DOM
The HTML DOM is the W3C standard Document Object Model for HTML.
The HTML DOM defines a standard set of objects for HTML, and a standard way to access and manipulate them.
DHTML is about using the DOM to access and manipulate HTML elements.
You can read more about this in a later chapter of this tutorial.
HTML Events
The W3C HTML Event Model is a part of the HTML DOM.
It defines a standard way to handle HTML events.
DHTML is about creating web pages that reacts to (user)events.
You can read more about this in a later chapter of this tutorial.
CSS
CSS is the W3C standard style and layout model for HTML.
CSS allows web developers to control the style and layout of web pages.
HTML 4 allows dynamic changes to CSS.
DHTML is about using JavaScript and DOM to change the style and positioning of HTML elements.
You can read more about this in a later chapter of this tutorial.
Deklarit tool for .net overview
Introduction about the tool Deklarit(Data Modeling tool based on .net concept)
> DeKlarit is the Model Driven tool that combines agile database modeling, declarative business rules, automatic code generation and seamless integration with Microsoft Visual Studio.
>DeKlarit is the unique data modeling and code generation tool that enables you to concurrently generate and maintain the data model, the data access and the business logic layers of your .NET-connected applications.
>The DeKlarit Add-ins provides a complementary toolset to generate from components to complete presentation or web services layers. DeKlarit is fully integrated into Visual Studio .NET.
Why DeKlarit?
- An automatic way of building complex applications incrementally with efficient change management
- A Rapid Application Development tool for the business rules and data access layers.
- No need for expertise in database design or building middle tier components. It allows you to focus on the rest of the application.
- Support for both Microsoft SQL Server and Oracle
Projects can be generated in C# or Visual Basic .NET
-------Main Features of Deklarit
- Provide an intuitive way to model your business entities
- Creates and maintains a normalized database schema
- Generates the Business Logic and Data Access layers as a set of ADO.NET strongly typed DataSets and DataAdapters
- Has a Declarative business rule language,these rules are declared, not written in procedural code
so as to enable a higher level of definition of your business
- Includes a Database reverse engine tool
- Supports Database refactoring
