<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zavaboy.org</title>
	<atom:link href="http://zavaboy.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://zavaboy.org</link>
	<description>The occasional random interest and technology ramblings of Ivik Injerd.</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:36:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My Logical Mind</title>
		<link>http://zavaboy.org/2012/01/29/my-logical-mind/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-logical-mind</link>
		<comments>http://zavaboy.org/2012/01/29/my-logical-mind/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 04:36:40 +0000</pubDate>
		<dc:creator>Ivik Injerd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zavaboy.org/?p=27</guid>
		<description><![CDATA[My mind is a hyperactive one. My mind can race though seemingly hundreds of different ideas in a matter of minutes. It drives me nuts, especially when I&#8217;m trying to sleep or those occasions I really need to keep my &#8230; <a href="http://zavaboy.org/2012/01/29/my-logical-mind/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My mind is a hyperactive one. My mind can race though seemingly hundreds of different ideas in a matter of minutes. It drives me nuts, especially when I&#8217;m trying to sleep or those occasions I really need to keep my focus on the task at hand. Well, because this post is about my mind, it will be a bit random and may not follow any one topic. Don&#8217;t worry, it doesn&#8217;t always make sense to me either.</p>
<p>I always notice on a movie or TV show when the computer screen is totally fake. The actor may type whatever gibberish on the keyboard and it will still do what it is asked to do. It seems only the shows and movies geared towards geeks actually pay attention to this. The movie the springs to my mind is The Matrix, the commands they used actually existed and the interfaces were believable instead of the overdressed interfaces you would find on CSI.</p>
<p>Probably due to the fact that I found interest in programming a long time ago, I think logically. I guess I&#8217;m kinda like Spock, but with a better sense of humor. My mind enjoys puzzles and certain challenges. That&#8217;s probably why I now have a strong interest in Rubik&#8217;s Cubes.</p>
<p>If a challenge gets between me and an interest, I do what I can to overcome it. A good example of this is when I wanted to know how wave files were put together. I knew it shouldn&#8217;t be so hard since wave files are as raw as you can get for audio. When I managed to make a PHP script generate waveforms in wave format, that was my first real experience working with binary data. Because of that, I&#8217;ve learned not only the building blocks of wave files, but I learned a lot about binary data. I later made my own binary file format.</p>
]]></content:encoded>
			<wfw:commentRss>http://zavaboy.org/2012/01/29/my-logical-mind/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Improving print_r() with print_pre() Wrapper Function</title>
		<link>http://zavaboy.org/2011/11/09/php-improving-print_r-with-print_pre-wrapper-function/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=php-improving-print_r-with-print_pre-wrapper-function</link>
		<comments>http://zavaboy.org/2011/11/09/php-improving-print_r-with-print_pre-wrapper-function/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 13:55:43 +0000</pubDate>
		<dc:creator>Ivik Injerd</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://zavaboy.org/?p=13</guid>
		<description><![CDATA[When you need a simple debugging function and print_r() is just not enough, you need a good wrapper function. You need print_pre(). Most print_pre() functions out there just wrap the print_r() output with the &#60;pre&#62; tag. Useful, but not that &#8230; <a href="http://zavaboy.org/2011/11/09/php-improving-print_r-with-print_pre-wrapper-function/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you need a simple debugging function and <a title="PHP: print_r - Manual" href="http://php.net/manual/en/function.print-r.php"><strong>print_r()</strong></a> is just not enough, you need a good wrapper function. You need <strong>print_pre()</strong>.</p>
<p>Most <strong>print_pre()</strong> functions out there just wrap the <strong>print_r()</strong> output with the <strong>&lt;pre&gt;</strong> tag. Useful, but not that useful. This <strong>print_pre()</strong> function has evolved over the time I have used it. I have used it across multiple jobs. Where it is now is good, anything added to it would be for specialized cases.</p>
<p>This <strong>print_pre()</strong> function does a bit more than just wrap the <strong>print_r()</strong> with <strong>&lt;pre&gt;</strong> tags. Sometimes you may not be able to view any output easily, so it may output to a file if you so desire. It can be used in place of any <strong>print_r()</strong> as it may be used exactly the same. Another cool feature is word wrapping, which basically does away with the <strong>&lt;pre&gt;</strong> tag and wraps it in a <strong>&lt;p&gt;&lt;tt&gt;</strong> combo.</p>
<pre>function print_pre ($expression, $return = false, $wrap = false)
{
  $css = 'border:1px dashed #06f;background:#69f;padding:1em;text-align:left;';
  if ($wrap) {
    $str = '&lt;p style="' . $css . '"&gt;&lt;tt&gt;' . str_replace(
      array('  ', "\n"), array('&amp;nbsp; ', '&lt;br /&gt;'),
      htmlspecialchars(print_r($expression, true))
    ) . '&lt;/tt&gt;&lt;/p&gt;';
  } else {
    $str = '&lt;pre style="' . $css . '"&gt;'
    . htmlspecialchars(print_r($expression, true)) . '&lt;/pre&gt;';
  }
  if ($return) {
    if (is_string($return) &amp;&amp; $fh = fopen($return, 'a')) {
      fwrite($fh, $str);
      fclose($fh);
    }
    return $str;
  } else
    echo $str;
}</pre>
<p>The <strong>print_pre()</strong> function has simple usage:</p>
<p>mixed <strong>print_pre</strong> (mixed <em>$expression</em> [, mixed <em>$return</em> = false [, bool <em>$wrap</em> = false ]] )</p>
<p>The second parameter, <em>return</em>, works just like the <em>return</em> parameter on <strong>print_r()</strong> except when a non-empty string is passed. If a string is passed to the <em>return</em> parameter, it will be treated as a file path to save the output to and will continue to return the output. The last parameter, <em>wrap</em>, is rather self explanatory; it will allow long lines to break and the text will not be preformatted if set to <strong>TRUE</strong>.</p>
<p>Everybody likes examples, so here are a few for you:</p>
<pre>// Let us assume print_pre() and $obj were defined before this point

print_pre($obj);
// the output is simply printed

$string = print_pre($obj,true);
// $string contains the output

echo print_pre($obj,'debug.htm',true);
// the output allows wrapping, is saved to debug.htm and then printed</pre>
<p>And that is the <strong>print_pre()</strong> function. Ok, my <strong>print_pre()</strong> function. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://zavaboy.org/2011/11/09/php-improving-print_r-with-print_pre-wrapper-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Suspended Animation</title>
		<link>http://zavaboy.org/2011/11/08/suspended-animation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=suspended-animation</link>
		<comments>http://zavaboy.org/2011/11/08/suspended-animation/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 12:46:22 +0000</pubDate>
		<dc:creator>Ivik Injerd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zavaboy.org/?p=11</guid>
		<description><![CDATA[I just watched this TED Talk from last year where biochemist Mark Roth explained the advancements that were made in the field of suspended animation. He talked about how suspended animation with the right concentrations and exposure of the toxic &#8230; <a href="http://zavaboy.org/2011/11/08/suspended-animation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><object width="526" height="374" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="transparent" /><param name="bgColor" value="#ffffff" /><param name="flashvars" value="vu=http://video.ted.com/talk/stream/2010/Blank/MarkRoth_2010-320k.mp4&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/MarkRoth-2010.embed_thumbnail.jpg&amp;vw=512&amp;vh=288&amp;ap=0&amp;ti=796&amp;lang=&amp;introDuration=15330&amp;adDuration=4000&amp;postAdDuration=830&amp;adKeys=talk=mark_roth_suspended_animation;year=2010;theme=medicine_without_borders;event=TED2010;tag=Science;tag=biology;tag=fish;tag=health+care;tag=war;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" /><param name="src" value="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" /><param name="pluginspace" value="http://www.macromedia.com/go/getflashplayer" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><embed width="526" height="374" type="application/x-shockwave-flash" src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf" allowFullScreen="true" allowScriptAccess="always" wmode="transparent" bgColor="#ffffff" flashvars="vu=http://video.ted.com/talk/stream/2010/Blank/MarkRoth_2010-320k.mp4&amp;su=http://images.ted.com/images/ted/tedindex/embed-posters/MarkRoth-2010.embed_thumbnail.jpg&amp;vw=512&amp;vh=288&amp;ap=0&amp;ti=796&amp;lang=&amp;introDuration=15330&amp;adDuration=4000&amp;postAdDuration=830&amp;adKeys=talk=mark_roth_suspended_animation;year=2010;theme=medicine_without_borders;event=TED2010;tag=Science;tag=biology;tag=fish;tag=health+care;tag=war;&amp;preAdTag=tconf.ted/embed;tile=1;sz=512x288;" pluginspace="http://www.macromedia.com/go/getflashplayer" allowfullscreen="true" allowscriptaccess="always" /></object></p>
<p>I just watched <a href="http://www.ted.com/talks/lang/eng/mark_roth_suspended_animation.html">this TED Talk</a> from last year where biochemist <a href="http://en.wikipedia.org/wiki/Mark_Roth_%28scientist%29">Mark Roth</a> explained the advancements that were made in the field of suspended animation.</p>
<p>He talked about how suspended animation with the right concentrations and exposure of the toxic gas <a href="http://en.wikipedia.org/wiki/Hydrogen_sulfide">hydrogen sulfide</a> has helped reduce damage to organs and tissue. Mark also mentioned how much this can help people in trauma.</p>
<p>This has got me thinking about the possibilities this may unlock. If there can be a standard way to suspend a trauma victim and buy them a tremendous amount of time, this could be one of the best advancements in modern medicine. Just think about small town out in the middle of nowhere, where there is no hospital for miles, that has this on hand. If someone in the town has a heart attack and is administered hydrogen sulfide to give them more time, they could be airlifted to the nearest hospital suspended, but still alive, where they can then get all the medical attention they need. This could give proper medical attention to those who may otherwise have no choice but to be treated by someone who is medically untrained and is subject to possibly fatal mistakes.</p>
<p>Much is yet to be learned about suspended animation, but if we can get through it, perfect it, and establish it safely into society, I can&#8217;t imagine how many lives it could save.</p>
<p>What are your thoughts on suspended animation? What do you believe the future could be like with suspended animation?</p>
]]></content:encoded>
			<wfw:commentRss>http://zavaboy.org/2011/11/08/suspended-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Adventure</title>
		<link>http://zavaboy.org/2011/11/07/the-adventure/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-adventure</link>
		<comments>http://zavaboy.org/2011/11/07/the-adventure/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 14:07:45 +0000</pubDate>
		<dc:creator>Ivik Injerd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zavaboy.org/?p=1</guid>
		<description><![CDATA[Ok. Well, the first post of my hopefully active blog is this. I&#8217;m really looking forward to getting back in action and start blogging once more. My previous blog over at zavaboy.com has been abandoned, at least for now. So, &#8230; <a href="http://zavaboy.org/2011/11/07/the-adventure/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok. Well, the first post of my hopefully active blog is this.</p>
<p>I&#8217;m really looking forward to getting back in action and start blogging once more. My previous blog over at <a href="http://zavaboy.com/">zavaboy.com</a> has been abandoned, at least for now.</p>
<p>So, what am I planning for this blog? I haven&#8217;t planned to be honest. My good friend, <a href="http://www.embracinghome.com/">Erin Mckay</a>, is an avid blogger and told me that I should just make my first post. Now that I have done that, I must think about what I need to do next. I do have some ideas for future posts, some are just going to be updated versions of posts I made on my old blog.</p>
<p>I&#8217;m sure I&#8217;m going to have to search deep within myself to get to the good stuff. Going that deep inside myself sounds scary to me. Inside, I have a dark side and a light side just the same way as everyone else. Expressing myself is something I always had a challenge doing, so I think it may take some time to see more personal posts emerging from the cracks.</p>
<p>Another adventure I seek is WordPress itself. Any regular to the internet may recognize that this blog is WordPress. This is my first real use of WordPress and I am looking forward to working a lot with it and maybe even build a plugin or two. My reasoning is simple; I want to learn. Well, that and the fact that WordPress has been touted as the best CMS, or content management system, available. I previously used <a href="http://drupal.org/">Drupal</a>, which my previous blog is using. My experience with Drupal has been okay, but not the smoothest of rides as every new major version seems to never fail to break something. As Drupal is a nice CMS, I figured I should give WordPress a shot, probably something I should have done a long, long time ago. Another good reason to learn WordPress is for a job. I have been noticing in my recent job searching that WordPress is mentioned more than any other CMS, so the choice from that alone seems to be obvious.</p>
<p>So, I think I should save all the rest of my rambling for other posts.</p>
<p>I would like to invite you on an adventure. The adventure is here. The adventure is now. The adventure is abnormal. The adventure is me. Welcome and mind your step.</p>
]]></content:encoded>
			<wfw:commentRss>http://zavaboy.org/2011/11/07/the-adventure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: zavaboy.org @ 2012-02-23 01:16:13 -->
