Monday, December 17, 2012

NameValueCollection In C#.NET

Introduction: In this article we will see what is NameValueCollection  class provided by .NET and when to use this class.

Description:

1.       It’s a data structure that store data in Key(String) and Value(string) format.
2.       It allows user to store multiple(duplicate) values for the same Key.
3.       You can access data either via Key or via index.
4.       It’s very similar to HashTable that also allow you to store data in Key and Value format.
5.       When you add a value in the NameValueCollection , Its size grows automatically by relocation.
6.       This class is situated in System.Collections.Specialized namespace.
7.       Its performance is very poor than any other data structure like List, Dictionary or Hash Table so you must be very careful while choosing this data structure unless you tested it for performance.

Saturday, December 15, 2012

Display Image Gallery Using Repeater In ASP.NET

Introduction:  In this article we will learn how to create a image gallery using repeater control in asp.net. Follow simple steps for this ..

Procedure:

1. Drag and Drop a repeater from toolbar in your asp.net web page.

2. Design the layout in the <Item Template></Item Template> section as per requirement or simply paste  this code.

<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<h2>
Product Category List</h2>

Swap Value In A Table Column

Introduction:  In This article we will see how to interchange the values of  a column in a table. Sometimes in our development cycle we may have to face a situation where we might have to interchange the values of a table column. SQL has provided us a very useful query for this purpose.

Example:  Suppose you have a Product table as below. And you have to swap the active field values i.e. True must be False and False must be True.

Tuesday, November 27, 2012

Difference between WCF and Web service

Web service is a part of WCF. WCF offers much more flexibility and portability to develop a service when comparing to web service. Still we are having more advantages over Web service. Following points provides detailed difference between them.


Web Service:




  • Hosting -It can be hosted in IIS.

  • Programming -[WebService] attribute has to be added to the class.

Features of WCF

WCF includes the following set of features:

Service Orientation 

One consequence of using WS standards is that WCF enables you to create service oriented applications. Service-oriented architecture (SOA) is the reliance on Web services to send and receive data. The services have the general advantage of being loosely-coupled instead of hard-coded from one application to another. A loosely-coupled relationship implies that any client created on any platform can connect to any service as long as the essential contracts are met.

Windows Communication Foundation


Important Sql Queries

Introduction: In this article i am going to give some of very useful SQL Queries that are required to us in our day to day programming life.

1. Get current Database Name:  Select DB_NAME()


2. Get Details Of All Databases Present In SQL Server: Select * from sys.databases


3. Rename A Database: Exec sp_renamedb ‘oldDatabaseName’ , ‘newDatabaseName’

Dataset Vs DataReader

Introduction: Following are some of the differences between DataSet and DataReader objects in .NET.























































        Dataset          DataReader


  • It is used in disconnected architecture




  • It is connection oriented.




  • Works with multiple tables




  • Works with single tables




  • Forward and backward scanning of data.




  • Only forward scanning is possible




  • We can make several edits on the dataset.




  • It is read only record set.




  • Occupy more memory




  • Occupy less memory.




  • Relationship can be maintained




  • Relationship can’t be maintained.




  • Relatively slower data access




  • Faster than data set.




  • Works with multiple records at a time.




  • Works with only 1 record at a time.




  • Transactions can be handled




  • No transaction can be handled as its read only.




  • Can be bind to multiple controls




  • Can be bind to a single control only




  • More overhead in memory as it is heavyweight




  • Lightweight object hence very less overhead




  • Supported by VS.Net tools




  • Must be manually coded.


Thursday, November 22, 2012

Filter GridView Using tablesorter_filter plugin in ASP.NET

Introduction: Hey guys in the previous article i have explained how we can sort gridview and paginate gridview in asp.net at client side without making any postback to server using very small jQuery plugins for table sorting paging, filter. In this article i am going to explain how we can implement the filtering of records based on any column or group of columns either in a table or girdView. You can download each of these plugins by clicking here.

Wednesday, November 21, 2012

Gridview Paging With TableSorter Pager Plugin




Introduction:  In the previous article i have illustrated how we can use table sorter plugin into ASP.NET GridView Control to sort records displayed in gridview at client side without consuming server resources..This article describes the implementation of Pager ad-on of the table sorter plugin with GridView in ASP.NET to display paged records at the client side. So without making any post back you would be able to display desired no of records in gridview. So this would be a great approach if your application is going to contains large chunk/amount of data  that need to sort and display at client side.

Tuesday, November 20, 2012

Sort GridView Using Table Sorter At Client Side

Introduction:


First of all i would like to introduce you with the table sorter. It's an add-on that uses jQuery plugin to sort the table at client. Since we are sorting table at client side so no server resources is being consumed and no post back occurs and no load on server side for sorting the table. you can download this plugin from the following website www.tablesorter.com .Christian Bach is the author of this plugin which did a fantastic job.

Monday, November 19, 2012

Display Watermark Using jQuery For TextBox Controls

Introduction:  In this article i  will demonstrate how we can show watermark effect in asp.net textbox controls using jQuery.

Procedure: Follow these steps.

1. Download the java script that i have created for jquery by clicking this link.

2. Pass the reference of this java script in the head section as follows.

<script src="../Scripts/WaterMark.min.js" type="text/javascript"></script>

Saturday, November 17, 2012

How to display an image gallery using Repeater in ASP.NET

Introduction: Hey guys in this article i am going to demonstrate that how we can display an image gallery using repeater in ASP.NET. Its very simple and just follow following steps.

Procedure:

1. Either create a new page or project.

2. Drag and drop a  FileUploader and a Button control in your ASPX page.

3. To display a gallery put a Repeater control in the page.

