Posts

Angular (before hands on) -01

Here I'm mainly talking about angular 2. After AngularJS, angular2 is released with major changes in the Framework. Changes happened The major change was transferring to TYPESCRIPT from JS. And angular 2 is based on a Component service architecture. AngularJS had an MV* architecture. Let's take a look at the core features of this framework... Module : modules are used to separate the functionality of the application. When you create your initial angular application When you take a module code. (ex:- app.module.ts) there are imports, declarations, bootstrap and can see annotations too. import { NgModule } from '@angular/core' ; import { BrowserModule } from '@angular/platform-browser' ; import { AppComponent } from './app.component' ; @NgModule ({ imports : [ BrowserModule ], declarations : [ AppComponent ], bootstrap : [ AppComponent ] }) export class AppModule { } @NgModul...

Web Services (Road to J2EE) - 02

Image
Let's start hands on, I prefer working on IDEA and I'll create a maven project as this Series hands-on example. For all who don't know about MAVEN, it's a Java Project Management tool or i can tell is it's a kind of package manager like npm. Manages dependencies of your projects and gives archetype which is the structure of the project. search for the archetype of the jersey web app so we can get an initial web app structure for our project. if you don't see any jersey dependancy then click on add archetype and gives the following values. for the mandatory fields.        <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.archetypes/jersey-quickstart-webapp --> <dependency>     <groupId>org.glassfish.jersey.archetypes</groupId>     <artifactId>jersey-quickstart-webapp</artifactId>     <version>2.28</version> </dependency> or go to the maven repository a...

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...