VisualVM Custom jdk

Reading Time: 1 minute if an older version of java is set as your java home then; open the file “visualvm.conf” in %VISUALVMROOT% etc folder uncomment and change the line: visualvm_jdkhome=”C:\jdk1.8.0_75″  

Enabling Fontawesome icons in Primefaces

Reading Time: 1 minute I’ve tested this in the Primefaces 6.0 and JSF 2.2 configuration Before After web.xml   <context-param> <param-name>primefaces.FONT_AWESOME</param-name> <param-value>true</param-value> </context-param> <mime-mapping> <extension>woff2</extension> <mime-type>application/x-font-woff2</mime-type> </mime-mapping> jsf page   <p:column headerText=”Actions”> <p:commandButton type=”button” value=”Edit” icon=”fa fa-fw fa-edit”/> <p:commandButton type=”button” value=”Delete” icon=”fa fa-fw fa-remove”/> </p:column>  

Extracting Oracle Java installation from exe

Reading Time: 1 minute This has been tested in JDK 7. Please download 7Zip application. WinRAR does not assist along this process 1.Download a desired JDK version from prior downloads at 2.Create a folder in where you want to keep the jdk, 3.Copy the downloaded .exe file in here, 4.Right click on exe and 7-Zip>>Extract Here, 5.Right click on

Backing up and restoring with pg_dump and psql in PostgreSQL

Reading Time: 1 minute Backing up the data [code] pg_dump –host HOSTADDR&amp;nbsp;–port 5432 –username “wins_qa” –format plain –encoding UTF8 –schema-only –no-owner –file %HOME%”\Desktop\create_query.sql” –schema “wins_qa” “gwinsq01” [/code] this query will; create only creation queries, not involve role owner information, only select the schema “wins_qa”, only select the database”gwinsq01″, For more information consult the PostgreSQL Documentation at   Restoring

Aligning 2 div elements side by side

Reading Time: 2 minutes 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

Reading Time: 2 minutes [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=”” integrity=”sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp” crossorigin=”anonymous”> <link rel=”stylesheet” href=”” 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