<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>Hacker's Guide to Getting in Shape</title>
	<atom:link href="http://www.hackersinshape.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hackersinshape.net</link>
	<description>Balance for the High-Tech Society.</description>
	<pubDate>Tue, 22 Sep 2009 14:26:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Build your Twitter API app in Clojure, Part 1</title>
		<link>http://www.hackersinshape.net/archives/267</link>
		<comments>http://www.hackersinshape.net/archives/267#comments</comments>
		<pubDate>Tue, 22 Sep 2009 14:26:17 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Clojure]]></category>

		<category><![CDATA[Functional Programming]]></category>

		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=267</guid>
		<description><![CDATA[Building your own Twitter API application in Clojure is made real easy now thanks to clojure-twitter and clj-oauth libraries.
In this part, I will simply show you how easy it is to access the Twitter API using clojure-twitter. Here, I update my own Twitter status:


(require &#39;twitter [&#39;oauth.client :as &#39;oauth])

(def consumer (oauth/make-consumer &#60;consumer-token&#62;
     [...]]]></description>
			<content:encoded><![CDATA[<p>Building your own Twitter API application in Clojure is made real easy now thanks to <a href="http://github.com/mattrepl/clojure-twitter/tree">clojure-twitter</a> and <a href="http://github.com/mattrepl/clj-oauth">clj-oauth</a> libraries.</p>
<p>In this part, I will simply show you how easy it is to access the Twitter API using <a href="http://github.com/mattrepl/clojure-twitter/tree">clojure-twitter</a>. Here, I update my own Twitter status:<br />
<!-- HTML generated using hilite.me --></p>
<div style="overflow:auto;width:auto;color:black;background:white;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0">(<span style="color: #0060B0; font-weight: bold">require</span> <span style="color: #A06000">&#39;twitter</span> [<span style="color: #A06000">&#39;oauth</span><span style="color: #303030">.</span><span style="color: #906030">client</span> <span style="color: #906030">:as</span> <span style="color: #A06000">&#39;oauth</span>])

(<span style="color: #008000; font-weight: bold">def </span><span style="color: #906030">consumer</span> (<span style="color: #0060B0; font-weight: bold">oauth/make-consumer</span> <span style="color: #906030">&lt;consumer-token&gt;</span>
                                   <span style="color: #906030">&lt;consumer-token-secret&gt;</span>
                                   <span style="background-color: #fff0f0">&quot;http://twitter.com/oauth/request_token&quot;</span>
                                   <span style="background-color: #fff0f0">&quot;http://twitter.com/oauth/access_token&quot;</span>
                                   <span style="background-color: #fff0f0">&quot;http://twitter.com/oauth/authorize&quot;</span>
                                   <span style="color: #906030">:hmac-sha1</span>))

(<span style="color: #008000; font-weight: bold">def </span><span style="color: #906030">request-token</span> (<span style="color: #0060B0; font-weight: bold">:oauth_token</span> (<span style="color: #0060B0; font-weight: bold">oauth/request-token</span> <span style="color: #906030">consumer</span>)))

(<span style="color: #0060B0; font-weight: bold">oauth/user-approval-uri</span> <span style="color: #906030">consumer</span>
                         <span style="color: #906030">request-token</span>
                         <span style="color: #906030">&lt;callback-uri&gt;</span>)

(<span style="color: #008000; font-weight: bold">def </span><span style="color: #906030">access-token-response</span> (<span style="color: #0060B0; font-weight: bold">oauth/access-token</span> <span style="color: #906030">consumer</span>
                                               <span style="color: #906030">request-token</span>
                                               <span style="color: #906030">&lt;verifier&gt;</span>))

(<span style="color: #0060B0; font-weight: bold">twitter/with-oauth</span> <span style="color: #906030">consumer</span> (<span style="color: #0060B0; font-weight: bold">:oauth_token</span> <span style="color: #906030">access-token-response</span>)
                             (<span style="color: #0060B0; font-weight: bold">:oauth_token_secret</span> <span style="color: #906030">access-token-response</span>)
  (<span style="color: #0060B0; font-weight: bold">twitter/update-status</span> <span style="background-color: #fff0f0">&quot;#clojure is awesome&quot;</span>))
</pre>
</div>
<p><br/></p>
<h4>Making it all work:</h4>
<div>
<ul>
<li>Download the latest version of <a href="http://github.com/mattrepl/clojure-twitter/tree">clojure-twitter</a></li>
<li>Download the latest version of <a href="http://github.com/mattrepl/clj-oauth">clj-oauth</a></li>
<li>Add clojure-twitter.jar and dependents in the clojure-twitter/lib directory to your classpath</li>
<li>Next, you will need to register an application at Twitter <a href="http://twitter.com/oauth_clients/new">here</a> in order to obtain a Consumer token and token secret</li>
<li>Once you have register the application, launch REPL and replace <strong>&lt;consumer-token&gt;</strong> and <strong>&lt;consumer-token-secret&gt;</strong> in the above code snippet accordingly</li>
<li>Additionally, replace the <strong>&lt;callback-uri&gt;</strong> with the &#8220;Application Website&#8221; you defined in the application registration.</li>
<li>Once the user approval URI has been accessed and accepted, the verifier PIN code will be provide which needs to replace the <strong>&lt;verifier&gt;</strong></li>
</ul>
</div>
<p>In part 2, I will go through a more detailed, step-by-step example that demonstrates building a real-world Twitter API app in Clojure. Follow <a href="https://twitter.com/alenribic">me on Twitter</a> and I&#8217;ll keep you posted.<br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/267/feed</wfw:commentRss>
		</item>
		<item>
		<title>CS Research Topic Generator, in Clojure</title>
		<link>http://www.hackersinshape.net/archives/237</link>
		<comments>http://www.hackersinshape.net/archives/237#comments</comments>
		<pubDate>Mon, 14 Sep 2009 15:08:18 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Clojure]]></category>

		<category><![CDATA[Functional Programming]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=237</guid>
		<description><![CDATA[If you need a worthy topic for your CS research project, let this very simple CS topic generator spark some ideas.
http://www.cs.purdue.edu/homes/dec/essay.topic.generator.html
I&#8217;ve decided to get myself more familiarized with functional programming so I picked Clojure as my language of choice. It&#8217;s new, its a Lisp dialect, it has a great concurrency API and it runs on [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a worthy topic for your CS research project, let this very simple CS topic generator spark some ideas.<br />
<a href="http://www.cs.purdue.edu/homes/dec/essay.topic.generator.html">http://www.cs.purdue.edu/homes/dec/essay.topic.generator.html</a></p>
<p>I&#8217;ve decided to get myself more familiarized with functional programming so I picked Clojure as my language of choice. It&#8217;s new, its a Lisp dialect, it has a great concurrency API and it runs on the already familiar JVM.</p>
<p>Here is my implementation of the &#8220;CS topic generator&#8221; in Clojure:</p>
<p><!-- HTML generated using hilite.me --></p>
<div style="overflow:auto;width:auto;color:black;background:white;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0">(<span style="color: #0060B0; font-weight: bold">ns</span> <span style="color: #906030">com</span><span style="color: #303030">.</span><span style="color: #906030">alenribic</span><span style="color: #303030">.</span><span style="color: #906030">topic-generator</span>
 (<span style="color: #0060B0; font-weight: bold">:use</span> [<span style="color: #906030">clojure</span><span style="color: #303030">.</span><span style="color: #906030">contrib</span><span style="color: #303030">.</span><span style="color: #906030">str-utils</span> <span style="color: #906030">:only</span> (<span style="color: #0060B0; font-weight: bold">str-join</span>)]
       [<span style="color: #906030">clojure</span><span style="color: #303030">.</span><span style="color: #906030">contrib</span><span style="color: #303030">.</span><span style="color: #906030">seq-utils</span> <span style="color: #906030">:only</span> (<span style="color: #0060B0; font-weight: bold">rand-elt</span>)]))

(<span style="color: #008000; font-weight: bold">defn </span><span style="color: #906030">compute-article</span>
  [<span style="color: #906030">word</span> <span style="color: #906030">capitalize?</span>]
  (<span style="color: #008000; font-weight: bold">let </span>[<span style="color: #906030">vowels</span> <span style="color: #303030">#</span>{<span style="color: #0040D0">\a</span> <span style="color: #0040D0">\e</span> <span style="color: #0040D0">\i</span> <span style="color: #0040D0">\o</span> <span style="color: #0040D0">\u</span>} <span style="color: #906030">a</span> (<span style="color: #008000; font-weight: bold">if </span><span style="color: #906030">capitalize?</span> <span style="color: #0040D0">\A</span> <span style="color: #0040D0">\a</span>)]
    (<span style="color: #008000; font-weight: bold">if </span>(<span style="color: #0060B0; font-weight: bold">vowels</span> (<span style="color: #0060B0; font-weight: bold">Character/toLowerCase</span> (<span style="color: #007020">first </span><span style="color: #906030">word</span>)))
      (<span style="color: #007020">str </span><span style="color: #906030">a</span> <span style="color: #0040D0">\n</span>) <span style="color: #906030">a</span>)))

(<span style="color: #008000; font-weight: bold">defn </span><span style="color: #906030">gen-phrase</span>
  [<span style="color: #906030">col1</span> <span style="color: #906030">col2</span> <span style="color: #906030">col3</span> <span style="color: #906030">first-phase?</span>]
  (<span style="color: #008000; font-weight: bold">let </span>[<span style="color: #906030">word1</span> (<span style="color: #0060B0; font-weight: bold">rand-elt</span> <span style="color: #906030">col1</span>) <span style="color: #906030">word2</span> (<span style="color: #0060B0; font-weight: bold">rand-elt</span> <span style="color: #906030">col2</span>) <span style="color: #906030">word3</span> (<span style="color: #0060B0; font-weight: bold">rand-elt</span> <span style="color: #906030">col3</span>)]
      (<span style="color: #0060B0; font-weight: bold">str-join</span> <span style="background-color: #fff0f0">&quot; &quot;</span> [(<span style="color: #0060B0; font-weight: bold">compute-article</span> <span style="color: #906030">word1</span> <span style="color: #906030">first-phase?</span>) <span style="color: #906030">word1</span> <span style="color: #906030">word2</span> <span style="color: #906030">word3</span>])))

(<span style="color: #008000; font-weight: bold">defn </span><span style="color: #906030">gen-random-topic</span> []
  (<span style="color: #008000; font-weight: bold">let </span>[<span style="color: #906030">col1</span> [
      <span style="background-color: #fff0f0">&quot;integrated&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;parallel&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;virtual&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;interactive&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;responsive&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;synchronized&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;balanced&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;virtual&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;meta-level&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;optimized&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;active&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;parameterized&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;conceptual&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;scalable&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;dynamic&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;high-level&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;collaborative&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;type-safe&quot;</span>]
     <span style="color: #906030">col2</span> [
      <span style="background-color: #fff0f0">&quot;mobile&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;functional&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;programmable&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;distributed&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;logical&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;digital&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;concurrent&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;knowledge-based&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;multimedia&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;binary&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;object-oriented&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;secure&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;high-speed&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;real-time&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;functional&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;parallelizing&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;watermarking&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;proxy&quot;</span>]
     <span style="color: #906030">col3</span> [
      <span style="background-color: #fff0f0">&quot;network&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;preprocessor&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;compiler&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;system&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;interface&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;protocol&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;architecture&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;database&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;algorithm&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;toolkit&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;display&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;technology&quot;</span><span style="color: #303030">,</span>
      <span style="background-color: #fff0f0">&quot;solution&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;language&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;agent&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;theorem prover&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;work cluster&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;cache&quot;</span>]
     <span style="color: #906030">conn</span> [<span style="background-color: #fff0f0">&quot;for&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;related to&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;derived from&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;applied to&quot;</span><span style="color: #303030">,</span> <span style="background-color: #fff0f0">&quot;embedded in&quot;</span>]]
    (<span style="color: #0060B0; font-weight: bold">str-join</span> <span style="background-color: #fff0f0">&quot; &quot;</span> [(<span style="color: #0060B0; font-weight: bold">gen-phrase</span> <span style="color: #906030">col1</span> <span style="color: #906030">col2</span> <span style="color: #906030">col3</span> <span style="color: #906030">true</span>)
		   (<span style="color: #0060B0; font-weight: bold">rand-elt</span> <span style="color: #906030">conn</span>) (<span style="color: #0060B0; font-weight: bold">gen-phrase</span> <span style="color: #906030">col1</span> <span style="color: #906030">col2</span> <span style="color: #906030">col3</span> <span style="color: #906030">false</span>)])))
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/237/feed</wfw:commentRss>
		</item>
		<item>
		<title>Technical Debt a wonderful metaphor for Calorie Surplus</title>
		<link>http://www.hackersinshape.net/archives/109</link>
		<comments>http://www.hackersinshape.net/archives/109#comments</comments>
		<pubDate>Tue, 03 Mar 2009 19:33:47 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Health & Fitness]]></category>

		<category><![CDATA[fitness]]></category>

		<category><![CDATA[geek]]></category>

		<category><![CDATA[health]]></category>

		<category><![CDATA[weight loss]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=109</guid>
		<description><![CDATA[Lately there has been quite a bit of buzz around Technical Debt in the software industry. 

What is Technical Debt?
Technical Debt is a wonderful metaphor developed by Ward Cunningham to help us think about the problem that doing things the quick and dirty way sets us up with a technical debt, which is similar to [...]]]></description>
			<content:encoded><![CDATA[Lately there has been quite a bit of buzz around <strong>Technical Debt</strong> in the software industry. 
<br/><br/>
<h4>What is <strong>Technical Debt</strong>?</h4>
<blockquote>Technical Debt is a wonderful metaphor <a href="http://www.c2.com/cgi/wiki?TechnicalDebt">developed by Ward Cunningham</a> to help us think about the problem that doing things the quick and dirty way sets us up with a technical debt, which is similar to a financial debt. Like a financial debt, the technical debt incurs interest payments, which come in the form of the extra effort that we have to do in future development because of the quick and dirty design choice. We can choose to continue paying the interest, or we can pay down the principal by refactoring the quick and dirty design into the better design. Although it costs to pay down the principal, we gain by reduced interest payments in the future.
</blockquote>
<br/>
By keeping an explicit list of the technical debt that a software project accumulates, the debt is visible. Regularly putting aside time to pay off your code and design debt keeps your software nice and lean.
<br/><br/>
<h4>What is a Calorie Surplus?</h4>
A calorie surplus means that your body burns less calories than you consume every day.
What this means is that you are eating more than your body needs either by accident or on purpose, with the effect of gaining weight.
<br/><br/>
<h4>What is a Calorie Deficit?</h4>
A calorie deficit means that your body burns more calories than you consume every day. 
There are two ways you can create this calorie deficit: 
<br/><br/>
1) Decrease your caloric intake from food.<br/>
2) Increase the amount of calories you burn through exercise.<br/>
<br/>
The secret to having a leaner body is to eat more of the right foods and use exercise to burn off the fat.
<br/><br/>
<h4>Why is <strong>Technical Debt</strong> a wonderful metaphor for Calorie Surplus?</h4>
As the term <strong>Technical Debt</strong> helps us take conscious notes of quick and dirty solutions in our software projects that need attention (through refactoring or other means), the term <strong>Calorie Surplus</strong> can help us become conscious of when our body is burning less calories than it consumes every day; which results in gaining weight. 
<br/><br/>
<strong>Just as our software can get bloated accumulating Technical Debt, our bodies can get bloated accumulating excess weight through Calorie Surplus.</strong>
<br/><br/>
We put so much effort into getting our software to be as lean as possible, why neglect out own bodies?
<br/><br/>
<strong>As yet, there exists no formula to calculate Technical Debt, so quantifying its effects are near impossible. Fortunately, the same does not hold true for Calorie Surplus.</strong>
<br/><br/>
There are two well known formulas as general methods used to estimate the daily calorie requirements of an individual, using their basal metabolic rate or BMR:
<br/><br/>
<a href="http://en.wikipedia.org/wiki/Basal_metabolic_rate#BMR_estimation_formulas">The Harris-Benedict formula</a> and a more accurate formula <a href="http://en.wikipedia.org/wiki/Basal_metabolic_rate#BMR_estimation_formulas">The Katch-McArdle formula</a>.
<br/><br/>
<h4>The Harris-Benedict formula</h4>
<ul>
	<li>for men,<br/><img src="http://farm4.static.flickr.com/3540/3325019521_8ac98d79fd.jpg?v=0" alt="" /></li>
        <li>for women,<br/><img src="http://farm4.static.flickr.com/3560/3325022599_41077bd70e.jpg?v=0" alt="" /></li>
</ul>
<br/>
<h4>The Katch-McArdle formula</h4>
<ul>
   <li>The Formula is based on the lean body mass
   <table border="0" style="border: 0px;" width="100%" cellpadding="0" cellspacing="0">
       <tr style="border: 0px;">
           <td width="5%" style="border: 0px;">
               <img src="http://farm4.static.flickr.com/3590/3325021451_1a5b4eac1d.jpg?v=0" alt="" />
           </td>
           <td width="95%" style="border: 0px;">where LBM is the lean body mass in kg.</td>
       </tr>
   </table>
   </li>
</ul>
<strong>I've incorporated these handy formulae into a simple Calorie Deficit Calculator. This will allow you to correlate your BMR with activity level and calorie intake, enabling you to turn the Surplus into a Calorie Deficit. </strong> 
<br/><br/>
[inline]
 <style type="text/css">
        #calc_resultsbox, #calc_errorbox, #activityLevelHelpBox {
            padding: 4px;
            background-color: #ffffe0;
	    border: 1px solid #e6db55;
        }
        #calc_resultsbox {
            margin-bottom: 8px
        }
        #calc_errorbox {
            margin-bottom: 8px;
            color: #FF0000;
        }
        .button {
	    padding:3px 6px;
	    background:#B4D666;
	    border-top:1px solid #B4D666;
 	    border-right:1px solid #81B840;
	    border-bottom:1px solid #81B840;
	    border-left:1px solid #B4D666;
	    color:#2970A6;
	    font-size:11px;
	    cursor:pointer;
       }
       .button:hover {
           background:#98C64C;
	   border-top:1px solid #76B33A;
	   border-right:1px solid #98C64C;
	   border-bottom:1px solid #98C64C;
	   border-left:1px solid #76B33A;
	   color:#074A7E;
      }
    </style>
<div id="mainCalcCont">
         <div id="activityLevelHelpBox" style="display: none;">
         <h4>Activity Level</h4><BR>
Choose an activity level that best suits your lifestyle.<BR><BR>
<TABLE cellspacing="0" cellpadding="3" >
<TR>
	<TD class="celltopleftright" ><b>Sedentary</b></TD>
	<TD  class="celltopright" style="font-weight: normal; ">Little or no exercise, desk job</TD>
</TR>
<TR>
	<TD class="celltopleftright" ><b>Lightly active</b></TD>
	<TD class="celltopright" style="font-weight: normal;">Light exercise, sports 1-3 days per week</TD>
</TR>
<TR>
	<TD class="celltopleftright" ><b>Moderately active</b></TD>
	<TD class="celltopright" style="font-weight: normal; ">Moderate exercise, sports 3-5 days per week</TD>
</TR>
<TR>
	<TD class="celltopleftright" ><b>Very active</b></TD>
	<TD class="celltopright" style="font-weight: normal; ">Hard exercise, sports 6-7 days per week</TD>
</TR>
<TR>
	<TD class="celltopleftright" style="border-bottom-width: 1px;"><b>Extremely active</b></TD>
	<TD class="celltopright" style="font-weight: normal; border-bottom-width: 1px;">Hard daily exercise or sports and physical job or<br/>twice daily training, i.e marathon, contest, etc.</TD>
</TR>
</TABLE>
          <a href="javascript:" id="closeActivityLevelBox">Close</a>
        </div>
        <form>
            <p>
            Do you know your body fat percentage? Yes <input type="radio" name="know_bodyfat" id="know_bodyfat_0" value="yes"/>&nbsp;No <input type="radio" name="know_bodyfat" id="know_bodyfat_1" value="no" checked="checked"/>
            </p>
            <table border="0" style="border: 0px;"> 
                <tr id="rowGender">
                    <td><label for="gender">Gender:</label></td>
                    <td>
                          <select name="gender" id="gender">
                            <option value="0">Male</option>
                            <option value="1">Female</option>
                          </select>
                    </td>
                </tr>
                <tr id="rowWeigth">
                    <td><label for="user_weigth">Your weight:</label></td>
                    <td><input type="text" name="user_weigth" id="user_weigth" size="3"/>&nbsp;<select name="weigth_measure" id="weigth_measure">
                            <option value="lbs">lbs</option>
                            <option value="kg">kg</option>
                          </select>
                    </td>
                </tr>
                <tr id="rowHeight">
                    <td><label for="user_height">Your height:</label></td>
                    <td><input type="text" name="user_height" id="user_height" size="3"/>&nbsp;<select name="height_measure" id="height_measure">
                            <option value="ft">ft.</option>
                            <option value="cm">cm</option>
                          </select>
                    </td>
                </tr>
                <tr id="rowAge">
                    <td><label for="user_age">Age:</label></td>
                    <td><input type="text" name="user_age" id="user_age" size="2"/> years
                    </td>
                </tr>
                <tr id="rowBodyfat">
                    <td><label for="user_bodyfat_perc">Your body fat:</label></td>
                    <td><input type="text" name="user_bodyfat_perc" id="user_bodyfat_perc" size="2"/>%</td>
                </tr>
                <tr id="rowActivityLevel">
                    <td nowrap="nowrap"><label for="user_activity_level">Your activity level:</label></td>
                    <td>
                          <select name="user_activity_level" id="user_activity_level">
                            <option value="1.2">Sedentary</option>
                            <option value="1.375">Lightly active</option>
                            <option value="1.55">Moderately active</option>
                            <option value="1.725">Very active</option>
                            <option value="1.9">Extremely active</option>
                          </select>&nbsp;<a href="javascript:" id="activityLevelHelp">help</a>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <div style="margin: 6px 4px 6px 4px;">
                        <input type="button" name="calcButton" id="calcButton" value="Calculate" class="button"/>&nbsp;<input type="reset" name="resetButton" id="resetButton" value="Reset" class="button"/>
                        </div>                     
                    </td>
                </tr>
            </table>
            <div id="calc_resultsbox" style="display:none;">
                <p>Your TDEE (Total Daily Energy Expenditure) is: <strong><span id="calc_results"></span></strong> kCal</p>
                <p>Estimated number of calories you should consume per day to lose weight is: <strong><span id="calc_resultsTDILoss"></span></strong> kCal (based on 15% calorie deficit)</p>
                <p>
                    15-20% is the recommended starting calorie reduction for fat loss. This is considered a small calorie deficit and a small calorie deficit is the key to losing fat while maintaining muscle.
                </p>
            </div>
            <div id="calc_errorbox" style="display:none;"></div>
        </form>
    </div>
[/inline]
<h4>Conclusion</h4>
Generating a calorie deficit will get you started on the path to getting more lean. Ultimately, this should be followed by changes to incorporate general habits like exercise and healthier eating into your lifestyle. In the same way as having good software practices, why not apply similar practices to getting your own body in better shape? 
<br/><br/>
<strong>This balance certainly made a difference in my life.</strong>
<br/>
<a href="http://www.hackersinshape.net/archives/16">http://www.hackersinshape.net/archives/16</a>
<br/><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/109/feed</wfw:commentRss>
		</item>
		<item>
		<title>Aspect-oriented Python and Metaclasses</title>
		<link>http://www.hackersinshape.net/archives/67</link>
		<comments>http://www.hackersinshape.net/archives/67#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:25:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[AOP]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=67</guid>
		<description><![CDATA[I came across a nice introductory post on AOP in Python authored by Dethe Elza titled Aspect-oriented Python.

He refers to two main tactics when dealing with before/after aspects in Python 2.5 and above: Decorators using the @ syntax and context managers using the "with" keyword.

I'd like to add one more tactic to his list. The [...]]]></description>
			<content:encoded><![CDATA[I came across a nice introductory post on AOP in Python authored by Dethe Elza titled <a href="http://livingcode.org/2009/aspect-oriented-python">Aspect-oriented Python</a>.

He refers to two main tactics when dealing with before/after aspects in Python 2.5 and above: Decorators using the @ syntax and context managers using the "with" keyword.

I'd like to add one more tactic to his list. The <b>Metaclass approach</b>.

<strong>Metaclasses are a good fit for Aspect-oriented programming in Python.</strong>

I'll demonstrate this through a simple example.

<pre name="code" class="python">
import inspect
import logging
import re


def before(fn):
    def wrapped(*args, **kws):
        logging.warn('about to call function %s' % fn.func_name)
        return fn(*args, **kws)
    return wrapped

def after(fn):
    def wrapped(*args, **kws):
        retVal = fn(*args, **kws)
        logging.warn('just returned from function %s' % fn.func_name)
        return retVal
    return wrapped

class SimpleLoggingMeta(type):
    def __init__(cls, name, bases, ns):
        # get list of decorators
        decorators = ns.get('decorators', (before, after,))
        # get method_pattern
        method_pattern = ns.get('method_pattern', '.*')
        for key, value in ns.items():
            # skip the constructor and objects 
            # in the namespace that aren't methods
            if key in ('__init__') or \
                not inspect.isfunction(value): continue

            # check if method matches the method pattern
            if re.search(method_pattern, key):
                # apply the decorators
                for decorator in decorators: value = decorator(value)
                setattr(cls, key, value)

class Person(object):
    __metaclass__ = SimpleLoggingMeta
    
    def __init__(self, first, middle, last):
        self.first = first
        self.middle = middle
        self.last = last
    
    def name(self):
        logging.warn('inside name')
        return '%s %s' % (self.first, self.last)

    def full_name(self):
        logging.warn('inside full_name')
        return '%s %s %s' % (self.first, self.middle, self.last)

    def initials(self):
        logging.warn('inside initials')
        return '%s%s%s' % \
            (self.first[0], self.middle[0], self.last[0])


if __name__ == "__main__":
    person = Person('Joe', 'Plumber', 'Sixpack')
    person.name()
    person.full_name()
    person.initials()
</pre>

Output:

<pre name="code" class="text">
WARNING:root:about to call function name
WARNING:root:inside name
WARNING:root:just returned from function wrapped
WARNING:root:about to call function full_name
WARNING:root:inside full_name
WARNING:root:just returned from function wrapped
WARNING:root:about to call function initials
WARNING:root:inside initials
WARNING:root:just returned from function wrapped
</pre>

In the example above, the <strong>SimpleLoggingMeta</strong> metaclass simplifies the decoration process by automatically applying decorators that are declared in the metaclass or the namespace of the class itself. 

Classes can define their own "decorators" and "method_pattern" attributes if metaclass defaults don't satisfy the concerns.

We will now go ahead and adjust the <b>Person</b> class to apply the <strong>before</strong>, <strong>after</strong> and <strong>property</strong> decorators to all methods of the class that have the following regex pattern "<strong>.*name$</strong>"</li>
</ul>

<pre name="code" class="python">
class Person(object):
    __metaclass__ = SimpleLoggingMeta
    decorators = (before, after, property,)
    method_pattern = ".*name$"
    
    def __init__(self, first, middle, last):
        self.first = first
        self.middle = middle
        self.last = last
    
    def name(self):
        logging.warn('inside name')
        return '%s %s' % (self.first, self.last)

    def full_name(self):
        logging.warn('inside full_name')
        return '%s %s %s' % (self.first, self.middle, self.last)

    def initials(self):
        logging.warn('inside initials')
        return '%s%s%s' % \
            (self.first[0], self.middle[0], self.last[0])


if __name__ == "__main__":
    person = Person('Joe', 'Plumber', 'Sixpack')
    person.name
    person.full_name
    person.initials()
</pre>

Output:

<pre name="code" class="text">
WARNING:root:about to call function name
WARNING:root:inside name
WARNING:root:just returned from function wrapped
WARNING:root:about to call function full_name
WARNING:root:inside full_name
WARNING:root:just returned from function wrapped
WARNING:root:inside initials
</pre>

So what happened? The <strong>before</strong>, <strong>after</strong> and <strong>property</strong> decorators were applied to the methods that match the method pattern "<strong>.*name$</strong>" which in the case of the <strong>Person</strong> class is the <strong>name</strong> and the <strong>full_name</strong> methods.

The above example is by no means perfect, but I hope you get the idea.

Metaclasses don't have to be scary. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
<br/>]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/67/feed</wfw:commentRss>
		</item>
		<item>
		<title>Aggregating data collections made simple in Django 1.1</title>
		<link>http://www.hackersinshape.net/archives/49</link>
		<comments>http://www.hackersinshape.net/archives/49#comments</comments>
		<pubDate>Tue, 24 Feb 2009 12:14:47 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[aggregation]]></category>

		<category><![CDATA[django]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=49</guid>
		<description><![CDATA[Aggregation, the new addition to Django QuerySet in version 1.1, makes it really simple to summarizing data collections.

I am currently working on a site that will provide free online petition hosting with a key focus on the South African public.
I decided to have an embarrassingly simple "Top 10" page on the site that will show [...]]]></description>
			<content:encoded><![CDATA[Aggregation, the new addition to Django QuerySet in version 1.1, makes it really simple to summarizing data collections.

I am currently working on a site that will provide free online petition hosting with a key focus on the South African public.
I decided to have an embarrassingly simple "Top 10" page on the site that will show currently popular petitions. The new <a href="http://docs.djangoproject.com/en/dev/topics/db/aggregation/">Django aggregation</a> support makes this task simple.

<strong>Requirement:</strong>
List top 10 petitions grouping them by "total number of signatures" and "newest signature, published date" per petition.
Order petitions in descending order by "total number of signatures" and "newest signature, published date".

<strong>Simple solution using the new Django annotate() clause:</strong>

<pre name="code" class="python">
top_petitions = Petition.objects.annotate(
    Count("petitionsignature"),  
    Max("petitionsignature__pub_date")
).order_by("-petitionsignature__count", 
    "-petitionsignature__pub_date__max")[:10]

>>> top_petitions[0].petitionsignature__count
5
>>> top_petitions[0].petitionsignature__pub_date__max
datetime.datetime(2009, 2, 15, 18, 55, 23, 263325)
</pre>

Both the above attributes, <strong>petitionsignature__count</strong> and <strong>petitionsignature__pub_date__max</strong> are name identifiers for the aggregate values. By default, the name is automatically generated from the name of the field and the aggregate function name separating the two with a double underscore. You can manually specify the name for the aggregate value by defining it directly in the aggregate or annotate clause.

For more information on Django aggregation support, you can read the official guide here: <a href="http://docs.djangoproject.com/en/dev/topics/db/aggregation/">http://docs.djangoproject.com/en/dev/topics/db/aggregation/</a>]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/49/feed</wfw:commentRss>
		</item>
		<item>
		<title>All your base, are belong to us!</title>
		<link>http://www.hackersinshape.net/archives/35</link>
		<comments>http://www.hackersinshape.net/archives/35#comments</comments>
		<pubDate>Wed, 04 Feb 2009 13:47:11 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=35</guid>
		<description><![CDATA[I was given a task to fix up the "Authentication and Authorization" component in one of the flagship products for the Company I work for. Its a Java (J2EE) Web Application that has gone through several versions over a period of about 5 years.

To my surprise, I came across this piece of code in the [...]]]></description>
			<content:encoded><![CDATA[I was given a task to fix up the "Authentication and Authorization" component in one of the flagship products for the Company I work for. Its a Java (J2EE) Web Application that has gone through several versions over a period of about 5 years.

To my surprise, I came across this piece of code in the Authenticate Servlet and couldn't help but share the snippet.

<pre name="code" class="java">
/**
 * @author Ian , updated by Adam
 */
public class Authenticate extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) 
        throws ServletException, IOException {

        ...
        if (!init(username,response))
            return;
        ...
    }

    boolean init(String username, HttpServletResponse r ) {
	    if(username.equals("pustulio")) {
		    try {	
			    r.getOutputStream().print("all your base, are belong to us!");
		    }
		    catch (Exception e) {

		    }
		    return false;
	    }
	    return true;
    }
}
</pre>

Thats just the tip of the iceberg. The try, catch logic, everywhere, catches Exception thrown instances and does absolutely nothing about it.

I will pay anyone $50 if they can tell me the whereabouts of these meatheads, "@author Ian , updated by Adam".


Regards,
-Alen
]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/35/feed</wfw:commentRss>
		</item>
		<item>
		<title>Going to gym in the morning is better&#8230;</title>
		<link>http://www.hackersinshape.net/archives/21</link>
		<comments>http://www.hackersinshape.net/archives/21#comments</comments>
		<pubDate>Wed, 04 Feb 2009 11:16:14 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Health & Fitness]]></category>

		<category><![CDATA[fitness]]></category>

		<category><![CDATA[health]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/?p=21</guid>
		<description><![CDATA[Do you go to gym in the morning or evening? I'll tell you why I believe morning is the better of the two, IMHO.

	Keeps you more mentally alert for the day.
	Keeps you more energized for the day.
	Gyms are usually less fuller in the mornings than the evenings.
	Less excuses when making your way to the gym [...]]]></description>
			<content:encoded><![CDATA[Do you go to gym in the morning or evening? I'll tell you why I believe morning is the better of the two, IMHO.
<ul>
	<li>Keeps you more mentally alert for the day.</li>
	<li>Keeps you more energized for the day.</li>
	<li>Gyms are usually less fuller in the mornings than the evenings.</li>
	<li>Less excuses when making your way to the gym in the first place. (Its funny that in the evening we tend to find more excuses not to go at all.)</li>
	<li>Oh, and if you miss your session in the morning, you still have the evening to catchup.</li>
</ul>

Only problem of course is getting up in the mornings in the first place. The way I go about it is quite simple. 
I have a wonderful girlfriend named Aisha who wakes me up. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 

Couple of snoozes later, in the weights section, pulling some rather odd faces...

<img src="http://farm4.static.flickr.com/3365/3252028839_59c4389f23.jpg" alt="Breaking sweat" />

...so since Aisha is already up, I got myself a really good partner.

<img src="http://farm4.static.flickr.com/3368/3252856944_61dd4481f3.jpg" alt="My girlfriend giving me a lesson" />]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/21/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hacker’s Guide to Getting in Shape - First Year in the Bag</title>
		<link>http://www.hackersinshape.net/archives/16</link>
		<comments>http://www.hackersinshape.net/archives/16#comments</comments>
		<pubDate>Mon, 10 Dec 2007 21:39:25 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Health & Fitness]]></category>

		<guid isPermaLink="false">http://www.hackersinshape.net/archives/16</guid>
		<description><![CDATA[

	
        
    
	
	The first year of living healthy and training has come to an end and I am ecstatic with the results. I have achieved my goals for the year and am very confident in my ability to maintain this new lifestyle. It has been [...]]]></description>
			<content:encoded><![CDATA[<table border="0">
<tr>
	<td valign="top">
        <img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/motivation.thumbnail.jpg' alt='Me' />
    </td>
	<td>
	The first year of living healthy and training has come to an end and I am ecstatic with the results. I have achieved my goals for the year and am very confident in my ability to maintain this new lifestyle. It has been a while since my last post. Good news is that I monitored my transformation process through data and pictures which I will post over the course of next few weeks. In the mean while here are the final results for the year:
    </td>
</tr>
<tr>
	<td colspan="2">
		<p>My original goals:</p>
		<table border="0" style="border: 1px black solid" width="450">
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>3 months - I will loose most of my excess weight around my waist</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">176.37 lbs (80 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">17 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>6 months - I will be a lot leaner now. Waist will be narrow and shoulders broader</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">171.96 lbs (78 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">13 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>9 months - I want to see that six-pack start shining through</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">10 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>1 year - I will look lean; have clearly defined muscle tone and shape. I will also be fit and Healthy</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">163.14 lbs (74 kg) to 167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">8 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		</table>
			<h3>My original measurements:</h3>
			    <p>
			    <b>[BEFORE]</b> As of <b>9th of December 2006</b>:
			    </p>
			    <table border="0" style="border: 1px black solid">
			    <tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Weight:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">187.39 lbs (85 kg)</td>
			    </tr>
			    <tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Height:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">180 cm</td>
				</tr>
			    <tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Age:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">26</td>
				</tr>
			    <tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">VO2 max:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">37</td>
				</tr>
			    <tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Sex:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Male</td>
				</tr>
				<tr>
			        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Body Fat:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">25.1 %</td>
				</tr>
			    </table>
			<a href='http://www.hackersinshape.net/wp-content/uploads/2007/12/img_0024b.jpg' title='BEFORE'><img src='http://www.hackersinshape.net/wp-content/uploads/2007/12/img_0024b.jpg' alt='BEFORE' /></a><br/>
					<h3>My measurements:</h3>
					    <p>
					    <b>[AFTER]</b> As of <b>9th of December 2007</b>:
					    </p>
					    <table border="0" style="border: 1px black solid">
					    <tr>
					        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Weight:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">162 lbs (73.5 kg)</td>
					    </tr>
					    <tr>
					        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Height:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">180 cm</td>
						</tr>
					    <tr>
					        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Age:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">27</td>
						</tr>
					    <tr>
					        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">VO2 max:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">56</td>
						</tr>
						<tr>
					        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Body Fat:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">7 %</td>
						</tr>
					    </table>
			<a href='http://www.hackersinshape.net/wp-content/uploads/2007/12/big_jeans01c_2.jpg' title='AFTER'><img src='http://www.hackersinshape.net/wp-content/uploads/2007/12/big_jeans01d_2.jpg' alt='AFTER' /></a>
	<p>Now that the first year is in the bag, I don't see this as the end of the journey, I see this as the beginning of the new lifestyle that I looking forward to maintaining for the rest of my life.<br/>Oh and take a note of my fingers in the BEFORE shot and then the AFTER shot. See any difference? <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
	</td>
</tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/16/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hacker’s Guide to Getting in Shape - Motivation and Goal Setting</title>
		<link>http://www.hackersinshape.net/archives/9</link>
		<comments>http://www.hackersinshape.net/archives/9#comments</comments>
		<pubDate>Wed, 07 Feb 2007 20:20:53 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Health & Fitness]]></category>

		<guid isPermaLink="false">http://alen.lunasoftworks.com/archives/9</guid>
		<description><![CDATA[

	
        
    
	
	My journey into the fitness world began with a pen and paper in my hands and a bit of imagination. I began describing what motivates me to take on this big challenge.
	Motivating yourself
	Lets do a little exercise here.
    


	
		Find a [...]]]></description>
			<content:encoded><![CDATA[<table border="0">
<tr>
	<td valign="top">
        <img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/motivation.thumbnail.jpg' alt='Me' />
    </td>
	<td>
	My journey into the fitness world began with a pen and paper in my hands and a bit of imagination. I began describing what motivates me to take on this big challenge.
	<h3>Motivating yourself</h3>
	<p>Lets do a little exercise here.</p>
    </td>
</tr>
<tr>
	<td colspan="2">
		Find a quiet place, as we need full concentration. Close your eyes and visualize the new you. Focus on the bigger picture at first and then move onto the more detailed areas. Can you see your midsection? Can you see the shape and tone of your thighs? How about your biceps? Next, take a look around you; can you see where you are? Are you at the beach? Perhaps you are at a competition of some sort? How does this make you feel? Does it bring a smile to your face?
		<p>
		The process of visualization is very important. Here is an extract from Stephen R. Covey’s book "The 7 Habits of Highly Effective People":
		</p>
		<p>
		"Dr. Charles Garfield has done extensive research on peak performers, both in athletics and in business. One of the main things his research showed was that almost all of the world-class athletes and other peak performers are visualizers. They can see it; feel it; they experience it before they actually do it. They <b>begin with the end in mind.</b>"
		</p>
		<p>
		When begging with new challenges in life, having the end in mind is vital. It’s what motivates us to be victorious in our journey. You need to motivate yourself. "Motivate" is a verb; it represents action. This brings me to my next point in this entry and that is goals setting.
		</p>
		<h3>Setting your goals</h3>
		<p>
		Now that you have a good visual image of yourself to be, you need to set some goals. Both long term and equally short term goals are important. (Long-term represents a big picture and short-term goals build and show progress of the big picture.)
		</p>
		<p>
		Here is another extract from Stephen R. Covey’s book "The 7 Habits of Highly Effective People":
		</p>
		<p>
			<b>"It’s incredibly easy to get caught up in an activity trap, in the busy-ness of life, to work harder and harder at climbing the ladder of success only to discover it’s leaning against the wrong wall."</b>
		</p>
		<p>
		I think this is a brilliant quote and one that clearly shows that we need some way of measuring our progress. This is why <b>goal setting is a fundamental part of success. It lets us know if our ladder we are climbing is leaning against the right wall.</b>
		</p>
		<p>
		Short-term goals help us pick up any problems early in time. They also tend to act as great motivation boosters. (Seeing good results on frequent measures.)
		</p>
		<p>
		Ok, now its time to put your goals on paper. Oh and keep them handy at all times!
		</p>
		<table border="0" style="border: 1px black solid" width="450">
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>Short-term goal 1 description here</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lbs / kg</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>Short-term goal 2 description here</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lbs / kg</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>Short-term goal 3 description here</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lbs / kg</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>Long-term goal description here (As per your visualization)</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lbs / kg</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%</td>
		</tr>
		</table>
		<p>Here is an example of my goals:</p>
		<table border="0" style="border: 1px black solid" width="450">
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>3 months - I will loose most of my excess weight around my waist</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">176.37 lbs (80 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">17 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>6 months - I will be a lot leaner now. Waist will be narrow and shoulders broader</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">171.96 lbs (78 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">13 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>9 months - I want to see that six-pack start shining through</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">10 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>1 year - I will look lean; have clearly defined muscle tone and shape. I will also be fit and Healthy</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">163.14 lbs (74 kg) to 167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">8 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		</table>
		<h3>Final words</h3>
		<p>
		At this point you should have your motivation and goals to support the motivation. Remember to keep your goal list handy so you can refer to it frequently. (For example, stick it by your PC monitor or on your fridge.) <b>Should you achieve your goals sooner or should you need more time, revisit your goal list and adjust it accordingly to lineup with your progress and current, desired, expectations.</b>
		</p>
		<p>
		If you forget everything I have written so far in this weblog, please don’t forget this. (Write it down!)
		</p>
		<p>
			<b>"Begin with the End in Mind"</b><br/>See it! Feel it! Experience it before you actually do it!
		</p>
		<p>
		Ok, now my question to you fellow hackers. I would like to know how you keep yourself motivated in general? What are your suggestions in relation to fitness motivation and goal setting?
		</p>
		<p>Peace out to you all; till next time!</p>
		-Alen
	</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/9/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hacker’s Guide to Getting in Shape - Be Proactive</title>
		<link>http://www.hackersinshape.net/archives/5</link>
		<comments>http://www.hackersinshape.net/archives/5#comments</comments>
		<pubDate>Sat, 03 Feb 2007 11:10:27 +0000</pubDate>
		<dc:creator>alen</dc:creator>
		
		<category><![CDATA[Health & Fitness]]></category>

		<guid isPermaLink="false">http://alen.lunasoftworks.com/?p=5</guid>
		<description><![CDATA[

    
         
    
    
    9th December 2006
    So it began. Like any other hacker would, I fired up my Firefox browser and began to do some Googling on the subject of [...]]]></description>
			<content:encoded><![CDATA[<table border="0">
<tr>
    <td valign="top">
        <img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/photo-0058.thumbnail.jpg' alt='Me' /> 
    </td>
    <td>
    9th December 2006<br/>
    So it began. Like any other hacker would, I fired up my Firefox browser and began to do some Googling on the subject of Fat Burning, Muscle Building and Fitness in general. Few well-reviewed books caught my attention especially a book by Tom Venuto titled "Burn the Fat, Feed the Muscle" (Available in PDF format).
    </td>
</tr>
<tr>
    <td colspan="2">
    This book has been my starting point, a guide to a change in my existing lifestyle as a Software programmer.  
    What I really enjoyed about this book is that it was straight out facts backed by independent research and it is very scientific in a way (perfect match for a hacker!). Basically, you become the captain of your own ship. (You set and monitor your body's direction it progresses in.) I will explain this in greater detail in my up and coming weblogs. Ok, enough hype about the book, time to reveal some of my data results.
    
    <h3>My measurements:</h3>
    <p>
    <b>[BEFORE]</b> As of <b>9th of December 2006</b>, here are my measurements:
    </p>
    <table border="0" style="border: 1px black solid">
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Weight:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">187.39 lbs (85 kg)</td>
    </tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Height:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">180 cm</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Age:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">26</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">VO2 max:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">37</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Sex:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Male</td>
	</tr>
	<tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Body Fat:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">25.1 %</td>
	</tr>
    </table><br/>
    </td>
</tr>
<tr>
    <td colspan="2">
    Here is me in Sweden, visiting my cousin Melisa. Enjoying the good food with a smile on my face. (Hairstyle has to go!)
    </td>
</tr>
<tr>
    <td colspan="2">
        <table border="0">
        <tr>
            <td valign="top">
            <a href='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/img_0024.JPG' title='Me in Sweden looking nice and round'><img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/img_0024.thumbnail.JPG' border='0' alt='Me in Sweden looking nice and round' /></a>
            </td>
            <td>
            <a href='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/img_0025.JPG' title='Me in Sweden looking nice and round'><img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/img_0025.thumbnail.JPG' border='0' alt='Me in Sweden looking nice and round' /></a>
            </td>
        </tr>
        </table>
    </td>
</tr>

<tr>
    <td colspan="2">
    <br/>
    <p>
    <b>[AFTER]</b> as of <b>3rd of February 2007</b>, results are rather very impressive:
    </p>
    <table border="0" style="border: 1px black solid">
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Weight:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">167.55 lbs (76 kg)</td>
    </tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Height:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">180 cm</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Age:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">26</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">VO2 max:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">42</td>
	</tr>
    <tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Sex:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Male (Well, lets hope this one remains the same :-))</td>
	</tr>
	<tr>
        <td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">Body Fat:</td><td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">14.16 %</td>
	</tr>
    </table><br/>
    </td>
</tr>
<tr>
    <td colspan="2">
    Here is new me, closer resemblance to the shape of the body I wish to have. Slashing away the tire around my waist has been a great experience. (Now just to build that six-pack. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) Oh and the reason I'm not smiling in this one is because I'm pulling some muscles. Its like try to keep your eyes open when you sneeze.
    </td>
</tr>
<tr>
    <td colspan="2">
        <a href='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/dsc_0237.JPG' title='New me as of 3rd February 2007'><img src='http://www.lunasoftworks.com/alen/wp-content/uploads/2007/02/dsc_0237.thumbnail.JPG' border='0' alt='New me as of 3rd February 2007' /></a>
    </td>
</tr>
<tr>
    <td colspan="2"><br/>
    Now that we have some numbers out on the table, there are probably lots of question, and perhaps maybe even some skepticism. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
    <p>
    From birds-eye-view, this has been my formula for success so far: <b>"Motivation with clearly defined goals executed with correct nutrition, cardio (aerobic) and weight training."</b>
    </p>
    <p>
        <b>As it is well know and documented, nutrition is a greatly important factor to achieving your fitness goals. However, combined with cardio (aerobic) and weigh training, results are exponential!</b>
    </p>
    <h3>1. Motivation and Goal setting</h3>
    <p>
    The first thing that greatly contributed to my success so far has been my "Motivation".
    Peter Parker in Spider-Man Movie, has a six-pack? Well heck, I would like a six-pack too. Taking a proactive stance here is important. As Stephen R. Covey in his book "7 Habits of Highly Effective People" says <b>"Be Proactive"</b>, I decided to be proactive and <b>turn the "I would like to…" into "I will…"</b>. So once I had a mental picture in my head what I want to look like, next I needed to set some realistic goals. Both long term and equally short term goals are important. (Long-term represents a big picture and short-term goals build and show progress of the big picture.)
    </p>
    <b>My Goals as of 9th December 2006:</b><br/><br/>
   		<table border="0" style="border: 1px black solid" width="450">
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>3 months - I will loose most of my excess weight around my waist</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">176.37 lbs (80 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">17 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>6 months - I will be a lot leaner now. Waist will be narrow and shoulders broader</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">171.96 lbs (78 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">13 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>9 months - I want to see that six-pack start shining through</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">10 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;; background-color: lightgrey">
				<b>1 year - I will look lean; have clearly defined muscle tone and shape. I will also be fit and Healthy</b>
			</td>
		</tr>
		<tr>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" align="right"><b>Weight:</b></td>
			<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">163.14 lbs (74 kg) to 167.55 lbs (76 kg)</td>
		</tr>
		<tr>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">&nbsp;&nbsp;&nbsp;</td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;" nowrap align="right" valign="top"><b>Desired Body Fat:</b></td>
		<td style="border-bottom-style: solid; border-bottom-color: gray; border-bottom-width: 1px;">8 % (Body Fat is my ultimate goal and not so much Weight)</td>
		</tr>
		</table>
    <p>
    <b>Goals like: "I want to be skinnier" or 'I want to be bigger" are no good.</b> You like numbers? I do. This is a good place to put some to paper. Bring up a Python interpreter and play with some numbers, if you are lost now, Excel spreadsheet will do. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
    </p>
    <h3>2. Nutrition</h3>
    <p>
    This has been by far the most difficult part for me. I think if it hasn't been for my Motivation, this part would probably fall flat on its head and in turn pull my overall results with it.
    </p>
    <p>
        <b>Genes are what makes us unique. With that said, it is very important to understand that there is no nutrition recipe that will work for everyone.</b> (No magic here.) So, for example, when you friend tells you that what he eats and quantity he eats, is what makes him pickup muscle, it won't necessarily work for you. I have determined that I am dairy product sensitive. My body doesn't seem to digest it well. So I take less dairy products and replace it with other foods that will still give me the relevant results and keep me healthy.
    </p>
    <p>
    You may be thinking at this stage: "But does this mean no more junk food?"
    Well, the answer to a great extent is Yes. As Tom Venuto says "There is no magic pill if you want a body for a lifetime". It also very much depends on your body type. Due to our uniqueness, some people can eat anything and still have Peter Parker six-pack. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Unfortunately that are the gifted few, for the rest of us, proper nutrition will be a must.
    </p>
    <p>
        <b>As a hacker, I still love pizza of course. Make no mistake I still eat it, however in much smaller quantity and less frequently.</b> I will go into the nutrition topic (general and my nutrition plan to date as an example) in greater detail in my up and coming weblogs.
    </p>
    <h3>3. Cardio (Aerobic) training</h3>
    <p>
    Cardio is the first form of exercise that I kicked off with. Italian friend of mine, Carmine, has been keeping fit for some time and has been doing quite a bit of running. I live in Cape Town, South Africa. It's a beautiful place and has some great spots for running along the seaside. So I decided to join him. We started running 4 times a week. To target body fat, we ran at a slower pace for no more or less then 40 minutes. (As a hacker I love gadgets, so yes I got myself one of those Running Computers that reads your heart rate, uploads the data to an online Web Service where then you can do some analysis. Love it. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) I advise you to get one. It has different sport zones, depending what you wish to achieve. Like targeting body fat, enhancing aerobic power, etc.   
    </p>
    <p>
    I did a lot of running for the first month, as I was quite a bit overweight. (4 to 5 times a week.) Combined with good nutrition, the results reflected very quickly and that's great addition to my existing motivation! <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> 
    </p>
    <p>
    I can't stress enough how important it is to monitor your body. Am I loosing too much weight now, but also muscle in the process? (Hmm, that means I might be doing too much cardio but not enough weight training.) This type of <b>self-talk is very important</b>.
    </p>
    <p>
    For hackers with high metabolisms (You eat a lot but you are always skinny), you may need to do a bit less cardio of course and focus more on the nutrition part and the weight training to pile on some lean muscle mass. I'll get into this topic in greater depth in up and coming weblogs. See the below Final words note for details.
    </p>
    <h3>4. Weight training</h3>
    <p>
    Ok, now this is a fun part. Well at least I though it would be until I woke up the next morning after my first weight training session. Ouch, but nonetheless after only first few days of training, it would take longer for my muscles to fatigue. I was getting stronger and still am by the day. There are number of books on weight training. I started of with the Arnold Schwarzenegger's book titled "The NEW Encyclopedia of Modern Bodybuilding". Must say that it's a bit too intense for an average hacker like myself. I just did less of what he advised. I do weight training 5 times a week now for a maximum of 30 to 40 minutes. (I mean 30 to 40 minutes intense training and not chatting to other fellows in the gym.)<br/>
    <b>Through my journey so far, I have determined that heavier weights, less repetitions (reps) per set seem to work better.</b> Firstly I finish quicker, and my muscles get nicely swollen up (pumped). Next, I found that after about 2 weeks of lifting same size weights, my muscles get used to it and don't get a work out that one would expect. Muscles hit a bit of a plateau. So to break it, every week I go a bit heavier then previous. This really works wanders. Another thing to note is to <b>change up the exercises you do once a month. At the moment I have 2 routines and I switch then once every 4 weeks.</b> In the up and coming weblogs, I will spend more time sharing more information on weight training, what's my weight training routine and schedule, reference to some good weight training books, etc.
    </p>
    <h3>Final words</h3>
    <p>
    Ok, just to clear up a few things just in case some are tempted to flame me for some reason or another. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Firstly I am not associated with any fitness, health or supplement business. I am completely doing this out of my own will and determination. So if you do have remarks, comments or suggestions, feel free to comment, as I would greatly appreciate you honest feedback. Secondly, I am really enjoying this healthy change in my life. I feel better then ever. I certainly hope many of you will take this as a positive influence and take a proactive stance on better fitness and health in your own life. 
    </p>
    <p>
    Finally, I would like to take a few words to recap on the important things to remember here.
    </p>
    <p>
    If you were to take anything from this weblog I would say take this.<br/>
    """<br/>
    <b>Formula to having a six-pack like Spider-Man, Peter Parker, is striking a good balance between Nutrition, Cardio (Aerobics) and Weight training. Combination of "the three" results in exponential results!</b><br/>
    """
    </p>
    <p>
    Thank you for taking time to read this weblog and I hope you found it interesting and useful to some extent. <img src='http://www.hackersinshape.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Add this site to your RSS reader if you wish, as I will be publishing follow-ups in the coming days.
    </p>
    <p>
    Up and coming weblogs:
        <ul>
            <li>Motivation and Goal Setting in Detail</li>
            <li>Nutrition Explained - Hacker2Hacker</li>
            <li>What to do when you don't feel like exercising - Tips and Tricks</li>
            <li>Cardio (Aerobic) training explained</li>
            <li>Weight training explained</li>
            <li>Realistic way to fit it all into your daily schedule</li>
        </ul>
    </p>
    <p>
    Note that on each weblog I will attach my own progress results. How close am I to achieving my goals, etc.
    </p>
    <p>
    Peace out to all my fellow hackers.<br/>
    -Alen
    </p>
    </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.hackersinshape.net/archives/5/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
