My Linux Stuff - Complete Blog For Linux Articles

My Linux Stuff - Complete Blog For Linux Articles

A Website For Complete Linux OS,Step by Step linux Installtion, Linux Tips and Tricks and Linux Stuff and so on... Connect and sharing here....

TOP 50 ENGINEERING COLLEGES IN INDIA 2014

TOP 50 ENGINEERING COLLEGES IN INDIA 2014

This below survey was taken many form many colleges in India. These Top 50 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good.

Top 10 Government Engineering Colleges in India

Top 10 Government Engineering Colleges in India

These Government Engineering Colleges in India are really good for all kind of stuff like Education , research , Placement and New Innovation Ideas etc... But Getting seat in these colleges are heavy competition in students .....

Top 10 Colleges In India 2014

Top 10 Colleges In India 2014

Indian Institute Of Technology Delhi,Indian Institute Of Technology Bombay,Indian Institute Of Technology Kanpur,Indian Institute Of Technology Madras,Indian Institute Of Technology Kharagpur,Indian Institute Of Technology Roorkee,University Of Delhi,Indian Institute Of Technology Guwahati,University Of Calcutta,University Of Mumbai, National Institute Of Technology,Trichy.

2014 LATEST SURVEY TOP RANKING ENGINEERING COLLEGES IN INDIA

2014 LATEST SURVEY TOP RANKING ENGINEERING COLLEGES IN INDIA

This below survey was taken many form many colleges in India. These Top 100 Engineering Colleges in India have Good Infrastructure, Good Environment, Educations , Staff, Placement , Research Activities and other Facilities are good. If you want to do Engineering as your dream and try out these colleges

Subscribe Now!

Enter your email address:

Saturday, November 12, 2011

SharePoint Interview Questions

  • What is SharePoint, WSS and MOSS?
  • How does WSS actually work?
  • What is Site and SiteCollection?
  • What is the use of SQL server in SharePoint & use of Virtual path provider?
  • What is Ghosting and UnGhosting in SharePoint?
  • How can we create a site in SharePoint?
  • How can we Customize a SharePoint Site?
  • What kind of readymade functional modules exists collaboration?
  • Can you display a simple Custom Page in SharePoint?
  • How can we implement behind code ASPX pages in SharePoint?
  • What is the concept of features in SharePoint?
  • I want a feature to be only displayed to admin?
  • How do we debug SharePoint error’s?
  • Why customized pages are parsed using no-compile mode?
  • Can you explain WSS model?
  • How can we use custom controls in SharePoint?
  • How can we display ASCX control in SharePoint pages?
  • What are Web Parts?
  • How can we deploy a simple Webpart in SharePoint?
  • How can we achieve customization and personalization using WebParts?
  • How can we create custom editor for WebPart?
  • SharePoint is about centralizing documents, how similar is to the windows folder?
  • What are custom fields and content types?
  • Can you explain SharePoint Workflows?
  • What is a three-state Workflow in SharePoint?
  • How can we create sharepoint workflow using sharepoint designer?

Cognizant's Campus Freshers Recruitment Drive


Eligibility Criteria for IT:
  1. Open only to the students with following degrees
    • Category 1: BE / B Tech / ME / M Tech / MCA / M Sc (Computer Science / IT / Software Engg)
    • Category 2: B Sc / BCA / M Sc (except Computer Science / IT / Software Engg)
  2. Year of graduation:  2011 batch only
  3. Consistent First Class (over 60%) in X, XII, UG and PG (if applicable)
  4. No outstanding arrears
  5. Candidates with degrees through correspondence/ part-time courses are not eligible to apply
  6. Good interpersonal, analytical and communication skills
Eligibility Criteria for IT IS:
  1. Open only to the students with following degrees

    • BSC - Computer Science/Computer Technology/ IT /Maths/Statistics/Electronics and BCA
    • MSC - Maths/Statistics/Electronics
  2. Year of graduation: 2011  batch only
  3. Consistent First Class (over 60%) in X, XII, and UG
  4. Candidates holding correspondence or part time degrees are not eligible to apply
  5. Good interpersonal and excellent communication skills
  6. Willingness to work in shifts (including night shifts)
  7. Willing to work at any Cognizant location across India
Click Here To Apply

Exam Tips for Students