4. In the <ItemTemplate > section of repeater put an image control to display images. Set height and width of this image control.

Thursday, November 15, 2012

Display Tooltip On Mouse Hover Using jQuery UI

Introduction: In this article i am going to explain that how we can show tolltip at mouse hover event on any html control using jquery UI.

Description: Its very simple and just follow these steps.

1. Add reference of jQuery1.9 UI in the aspx page or master page in between <Script> tag

2. Set Title attribute to those html controls for whom you want to show tooltip.

3. Add following method to display tooltip for all control in the html page in between <Script> tag.
$(function () {

         $(document).tooltip();

})

This method will display tooltip for all the controls in html page whose title attribute is set.
$(function () {

         $('#'txtName).tooltip();

})

However if you want to display tooltip only for selected controls then instead of (doument) you will have to use id (#'txtname') eg of that specific controls.

4. Run your page in the browser to see the effect.

Example:

Thursday, October 11, 2012

An Overview About Generics In C#.NET

History:

The approach of generic programming has been started in 1983 by Ada programming language to reduce the duplication of code by writing a common set of methods and types that differ only by types or environment they are being used.

Introduction:

The term generic programming was originally coined by two guys named David Musser and Alexander Stepanov  to describe an approach for software decomposition. In this approach fundamental requirements on types are abstracted from across concrete examples of algorithms and data structures.

So in general terms generic programming is a style of computer programming in which algorithms are written in terms of to-be-specified-later types that are instantiated when needed for specific types provided as parameters.

An Overview Of Dictionary In C#.NET

Dictionary in C# :




  • Dictionary is a generic class that belongs to System.Collection namespace in .NET.

  • The dictionary type in C# allow user to retrieve corresponding value very fast with key value.

  • A dictionary can store Keys and Values of any data type in .NET.

  • It provides a mapping from a set of keys to a set of values .

  • Represented as Dictionary<TKey, TValue> pair where TKey represents Key and TValue represents the value associated with the key.

Tuesday, October 09, 2012

Optimization Of Stored Procedure In SQL Server

This article describes that how we can optimize the Stored Procedures so that we can get better performance while our application is talking to database. I am enlisting some of the points from my personal experience.

 

1)    Always Use Fully Qualified Name For All Database Objects:


While working with stored procedure we need to pass name of database objects (table, view, function, other stored procedure(s) etc.) several times. I recommend every developer to use fully qualified object names instead of using only object name. There is a very strong reason behind this recommendation.





  • SQL server always has to find supplied database object name from sys object that took some millisecond of processing time and consumption of CPU resources. And if, we pass fully qualified name then that processing time and CPU resource consumption to search the object from sys objects get reduced to significant amount.



  • Another reason behind the scene is it helps SQL Server to directly finding the Complied Cache Plan if available instead of searching the objects in other possible schema. This process of searching and deciding a schema for a database object leads to COMPILE lock on stored procedure which decreases the performance of a stored procedure.



Wednesday, October 03, 2012

Overview Of List Type In C#.NET

List Class : List is a member of System.Collection namespace in .NET which is having lots of features. 

Declaration: List is declared as follows. 

               List<int> list = new List<int>(); 

Description:



  1. List type in C# resizes itself if required hence you don’t need to worry for size of List.



  2. Used for Linear Collection which are not accessed by Keys.



  3. Lists are considered generics and constructed types.



  4. We must have to use <> (angle bracket) in the List declaration.



  5. It provides many attributes and methods to work with List type; some of them are described with example below. 

Monday, September 24, 2012

Xml manipulation in ASP.NET using C#

HI guys,
While working with Xml using C# ,yesterday i found it very simple. We can easily create, modify and delete nodes in Xml files. So its not a bif deal to work with it. So i simply give you an example od working with Xml file which is consumed by a web service and displaying records from Xml into a GridView in asp.net page. Following is the sample.

Friday, August 31, 2012

How to improve code performance using jQuery

Hi guys,
In this article i am enlisting some of the very important points which every developer need to consider while working with jQuery to enhance the performance of code . Examples would be generating very long tables with a lot of rows using AJAX to get JSON data. Or iterating through a long (very long) list of data, etc.


Thursday, August 30, 2012

How to improve performance of web application or portal




In this article i will explain some of the points that all developers must be familiar. Whenever we are planning to develop a web application or web portal we must know these point so that performance of our application is good. So following are the considerable points:--




  • Turn off Tracing unless until required


Tracing is one of the wonderful features which enables us to track the application's trace and the sequences. However, again it is useful only for developers and you can set this to "false" unless you require to monitor the trace logging.

How to improve performance of Database Operations in application

 Hello Guys.


                   Today I am going to explain some tips that I have realized to improve the performance of web application or portal in context of database operation. We all know that without any database no dynamic website/application or portal can function.  So it’s very important for us to effectively work with database. Following are some of the points which we need to consider while designing and developing our application so that its performance is always better. And we wouldn’t have to worry after the application development that how to optimize this application as its performance is very poor with respect to others.


Thursday, August 16, 2012

Dynamic SQL Statement in SQL Server

Dynamic SQL:



  • A dynamic sql statement is a set of sql statements which are constructed at execution time.



  • We may have to face certain condition in our application development where we might have to retrieve records from different table based on different conditions then in that scenario we do use dynamic SQL.



  • These dynamic Sql statement doesn’t parsed at compile time so it may introduce security vulnerabilities in our databse so we should try to avoid using dynamic sql as much as possible.



  • There are two ways to execute a dynamic sql statement in sql server:-



sp_executesql
EXECUTE()



  • Although these two methods produces same results but there might be certain scenario where it may produce different results.



Following is little description about the above two methods:

