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:

Monday, November 14, 2011

HTML5 Web Storage API


The Web Storage API is surprisingly simple to use. i will start by covering simple storage and retrieval of values and then move on to the differences between session and local storage.

Setting and Retrieving Values

For now, i will focus on the session storage capability as you learn to set and retrieve simple values in a page. Setting a value can easily be done in a single statement, which we’ll initially write using the longhand notation:

window.sessionStorage.setItem(‘myFirstKey’, ‘myFirstValue’);
There are three important points to notice from this storage access statement:
  •  The object implementing the Web Storage API is attached to the window, so window.sessionStorage contains the functions you need to call.
  • The function we are calling is setItem, which takes a key string and a value string. Although the formal Web Storage API supports passing in non string values, current browsers are limited in the value types they support.
  •  This particular call will set into the session storage the string myFirstValue, which can later be retrieved by the key myFirstKey.
To retrieve the value, the long-hand notation involves making a call to the getItem function. For example, if we augmented our previous example with the following statement..
alert(window.sessionStorage.getItem(‘myFirstKey’));
the browser raises a JavaScript alert displaying the text myFirstValue. As you can see, setting and retrieving values from the Web Storage API is very straightforward.
That’s it for the basics. You now have all the knowledge you need to use session storage in your
application. However, you might be wondering what’s so special about this sessionStorage object. After
all, JavaScript allows you to set and get properties on nearly any object. The difference is in the scope.
What you may not have realized is that our example set and get calls do not need to occur in the same
web page. As long as pages are served from the same origin—the combination of scheme, host, and
port—then values set on sessionStorage can be retrieved from other pages using the same keys. This
also applies to subsequent loads of the same page. As a developer, you are probably used to the idea that
changes made in script will disappear whenever a page is reloaded. That is no longer true for values that
are set in the Web Storage API; they will continue to exist across page loads.

Local Versus Session Storage

Sometimes, an application needs values that persist beyond the life of a single tab or window or need to
be shared across multiple views. In these cases, it is more appropriate to use a different HTML5 Web
Storage implementation: localStorage. The good news is that you already know how to use
localStorage. The only programmatic difference between sessionStorage and localStorage is the name
by which each is accessed—through the sessionStorage and localStorage objects, respectively. The
primary behavioral differences are how long the values persist and how they are shared.
difference between local and session storage

HTML5 new input types


HTML5 includes the several new ‘input types’, these input types are used for better control and validation.
This article covers the following input type one by one:
  • email
  • number
  • color
  • datedime
  • datetime-local
  • date
  • month
  • week
  • range
  • search
  • url
  • tel

New Input Types

The good thing about new input types in html5, if browser not supports  any type, than it displays in default input type of text with no errors or exceptions.
Email:
This field is used to enter the email address. The value of the email field is automatically validated when the form is submitted.
<input type="email" value="no-reply@email.com" />
Number:
This field is used to enter the number (digit), also supports the floating number. You can set the minimum and maximum values of the number. Also you can specify the number interval by using the ‘step’ attribute.
<input type="number" min="1" max="10" step=”2”/>

Color:

The color type is used for input fields that should contain a color. The Opera browser will allow you to select a color from a color picker, Google’s Chrome will only allow hexadecimal color values to be submitted. This input type could be represented by a wheel or swatch picker.
<input type="color" value="#b98b58">
DateTime:
This field is used to select the date and time (UTC time).
<input type="datetime" value="2011-10-23T20:35:34.32">

datetime-local:

An element to choose both date and time, with local settings support.
<input type="datetime-local" value="10-23-2011T22:41">
Date:
This field is used to select the date.
<input type="date" value="2011-11-23"/>

Month:

This input type is used to select the month and year.
<input type="month" value="2011-11">

Week:

This input type is used to select the week and year.
<input type="week" value="2011-W48">

Range:

This field is a slider, to set a certain value or position. You can set the minimum and maximum value of the slider. Also you can specify the number interval by using the ‘step’ attribute.
<input type="range" value="15" min="0" max="100">
Note: If not set, default attribute values are min=”0″, max=”100″, step=”1″.

Search:

The search type is used for search fields, like a site search, or Google search. this field behaves like a regular text field.
<input type="search"/>
Note: In WebKit-based web browsers (Google Chrome, Safari) you can add the non-standard results attribute to get a looking glass icon to click to see the latest searches, and the attribute autosave to keep them across page loads.
<input type="search" results="5" autosave="saved-searches"  placeholder="Search...">

URL:

The url type is used for input fields that should contain a URL address. The value of the url field is automatically validated when the form is submitted.

<input type="url" value="http://www.codeheaven.org">
Note: requires a protocol like http://, ftp:// etc in the beginning.

