Hello 2017!

January 3, 2017 Leave a comment

2017 is here. Today is 3rd January. A new year ahead providing us the opportunity to make it as good and happy as we want it so it can stay in our memories ever after.

Some ingredients to make it a wonderful year for us are: [ hope i myself keep them in mind in 2017 🙂  ]

  • Be positive
  • Take some time out for yourself daily, alone with yourself. It can be having a mug of coffee while staring out of window, reading some things, going for a walk or just sitting alone and trying to peek inside yourself. Anything you like!
  • Give some space to others and try to be a bit accommodating.
  • Try to dress properly and improve your looks.
  • Try to exercise a bit.
  • Eat whole and healthy.
  • Try to learn new things (new frameworks and related stuff). I have a goal to have a hands on with HTTP and REST in 2017 🙂
  • Spend some time with your family
  • Improve your smile 🙂 Spread love and positivity. Try to make feel others better.

 

May the new year brings all the happiness and blessings to all of us.! Peace!

Categories: Life

2016’s first and last post…

December 14, 2016 Leave a comment

2016 had been a sort of busy year..Couldn’t find time to write. Wrote a lot of code. Learnt new things some times but was so drenched in professional and personal routine that couldn’t think about any posts here.

It’s 14th December and 2016 is about to end. I am writing the first and probably the last post of this year. Planning to give more time to my blog in 2017 and writing more about Java, IT, Life and emotions.

For now posting this piece of poetry.

 “D E C E M B E R”

Teri yadon ki rawani or ye__________ __________________December
Meri batein , teri kahani or ye_______________________ December__!!

Mera hath tera sath , lambi sarak or ye ___________________December
Gum sum shaamain , sunehri raatain or ye _________December_______!!

Bheigy din , madham suraj , halky badal or ye_____________ _December
Behti nadiya , gaatay panchi , urti dhund or ye______________ December

Tanha me , tanha chand , mera kamra or yeh_______________ December
Meri ankhein , mere aansu , meri neend , tere khawab or ye December___!!

Categories: Life, Poetry

Change img src without using content css property

February 23, 2015 Leave a comment

Hi,

You may come across a situation where the content css property is of no use for example Mozilla Firefox does not understands content property and you have to consider it if you are looking towards cross-browser compatibility.

Below is a simple solution that would do the trick:

background: url('../images/common/Edit_new.png') no-repeat !important;

/** you can adjust paddings and width, height according to your need where image is displayed accurately **/
padding-left: 16px;  
padding-right: 8px;
padding-top: 0px;
padding-bottom: 15px;
width: 0px;
height: 10px;
Categories: CSS Tags: ,

Chahat Mein Kiya Duniya Dari

November 28, 2014 Leave a comment

Chahat Mein Kiya Duniya Dari Ishq Mein Kaisi Majboori
Logon Kaa Kiya, Samjhaney Do, In Ki Apni Majboori,

Mein Nay Dil Ki Baat Rakhi Aur Tu Nay Duniya Waloon Ki
Meri Aarz Bhi Majboori Thee, Unn Kaa Hukam Bhi Majboori,

Rok Sako To Pahli Barish Ki Bondon Ko Tum Roko
Kachi Mitti To Mehkay Gee, Hai Mitti Ki Majboori,

Jab Tak Hansta Gaata Mausam Apna Hai, Sab Apney Hain
Wakt Paray To Yaad Ajati Hai Masnuiee Majboori,

Muddat Guzri Aek Waday Perr Ajj Bhi Qayam Hai Mohsin
Hum Nay Sari Umer Nibhaye, Apni Pehli Majboori…..

Categories: Life, Poetry

Dependencies for creating a JSF (PrimeFaces) Portlet in Liferay

October 28, 2014 Leave a comment

Following are the dependencies if you are trying to create a JSF (PrimeFaces) Portlet in Liferay:

– commons-fileupload-1.2.2.jar
– commons-io-1.3.2.jar
– jboss-el-2.0.0.GA.jar
– jsf-api-2.1.21.jar
– jsf-impl-2.1.21.jar
– liferay-faces-alloy-3.2.4-ga5-SNAPSHOT.jar
– liferay-faces-bridge-api-3.2.4-ga5-SNAPSHOT.jar
– liferay-faces-bridge-impl-3.2.4-ga5-SNAPSHOT.jar
– liferay-faces-util-3.2.4-ga5-SNAPSHOT.jar
– primefaces-3.5.jar (primefaces-5.0.jar also working)

Its recommended to use exactly the same versions of these jars because of conflicting classes/issues in other versions (other versions too would be stable but i got a conflict when using different versions). This combination of JARs have been testing for creating JSF (PrimeFaces) portlets with Liferay version 6.2.10.1-ee-ga1.

Cheers and have a nice day 🙂

Categories: Java, JSF, PrimeFaces

How to override default PrimeFaces CSS

October 13, 2014 Leave a comment

For JSF/PrimeFaces beginners overriding the default primefaces CSS is often an issue and there are also not much answers to this question on the internet. Okay why do you want to override the default CSS..? Because of a number of reasons.. For example the default PrimeFaces components are too big and i wanted them to look like those shown in PrimeFaces showcase. So all i have to do is to override the CSS with my custom CSS.
Create a CSS file in the WebContent\resources\css folder (create the css folder). Put the following code in the CSS file:

.ui-widget,
.ui-widget .ui-widget
{
    font-size: 90% !important;
}

Now all you have to do is to include this CSS file in your JSF page by adding the following code.

<h:outputStylesheet name="css/custom-style.css" />

And thats all, now you can add any styles, classes to this CSS file and make your JSF/PrimeFaces components fancy and the way you want them to be. Cheers.

Categories: Java, JSF, PrimeFaces

Installing OpenJDK on Ubuntu

Hi All! Today i tried to install oracle jdk on ubuntu but as i hadn’t previously worked on linux/ubuntu i didn’t knew how to do it. Then i found that OpenJDK is the default implementation of JVM on Ubuntu and it could be installed with this simple command:

 sudo apt-get install openjdk-6-jdk 

after this run the following command to see if the jdk is successfully installed:

 java -version 

Cheers 🙂

Categories: Java