Aligning 2 div elements side by side

css file [code] * { margin: 0; padding: 0; box-sizing: border-box; } .clearfix:after{ content: “”; display: table; clear: both; } body { font-size: 18px; font-family: Helvetica Neue, Arial; } h1, h2 { color: #019801; } h1 { font-size: 40px; margin-bottom: 20px; } h2 { font-size: 25px; margin-bottom: 10px; } .main-text { text-align: justify; margin-bottom: 20px;

Bootstrap Article Details/Read more page with the tab of other articles

[code] <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css” integrity=”sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp” crossorigin=”anonymous”> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css” integrity=”sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u” crossorigin=”anonymous”> <style type=”text/css”> body { background: #eee !important; } .page-header{ margin-top: 0 !important; } .panel-body{ padding-top: 0; } .featuredImg{ margin-bottom: 15px; } </style> <!– HTML5 shim and Respond.js for IE8 support

Spring Task Example

pom.xml [code] <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>com.tugrulaslan</groupId> <artifactId>SpringScheduledTaskExample</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>SpringScheduledTaskExample</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.version>3.1.2.RELEASE</spring.version> </properties> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> [/code] batch.xml in src>java>resources [code] <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xmlns:task=”http://www.springframework.org/schema/task” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/task

Bootstrap Grid System

col-md-3 col-xs-9 The available grids: http://getbootstrap.com/css/#grid-options Example Code [code] <!– MAIN CONTAINER BEGIN –> <div class=”container”> <div class=”row”> <div class=”col-md-3″> <h3>Article 1</h3> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea

Bootstrap navigationbar

[code] <div class=”navbar navbar-inverse navbar-static-top”> <div class=”container”> <div class=”navbar-header”> <button type=”button” class=”navbar-toggle” data-toggle=”collapse” data-target=”.navbar-collapse”> <span class=”icon-bar”> </span> <span class=”icon-bar”> </span> <span class=”icon-bar”> </span> </button> <a href=”#” class=”navbar-brand”>Navbar Title</a> </div> <div class=”navbar-collapse collapse”> <ul class=”nav navbar-nav navbar-right”> <li class=”active”><a href=”#header”>Home</a></li> <li><a href=”#”>Link 1</a></li> <li class=”dropdown”> <a href=”#” class=”dropdown-toggle” data-toggle=”dropdown”>Social Media <b class=”caret”></b></a> <ul class=”dropdown-menu”> <li><a href=”#”>Linkedin</a></li>

Liquibase Spring batch xml for Oracle RDBMS

  [code] <?xml version=”1.0″ encoding=”UTF-8″?> <databaseChangeLog xmlns=”http://www.liquibase.org/xml/ns/dbchangelog” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd”> <changeSet id=”1.0.0_SPRING_BATCH_INFRASTRUCTURE” author=”a243229″> <createSequence sequenceName=”BATCH_STEP_EXECUTION_SEQ” startValue=”0″ minValue=”0″ maxValue=”9223372036854775807″ cycle=”false” /> <createSequence sequenceName=”BATCH_JOB_EXECUTION_SEQ” startValue=”0″ minValue=”0″ maxValue=”9223372036854775807″ cycle=”false” /> <createSequence sequenceName=”BATCH_JOB_SEQ” startValue=”0″ minValue=”0″ maxValue=”9223372036854775807″ cycle=”false” /> <createTable tableName=”BATCH_JOB_INSTANCE”> <column name=”JOB_INSTANCE_ID” type=”BIGINT”> <constraints primaryKey=”true” nullable=”false” /> </column> <column name=”VERSION” type=”BIGINT” /> <column name=”JOB_NAME” type=”VARCHAR(100)”> <constraints nullable=”false” /> </column>

Running sql queries in Liquibase

Make sure the user that you’ll use to issue this command will have privileges. In this query I create a user on Oracle DB [code] <?xml version=”1.0″ encoding=”UTF-8″?> <databaseChangeLog xmlns=”http://www.liquibase.org/xml/ns/dbchangelog” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd”> <changeSet id=”1.0.0_RBACK_USER” author=”a243229″> <!– TO BE ABLE TO RUN THIS SCRIPT, MAKE SURE YOUR NON-SYS USER HAS SUCH PRIVILEGES OTHERWISE RUN THE