Tel:

This input type is used to enter the telephone number.
<input type="tel" value="[Any numeric value]" 
pattern= "^\(?\d{3}\)?[-\s]\d{3}[-\s]\d{4}.*?$" placeholder="(555) 555-2222">
Note: Most web browsers seem to let through any value at this time.

HTML5 new form attributes


Like the new input types, it is generally safe to use these attributes today, whether or not your target browser supports them. This is because the attributes will be safely ignored by any browser on the market today if the browser does not understand them.

The placeholder Attribute

The placeholder attribute gives input controls an easy way to provide descriptive, alternate hint text which is shown only when the user has not yet entered any values. This is common in many modern user interface frameworks, and popular JavaScript frameworks have also provided emulation of this feature. However, modern browsers have it built-in.

To use this attribute, simply add it to an input with a text representation. This includes the basic text type, as well as the semantic types such as emailnumberurl, etc.
<label>Examiner: <input name=”name” placeholder=”First Name” required></label>
In a supporting browser, such as Google Chrome, this causes the field to display a faint version of the placeholder text which will disappear whenever the user or application puts focus into the field, or whenever there is a value present.

HTML5 – A Plugin Free Paradigm


HTML5 provides native support for many features that used to be possible only with plugins or complex hacks (a native drawing API, native sockets, and so on). Plugins, of course, present problems:

  • Plugins cannot always be installed.
  • Plugins can be disabled or blocked (for example, the Apple iPad does not ship with a Flash plugin).
  • Plugins are a separate attack vector.
  • Plugins are difficult to integrate with the rest of an HTML document (because of plugin boundaries, clipping, and transparency issues).
Although some plugins have high install rates, they are often blocked in controlled corporate environments. In addition, some users choose to disable these plugins due to the unwelcome advertising displays that they empower. However, if users disable your plugin, they also disable the very program you’re relying on to display your content.
Plugins also often have difficulty integrating their displays with the rest of the browser content, which causes clipping or transparency issues with certain site designs. Because plugins use a self-contained rendering model that is different from that of the base web page, developers face difficulties if pop-up menus or other visual elements need to cross the plugin boundaries on a page. This is where HTML5 comes on the scene, smiles, and waves its magic wand of native functionality. You can style elements with CSS and script with JavaScript. In fact, this is where HTML5 flexes its biggest muscle, showing us a power that just didn’t exist in previous versions of HTML. It’s not just that the new elements provide new functionality. It’s also the added native interaction with scripting and styling that enables us to do much more than we could ever do before.
Take the new canvas element, for example. It enables us to do some pretty fundamental things that were not possible before (try drawing a diagonal line in a web page in HTML4). However, what’s most interesting is the power that we can unlock with the APIs and the styling we can apply with just a few lines of CSS code. Like well-behaved children, the HTML5 elements also play nicely together. For example, you can grab a frame from a video element and display it on a canvas, and the user can just click the canvas to play back the video from the frame you just grabbed. This is just one example of what a native code has to offer over a plugin. In fact, virtually everything becomes easier when you’re not working with a black box. What this all adds up to is a truly powerful new medium.

New Semantic Elements in Html5


HTML5 is not just about making existing markup shorter (although it does a fair amount of that). It also defines new semantic elements.

<section>

The section element represents a generic document or application section. A section, in this context, is a thematic grouping of content, typically with a heading. Examples of sections would be chapters, the tabbed pages in a tabbed dialog box, or the numbered sections of a thesis. A Web site’s home page could be split into sections for an introduction, news items, contact information.

<nav>

The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links. Not all groups of links on a page need to be in a nav element — only sections that consist of major navigation blocks are appropriate for the nav element. In particular, it is common for footers to have a short list of links to common pages of a site, such as the terms of service, the home page, and a copyright page. The footer element alone is sufficient for such cases, without a nav element.

<article>

The article element represents a component of a page that consists of a self-contained composition in a document, page, application, or site and that is intended to be independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a Web log entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.

<aside>

The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav elements, and for other content that is considered separate from the main content of the page.

<hgroup>

The hgroup element represents the heading of a section. The element is used to group a set of h1–h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.

<header>

The header element represents a group of introductory or navigational aids. A header element is intended to usually contain the section’s heading (an h1–h6 element or an hgroup element), but this is not required. The header element can also be used to wrap a section’s table of contents, a search form, or any relevant logos.

<footer>

The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like. Footers don’t necessarily have to appear at the end of a section, though they usually do. When the footer element contains entire sections, they represent appendices, indexes, long colophons, verbose license agreements, and other such content.

<time>

The time element represents either a time on a 24 hour clock, or a precise date in the proleptic Gregorian calendar, optionally with a time and a timezone offset.

