Monday, March 9, 2015

Two

Falling in love again
With the girl of my dreams.
I'm going head over heels again
Looking forward to brand new things

That we are gonna
see from a different view
and do all the things
we've wanted to

I'm going head over heels again
I'm going one-on-one with you
All over again.

It's through and through.
Two.



Sunday, March 8, 2015

The Success Indicator

Napolean Hill called it the power of habit force. My swimming coach when I was a teenager simply used it to keep track of how far team members swam. Benjamin Franklin used one.  So did W Clement Stone and Jerry Seinfeld.

All you have to do is make a grid. Each row contains an important action item, that you must do regularly if you want to accomplish your goal. Each column contains a date. On a regular basis, check the box corresponding with the action you took, and the date. With time, you will clearly be able to tell whether you will succeed, or fail.

If your grid is full, you will succeed at that objective. The full grid is your "success indicator." If your grid is empty, it becomes a "failure indicator," and you will fail at that particular objective.

By using this grid, you develop habits, and over time, your habits will determine your major results in life.

Saturday, February 28, 2015

What Will Happen If You Boil a Cola?





This is an interesting experiment to show you visually how much sugar there is in soda.

Nature

"Everybody needs beauty as well as bread, places to play in and pray in, where nature may heal and give strength to body and soul." - John Muir

This quote from John Muir, who was instrumental in setting up the US National Park System and the founder of the Sierra Club, closely mirrors a passage from Deuteronomy 8:3 -  

"Yes, he humbled you by letting you go hungry and then feeding you with manna, a food previously unknown to you and your ancestors. He did it to teach you that people do not live by bread alone; rather, we live by every word that comes from the mouth of the Lord."

I think Muir was onto something. The word of God can often be heard most clearly when we are in nature, walking in the forest, or observing something of beauty. God speaks to us through music, art, and all things of beauty. Take the time to look at the beauty that is all around us, and hear God speak to you.

Read more about Muir on Wikipedia. John Muir was an avid writer of short stories, see: John Muir: Nature Writings



Tuesday, January 27, 2015

First Things First

Want to have a great life, have fun, and do the most good with your life?

A frequent answer to this question is to put "first things first", to do things in the proper order, and to follow your priorities. But what does this really mean?

The best answer I've found is to setup your daily activities following the 4-square principle.

Picture a square. One side is your physical self, the next side is your social self, the third side is your mental self, and the final side is your spiritual self.

What do you want to do? Living a 4-square life will help you get there. This is the "first thing" that you want to put first.

PHYSICAL: Take time to strengthen your physical body.

SOCIAL: Spend time with friends and family. Develop positive relationships.

MENTAL: Cultivate your intellect. Think. Get in-depth learning.

SPIRITUAL: Connect with a higher power regularly. Pray and meditate. Grow spiritually.

A common stumbling block in people's lives is being out of balance. Just like a snowboarder cannot be great without great balance, a person cannot become great without having their life in balance.

A life in balance helps you become the very best you can be, at whatever you are currently focusing on. With a life in balance you become the best athlete, student, musician, doctor, parent, or friend that you can possibly be.

Are you focusing too much on one side of the square? Do you spend too much time with friends while neglecting, for example, your mental development? Or, do you focus excessively on your mental studies, causing you to neglect your physical body?

- You need to be as healthy as you can be to be the best you can be.

- You need to have good friends and family relationships to be your very best.

- You need to think things through, to learn something in depth, and to develop your brain,

- Finally, you need to stay grounded by having a strong spirit, a strong connection to a higher power.

When you are in balance, something powerful happens. No longer does 1 + 1 + 1 + 1 equal 4. The synergy of developing each side of your life creates something awesome, something greater than the sum of its parts. Everything clicks.

When I get angry, frustrated, or dissatisfied with my life, I ask myself, am I in balance? Am I paying attention to the 4-square life? Invariably, a primary cause of my problem comes from being out of
balance. To this day, I actively work on staying in balance, and doing my best to live a 4-square life.

What does your "square" look like? Are you in balance?

This is the "first thing" that we need to prioritize. Putting "first things first" means living a 4-square life. This is our first and primary goal. By doing so, we can best love others, best serve others, and have the greatest fun and greatest rewards in life.


Monday, January 26, 2015

Mindfulness Based Stress Reduction in Breast Cancer

An interesting study recently found that mindfulness based stress reduction methods had a moderate to large effect on improving the stress in women with breast cancer.

Figuring out a good way to deal with stress, at all stages of life, appears to be healthy. It is not surprising that women with breast cancer who took specific measures to combat stress had a significant benefit.

Sunday, January 25, 2015

Basic MYSQLI Commands

CONNECT TO DATABASE
$host=localhost
$user=mysqluser
$password=mysqlpassword
$database=database
$mysqli = new mysqli($host, $user, $password, $database);

QUERY DATABASE
$query="SELECT * FROM table";
$result=$mysqli -> query($query);

GET NUMBER OF ROWS
$result=$mysqli -> query("SELECT * FROM table");
$row_cnt = $result -> num_rows;

--- or ---

$row_cnt = mysqli_num_rows($result);

OUTPUT QUERY RESULTS
while($row = $result -> fetch_assoc()){
    echo $row['column name'] ;
}

SELECT FROM TABLE BASED UPON TIMESTAMP
this assumes that "date" in the mysql table is a timestamp. This will select all entries made where the date was within the last 24h.

SELECT * FROM table WHERE date >= now() - INTERVAL 1 DAY;