Monday, July 6, 2020

git in NetBeans: Contains files that are in conflict - Solved


After you switch to a different branch, you notice that there is a red cylinder mark next to the project icon. When you hover over it, a message shows up and it says "Contains files that are in conflict".



To fix it, right-click on the project, choose Git, then Resolve Conflict.


In the pop-up window, choose either Remove File From Index or Keep Current File Content.

-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

Wednesday, July 1, 2020

PostgreSQL: add an interval of days represented by a variable to a date

We know that if you want to add 4 days to a date, you do the following.

      <your date> + interval '4 days'

However, if you have

      int x = 4;
   
It will not work by:

      <your date> + interval 'x days'

The way to make it work is:

      <your date> + x * (interval '1 day')


-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live




If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.