1.       sp_executesql :-




  • It is a system stored procedure.



  • It allows parameters to be passed IN or OUT of the dynamic sql statement.



  • It is less susceptible to SQL Injection.



  • Higher chance for sql string to remain in cache which results better performance when the same sql statement is executed.



  • Clean code hence easier to read and maintain.



  • Support parameter substitution hence more preferable than EXECUTE command.



  • Syntax:-




                       sp_executesql [@sqlstmt ],[ @ParameterDefinitionList],[ @ParameterValueList ]

2.       EXECUTE():-



  • When we use this command the parameters should be converted to characters.



  • Syntax:-



EXECUTE (@sqlStmt)

Example:-

Create procedure sp_GetSalesHistory

(

                @WhereClouse nvarchar(2000)=NULL,

                @TotalRowsReturned  INT OPUTPUT

)

AS

BEGIN

                DECLARE @SelectStmt         nvarchar(),

                DECLARE @FullStmt             nvarchar(),

                DECLARE @ParameterList   nvarchar()

                SET @ ParameterList   = ’@TotalRowsReturned  INT  OUTPUT ’

SET @ SelectStmt       =  ‘SELECT @ TotalRowsReturned   = COUNT(*) FROM SalesHistory’

SET @ FullStmt           = @ SelectStmt     + ISNULL(@WhereClouse,’ ’)

PRINT @ FullStmt

EXECUTE sp_executesql @ FullStmt           ,@ ParameterList   ,@ TotalRowsReturned  =@ TotalRowsReturned  OUTPUT

END

What is a singleton in C#.NET?

 

A singleton is a design pattern used when only one instance of an object is created and shared; that is, it only allows one instance of itself to be created. Any attempt to create another instance simply returns a reference to the first one. Singleton classes are created by defining all class constructors as private. In addition, a private static member is created as the same type of the class, along with a public static member that returns an instance of the class. Here is a basic example:
public class SingletonExample {
private static SingletonExample _Instance;
private SingletonExample () { }
public static SingletonExample GetInstance() {
if (_Instance == null)  {
_Instance = new SingletonExample ();
}
return _Instance;
}
}
 

Wednesday, August 01, 2012

Number To Word Conversion In C#

HI guys,

               Today i am going to write a program that converts any no input into the system into Word. This program might be asked sometimes during the interview to check the Logic of candidate. so here is the program...

Tuesday, July 31, 2012

Numeric value validation on TextBox

[caption id="" align="alignleft" width="300"]JQuery JQuery (Photo credit: Wikipedia)[/caption]

Hi guys, In this post i m going to explain how to perform numeric value validation in a TextBox in ASP.NET. Here i will post two diff. mechanism by using Java Script and JQuery. 

Indexers In C#.NET

[caption id="" align="alignleft" width="300"]The .NET Framework stack The .NET Framework stack (Photo credit: Wikipedia)[/caption]








Indexer In .NET  


Indexers provide a natural syntax for accessing elements in a class or struct that encapsulate a list or dictionary of values. Indexers are similar to properties, but are accessed via an index argument rather than a property name. The string class has an indexer that lets you access each of its char values via an int index:



Digitally sign your documents




The standard user interface of Mac OS X


Google power searcher


 

Become a Google power searcher 

Google Calendar as a Project Management Tool




Google Calendar - add an event





SEO Reports & SEO Analyzer By Bing






Google to down iGoogle









Internet search giant Google has announced that it would be shutting down its iGoogle personalized home page and a few other services. iGoogle, the search giant's personalized Web portal that was launched in 2005, will retire in November 2013. According to The Los Angeles Times, other services Google is winding down are Google Mini, the Symbian Search App, Google Talk Chatback, and Google Video. 

Migrate From ASP.NET To MVC 3



Whenever a new technology or product comes onto the developer scene, people want to know how to best leverage their existing skills to work with it, and nobody wants to have to abandon existing knowledge. Making the move from Web Forms to MVC is no different. Despite the fact that Web Forms & MVC are very different ways of creating web applications on the ASP.NET platform, there are many skills and techniques to take with you.

ASP.NET MVC 3 Concept & Overview

MVC Poster

Razor – A New View Engine for ASP.NET MVC 3






Deutsch: Model View Controller


ASP.NET MVC from Basics to Tips and Tricks

 




A simple diagram depicting the relationship be...

First of all MVC stands for Model-View-Controller. 


 Below some of the basic components are listed.

  • Model = Data / State

  • View = Responsible only for rendering the HTML output (.aspx page)

  • Controller = Presentation Logic (class with action methods)

    • HTTP operations are routed here

    • Responsible for selecting the appropriate View

    • Provides the View with the proper Model

Dual SIM TouchScreen Phone by Videocon at Rs.2800

Videocon Launches Dual-SIM Feature Phone V1570 With 3" Touchscreen For Rs 2800


Now a days you cannot predict technology stuff. Videocon is about to launch a new cell phone in the Indian market with several features at very low cost.





Features:



  • Auto call recording

  • Dual-LED torch

Thursday, July 26, 2012

Scaffolding Concept In ASP.NET

Scaffolding


Scaffolding, is a way to automatically generate Web pages for each table in the database. Scaffolding lets you create a functional Web site for viewing and editing data based on the schema of the data. You can easily customize scaffolding elements or create new ones to override the default behavior.

Wednesday, July 25, 2012

ASP.NET MVC 4.0

MVC Overview: 


MVC Architecture has implemented by Trygve Reenskaug at 1979 for the first time. It was implemented on Smalltalk at Xerox labs. Then benefits and advantages of this architecture has been accepted by most of the coders and software engineers.It was an information about MVC’s history above. Now lets talk about what really MVC is. The word M stands for Model, V stands for View and C stands for Controller. I am going to mention about each item.


