Pages

Wednesday, April 25, 2012

Google Drive..... A storage space Online.



 Google Drive is here for us to share and store our data online. Initially it provides us the storage limit of 5 GB. If we have to store more data then we have to pay for it. Here is some of the featuire Google drive offering to us. Currently the drive is not available for every user, but Google ask us to select the “Notify” me option in order to get the information that when our drive is ready. The Punch line is “Keep everything. Share anything.“

Features List

Create & collaborate.
In Google Drive, you can create new documents, spreadsheets and presentations instantly. Work together at the same time, on the same doc, and see changes as they appear.
Use with familiar products
Gmail
           Say goodbye to bulky email attachments. Send a link from Google Drive in Gmail and everyone has the same file, same version—automatically.
Google+
             Your videos and pictures in Google Drive are instantly available in Google+, so you’re never more than one click away from sharing with your circles.

Good Search Option.
Google Drive helps you get to your files faster. Search for content by keyword and filter by file type, owner and more. Google Drive can even recognize objects in your images and text in scanned documents.

Open for Every format.
Open over 30 file types right in your browser—including HD video, Adobe Illustrator and Photoshop—even if you don’t have the program installed on your computer.

Application Support
                Create, open and share files from a variety of apps directly in Google Drive.

Easy Sharing
 You can share files or folders with anyone, and choose whether they can view, edit or comment on your stuff.

Create Discussion Groups.
                Create and reply to comments to get feedback and make files more collaborative.

Saving the older Stuffs
                Google Drive tracks every change you make—so when you hit the save button, a new revision is saved. You can look back as far as 30 days automatically, or choose a revision to save forever.

Thanks,
Anil Kumar Pandey
Microsoft MVP, Community Contributor, DNS MVM


TPL (Technology Premier League 2012)

Hi Friends,
                Here is a news for all of us, the TPL for this year is on so come join this league .Successful corporate IT projects are an amalgamation of astute planning, carefully considered decisions, good technology selection, brilliant project management—and remarkable teamwork.
Unfortunately, skills and abilities of corporate IT teams that achieve these great results are often unknown, under appreciated and unknown. But, that is about to change, with the Technology Premier League 2012.
The Technology Premier League 2012 is a corporate challenge contest jointly developed by ITNEXT and The CTO Forum. The aim of this contest to identify and honor corporate IT teams that have the knowledge, flair and ingenuity to solve complex technology problems—smartly, quickly and correctly.
The contest will involve 20 corporate IT teams in each city. Each 4-member corporate team will be supported by the CIO (or IT head of the organization), The CIO will play the role of a non-playing coach & captain, and will guide and advise the 4-member team during the contest.
The contest will be held over two days in an off-site location in Delhi, Mumbai and Bangalore (boarding & lodging at a 5 Star property will be provided by 9.9 Media). Each team will be given a complex business problem—and will need to create a comprehensive IT solution. The teams will have access to advice from technology specialists and vendors—and can take guidance from the CIO to prepare a winning solution.
All teams will need to present (and defend) its proposed solution to an independent jury. The jury for the Technology Premier League 2012 will comprise senior business leaders, top IT consultants and academic experts. The jury will evaluate the proposed solutions, and decide the winners of the contest.
The best teams (and their CIOs), in each city, will walk away with the honor of the being the Winning IT Team and winning stupendous prizes. Prizes include 15 all paid trips to Las Vegas for the winning teams (and their CIOs),15 weekend getaways, and more.


Locations and Date

Bangalore
19th & 20th May'12
Delhi
26th & 27th May'12
Mumbai
2nd & 3rd June'12 
 
For More details Please log on to this link

Thanks,
Anil Kumar Pandey
Microsoft MVP, Community Contributor, DNS MVM

Tuesday, March 27, 2012

New Features of C# 5.0

Introduction of New Features in C# 5.0

1. C# Evolution Matrix

Microsoft just published a new version of C# : 5.0 beta with CLR version 4.5 (Visual Studio 11 beta).
In order to get a big picture of the whole evolution of C# language, I summarized all the key features
into a C# Evolution Matrix for your reference as below diagram shows:



In C# version 5.0, there are two key features: Async Programming and Caller Information.

2. Async Feature

Two new key words are used for Async feature: async modifier and await operator. Method marked
with async modifier is called async method. This new feature will help us a lot in async programming.
For example, in the programming of Winform, the UI thread will be blocked while we use
HttpWebRequest synchronously request any resource in the Internet. From the perspective of user
experience, we cannot interact with the form before the request is done.