Praise be to Allaah and peace and blessings be upon the Messenger and upon his family and companions.
The Muslim student puts his trust in Allaah when facing the tests of this world, and he seeks His help whilst following the prescribed means, in accordance with the words of the Prophet (peace and blessings of Allaah be upon him):
“The strong believer is better and is more beloved to Allaah than the weak believer, although both are good. Strive to attain that which will benefit you and seek the help of Allaah, and do not feel helpless.” (Saheeh Muslim, hadeeth no. 2664)
Among those means are the following:
  • Turning to Allaah by making du’aa’ in any way that is prescribed in Islam, such as saying, “Rabbiy ishrah li sadri wa yassir li amri (O my Lord, expand my chest and make things easy for me).”
  • Getting used to sleeping early and going to exams on time.
  • Preparing all required or permitted equipment such as pens, rulers and setsquares, calculators and watches, because being well prepared helps one to answer questions.
  • Reciting the du’aa’ for leaving the house: “Bismillaah, tawakkaltu ‘ala Allaah, wa laa hawla wa laa quwwata illa Billaah. Allaahumma inni a’oodhu bika an adilla aw udalla, aw azilla aw uzalla, aw azlima aw uzlama, aw ajhala aw yujhala ‘alayya (In the name of Allaah, I put my trust in Allaah, and there is no strength and no power except with Allaah. O Allaah, I seek refuge with You lest I should stray or be led astray, lest I slip (commit a sin unintentionally) or be tripped, lest I oppress or be oppressed, lest I behave foolishly or be treated foolishly).”Do not forget to seek your parents’ approval, for their du’aa’ for you will be answered.
  • Mention the name of Allaah before you start, for mentioning the name of Allaah is prescribed when beginning any permissible action; this brings blessing, and seeking the help of Allaah is one of the means of strength.
  • Fear Allaah with regard to your classmates, and do not be affected by their anxiety or fear just before the exam, for anxiety is a contagious disease. Instead, make them feel optimistic by saying good words as prescribed in Islam. The Prophet (peace and blessings of Allaah be upon him) was optimistic when he heard the name of Suhayl (which means “easy”) and he said: “Things have been made easy for you.” He used to like to hear the words ‘Yaa Raashid, when he went out for any purpose. So be optimistic that you and your brothers will pass this exam.
  • Remembering Allaah (dhikr) dispels anxiety and tension. If something is too difficult for you, then pray to Allaah to make it easy for you. Whenever Shaykh al-Islam Ibn Taymiyah (may Allaah have mercy on him) found something too difficult to understand, he would say, “O You Who taught Ibraaheem, teach me; O You Who caused Sulaymaan to understand, cause me to understand.”
  • Choose a good place to sit during the exam, if you can. Keep your back straight, and sit on the chair in a healthy manner.
  • Look over the exam first. Studies advise spending 10% of the exam time in reading the questions carefully, noting the important words and dividing one’s time between the questions.
  • Plan to answer the easy questions first, then the difficult ones. Whilst reading the questions, write notes and ideas which you can use in your answers later.
  • Answer questions according to importance.
  • Start by answering the easy questions which you know. Then move on to the questions which carry high marks, and leave till the end the questions to which you do not know the answers, or which you think will take a long time to produce an answer or which do not carry such high marks.
  • Take your time to answer, for the Prophet (peace and blessings of Allaah be upon him) said: “Deliberation is from Allaah and haste is from the Shaytaan.” (A hasan hadeeth. Saheeh al-Jaami, 3011).
  • Think carefully about the answer and choose the right answer when answering multiple-choice questions. Deal with them in the following manner. If you are sure that you have chosen the right answer, then beware of waswasah (insinuating whispers from the Shaytaan). If you are not sure, then start by eliminating the wrong or unlikely answers, then choose the correct answer based on what you think is most likely to be correct. If you guessed at a correct answer then do not change it unless you are sure that it is wrong – especially if you will lose marks for a wrong answer. Research indicates that the correct answer is usually that which the student thinks of first.
  • In written exams, collect your thoughts before you start to answer. Write an outline for your answer with some words which will indicate the ideas which you want to discuss. Then number the ideas in the sequence in which you want to present them.
  • Write the main points of your answer at the beginning of the line, because this is what the examiner is looking for, and he may not see what he is looking for if it is in the middle of the page and he is in a hurry.
  • Devote 10% of the time for reviewing your answers. Take your time in reviewing, especially in mathematical problems and writing numbers. Resist the desire to hand in the exam papers quickly, and do not let the fact that some people are leaving early bother you. They may be among the people who have handed in their papers too early.
  • If you discover after the exam that you answered some questions incorrectly, then take that as a lesson in the importance of being well prepared in the future, and not rushing to answer questions. Accept the will and decree of Allaah and do not fall prey to frustration and despair. Remember the hadeeth of the Prophet (peace and blessings of Allaah be upon him), “If anything befalls you, do not say, ‘If only I had done such and such.’ Rather say, ‘Qadar Allaah wa maa sha’a kaan (the decree of Allaah and what He wills happened),’ for saying ‘if only’ opens the door for the Shaytaan.” (Saheeh Muslim, and the first part of this hadeeth was mentioned above).
  • Note that cheating is haraam whether it is in foreign language tests or any other tests. The Prophet (peace and blessings of Allaah be upon him) said, “Whoever cheats is not one of us.” It is wrongdoing and it is a haraam means of attaining a degree or certificate, etc., that you have no right to. The consensus is that cheating is a kind of cooperation in sin and transgression. So do without that which is haraam, and Allaah will suffice you from His bounty. Reject all offers of haraam things that come to you from others. Whoever gives up a thing for the sake of Allaah, Allaah will compensate him with something better. You have to denounce and resist evil, and tell the authorities about any such thing that you see during the exam, or before or after it. This is not the forbidden kind of slander rather it is denouncing evil which is obligatory.