What's New In Visual Studio 2012






USER INTERFACE


The RC includes a series of improvements to the overall UX, which were based on the beta user feedback. Now you can customize the look and feel of Visual Studio development environment as per your convenience. A new Dark Theme has been developed for this purpose.


Performance


The performance has been enhanced drastically with respect to its entire earlier version. The performance between beta and RC was extensive and covers just about every aspect

Tuesday, July 24, 2012

Features Of .NET Framework 4.5






[caption id="attachment_1017" align="aligncenter" width="584"] .NET 4.5

OAuth Overview

OAuth can be defined as follows:




  1. OAuth is an open protocol that aims to standardize the way desktop and web applications access a user's private data. OAuth provides a mechanism for users to grant access to private data without sharing their private credentials (username/password). Many sites have started enabling APIs to use OAuth because of its security and standard set of libraries.

Flavors of Visual Studio 2012

Below is the detailed comparison among the different flavors of Visual Studio 2012

  • Visual Studio Express :  For the Web is a free and robust development environment for building, testing, and deploying web applications across the Microsoft Web Platform. Visual Studio Express 2012 for Windows 8 provides the core tools that are required to build compelling, innovative Windows Metro style apps.

Monday, July 23, 2012

Entity Framework In ASP.NET

Entity Framework At-a-Glance




The Microsoft ADO.NET Entity Framework is an Object/Relational Mapping (ORM) framework that enables developers to work with relational data as domain-specific objects, eliminating the need for most of the data access plumbing code that developers usually need to write. Using the Entity Framework, developers issue queries using LINQ, then retrieve and manipulate data as strongly typed objects. The Entity Framework’s ORM implementation provides services like change tracking, identity resolution, lazy

Thursday, July 19, 2012

Laser Keyboard for iPad, iPhone

Social Networking Makes People Anxious: Study

Over 50% of polled participants report negative change in behaviour, attribute it to constant comparisons with online friends' achievements.


[caption id="" align="alignleft" width="200"]Social Networking Makes People Anxious: Study Social Networking[/caption]

A study carried out by the University of Salford on social networking sites reveals how services such as Facebook andTwitter can make users feel anxious and inadequate. Results from a poll conducted with 298 participants show that more than 50% have seen behaviour changes in themselves for the worse. Of the 53% participants who reported a change in their attitude, 51% found the impact to be negative.

The cause attributed by most people was that their confidence took a beating because they were constantly comparing their achievements with their friends online. Moreover, two-thirds of the pool found it hard to relax or sleep soundly after networking online, while one-fourth revealed that they had been left facing issues in their relationships or workplace after online face-offs. In an indication as to how addictive these services can be, 55% of people also said that they experienced discomfort when their Facebook or email accounts could not be accessed. What's worse, over 60% users needed to physically turn off their gadgets in order to take a break from networking online, since they were unable to ignore their beeping devices whenever somebody posted an update.

Wednesday, July 11, 2012

Random Password Generator

Format XML fragment

Object reference not set to an instance of an object in MVC

In which scenario we use Abstract Classes and Interfaces

Delegate in C#

How can we clear Cache stored in browser?

Difference between "==" and Equals() methods?

Slide-Show User Control

Using ASP.NET with Oracle Database

C# Remove Duplicate Lines From Text File? - Stack Overflow

Bulk Insert or Update- SQL 2008

Setting up Google Maps for ASP.NET and SQL Server

SQL Bulk Copy with C#.Net - CodeProject

Read Excel files in .NET - The DataReader way

Sitecore MVC the first controller.

WEB SERVICES

Move html to cshtml for backbone.js in ASP.NET MVC 3

C#.NET OR VB.NET

Encryption and Decryption in ASP.NET with C#.Net(1024 -bit Encryption and Decryption)

Team Foundation Service

Making Enumerable Collections LINQ-Queryable

Review — Nokia Asha 302

Nokia Asha 302
First On TechTree: Review — Nokia Asha 302




MRP: Rs 7000

Street Price (As On 7-Jul-2012): 

Rs 6000 - Rs 6200 

Pros:
Excellent build quality; Great keypad; Wi-Fi and 3G support; Good sound quality; Simple UI; USB OTG (support for external USB drives); Great value for money.
Cons:
Can't change display brightness; Fixed-focus camera.
While the Lumia series trades blows with the heavyweights, the Asha handsets are Nokia's footsoldiers, on a mission to conquer the mass-market segment. Its latest entry-level handset, the Asha 302, is the mobile giant's latest attempt to blur the line between feature phones and smartphones. Let's find out if it's worth your money.



Design And Build Quality


The standard package includes the handset, charger, and a pair of earphones. The phone measures 4.3" (l) x 2.3" (w) x 0.5" (13 mm) (d), and tips the scales at 106 grammes. The gadget is quite a looker and can be easily mistaken for the expensive Nokia E6. Its QWERTY keypad has been thoughtfully designed and offers great tactile response. The phone feels study and its build quality is top-notch. As always, Nokia's attention to detail is unmatched, and the impressively sharp backlight is evidence of this fact.



First On TechTree: Review — Nokia Asha 302



The handset's 2.4" screen has pixel dimensions of 320x240. The display is bright and can reproduce decent colours. On the flip side though, there's no way to adjust the screen brightness. Moreover, similar to most entry-level phones, the Asha 302's display has a limited viewing angle.


First On TechTree: Review — Nokia Asha 302
The phone sports a 1 GHz CPU with 128 MB of RAM. Its micro-USB port supports charging and external USB drives. This means that you can connect your USB pen drives to this phone. Other features include:

  • 3.2 mp rear camera.
  • Wi-Fi, Bluetooth, and 3G.
  • A microSD card slot and 3.5 mm jack.
  • 1320 mAh battery.
