Create new tags or labels using HTML, CSS, jQuery

You can see result of this code at Demo Result, and editable example at Demo Code.


jsfiddle Result

jsfiddle Result

/* style.css */

* {
font-family: 'Segoe UI';
font-size: 10pt;
}
.tags {
margin:15px 0; padding:15px;
background-color: #DEDEB6;
}
.tags p {
margin: 0;
}
.tags span {
display: inline-block;
padding: 3px 9px;
background: #E4E4E4;
border: solid 1px #A0A054;
border-radius: 5px;
margin:5px
}
.tags span a {
color: red;
text-decoration: none;
background-color: white;
padding: 2px 5px;
border-radius: 16px;
font-size: 12px;
}

/* custom.js */

$(function () {
$("#tagSel option").click(function () {
$("#tags").append('<span id="' + $(this).attr("value") + '"> ' + $(this).text() + ' <a href="#">&times;</a></span>');
$(this).prop("disabled", true);
});
$("#tags").on("click", "span a", function () {
$("#tagSel option[value='" + $(this).parent().attr("id") + "']").removeAttr('disabled');
$(this).parent().remove();
});
});

 <!– index.html –>

<select multiple id="tagSel">
  <option value="tag1">Tag 1</option>
  <option value="tag2">Tag 2</option>
  <option value="tag3">Tag 3</option>
  <option value="tag4">Tag 4</option>
  <option value="tag5">Tag 5</option>
</select>

<pre class="tags">
  <p>Selected tag should appear here</p>
  <p id="tags"></p>   
</pre>

The World under the Cloud : Cloud Computing

If you need milk, would you buy a cow? Just to get benefits (milk) of using software or hardware of the computer, why should consumer buy a (cow) software or hardware? It is better to use functionality rather than create applications. It is concept of cloud computing.

“Cloud Computing is used for computing software or allocating resources, hardware that are delivered as a service over a network.”

Cloud computing is an agile, secure, reliable, cost effective and scalable method for delivery of computing and delivery of data. End users access cloud based applications through a web browser or a light weight desktop or mobile app while the business software and data are stored on servers at a remote location.

A name “Cloud” & cloud shaped symbol is introduce as an abstraction for the complex infrastructure. It entrusts remote services with a user’s default software & computation.

However the general meaning is that your stuff is simply thrown out in the Internet rather than being stored on your laptop or server. Thus your data won’t be lost even if your laptop is stolen by secret agents or the server had been destroyed by a missile. You can always access it back in the web from anywhere. A good example is the Google docs.

It allows users to obtain, configures and deploys cloud services themselves using cloud service catalogues, without requiring the assistance of IT. The self-service requirement of cloud computing prompts infrastructure vendors to create cloud computing templates, which are obtained from cloud service catalogues.

The templates contain predefined configurations for different cloud infrastructures, with information about servers for specific tasks such as hosting applications, databases, websites and many more used by consumers to set up cloud services. The templates or blueprints provide the technical information necessary to build ready-to-use clouds.  The templates also include predefined Web service, the operating system, the database, security configurations and load balancing. Cloud consumers use cloud templates to move applications between clouds through a self-service portal. The predefined blueprints define all that an application requires to run in different environments. The user organization benefits from cloud templates because the technical aspects of cloud configurations reside in the templates, letting users to deploy cloud services with a push of a button. Cloud templates can also be used by developers to create a catalog of cloud services.

There are many Service Models.

  • Infrastructure as a Service (IaaS) provides services physical or (more often) virtual machines – and other resources. Windows Azure Virtual Machines, Google Compute Engine, Oracle Infrastructure as a Service are providers of IaaS.
  • Platform as a Service (PaaS) provides services operating system, programming language execution environment, database, and web server. Google App Engine, Windows Azure Cloud Services are providers of PaaS.
  • Software as a Service (SaaS) provides services install and operate application software in the cloud and cloud users access the software from cloud clients. Google Apps, Microsoft Office 365 are providers of SaaS.
  • Network as a Service (NaaS) provides service user to use network/transport connectivity services and/or inter-cloud network connectivity.

Previous year, Intel, Yahoo and HP announced a joint test center for cloud computing education and research. Last August IBM announced a $360m data center in North Carolina to provide Cloud Computing facility to their clients.

Cloud is opening up new windows of opportunities for Indian companies both from global as well as domestic opportunity stand point. Having realized the immense potential of cloud, it is essential for companies to come together and enable collaborative innovation to address both India and global market needs. The key focus should now be on developing the ecosystem. It should include developing talent for cloud development, connecting start up ISVs with large system integrator, enabling start ups on the cloud market places and finally, influencing government policies to become cloud friendly. In the near future, this ecosystem together with Indian capabilities of exporting business models will provide the right mix to leverage opportunities created by cloud.