Advise those who buy or sell questions or post them on the Internet etc., or who prepare cheat notes. Tell them to fear Allaah, and tell them of the ruling on what they are doing and on the money they earn from that. Tell them that the time they are spending in preparing these haraam things, if they spent it in studying, or answering previous exams, or helping one another to understand the subject before the exam, that would be better for them than doing these haraam things.
- Remember what you have prepared for the Hereafter, and the questions of the examination in the grave, and how to be saved on the Day of Resurrection. Whoever is saved from the Fire and admitted to Paradise will indeed have succeeded.
We ask Allaah to make us succeed in this world and cause us to be among those who are victorious and saved in the Hereafter, for He is the All-Hearing Who answers prayer.
Sheikh Muhammed Salih Al-Munajjid

laptop theft alarm

Students set laptop theft alarm

Four M’lore girls create a laptop protection system in which an alarm goes off if anyone other than the owner tries to lift it 

If four students from Mangalore have their way, all that laptop thieves will get for their pains will be an ear-splitting screech.

The students of St Aloysius Institute of Management and Information Technology (AIMIT) have devised a laptop protection system that sends out a siren when someone tries to steal the machine.

“The idea came from Mohandas, the man incharge of our college’s server room,” says Ashakiran, a first-year MS software and technology student who has a physics background.

The foursome took the cue and went on to develop the system which they claim is a first. Their differing expertise helped — Srijana has studied electronics while Plammy and Maithri have done their BCA.

Ashakiran said, “We’ve made a circuit connection consisting of two ICs. We dipped two wires inside water stored in a container. The water level should be two-thirds the container. As long as there is a connection between the water and the wire, there will be no beeps or sirens. But once the connection is cut, IC-1 gets heated up, triggering IC-2 and the PNP transistor, resulting in a siren.”

The system is made of a matchbox-sized circuit that can be installed inside the laptop. A small switch can be placed anywhere in the laptop, known only to the user. The project has been developed at a cost of Rs 300.

“We always wanted to make a model that was innovative and of use in the market,” said Ashakiran.

However, there are some points that need finetuning. For one, maintaining the water level is crucial. “Since the water can evaporate as the laptop heats up, we need to work on the software and develop a command that will alert the user when the water level comes down,” said Ashakiran.

“We also hope to create a software where the cellphone number is taken as the default value and when the siren goes off, the owner automatically gets a message,” she added.

Also, the small container that stores water has to be sealed and every precaution taken to ensure that water does not seep into the laptop.

“In case laptop manufacturers decide to add this feature, it will certainly be a big hit among customers given the problem of laptop thefts, especially on college campuses,” she said.
 

IBM’s Solar Servers