UI And Applications


First On TechTree: Review — Nokia Asha 302
The Asha 302 is based on the Series 40 platform, which is as simple an OS as it gets. In its latest iteration, you can add up to three widgets to the home screen. These widgets can be used for quickly accessing your favourite contacts, social networks, and connectivity settings, for example. Additionally, dedicated buttons are present for the messaging and phonebook functions. As always, you can customise the Menu view and set a theme of your choice. Overall, the interface is easy to use and snappy.



The Asha 302's network reception and call quality were exceptionally good during our tests. Since the handset features quad-band GSM standards, it's compatible with all GSM frequencies used by carriers around the world.



Thanks to 3G and Wi-Fi support, surfing the Internet doesn't feel sluggish in the least. The Asha 302 offers IM and email clients, while Facebook and Twitter are taken care of by the app called Social. You can also install WhatsApp from the Ovi Store. In short, although it's not a "smartphone", it's smart enough to get most things done.



Multimedia


First On TechTree: Review — Nokia Asha 302
The bundled earphones are bad. However, the handset's sound quality is very good when connected to a decent pair of earphones. As is the norm, Nokia has duly covered equaliser settings and FM radio. While the platform doesn't support true multitasking, you can minimise the music player. This feature enables you to surf the web or send messages while listening to music in the background. The phone can handle 3GP, MP4, and DivX videos up to 480p. Having said that, its 2.4" screen isn't ideal for watching movies.



The 3.2 mp fixed-focus camera is good enough for daylight photography. However, like most entry-level phone cameras, it performs badly in low-light scenes. It can also record 480p clips in the 3GP format, but don't get your hopes high in terms of resulting video quality.



Battery And Verdict


Despite having a 1 GHz CPU, the device's battery life is good. It's been almost a day since I've been using this handset, yet the battery indicator shows 2 out of 4 bars.



The phone offers extensive connectivity support, a well-designed QWERTY keypad, and a simple interface. Its build quality is excellent, while a few smart features such as email client and social networking apps add value to the package. Its shortcomings take the form of a fixed-focus camera and the lack of brightness settings.



For around Rs 6000,
the Asha 302 offers a great deal. However, if you insist in opting for a poorly-built "smartphone" instead, there are a horde of Android handsets out there: the 
Micromax Ninja2 A56Lava S12, and Karbonn A7.



Features: 4/5

Design And Build Quality: 4.5/5
Performance: 4/5
Value For Money: 4/5
Mojo: 4/5



Overall Rating: 4/5

C# HTTP POST Sample

World Bodypainting Festival: The best work from more than 200 artists

World Bodypainting Festival: The best work from more than 200 artists

Social Networking Makes People Anxious: Study

Over 50% of polled participants report negative change in behaviour, attribute it to constant comparisons with online friends' achievements.

Social Networking Makes People Anxious: Study
Social Networking

A study carried out by the University of Salford on social networking sites reveals how services such as Facebook andTwitter can make users feel anxious and inadequate. Results from a poll conducted with 298 participants show that more than 50% have seen behaviour changes in themselves for the worse. Of the 53% participants who reported a change in their attitude, 51% found the impact to be negative.

The cause attributed by most people was that their confidence took a beating because they were constantly comparing their achievements with their friends online. Moreover, two-thirds of the pool found it hard to relax or sleep soundly after networking online, while one-fourth revealed that they had been left facing issues in their relationships or workplace after online face-offs. In an indication as to how addictive these services can be, 55% of people also said that they experienced discomfort when their Facebook or email accounts could not be accessed. What's worse, over 60% users needed to physically turn off their gadgets in order to take a break from networking online, since they were unable to ignore their beeping devices whenever somebody posted an update.

Nokia Lumia 610

Nokia Lumia 610 With Windows Phone 7.5 And 3.7" Screen Launched For Rs 13,000

Nokia Lumia 610 With Windows Phone 7.5 And 3.7" Screen Launched For Rs 13,000 Mid-range smartphone includes 800 MHz CPU, 256 MB RAM, and 5 mp autofocus camera. News Jayesh Limaye, 06th Jul 2012 - 17:21 Nokia has launched the Lumia 610, its lowest-priced Windows Phone 7.5 device, in India. Expectedly, this smartphone has lowered specs of an 800 MHz CPU and 256 MB RAM to achieve the target price. However, the other specifications have been maintained at the standard WP7.5 requirement levels, with a 3.7" multi-touch capacitive screen having pixel dimensions of 800x480, 5 mp autofocus camera with LED flash, and 8 GB internal storage. As expected, there is no expandable microSD slot. The phone also supports the Wi-Fi hotspot feature for as many as five users at a time. The Lumia 610 carries an MRP of Rs 13,000, which isn't great value considering its compromised specs. At the same event, Nokia also announced a Dark Knight Rises Limited Edition version of the Lumia 800. It plans to sell 200 pieces of this smartphone in India, although the pricing has not been announced as yet

Nokia Lumia 610 With Windows Phone 7.5 And 3.7" Screen Launched For Rs 13,000.

Friday, July 06, 2012

Nokia Launches New Celphones

Nokia Lumia 900, Lumia 610 coming Launching Today




Nokia India is set to roll out two new smartphones running on Windows Phone 7.5 (Tango) in India tomorrow, Lumia 900 and Lumia 610. As per the press invite sent by the Finnish manufacturer, it will also launch The Dark Knight Edition of the former at the event. There is no official statement regarding the prices of the phones.