<mark>

The mark element represents a run of text in one document marked or highlighted for reference purposes.
All of these elements can be styled with CSS. In fact HTML5 pushes the separation of content and presentation, so you have to style your page using CSS styles in HTML5. Following html shows what an HTML5 page might look like. It uses the new DOCTYPE, character set, and semantic markup elements—in short, the new sectioning content.
<!DOCTYPE html>
<html>
<head>
        <meta charset=”utf-8″ >
        <title>HTML5</title>
        <link href=”StyleSheet.css” rel=”stylesheet” type=”text/css” />
   </head>
<body>
<header>
        <h1>codeheaven.org</h1>
        <h2>coding techniques and tips</h2>
        <h4>ch.org Rocks!</h4>
</header>
<div id=”container“>
         <nav>
            <h3><mark>Nav</mark></h3>
            <a href=”http://codeheaven.org/category/html5“>Html5</a>
            <a href=”http://codeheaven.org/category/xml-2“>XML</a>
            <a href=”http://codeheaven.org/category/jquery-2“>jquery</a>
        </nav>
        <section>
            <article>
                <header>
                    <h1>Article Header</h1>
                </header>
                <p>Article: Thee article element represents a component of a page that consists of a self-contained composition in a document, page, application, or site.</p>
                <p>Header: Thee header element represents a group of introductory or navigational aids. A header element is intended to usually contain the section’s heading.</p>
                <footer>
                    <h2>Article Footer</h2>
                </footer>
            </article>
            <article>
                <header>
                    <h1>Article Header</h1>
                </header>
                <p>Footer: The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element.</p>
                <footer>
                    <h2>Article Footer</h2>
                </footer>
             </article>
        </section>
        <aside>
            <h3><mark>Aside</mark></h3>
            <p>The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.</p>
        </aside>
        <footer>
            <h2>Footer</h2>
        </footer>
    </div>
  </body>
</html>
Now, defines the styles of these html5 semantic elements StyleSheet.css is:
body {
background-color:#1777BA;
font-family:Geneva,Arial,Helvetica,sans-serif;
margin: 0px auto;
max-width:900px;
border:solid;
border-color:#FFFFFF;
}header{background-color: #7EB05B;
display:block;
color:#FFFFFF;
text-align:center;
}
header h2 {
margin: 0px;
}
h1 {
font-size: 52px;
margin: 0px;
}
h2 {
font-size: 16px;
margin: 0px;
text-align:center;
color: #E53F38;
}
h3 {
font-size: 18px;
margin: 0px;
text-align:center;
color: #E53F38;
}
h4 {
color: #E53F38;
background-color: #fff;
-webkit-box-shadow: 2px 2px 20px #888;
-webkit-transform: rotate(-45deg);
-moz-box-shadow: 2px 2px 20px #888;
-moz-transform: rotate(-45deg);
position: absolute;
padding: 0px 150px;
top: 50px;
left: -120px;
text-align:center;
}
nav {
display:block;
width:25%;
float:left;
}
nav a:link, nav a:visited {
display: block;
border-bottom: 3px solid #fff;
padding: 10px;
text-decoration: none;
font-weight: bold;
margin: 5px;
}
nav a:hover {
color: white;
background-color: #E53F38;
}
nav h3 {
margin: 15px;
color: white;
}
#container {
background-color: #888;
}
section {
display:block;
width:50%;
float:left;
}
article {
background-color: #eee;
display:block;
margin: 10px;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 2px 2px 20px #888;
-webkit-transform: rotate(-10deg);
-moz-box-shadow: 2px 2px 20px #888;
-moz-transform: rotate(-10deg);
}
article header {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 5px;
}
article footer {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 5px;
}
article h1 {
font-size: 18px;
}
aside {
display:block;
width:25%;
float:left;
}
aside h3 {
margin: 15px;
color: white;
}
aside p {
margin: 15px;
color: white;
font-weight: bold;
font-style: italic;
}
footer {
clear: both;
display: block;
background-color: #413F36;
color:#413F36;
text-align:center;
padding: 15px;
}
footer h2 {
font-size: 14px;
color: white;
}
/* links */
a {
color: #413F36;
}
a:hover {
text-decoration: underline;
}
Now you can see the output these html5 new semantic elements.
an html page with new semantic elements
an html page with new semantic elements

Customer and Tech support Funny Jokes


