Make a radical change in your lifestyle

“Make a radical change in your lifestyle and begin to boldly do things which you may previously never have thought of doing, or been too hesitant to attempt. So many people live within unhappy circumstances and yet will not take the initiative to change their situation because they are conditioned to a life of security, conformity, and conservation, all of which may appear to give one peace of mind, but in reality nothing is more damaging to the adventurous spirit within a man than a secure future. The very basic core of a man’s living spirit is his passion for adventure. The joy of life comes from our encounters with new experiences, and hence there is no greater joy than to have an endlessly changing horizon, for each day to have a new and different sun. If you want to get more out of life, you must lose your inclination for monotonous security and adopt a helter-skelter style of life that will at first appear to you to be crazy. But once you become accustomed to such a life you will see its full meaning and its incredible beauty.” ― Jon Krakauer

Hifivr.com – free flash games arcade

Hifivr.com is a small side project i’ve been working on lately and consists of free online arcade style games. It has over 60,000 games from publishers such as mochimedia amongst others. I plan on creating a custom theme and working with multiple publishers to get some exclusive games on it.

I will update this post a little more as things start to develop.

Lemonstand product & category throw 404 if not found

Lemonstand weirdly does not come with a way to configure it’s dynamic pages such as categories and products to throw automatically throw a 404 if the product was not found.

I solved this with the following simple snippet. Initially just added to the post_action.php for both the category/ and product/ pages.

if(!isset($product)){
  $params = array();
  $page = Cms_Page::findByUrl('/404', $params);
  header('HTTP/1.0 404 Not Found');
  Cms_Controller::get_instance()->open($page,$params);
  exit;
}

if(!isset($category)){
  $params = array();
  $page = Cms_Page::findByUrl('/404', $params);
  header('HTTP/1.0 404 Not Found');
  Cms_Controller::get_instance()->open($page,$params);
  exit;
}

An improvement to this could be to wrap the 404 throwing into a function provided by a custom module and then just keep the logic behind throwing the 404 in the relevant areas of the site. In this case I just couldn’t be bothered…bite me.

A quote of inspiration: Waves

I came up with this the other night, no idea whether it’s original or not, but, i’m sure as hell going to claim it so, until proven otherwise.

In an ocean there are many waves, of these waves only few make it ashore, even fewer leave a mark. Leave a mark.

Edit*

In an ocean there are many waves, of these waves few but make it ashore, even fewer leave a mark. Leave a mark.

If – a poem written in 1895 by British Nobel laureate Rudyard Kipling

If you can keep your head when all about you are losing theirs and blaming it on you, if you can trust yourself when all men doubt you, but make allowance for their doubting too; if you can wait and not be tired by waiting,or being lied about, don’t deal in lies, or being hated, don’t give way to hating, and yet don’t look too good, nor talk too wise: if you can dream – and not make dreams your master; if you can think – and not make thoughts your aim; if you can meet with Triumph and Disaster and treat those two impostors just the same.

If you can bear to hear the truth you’ve spoken twisted by knaves to make a trap for fools, or watch the things you gave your life to broken, and stoop and build ‘em up with wornout tools: if you can make one heap of all your winnings and risk it on one turn of pitch-and-toss, and lose, and start again at your beginnings and never breathe a word about your loss.

If you can force your heart and nerve and sinew to serve your turn long after they are gone, and so hold on when there is nothing in you except the will which says to them: ‘Hold on!’

If you can talk with crowds and keep your virtue, or walk with kings – nor lose the common touch.

If neither foes nor loving friends can hurt you, if all men count with you, but none too much; if you can fill the unforgiving minute with sixty seconds’ worth of distance run -yours is the Earth and everything that’s in it, and – which is more – you’ll be a man my son!