Lumia 900 is a top-end smartphone that boasts of a 4.3-inch AMOLED display and 8MP rear camera. It will run on a 1.4GHz processor coupled with a 512MB RAM and have 16GB internal memory. The Lumia 900 Batman edition smartphone, which has already hit stores in UK, will be offered with exclusive The Dark Knight Rises content, including themed wallpapers, ringtones and limited edition Batman or Bane character images.

The other phone to be launched tomorrow is the Nokia Lumia 610, which had made its debut atMobile World Congress. It sports a 3.7-inch display, 5MP camera, 800MHz Qualcomm Snapdragon processor, 256MB RAM and 8GB of internal memory. The Mobile Indian has reported that this smartphone will cost around Rs 11,000.

Microsoft, which has developed the Windows Phone platform, has stated that it will upgrade these devices to Windows Phone 7.8, which consists of some Windows Phone 8 (WP8) features. However, these devices will not receive the Windows Phone 8 update, Microsoft has said.

Higg particles (BOSON)

Professor to discuss about Higg particle


The retired professor who gave his name to the elusive "God particle" that scientists believe they have found is to discuss the discovery.Teams at the Large Hadron Collider (LHC), the £2.6 billion "Big Bang" atom-smasher near Geneva, in Switzerland, said on Tuesday that they had found a new particle "consistent" with the Higgs boson.

The discovery was described as "momentous" and "a milestone". But the results are preliminary and more work is needed before scientists can be sure about what they have captured.
Professor Peter Higgs, the retired British physicist from Edinburgh University, will give his reaction to the latest results at a press conference at the Scottish university.
The 83-year-old hit on the concept of the Higgs mechanism in 1964 while walking in the Cairngorms and could now be eligible for a Nobel Prize. Known for his unassuming nature and shunning the limelight, he wiped away a tear as the discovery was first announced in Geneva.
"I am astounded at the amazing speed with which these results have emerged," he said. "I never expected this to happen in my lifetime and shall be asking my family to put some champagne in the fridge."
The Higgs boson gives matter mass and holds the physical fabric of the universe together. Observations so far show the discovery looks and acts like the long-sought particle that has eluded them for 50 years.
Finding the Higgs is vital to the Standard Model, the theory that describes the web of particles, forces and interactions which make up the universe.
Without the Higgs boson to give matter mass and weight, there could be no Standard Model universe. If it was proven not to exist, scientists would have to rip up the theory and go back to the drawing board.
On Tuesday they confirmed that two of the LHC's giant detectors, CMS and Atlas, had delivered results achieving the definitive "five sigma" level of proof. A sigma is a measure of how likely it is that a finding is down to chance. At five sigma, the likelihood of a statistical fluke is one in a million.
Reference : Google.com

Nokia Pureview 808 : Mobile phone OR Camera




 Nokia’s new 808 Pureview a phone or a camera? Its 41megapixel camera rightly got huge amounts of attention when it was unveiled at the Mobile World Congress tradeshow, but the phone itself was largely written off as an experimental piece of innovation. Now, for around £500, you can get your hands on one.

Samsung Galaxy Chat goes big on texting

Samsung Galaxy Chat Phone

Scrolling down the Galaxy lineup, the new Samsung Galaxy Chat can be seen seated on the lower end of the shelf. Going by the specifications sheet, it’s a very basic smartphone crafted for those who find themselves texting or chatting quite frequently.

Jittery cursor – a metaphor?

Top 10 most important gadgets of the 21st century

very nice article. http://dotnetspice.wordpress.com

Thursday, July 05, 2012

Java Script to drag and drop image in HTML5

Hi guys, some days ago i came across a situation where i have to drag and drop a image into a rectangle in a web page. I tried following and it works using HTML5.

<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">

God Particle - "BOSON"

Real man behind "God Particle"- Satyendra Nath Bose
Satyendra Nath Bose was born on New Year's Day, 1894, in Calcutta to Surendra Nath Bose, an engineer with the East Indian Railway Company. The eldest among seven siblings, Satyendra Nath Bose, attended Hindu School, a school that had made notable contributions to the Bengal Renaissance and the Reformation movement.
He made a name for himself for his mathematical prowess and his love for science. Bose, as a student at the vaunted Presidency College, Calcutta, went on to secure the highest marks in every discipline (a few of them remains unbroken even now). Meghnad Saha, his classmate and another celebrated Indian nuclear scientist after whom the Saha Institute of Nuclear Physics is named, came a close second.
Bose would later take up teaching assignments at Calcutta and Dhaka universities where he would set up entire laboratories to teach his students.
Satyendra Nath Bose: about the God of particles
Bose's biggest contribution to Particle Physics came in the form of a study that he sought to present before his students at Dhaka to show them that contemporary theory was not in accordance with results gathered from experiments. During this lecture, Bose committed a 'mistake' in applying the theory, which unexpectedly gave a prediction that agreed with the experiment. But the 'error' was a statistical one and not an experimental one.
That would evolve into Bose writing a paper deriving Planck's quantum radiation law without any regard to classical physics. He used a new way of counting states with identical particles. He sent the paper directly to Albert Einstein in Germany.
Bose wrote to Albert Einstein:
“I have ventured to send you the accompanying article for your perusal and opinion. I am anxious to know what you think of it. You will see that I have tried to deduce the coefficient 8Ï€ v2/c3 in Planck’s Law independent of classical electrodynamics, only assuming that the elementary regions in the phase-space has the content h3. I do not know sufficient German to translate the paper. If you think the paper worth publication I shall be grateful if you arrange for its publication in Zeitschrift für Physik. Though a complete stranger to you, I do not feel any hesitation in making such a request. Because we are all your pupils though profiting only by your teachings through your writings. I do not know whether you still remember that somebody from Calcutta asked your permission to translate your papers on Relativity in English. You acceded to the request. The book has since published. I was the one who translated your paper on Generalised Relativity.”
Albert Einstein, recognising the importance of the paper, translated it into German himself and submitted it on Bose's behalf to the prestigious Zeitschrift für Physik journal. As a result of this recognition, Bose was able to work for two years in European X-ray and crystallography laboratories, during which he worked with Louis de Broglie, Marie Curie and Einstein himself.
Bose's 'mistake' is today what the world calls Bose–Einstein statistics. This result derived by Bose laid the foundation of quantum statistics, as acknowledged by Einstein and Paul Dirac.
Though Nobel Prize in Physics awards have been awarded in connection with research in this domain, many find it strange that Satyendra Nath Bose himself was not awarded one. But having an elementary particle named after oneself is an honour that far outstrips any award. A Nobel Prize in Physics is awarded every year. But nomenclature of an elementary particle lasts till the end of time.
Also one needs to keep in mind that the theoretical existence of Higgs boson was proposed in 1964 by the group of scientists led by Peter Higgs. So that way, Bose did not play any direct role in this respect. His impact on this entire Higgs boson saga is much of an inspirational and generic one, a fact that is often lost in the face of jingoism

