Bootstrap Grid System

col-md-3 col-xs-9 The available grids: 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="" xmlns:xsi="" xsi:schemaLocation=""> <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="" xmlns:xsi="" xsi:schemaLocation=""> <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

Running Liquibase xml file from command line

I’ve tested the code against Oracle database at work. First download the jar and issue the command similar to below, make sure you are in the xml file’s location [code] java -jar C:\Users\A243229\Desktop\liquibase.jar –driver=oracle.jdbc.OracleDriver –classpath=C:\JavaDev\mavenRepository\oracle\ojdbc14\\ojdbc14- –changeLogFile=changelog-1.0.0.xml –url=jdbc:oracle:thin:@localhost:1521:xe –username=RBAC_TEST –password=rbactest1 update [/code] ref:

Resource Bundles

Resource Bundles allows you to create localized multi language supported applications for each locale. The abstract class “java.util.ResourceBundle” offers such locale-specific resources. The abstract class is sub classed by “PropertyResourceBundle” and “ListResourceBundle”. Each of these classes have their own implementations in a application which I’ll show some examples how to. However, there are some important

Javascript Useful Resources

Finding out whether the browser is Google Chrome [javascript] isChrome = /Chrome/.test(navigator.userAgent) &amp;&amp; /Google Inc/.test(navigator.vendor); [/javascript] Getting element by class name and changing styles [javascript] var arr = document.getElementsByClassName("ui-datepicker-trigger"); var arrLength = arr.length for (i = 0; i < arrLength; i++) { arr[i].textContent=" "; arr[i].style.height="15px"; arr[i].style.padding="4px"; } [/javascript] Getting element by id and appending style’s