Dasht Mein Piyas Bujhaty Howe Mar Jaate Hain
Hum Parinde kahein Jatay Howe Mar Jaate Hain,
Jo Taaluq ko Nibhaatae Howe Mar Jaate Hain,
Jo Hamain Zaher Pilatay Howe Mar Jaate Hain,
Log kirdar Nibhate Howe Mar Jaate Hain,
Jo kinaaron ko Milaatay Howe Mar Jaate Hain.
Hello 2017!
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!
2016’s first and last post…
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___!!
Change img src without using content css property
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;
Chahat Mein Kiya Duniya Dari
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…..
Dependencies for creating a JSF (PrimeFaces) Portlet in Liferay
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 🙂
How to override default PrimeFaces CSS
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.
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 🙂
Follow your thought and motivation..!!!
At times at a plain simple moment in the life one may come to a situation where there are fears (of people, situations, outcomes and time) which may limit one to proceed or decelerate. The fears are best tackled by these things i believe:
- Don’t run away from them
- Convince yourself in a logical (whatever is a comfortable logic to you) about the minuteness and invaluable nature of the fears
- Learn that you are you and no one others opinion or advice suits you (most of them are just critics) other than your own motivation, thoughts and love for your work or whatever.
Try to be yourself, the Simple Plain YOU and forget rest because you are unique and so is your work, thoughts, ideas, approach to do things, motivations, priorities and the way you have traveled so long to get where you are today.
Life starts becoming so simple and charming when you start becoming YOU and following your thought and motivation..
Validate you JSON
This is a great online utility for validating your JSON.
Catch it on this link: http://jsonlint.com/