Biggest achievement in Physics-"Shadow of a single atom"

See: The first ever photo of an atom's shadow


Scientists have been able to click the shadow of a single atom for the very first time - an unprecedented feat crowning efforts lasting more than five years.

Wednesday, July 04, 2012

Scientist claims to find the "GOD Particle"



The upcoming announcement of the results of the search for the Higgs Boson are promising to be groundbreaking from a scientific point-of-view. There is a lot of information that may be confusing to some and will be misinterpreted by many. The practical application of being that closer to understanding the secrets of the Universe won’t be realized for some time. It was decades from the discovery of radiation to the point where we could harness the power of the atom for power. As I sit here and write this post, I am still awaiting my Mr. Fusion device promised in 1985.


For a great look into the physics behind the Higgs Boson, check out What Finding the Higgs Boson Means over on GeekMom. Here, I want to focus on what the discovery of the Higgs Boson won’t mean.
Cause people to develop super-powers
Nope. Sorry. Not going to happen. The Higgs Boson is already giving you mass. What more do you want? Of course, if they can find an anti-Higgs that can reduce my mass I will open the first high energy physics based diet clinic in the world.


Facilitate time-travel
The Higgs Boson isn’t going to unlock the secrets to time-travel, even if you can get your car up to 88 miles per hour. In a related note, it will also not bring me any closer to my Mr. Fusion.

Open a portal through which alien or extradimensional beings can come to Earth
The Higgs Boson discovery won’t cause a portal to open to anywhere. Not to Hell, Asgard, the Pegasus Galaxy, a galactic trade route, the Eighth Dimension, or what’s left of Alderaan. Well, I understand that Valve is interested in the results for some reason but I’m sure it’s nothing.


Allow transit to an alternate reality where the people are evil and have a goatee
I’m not saying that all people with goatees are evil. Quite the opposite is true, which makes this idea all that much more absurd. Everyone knows that as you grow longer facial hair you become more evil. You would be surprised at the world domination schemes that ZZ Top is working on.


Destroy the earth in an ever expanding black hole
Remember when people said that was inevitable? Do you remember those people? I do. A couple seasons of operation later and we seem to be fine. Unless, of course, The Doctor trapped us in a time-loop right before the singularity formed to save the Earth. It would explain deja vu.
When you hear the sensationalism on the news about what the Higgs Boson discovery could mean, take it with a grain of salt and do a little critical thinking of your own. No need to eye that two meter thermal exhaust port on the side of the Large Hadron Collider.

What Finding the Higgs Boson Doesn’t Mean ??

Atlas experiment results.


The announcement of the results of the search for the Higgs Boson are promising to be groundbreaking from a scientific point-of-view. There is a lot of information that may be confusing to some and will be misinterpreted by many. The practical application of being that closer to understanding the secrets of the Universe won’t be realized for some time. It was decades from the discovery of radiation to the point where we could harness the power of the atom for power. As I sit here and write this post, I am still awaiting my Mr. Fusion device promised in 1985.

BSNL launches 3G pocket router for Rs 5,800

NEW DELHI: State-run telecom operator BSNLhas launched a third generation (3G) wireless pocket router in association with communications solutions provider Shyam Networks.


 The 'Winknet Mf50' router comes in handy when there is a need to connect more than one device on a single SIM card.The router will be available in the market with a best buy price of Rs 5,800.A router is a device used for connecting the computer to the internet network.


It is SIM locked with BSNL and anybody who buys the router will be entitled to a plan voucher of Rs 60 which comes bundled with 1GB free data usage

Friday, June 29, 2012

Google Launches Nexus 7 Tablet


With the launch of Google's Nexus 7, the $199 tablet market got even more crowded. So, is it the best?





The Kindle Fire, Nexus 7, and Nook Tablet all retail for $199.

Amazon opened a lot of eyes when it introduced the Kindle Fire last year at $199. Many people expected it to come out at $249, but Amazon surprised everybody with $199. Now Google's done the same with its Asus-made Nexus 7, which, on paper anyway, offers the best specs for a 7-inch tablet at its price point, besting its closest competitors, the Kindle Fire and the 8GB Nook Tablet (you could also include the Samsung Tab 2 7.0 in this group, but it starts at $250).

Thursday, June 28, 2012

Virtual Keyword In C#