private void
btnTest_Click(object sender, EventArgs e)

{

var request = WebRequest.Create(txtUrl.Text.Trim());

var content=new MemoryStream();

using (var response = request.GetResponse())

{

using (var responseStream = response.GetResponseStream())

{

responseStream.CopyTo(content);

}

}

txtResult.Text = content.Length.ToString();

}




In the above example, after we clicked the Test button, we cannot not make any change to the form
before the txtResult textbox shows the result.

In the past, we can also use BeginGetResponse method to send async request as this sample in MSDN
shows:
http://msdn.microsoft.com/zh-cn/library/system.net.httpwebrequest.begingetresponse(v=vs.80).aspx. But it
will takes us a lot effort to realize it.

Now, we can simply use below code to do request asynchronously :

private async void
btnTest_Click(object sender, EventArgs e)

{

var request = WebRequest.Create(txtUrl.Text.Trim());

var content = new MemoryStream();

Task responseTask = request.GetResponseAsync();

using (var response = await responseTask)

{

using (var
responseStream = response.GetResponseStream())

{

Task copyTask = responseStream.CopyToAsync(content);

//await operator to supends the excution of the method until the task is completed. In the meantime,
the control is returned the UI thread.

await copyTask;

}

}

txtResult.Text = content.Length.ToString();

}

The await operator is applied to the returned task. The await operator suspends execution of the
method until the task is completed. Meanwhile, control is returned to the caller of the suspended
method.

3. Caller Information

Caller Information can help us in tracing, debugging and creating diagnose tools. It will help us
to avoid duplicate codes which are generally invoked in many methods for same purpose, such
as logging and tracing.

We could get the below information of caller method :

Below example are a common practice prior to the new feature of Caller Information:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace
ConsoleApplicationTest

{

class Program

{

static void Main(string[] args)

{

InsertLog("Main");

MethodB();

Console.ReadLine();

}

static void MethodA()


{

InsertLog("MethodA");

MethodB();

}

static void MethodB()


{ }

static void
InsertLog(string methodName)

{

Console.WriteLine("{0} called method B at {1}", methodName,
DateTime.Now);

}

}

}

In both Main and MethodA methods, method InsertLog is invoked for logging. Now we can change the
codes to be as per below lines:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Runtime.CompilerServices;

using System.Text;

using System.Threading.Tasks;

namespace
ConsoleApplicationTest

{

class Program

{

static void Main(string[] args)

{

//InsertLog("Main");

MethodB();

Console.ReadLine();

}

static void MethodA()


{

//InsertLog("MethodA");

MethodB();

}

static void MethodB(

[CallerMemberName] string memberName = "",

[CallerFilePath] string sourceFilePath = "",

[CallerLineNumber] int sourceLineNumber = 0)

{

InsertLog(memberName);

}

static void
InsertLog(string methodName)

{

Console.WriteLine("{0} called method B at {1}", methodName,
DateTime.Now);

}

}

}

4. Summary

The new features in C# 5.0 will help us to code more easily and improve the productivity. Have a nice
experience with the new release of Visual Studio 11!


This Article is written by Our Fellow C# MVP Mr. Fahao Tang. He is associated with MSDN forums. Please provide your valuable comments on this topic.


Thanks
Anil Kumar Pandey


Friday, March 16, 2012

Visual Studio 2011 Beta


Microsoft® VisualStudio™ 11 Beta

Visual Studio 11 Beta Is Here


Download the Beta Now


Sign Up Now


Download Visual Studio 11 Beta today!

Get Visual Studio 11 Beta today and start preparing for the next generation of
development. You can’t predict the future, but you can get there first:

• New HTML and CSS editors extend Visual Studio’s rich editing capabilities to
make HTML 5 and CSS 3 development more productive, as well as enrich
traditional HTML development.

• Visual Studio 11 gives you the tools required to build and deploy Windows Azure
applications, including project templates, a seamless debugging experience, and
easy publishing.

• New designers make building Windows 8 Metro and traditional Windows desktop
applications easier and faster than ever.

• Flexible agile planning tools (like capacity planning, task boards, and product
backlog) allow teams to adopt incremental development techniques and agile
methodologies, like SCRUM, at their own pace.


DOWNLOAD BETA TODAY


Be the first to know!

Get the latest information about downloads, news, and tips for the
next release of Visual Studio delivered directly to your inbox.


SIGN UP TODAY



Sign Up Now