Tech Support: What kind of computer do you have?
Customer: A white one.
...............................
.
Customer: Hi, this is Celine. I can't get my DVD out !!!
Tech Support: Have you tried pushing the button?
Customer: Yes, I'm sure it's really stuck.
Tech Support: That doesn't sound good; I'll make a note.
Customer: No, wait a minute, I hadn't inserted it yet. It's still on my desk . . . sorry. Thank you.
...............................
.
Tech Support: Click on the 'MY COMPUTER' icon on the
left of the screen.
Customer: Your left or my left?
...............................
.
Tech Support: Hello. How may I help you?
Male Customer: Hi .. . . I can't print.
Tech Support: Would you click on 'START' for me and . .
Customer: Listen pal; don't start getting technical on me. I'm not Bill Gates!!!
...............................
.
Customer: Good afternoon, this is Martha. I can't print. Every time I try, it says . . . 'CAN'T FIND PRINTER'. I even lifted the printer and placed it in front of the monitor, but the computer still says it can't find it!!!
...............................
.
Customer: I have problems printing in red.
Tech Support: Do you have a color printer?
Customer: Aaaah . . . . . .. . . . . thank you.
...............................
.
Tech Support: What's on your monitor now, ma'am?
Customer: A teddy bear that my boyfriend bought for me at the 7-11 store.
...............................
.
Customer: My keyboard is not working anymore.
Tech Support: Are you sure your keyboard is plugged into the computer?
Customer: No. I can't get behind the computer.
Tech Support: Pick up your keyboard and take ten steps backwards.
Customer: Okay..
Tech Support: Did the keyboard come with you?
Customer: Yes.
Tech Support: That means the keyboard is not plugged in. Is there another keyboard?
Customer: Yes, there's another one here. Wait a moment please. . .. . . . . Ah, that one does work. Thanks.
...............................
.
Tech Support: Your password is the small letter 'a' as in apple, a capital letter 'V' as in Victor, and the number '7'.
Customer: Is that '7' in capital letters?
...............................
.
Customer: I can't get on the Internet.
Tech Support: Are you absolutely sure you used the correct password?
Customer: Yes, I'm sure I saw my co-worker do it.
Tech Support: Can you tell me what the password was?
Customer: Five dots.
...............................
.
Tech Support: What anti-virus program do you use?
Customer: Netscape
Tech Support: That's not an anti-virus program.
Customer: Oh, sorry . . . Internet Explorer.
...............................
.
Customer: I have a huge problem! My friend has placed a screen saver on my computer . . . but, every time I move my mouse, it disappears.
...............................
Tech Support: How may I help you?
Customer: I'm writing my first email.
Tech Support: OK, and what seems to be the problem?
Customer: Well, I have the letter 'a' in the address, but how do I get the little circle around it.
...............................
.
A woman customer called the Canon help desk because
she had a problem with her printer.
Tech Support: Are you running it under windows?
Customer: No, my desk is next to the door, but that is a good point. The man sitting next to me is by a window, and his printer is working fine!
...............................
.
And last, but not least . . .


Tech Support: Okay George, press the control and escape keys at the same time. That brings up a task list in the middle of the screen. Now, type the letter 'P' to bring up the Program Manager.
Customer: I don't have a 'P'.
Tech Support: On your keyboard, George.
Customer: What do you mean ?
Tech Support: 'P' . . . on your keyboard, George.
Customer: I AM NOT GOING TO DO THAT!!!


Ericsson Fresher Opening


Telecommunication
DesignationEngineer - Off roll (Apply within next two days) - 15 Opening(s)
Job DescriptionThese resources would be required to work in shifts and would be based out of our Bangalore office. It is an off roll position on 6 months contract extendable upto 1 year. They might be converted into on roll employees based on performance rating during their tenure as contractual employee.
Desired ProfileShould be 2011 pass out with more than 60% (not even 59.9%) in 10th, 12th and graduation.
Should have never appeared for any position at ericsson.
Would be required to work in shifts.
Should possess basic telecom knowledge.
Will be based out of Bangalore.
Will be on third part payroll.
Should hold a valid Btech / Be degree without any back papers.
Candidates from E&C background will be preffered.
Only local candidates who can appear on a short notice need to apply.
MCA's / BCA's / Mtech's kindly excuse and do not apply.
Those who fullfill the above criteria will only be considered and rest will not be entertained strictly.
Experience0 Years
Industry TypeTelcom/ISP
RoleOutside Consultant
Functional AreaTelecom Software
EducationUG - B.Tech/B.E. - Electronics/Telecomunication
PG - Post Graduation Not Required
Compensation:Rupees 1,25,000 - 1,50,000
Rs 12000/month
LocationBengaluru/Bangalore
KeywordsOff Roll Engineer on Third party payroll 6 Months Contract
ContactAnurag Agrawal 
Websitehttp://www.ericsson.com
Job Posted02 Nov
Reference00049499

Related Posts Plugin for WordPress, Blogger...