Virtual Keyword in C#




  • When a derived class want to override  the base class member(s) then base class member(s)  need to marked as virtual members.

  • A function marked as virtual can be overridden by subclasses wishing to provide a specialized implementation.

  • Methods, properties, indexers, and events can all be declared as virtual.

  • In the derived class those members will be marked by override  keyword.


Wednesday, June 27, 2012

New Features Of .NET 4.0

Introduction


This article contains some of the new features of ASP.NET 4.0 and Visual Studio 2010 IDE.

Improvements in C# 4.0


C# in .NET Framework 4.0 has some more things to offer. These are:

  • Dynamic lookup

  • Named

  • Optional parameters


Dynamic Lookup


There is a new static type named dynamic. We can use it as object of any type. If there is any error on its usage, we would get it on runtime only. For example:
dynamic integerValue = 1;
dynamic stringValue = " a string";
dynamic Result = integerValue + stringValue;

DataSet Vs DataReader


Dataset Vs DataReader



DataReader

1. DataReader is like a forward only recordset.
2. It fetches one row at a time so very less network cost compare to DataSet(Fethces all the rows at a  time).
3. DataReader is readonly so we can't do any transaction on them.
4. DataReader will be the best choice where we need to show the data to the user which requires no transaction. 
5. As DataReader is forward only so we can't fetch data randomly. .NET Data Providers optimizes the  DataReader to handle huge amount of data.

DataSet


1. DataSet is an in memory representation of a collection of Database objects including tables of a          relational database schemas.
2. DataSet is always a bulky object that requires a lot of memory space compared to DataReader. We can say that the DataSet is a small database because it stores the schema and data in the application memory area.
3. DataSet fetches all data from the datasource at a time to its memory area.
4. We can traverse through the object to get the required data like querying database.


Thursday, June 21, 2012

Role-Based Security with Forms Authentication


Introduction


Forms Authentication in ASP.NET can be a powerful feature. With very little code and effort, you can have a simple authentication system that is platform-agnostic. If your needs are more complex, however, and require more efficient controls over assets, you need the flexibility of groups. Windows Authentication gives you this flexibility, but it is not compatible with anything but Internet Explorer since it uses NTLM, Microsoft's proprietary authentication system. Now you must choose how to manage your assets: provide multiple login pages / areas and force users to register for each, or assign groups to users and limit access to pages / areas to particular groups. Obviously, you must choose the latter.

JQuery


JQuery is a new kind of JavaScript Library.jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.


jQuery is free, open source software, dual-licensed under the MIT License or the GNU General Public License. jQuery's syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. jQuery also provides capabilities for developers to create plug-ins on top of the JavaScript library. This enables developers to create abstractions for low-level interaction and animation, advanced effects and high-level, theme-able widgets. The modular approach to the jQuery library allows the creation of powerful dynamic web pages and web applications.

SQL SERVER - ColumnStore Index - Batch Mode vs Row Mode

Ratan Tata Retirement

When long-serving employees retire, companies present them with mementos or gold watches as a form of gratitude and in recognition of services rendered.

But what should a company do when its boss, or sort-of owner, is about to hang up his boots?

Tata Consultancy Services (TCS), India’s largest infotech company, is facing just such a question. It has probably answered it the wrong way.

It’s superboss, Ratan Tata, is about to walk off into the sunset in the next six months, and TCS has decided that Rs 5 crore is a fitting reward for his “long-standing contribution to the sustained growth and success” of the company, according to a report in Business Standard.

Is the company honouring or diminishing Ratan Tata, India’s tallest businessman by far, by putting a price of Rs 5 crore on his life-long efforts to put TCS on the global map? Getty Images

Is the company honouring or diminishing Ratan Tata, India’s tallest businessman by far, by putting a price of Rs 5 crore on his life-long efforts to put TCS on the global map? This, when the formal compensation Tata will receive in 2011-12 will exceed Rs 8 crore.

There’s no question Ratan Tata, who retires this December when he turns 75 as per group policy, has rendered invaluable services to every part of the Tata group and to business, in general, both in India and abroad. If Indian business has a reputation abroad, it owes much to Ratan Tata and his group.

TCS, as the crown jewel in the Tata group, has taken in the lead in recognising Tata’s contribution to its own growth and that of the group.

But there are several reasons to think it is not doing the right thing by trying to put a monetary value to Tata’s contribution – even though this may not be the intention behind the TCS gift.

First, listed companies should not be singling out individual directors for special compensation when there are already board and AGM resolutions that specify what Tata should be paid for his work.

Second, when an exception is supposed to be made to this rule, it is the minority shareholders who should vote on it – not all shareholders. As owner of the vast majority of TCS shares (nearly 74 percent), any such resolution is going to pass, especially since Tata Sons, the main holder of TCS shares, is also run by Ratan Tata. The TCS management is thus putting Tata in the embarrassing position of being the promoter who votes on his own retirement bonus.

Third, since it is fairly certain that almost all Tata companies will also be bidding farewell to their larger-than-life promoter, they could all fall into the TCS trap of saying it not with roses, but cash. The TCS example, if followed by other Tata group companies, will be no different from the political spectacles we see where leaders are weighed in gold or garlanded with cash for services rendered.

We think a Mayawati being received with a garland of Rs 1,000 notes is gross, but a Tata being gifted a Rs 5 crore cheque is somehow sane and sensible. The difference is only in the optics: one looks gross, and the other doesn’t because it happens out of public view.

The point is simple: if Ratan Tata’s services have been priceless and invaluable (which they demonstrably are), why try and show gratitude by trying to do precisely the opposite – by indicating a price and putting a monetary value on what is inestimable?

The Tata Group should not bring down Ratan Tata to the level of our crass political class. They should say it with roses.