Monday, February 20, 2012

HTML 5 Interesting New Features


Hi Friends Here are some of the Interesting new features which were missing from the earlier version of the HTML. These cool features let the developer create a very RICH web application.

New Doctype :

This features let us Defined a very small Dock type rather than the complicated W3c DTD……. You can have the Dock type now as

<!DOCTYPE html>

<small> :

A new tag has been added to create a sub heading in a small font for example the Copyright and other important information can be created using the SMALL tag.

“type” attribute :

There is no need to specify the type of the file attached in the Link and script sections. We can specify the, directly like

<link rel="stylesheet" href="css/main.css" />

<script src="scripts/main.js"></script>

No Quotes:

We now have freedom to specify the HTML attribute without any quoted. This will leads us the hassle free syntax declaration.

<div id=anil runat=server></div>

Special field for email:

The days are gone when we have to bother for the email validation of the data entered by the user. There is now special fields to have email input that is 100% validated.

<label for="email">Email Address</label>

<input id="email" name="email" type="email" />

Water Mark:

To specify something in the text box in the form of water mark we can make use of a new features that is “Placeholder” this will let us specify the text we want to display in the text box. For example to show the sample email address.

<input name="email" type="email" placeholder="sankkrit@gmail.com" />

hGroup :

This special attribute let us create ht group of the heading for the page, with put affecting the flow of the document thus the heading look like a stream line heading.

<hgroup>

<h1> Dot Net Helper </h1>

<h2> Blog for all .net lovers </h2>

</hgroup>

Required attribute:

Wonder you have to make any field in the form as mandatory and you don’t want to specify the JavaScript or any validator for the same? Yes its possible now with the help of “required” attribute. This will make the field as mandatory.

<input type="text" name="myName" required="required">

Autofocus

This allow us the control to be focused automatically without using any JavaScript this will leads to faster development and less JavaScript errors in the page.

<input type="text" name="myName" placeholder="tester" required autofocus>

Audio and Video Support:

There is a Special Audio element in the HTML 5 which will let us play the audio file directly without relying on any third party control on the page. The YouTube support let us play the video in the web page seamlessly.

Regular expression

Now we don’t have to worry for using the Regular expression to validate the input. We can directly specify them inside the element itself using the “pattern” attribute.

<input type="text" name="username" id="username" pattern="[A-Za-z]{4,10}" autofocus required>

A part from these amazing attributes and features there are some more exciting feature which we are gone loves it. We will cover them later in another article. Till then enjoy and keep exploring HTML5

Thanks
Anil Kumar Pandey.

Thursday, February 16, 2012

Download: .NET Framework 4.5 Developer Preview

Hi Friends,
The .NET frameword 4.5 (Developer Preview is no available) you can download it to start using it and can share your feed back and comment on the same. The Microsoft .NET Framework 4.5 Developer Preview is a prerelease version of the .NET Framework. This software installs the components required to develop and run applications that target the .NET framework 4.5 Developer Preview.

System requirements
Supported Operating Systems: Windows 7, Windows Server 2008, Windows Server 2008
Windows 7 (x86 and x64)
Windows Server 2008 (x86 and x64)
Windows Server 2008 R2 (x64)
Windows Developer Preview (x86 and x64)
Windows Server Developer Preview (x64)
Supported Architectures:
32-bit (x86)
64-bit (x64)

Minimum Hardware Requirements:
1 GHz or faster processor
512 MB of RAM
850 MB of available hard disk space (x86)
2 GB of available hard disk space (x64)

Instructions
Note: Windows Developer Preview and Windows Server Developer Preview include the .NET Framework 4.5 Developer Preview, so there is no need to install this software on those operating systems.


Download the Setup
To install the software immediately, click Run, and follow the instructions on the screen.
To save the download to your computer for installation at a later time, click Save.
To cancel the installation, click Cancel.
Note: To download the full package directly by using the web installer, see the .NET Framework 4.5 Developer Preview (Web Installer).


Additional information
This version of the .NET Framework runs side-by-side with .NET Framework 3.5 and earlier versions, but performs an in-place update for the .NET Framework 4. To revert to .NET Framework 4, perform the following steps:
Uninstall .NET Framework 4.5 Developer Preview.
Install .NET Framework 4.
Windows Developer Preview and Windows Server Developer Preview include
the .NET Framework 4.5 Developer Preview, so there is no need to install
this software on those operating systems.

Download from here

Thanks
Anil Kumar Pandey

Kontera