There is no investment you can make which will pay you so well as the effort to scatter sunshine and good cheer through your establishment. – Orison Swett MardenAccording to the U.S. Department of Energy, data centers can consume up to 100 times more energy than a standard office building.In fact, less than 15% of original source energy is used for the information technology equipment within a data center.
A technician inspects IBM's solar-power array atop the roof of the company's software development lab in Bangalore, India. The technology is designed specifically to run high-voltage data centers, integrating AC- and DC-based servers, water-cooling systems and related electronics. The 6,000-square-foot array is capable of providing a 50-kilowatt supply of electricity for up to 330 days a year, for an average of five hours a day.
A 2008 McKinsey report suggested that demand for data centers was expected to grow at 10% CAGR over the next decade, but because of their enormous energy consumption, they were expected to consume as much energy as 10 new major power plants by last year (.2% of world energy production!)
Enter Big Blue.
IBM said today that is rolling out the first solar-power array designed specifically to run high-voltage data centers, integrating AC- and DC-based servers, water-cooled computing systems and related electronics.
The new array is spread over more than 6,000 square-feet of rooftop covering IBM’s India Software Lab in Bangalore.
The solar array is capable of providing a 50-kilowatt supply of electricity for up to 330 days a year, for an average of five hours a day.
By employing unique high-voltage DC power conditioning methods – and reducing AC-DC conversion losses – the new IBM solution can cut energy consumption of data centers by about 10 percent and tailors solar technology for wider use in industrial IT and electronics installations.
In many emerging markets, electrical grids are undependable or non-existent. Companies are forced to rely on expensive diesel generators.
That makes it difficult and expensive to deploy a lot of computers, especially in the concentrated way they’re used in data centers. Using IBM’s solution, a bank, a telecommunications company or a government agency could contemplate setting up a data center that doesn’t need the grid.
The solution, in effect, creates its own DC mini-grid inside the data center.
High-voltage, DC computer servers and water-cooling systems are beginning to replace traditional, AC-powered servers and air-conditioning units in data centers.
IBM’s Bangalore array is the first move to blend solar-power, water-cooling and power-conditioning into a “snap-together” package suitable to run massive configurations of electronic equipment.
“The technology behind solar power has been around for many years, but until now, no one has engineered it for efficient use in IT,” said Rod Adkins, senior vice president, IBM Systems & Technology Group. “We’ve designed a solar solution to bring a new source of clean, reliable and efficient power to energy-intensive, industrial-scale electronics.”
IBM plans for the Bangalore solar-power system to connect directly into the data center’s water-cooling and high-voltage DC systems. The integrated solution can provide a compute power of 25 to 30 teraflops using an IBM Power Systems server on a 50kW solar power supply.
“This solar deployment, currently powering almost 20 percent of our own data center energy requirements, is the latest in the investments made at the India lab to design an efficient and smarter data center,” said Dr Ponani Gopalakrishnan, VP, IBM India Software Lab. “Ready access to renewable energy in emerging markets presents significant opportunities for IBM to increase efficiencies, improve productivity and drive innovation for businesses around the world.”

Friday, November 11, 2011

Yuvraj Singh's 6 sixes

Importance of having Breakfast

Importance of having Breakfast
Importance of having Breakfast
Breakfast can help prevent strokes, heart attack and sudden death. Advice on not to skip breakfast
!
  Healthy living. For those who always skip breakfast, you should stop that habit now! You’ve heard many times that “Breakfast is the most important meal of the day.” Now, recent research confirms that one of the worst practices you can develop may be avoiding breakfast.Why?
Because the frequency of heart attack, sudden death, and stroke peaks between 6: 00a.m. and  noon, with the highest incidence being between 8: 00a.m. and 10:00a.m.What mechanism within the body could account for this significant jump in sudden death in the early morning hours?We may have an Answer.Platelet, tiny elements in the blood that keep us from bleeding to Death if we get a cut, can clump together inside our arteries due to Cholesterol or plaque buildup in the artery lining. It is in the morning hours that platelets become the most activated and tend to form these internal blood clots at the greatest frequency.
However, eating even a very light breakfast prevents the morning platelet  activation that is associated with heart attacks and strokes. Studies performed at Memorial University in St.Johns,   Newfoundland found that eating a light, very low-fat breakfast was critical in modifying the morning platelet activation. Subjects in the study consumed either low-fat or fat-free yogurt, orange juice, fruit, and a source of protein coming from yogurt or fat-free milk. So if you skip  breakfast, it’s important that you change this practice immediately in light of this research. Develop a simple plan to eat cereal, such as oatmeal or Bran Flakes, along with six ounces of grape juice or orange juice, and perhaps a piece of fruit. This simple plan will keep your platelets from sticking together, keep blood clots from forming, and perhaps head off a potential Heart Attack or  stroke. So never ever skip breakfast.

Importance of having Breakfast

What is LINQ

