Posts

Web services (Road to J2EE)

I'm starting this series of posts about J2EE to get an idea of concepts about restful web service implementations using J2EE. Before we go into Restful web services lets see what is a web service first... Web service Did you ever think of when you are playing a game and it's asking you to post your score in your facebook wall? you don't need to go to the facebook to do so, the game itself gives the ability to post your score. That's how web services come in. Websites like Facebook twitter publish their API's on the web that another application can use. Think about what happens when you visit a website. how it differs with web services. When you want to visit, let's say Facebook, the client makes Http request to the server and the server will respond to the client by sending an Http request. that response is basically an HTML response. But when client call to a web service the response will be an XML/ JSON/ text whatever type of response. Rest web ser...

HTML and CSS - 08

Image
In this post, we are going to learn about how to create HTML tables. Since this is a bit important and a bit complex I will add step-by-step HTML scripts So that you can do it with me.  <!DOCTYPE html> <html> <head> <meta charset= "UTF-8" > <title> Table example </title> </head> <body> <table width= "100%" border= "1" bordercolor= "blue" cellspacing= "2" cellpadding= "2" > </table> </body> </html> let's see each and each attributes used.  Width ----> Width of the table. you can give a percentage value or a metric value for this. We will talk about other options later. border ---->  Thikness of the border. Change the values and see how the border behaves. bordercolor ---> Colour of the border. cellspacing ----> Table have cells. this attribute  places  spacing  around data within each  cell cellpaddin...

HTML and CSS - 07

Image
Today we are going to discuss HTML link creation and the anchor tags.    HTML link creation <a href=""> click </a> Above is the tag we use to create links on our HTML page.  href   --> describe the destination we want to go to when we click the link.  <!DOCTYPE html> <html> <head> <meta charset= "UTF-8" > <title> My page title </title> <style type= "text/css" > p { color : green ; } h1 { color : blue ; } </style> </head> <body> <h1> Machine Learning </h1> <p><b> Machine learning (ML) </b> is the <u> study of computer algorithms </u> that improve automatically <br> through experience and by the use of data. It is seen as a part of <strong><i> artificial intelligence </i></strong> . <br> Machine learning algorithms build a model based ...

HTML and CSS - 06

Image
Here are the links to my previous lessons on HTML and CSS. html-and-ccs-01 html-and-css-02 html-and-css-03 html-and-css-04   html-and-css-05 Inserting images, audios, and videos Inserting images.  To insert images we can use <img> tag. when the images are displaying in the browser, the below attributes need to be set for a better visual experience.  <img src="image_path" width="" height=""> See below example: (make sure to insert the images to the same folder that the HTML file exists.) <!DOCTYPE html> <html> <head> <meta charset= "UTF-8" > <title> My page title </title> <style type= "text/css" > p { color : green ; } h1 { color : blue ; } </style> </head> <body> <h1> Machine Learning </h1> <p><b> Machine learning (ML) </b> is the <u> study of computer algorithms </...

HTML and CSS - 05

Image
Ok, if you are new and you couldn't find my previous posts on HTML and CSS lessons, below I've added links to my previous lessons.  html-and-ccs-01 html-and-css-02 html-and-css-03 html-and-css-04  Ok, today it's gonna be a short lesson on HTML lists. There are two types of lists you can create. Ordered List         <ol> Unordered List     <ul> Ordered List <ol> see below example. <ol> <li> Supervised learning </li> <li> Un-supervised learning </li> <li> Reinforcement learning </li> </ol> <ol> is used to mark the content as an ordered list and the list items are added using <li>  UnOrdered List <ul> see below example. <ul> <li> Linear Regression </li> <li> Logistic Regression </li> <li> Decision Tree </li> <li> SVM </li> <li> NaiveBayes </li> <li...

HTML and CSS - 04

Image
If you are searching my previous posts on this series, the links for those are added below. HTML and CSS - 01   HTML and CSS - 02 HTML and CSS - 03 Lets learn some new HTML tags today. I'm adding examples for each tag so that you can copy it and place it inside the body section.   Line break       <br> Ex :- <p> this line is the first line <br> This is the second line </p> Single space     &nbsp; Ex :- <p> This is the text before spaces  &nbsp;&nbsp;&nbsp;&nbsp; This is the text after spaces</P> Header tags <h6>    smallest header Ex:- In our previous example, we have tested this header.  Text formatting options Bold text     <strong> or <b> Ex :- <p> this is <strong> Bold text </strong> <p> Italic         <em> or <i> Ex :- <p>This is <em> Italic text ...

HTML and CSS - 03

Image
If you didn't follow up on my previous posts on HTML and CSS lessons, please refer to the below links. html and ccs - 01 html and css - 02 Ok, in previous lessons we have gone through Head tag, body tag, paragraph tag.  Today let's do small decorations to our content using CSS.  Check the below HTML.  <!DOCTYPE html> <html> <head> <meta charset= "UTF-8" > <title> My page title </title> <style type= "text/css" > p { color : green ; } h2 { color : blue ; } h1 { color : red ; } </style> </head> <body> <h1> This is header </h1> <h2> This is header </h2> <h3> This is header </h3> <h4> This is header </h4> <p> This is Paragraph <p> </body> </html> See the result of it.  So if you analyze the HTML code written here, I've used the...