Monday, May 31, 2010

Tools and Utilities for the .NET Developer

Please follow this link..

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

A new feature in .NET 4.0 called the Task Parallel Library. With this library, it is much easier to write code in a managed language that makes use of multiple cores where available. This gives us the option to write code as parallel tasks that are run concurrently across available processors; generally resulting in significantly speeded up code.



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 "

One of the most important things to know on your journey to success is that you will occasionally slip up. It’s how you respond to these slip ups that will determine if and when you achieve your goals.


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

This is where iWebKit comes in. iWebKit is a free framework package for creating websites and applications that are optimized for the iPod Touch, iPhone & iPad. The bulk of the framework is CSS3 which can work its magic to makeover any dreadful site and make it look fresh.

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

Types of State Management

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"

http://isrobhuvan.in/
News paper articles were flooded with the "ISRO Bhuvan" and it was quite annoying for me to see the same term everywhere in my feed reader as well. Finally I had an eager to know, what exactly ISRO’s Bhuvan is? The answer to this question was quite interesting.. I came to know that Bhuvan is a competitor for Google Earth and would provide services similar to Google Earth and Wikimapia but it will be confined only within India.

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 ...