LINQ is an acronym for Language Integrated Query, which is descriptive for where it's used and what it does. The Language Integrated part means that LINQ is part of programming language syntax. In particular, both C# and VB are languages that ship with .NET and have LINQ capabilities. Another programming language that supports LINQ is Delphi Prism. The other part of the definition, Query, explains what LINQ does; LINQ is used for querying data. Notice that I used the generic term "data" and didn't indicate what type of data. That's because LINQ can be used to query many different types of data, including relational, XML, and even objects. Another way to describe LINQ is that it is programming language syntax that is used to query data.
Note: In addition to a new language syntax, LINQ can be used via a fluent API that chains methods together. The bulk of this tutorial will concentrate on the C# language syntax that supports LINQ.

What Is HTML5

As the bedrock to the web, HTML has evolved in many ways from its birth in 1991. While the markup language has had its share of ups and downs, the advent of what’s being called “HTML5” is a welcome and much anticipated addition of new semantic capabilities and valuable APIs.
"
While the HTML has had its share of ups and downs, the advent of “HTML5” is a welcome and much anticipated addition of new semantic capabilities and valuable APIs.
"
What Is HTML5?
HTML5 is a series of new elements, updates to existing elements and new JavaScript APIs available through contemporary web browsers. In order to best describe what HTML5 is, perhaps starting with a few attributes of what HTML5 is not will help draw the most clear picture.
HTML5 is not the next iteration of XHTML. In fact many of the rules that you are accustomed to from your familiarity with XHTML are now changed in HTML5. The promise of XHTML’s standards compliance and strict validation may be music to the ears of all of us as software developers, but the pragmatic outcome of broken layouts and validation errors bubbling up to users created an unforeseen outcome - programmatic perfection does not translate into a usable web. XHTML simply isn’t a long-term standard.
The real world of the web contains scores of ill-formed HTML largely created by tools and people with less exacting standards than the conscientious web developer. While this may sound bad, the non-code enthusiasts are often tasked with creating content for the web and have no inclination to worry about whether or not every HTML attribute has a value in their markup, for instance.
HTML5 moves beyond the utopian dream of strict compliance to a schema and places the highest value on the user of the website over the HTML craftsman.
"
HTML5 places the highest value on the user of the website over the HTML craftsman.
"
“HTML5” no longer exists. In a strict sense, the term “HTML5” is a misnomer as there are no longer standalone versions of HTML. In the earliest incarnation of HTML5, there existed a notion of the next version of HTML being termed HTML5. The label of “HTML5” took hold in the market and started being used almost as an umbrella term for “the latest thing” in web development. Recently, Ian Hickson announced in his blog post, HTML is the New HTML5 (http://blog.whatwg.org/html-is-the-new-html5), the standards document once known as “HTML5” is now being maintained under the auspices of the plain name “HTML” as a fluid specification. The reasoning behind this is because HTML5 became a blanket term for many different technologies and browser vendors are implementing different parts of the standard. Therefore, the notion of “detecting HTML5” or “supporting HTML5” represents faulty thinking. Rather than looking for HTML5 in its totality, developers are better served by detecting the individual functionality required from HTML for an application.
So if HTML5 isn’t XHTML plus some new dazzling features, what is it? Simply put, HTML5 is the new HTML standard that includes most of the features and capabilities of HTML4 along with new semantic markup plus a number of new JavaScript APIs.
For clarity’s sake, this article still refers to the combination of markup enhancements and new JavaScript APIs as HTML5 in order to easily identify new technologies.
Semantic Markup
The value of Semantic markup on the web cannot be understated. When you consider many of the changes related to semantic markup you may realize that seemingly very little is different. While changing a DIV to a SECTION may not seem revolutionary, the underlying value is found in the page’s ability to more clearly describe the intent of the containing content with new tags over the old ones. Pages that contain inherent meaning will ultimately perform better in search engines, are easier to parse on the client and easier for external machines on the web to interpret and understand.
The semantic changes are a product of established design patterns. The contributors to the HTML5 specification include companies like Google, Microsoft, Apple, all the top browser vendors and literally hundreds of other organizations. These contributors analyzed the vast array of markup on the web and looked to create new HTML elements that reflect the intent of current makeup on the web.
So while new elements may not seem earth-shattering, the value is to give more intrinsic meaning to your HTML documents which creates a more open and usable web. Table 1 lists many of the HTML elements introduced in HTML5.
JavaScript APIs
If the first part of the equation of HTML5 is the markup, then the second half is represented by the new JavaScript APIs. In fact, the more you begin to develop applications in HTML5, the more you realize that most of the new functionality is in the updated scripting abilities of the browser.
While browser support for each script API is diverse among the browser landscape, Table 2 describes the promise of each API once fully supported.
Browser Support and the New Age of “Browser Wars”
In the early days of the web the browser landscape was akin to the Wild West. Each browser vendor, in an attempt to gain the most market share, began quickly implementing new features often using proprietary APIs. This fragmentation in the market created a situation where websites might only work correctly in a single browser or development teams were forced to replicate programming efforts in order to provide the same functionality for different browsers. In short, the situation was a lose/lose proposition for both web developers and website users.
The end of the browser wars emerged with the rising influence of the Web Standards Project which worked hard to get browser makers to agree to work within the established standards.
So the distinction today about the push and pull toward complete support for HTML5 is that each browser maker is implementing against the same standard. Long gone are the days where in order to implement the same functionality on a page you had to code for the Netscape API as well as the Internet Explorer API. Now the APIs are known and standardized, the dance now is just compensating for the time when a user’s browser may not have the capabilities of the standard.
To best aid you in reliably developing applications in HTML5 there are two resources that are invaluable:
  • Modernizr: Modernizr is a JavaScript library that implements detection features for different areas of the HTML5 specification. Rather than asking a browser whether or not it supports HTML5, you use Modernizr to find out if the particular feature you are expecting in the browser is supported. http://www.modernizr.com/
  • CanIUse.com: The website http://caniuse.com/ attempts to match different capabilities with different web browsers. If you need to know if an area of HTML5 will work for your target users, this website will help you make that decision.
&



To Use or Not To Use: SECTION or DIV?

Determining the difference between when to use the SECTION element over a DIV may seem a little confusing at first. A valuable rule of thumb to help you decide which element is appropriate is to ask whether or not the element you need to add to the page is intended to establish a logical group around content or if it’s merely being added to support styling of the page. In the case of logical grouping, use the SECTION. To support styling needs, use a DIV.


Table 1: Listing of new HTML elements found in HTML5.
ElementDescription
articleThe article wraps the primary content of a web page. Often there is only one article per page, but there is no formal restriction to the number of occurrences on a page.
asideAs the article content represents the primary content on the page, an aside is meant to contain information peripherally related to the main content of the page.
audioThe audio element renders a media player specifically tailored for presenting audio files to the user.
canvasThe canvas element is a pixel-based drawing surface manipulated through a JavaScript API.
commandUsed to add responsiveness to the user interface, the command element acts as a container for common functionality on the page and returns state information indicating whether or not the command is enabled or disabled.
datalistThe datalist element enumerates a set of predefined options available in input fields.
detailsUsed in conjunction with the summary element, the details element contains information that is alternatively displayed and hidden from the user when the summary element is clicked.
embedThe embed element is a new tag that defines a plugin or other external content to the page.
figcaptionUsed along with the figure element, the figcaption serves as a container for a short description for the related figure.
figureThe figure element contains content like screenshots or code listings within a page.
footerThe footer element is a logical container for content that concludes a logical section. Common content found at the bottom of a page, like navigation and copyright information, are often associated with the footer element at the page root.
headerThe header element is a logical group that introduces another logical section. The header at the root of the document wraps common navigation, logo and other elements often found at the top of a web page.
hgroupThe hgroup element acts as a container for H1 - H6 HTML heading elements creating a semantic link between the headings.
keygenUsed for cryptography, the keygen element generates a private key stored on the user’s machine and a public key which is sent to the server.
markThe mark element is intended to facilitate highlighting text from a search.
meterThe meter element is created to represent values in between a known minimum and maximum range.
navProviding semantic meaning to a site’s navigation, the nav element wraps navigation elements in context of the site.
outputThe output element is used to represent the output of script calculation on the page.
progressThe purpose of the progress element is to display the ongoing advancement of a task as the result of a script on the page.
rpThe rp element is used to display parenthesis around ruby text that is not supported by a browser. (If ruby and rt elements are supported then rp should be hidden via the style sheet.)
rtThe rt element identifies the actual ruby text section of a ruby annotation.
rubyThe ruby element contains text with ruby annotations to support character-based languages like Chinese or Japanese.
sectionThe section element is used to delineate logical segments in a page.
sourceThe source element is used in conjunction with the audio and video elements to define the source media for the players.
summaryUsed in combination with the details element, the summary element wraps content that is alternately displayed and hidden to the viewer based on whether or not content in the details element is clicked.
timeThe time element is used to mark up a single point in date and time.
videoThe video element renders a media player specifically tailored for presenting audio files to the user.
wbrUsed to provide hyphenation guides for long words, the wbr element (or “word break”) helps the page decide where to break long words if necessary.

Table 2: New JavaScript APIs found in HTML5.
ElementDescription
Canvas 2D ContextProviding a 2D drawing context native to the browser, the Canvas API is the interface to the new Canvas element.
ContactsThe Contacts API is an interface to a unified address book on the client.
File APIsThe collection of new File APIs grants read/write access to sandboxed files and folders on the client’s machine.
FormsThe Forms API extends the input type to recognize custom data types, enforces validation and adds new additional features to improve the user experience of web forms.
GeolocationGeolocation is an API that manages scripted and verified access to the user’s physical location.
~Indexed DatabaseProviding the interface for a client-side database, the Index Database API exposes both index and key-based access to data in the database.
Media CaptureThe Media Capture API creates a channel to the device’s audio, image and media capabilities.
MessagingThe Messaging API exposes an interface to the devices messaging capabilities including SMS, MMS and email.
MicrodataThe Microdata API enables web pages to easily be both human and machine-readable.
Offline Web ApplicationsTaking browser cache to the next level, Offline Web Applications create useable pages when the client is disconnected from the web.
Selectors Level 1 & 2Updates to the Selectors engine bring CSS3 selectors to first-class DOM selection in JavaScript.
Server-Sent EventsThe Server-Sent Events API allows push notifications from the server to be consumed on the client in the form of DOM elements.
Web NotificationsWeb Notifications define a structured way to display messages to the user and provide the appropriate events for the page to respond.
Web SocketsThe Web Sockets API allows for two-way communication between the client and server.
Web StorageImplemented as local or session storage, Web Storage provides a key/pair persistence location for a web page.
Web WorkersWeb Workers brings threading capabilities to the UI layer.
XMLHttpRequest Level 2The HTMLHttpRequest Level 2 API enhances ‘Ajax’ to support cross-origin requests, progress events, and handling byte streams for sending and receiving data to and from the server.

What’s New in Visual C# 4.0


Visual C# version 4.0 offers new features that make it easier for you to work in dynamic programming scenarios. Besides dynamic programming, you have support for optional and named parameters, better COM interop support, and contra-variance and covariance. This article will show you how each of these features work and provide suggestions of
how they can be applied to help you be more productive.
To help you follow the path of C#, this article looks at the history of C#, today’s use of C#, and helps you understand the future of C# and what the language intends to provide for you. After you understand the theme of C# 4.0, you’ll learn about the new features of C# 4.0. Finally, this article will show you how to create a dynamic object of your own with late-bound calls to dynamic methods based on conventions.
C#: Then and Now
The previous major versions of C# were 1.0, 2.0, and 3.0. There was a minor version 1.1 in April of 2003, but it didn’t significantly change the theme of the 1.0 release. I’ll discuss these versions in the following sections.
Microsoft first announced C# on June 16th 2000. It was the first high-level programming language that was built specifically to target the .NET Common Language Runtime. C# 1.0 grew its heritage from C++, but borrowed features from languages such as Delphi, Java, and others. In C# 1.0, Microsoft planned to provide an object-oriented, component-based language that was very simple to use. When Microsoft released C# 1.0 to manufacturing on February 13th 2002, it was an immediate hit and steadily grew in popularity.
When C# 2.0 rolled around, Microsoft finally added all of the features that should have been in C# 1.0. For example, generics was huge and is an important part of .NET development today. C# 2.0 also introduced anonymous methods, iterators, and nullable types. An interesting addition to C# 2.0, nullable types was a pre-cursor feature for what was coming in the next version, focusing on data.
Most developers work with data, which was the primary theme of C# 3.0. The largest C# 3.0 language addition was Language Integrated Query (LINQ). Most other language features added in C# 3.0 were primarily to support LINQ, but the new features; including implicitly typed local variables, anonymous types, object and collection initializers, lambdas, and extension methods, can have value on their own in development that doesn’t involve LINQ.
The next version of C# will be 4.0, which is the focus of this article. C# 4.0 will primarily focus on dynamic programming. The following sections of this article explain the dynamic programming features of C# 4.0 as well as other new features such as optional/named parameters and covariance/contravariance.
Why Dynamic Programming?
The dynamic programming story in C# can fall into fulfilling categories of need in the way of multiple-language integration, simpler reflection, access to HTML DOM in Web scenarios, and easier COM interop. Some of these categories of need might not apply to your particular situation, and that’s okay because there isn’t anything that says that you have to use a language feature just because it’s there. Therefore, I’ll give you an idea of how someone with a specific need might find value in C# 4.0 dynamic programming.
"
C# 4.0 will primarily focus on dynamic programming.
"
Most C# developers use multiple tools in a single application to accomplish complex tasks. If you’re writing WPF desktop applications, you’re using C# and XAML. It is quite possible that you might find some open source code that solves a problem, but it might be written in another language such as VB or F#. One of the benefits of .NET since its inception is the ability to have cross-language interoperability and the runtime is even called the “Common Language” Runtime (CLR). In recent years, Microsoft has created dynamic languages, such as IronRuby and IronPython, but developers don’t have an easy way to perform interop with dynamic languages. If you have this need, then you’ll welcome the ease with which C# dynamic programming makes interop between C# and dynamic languages possible.
When performing reflection to run a method on an object, there are several hoops to jump through, including obtaining a reference to an object type, getting a reference to a member info object, determining the type of bindings to use, and then invoking the member. While reflection has an undeniable coolness factor, it still feels like a hack and that’s where C# 4.0 dynamic methods can help. Later in this article, I’ll show you how to just call the object member.
If you write Silverlight applications, you might have the need today or in the future to access the HTML DOM containing your Silverlight control. C# dynamic programming makes this task easier.
Performing COM interop with C# has always been cumbersome; partly because of the need to write extra syntax for conversions, optional parameters, and more. This has left some C# developers with a touch of VB envy because VB has easier COM interop support. One of the purposes of dynamic programming in C# is to help the C# programmer write cleaner syntax in COM interop scenarios.
I’ve spent some time explaining some of the potential benefits of dynamic programming because it’s so new that the value might not jump out at you immediately. In following sections, I’ll share the how so that you can match it up with the why that you might care about. Before diving into dynamic programming, let’s look at a couple other new features of C# 4.0, optional and named parameters.

Optional Parameters
"
If you’re of the same mind, then you’ll probably be pleased that C# 4.0 supports optional parameters.
"
For many C# developers, the long wait for optional parameters is over with C# 4.0. An optional parameter lets you provide a default value and the caller has a choice of whether or not they want to provide an argument. In current and earlier versions of C#, you could simulate optional parameters like this:
// Overload with no parameterpublic static string SayHello(){    return "Hey, You!";}
// Overload with normal parameterpublic static string SayHello(string name){    return "Hey, " + name + "!";}
The SayHello method above is overloaded with both an empty parameter list and a parameter list with a single string parameter. To the user of this code, the name parameter appears to be optional and both of the following calls work fine:
// Name is optionalvar greetYou = SayHello();
// Can provide name if you wantvar greetJoe = SayHello("Joe");
If you had methods with more parameters and wanted to provide a more flexible coding experience, you would provide more overloads. Many developers have said that this is cumbersome and leaves more code to maintain. If you’re of the same mind, then you’ll probably be pleased that C# 4.0 supports optional parameters. The snippet below shows an optional parameter, replacing the previous two overloads:
// Method with optional parameterpublic static string SayHello(string name = "You"){    return "Hey, " + name + "!";}
As shown in the previous snippet, the syntax to call an optional parameter requires assigning a default value to the parameter. In the listing above, "You" will be assigned to name if the caller does not provide a value.
A feature related to optional parameters is named parameters, which is discussed next.
Named Parameters
One of the primary purposes of named parameters is that they resolve ambiguity between parameters. For example, the following method contains two parameters that are strings:
public static void AddClubMember(    string name    string email = "",     DateTime? dateJoined = null){    // Not yet implemented}
The types of the first two parameters of the AddClubMember method above are both string, except that name is not optional, but email is optional. This example also demonstrates that you can default parameters to null.
AddClubMember(    email: "joe@dot.net",     name: "Joe",     dateJoined: DateTime.Now);}
The call to AddClubMember above uses named parameters where the name is the same as the parameter name in the method declaration with an appended colon. Notice that I’ve shuffled the parameter order to demonstrate that you can change the order of parameters.
"
Named parameters are particularly useful when you have multiple optional parameters of the same type.
"
Named parameters are particularly useful when you have multiple optional parameters of the same type. In that case, you name the parameter that you want to set, telling C# which parameter your argument matches. The code below demonstrates a problem where named parameters are necessary:
AddClubMember(    "joe@dot.net",     dateJoined: DateTime.Now);}
If you recall, the first parameter of the AddClubMember method is name, a required parameter of type string. Since the first argument above is a string, C# will match that argument to the name parameter. Clearly, the value above is an email address, which presents you with a logical error that won’t be detected at either compile time nor run time when that line executes.

Related Posts Plugin for WordPress, Blogger...