<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.2" -->
<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/"
	>

<channel>
	<title>VexedMonkey</title>
	<link>http://www.vexedmonkey.com</link>
	<description>Beware the fury of a patient monkey.</description>
	<pubDate>Mon, 11 Aug 2008 18:55:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
	<language>en</language>
			<item>
		<title>Remember What It&#8217;s Like To Work With Me&#8230;</title>
		<link>http://www.vexedmonkey.com/2008/08/11/remember-what-its-like-to-work-with-me/</link>
		<comments>http://www.vexedmonkey.com/2008/08/11/remember-what-its-like-to-work-with-me/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 18:55:00 +0000</pubDate>
		<dc:creator>vMonkey</dc:creator>
		
		<category><![CDATA[Vexed Daily]]></category>

		<guid isPermaLink="false">http://www.vexedmonkey.com/2008/08/11/remember-what-its-like-to-work-with-me/</guid>
		<description><![CDATA[Ok, for the record those who know me understand that I only verbally abuse those who deserve it.  I guess one of my co-workers wanted to make sure I knew what I sounded like so he recorded these clips&#8230;  I promptly abused him into submission.
Clip 1:  Can you detect the sarcasm

Clip 2: [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, for the record those who know me understand that I only verbally abuse those who deserve it.  I guess one of my co-workers wanted to make sure I knew what I sounded like so he recorded these clips&#8230;  I promptly abused him into submission.</p>
<p>Clip 1:  Can you detect the sarcasm<br />
</p>
<p>Clip 2: Idiot<br />
</p>
<p>Clip 3: Whatever<br />
</p>
<p>Clip 4:<br />
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vexedmonkey.com/2008/08/11/remember-what-its-like-to-work-with-me/feed/</wfw:commentRss>
<enclosure url="http://www.vexedmonkey.com/wp-content/uploads/2008/08/site-is-fucking-amazing.mp3" length="57304" type="audio/mpeg" />
<enclosure url="http://www.vexedmonkey.com/wp-content/uploads/2008/08/prototype.mp3" length="85726" type="audio/mpeg" />
<enclosure url="http://www.vexedmonkey.com/wp-content/uploads/2008/08/violate-you.mp3" length="171407" type="audio/mpeg" />
<enclosure url="http://www.vexedmonkey.com/wp-content/uploads/2008/08/fucking-box.mp3" length="67753" type="audio/mpeg" />
		</item>
		<item>
		<title>Coding Standards - OMG why&#8230;</title>
		<link>http://www.vexedmonkey.com/2008/08/09/coding-standards-omg-why/</link>
		<comments>http://www.vexedmonkey.com/2008/08/09/coding-standards-omg-why/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 02:01:48 +0000</pubDate>
		<dc:creator>vMonkey</dc:creator>
		
		<category><![CDATA[PHP Development]]></category>

		<guid isPermaLink="false">http://www.vexedmonkey.com/2008/08/09/coding-standards-omg-why/</guid>
		<description><![CDATA[So I have found my newest, &#8220;omg why would you do this&#8221; piece of code.   The code in question is:
"value" == $variable;
//instead of the traditional
$variable == "value";

The reason given for writing it this way&#8230;. because if you accidentally forget to type the second =&#8217;s sign it will not cause the variable to set, [...]]]></description>
			<content:encoded><![CDATA[<p>So I have found my newest, &#8220;omg why would you do this&#8221; piece of code.   The code in question is:<br />
<code>"value" == $variable;<br />
//instead of the traditional<br />
$variable == "value";<br />
</code></p>
<p>The reason given for writing it this way&#8230;. because if you accidentally forget to type the second =&#8217;s sign it will not cause the variable to set, it will just not set the variable.</p>
<p>WTF</p>
<p>So code backwards to allow you to screw up code?  Honestly, check your code you lazy people.  When I see this in my current employers code, I change it.  When the other developers question me on why I change it, of course I go off on a rant about stupidity, and I was actually told by one, that they would leave it and just conform.</p>
<p>Developers of the world&#8230;. please do not conform, and if you decide to conform, do not conform to stupidity.  Code like this makes me cry at night when I am trying to sleep.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vexedmonkey.com/2008/08/09/coding-standards-omg-why/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zend Framework - Sessions in Memcache</title>
		<link>http://www.vexedmonkey.com/2008/08/01/zend-framework-sessions-in-memcache/</link>
		<comments>http://www.vexedmonkey.com/2008/08/01/zend-framework-sessions-in-memcache/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 03:15:56 +0000</pubDate>
		<dc:creator>vMonkey</dc:creator>
		
		<category><![CDATA[PHP Development]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.vexedmonkey.com/2008/08/01/zend-framework-sessions-in-memcache/</guid>
		<description><![CDATA[Lets start with, this is working for me and I am posting this because of the time it took me to find the little information I could about Zend_Session::setSaveHandler utilizing memcache.
We are going to make the assumption you have memcache loaded and working; cause I don&#8217;t feel like explaining the howto install memcache.  We [...]]]></description>
			<content:encoded><![CDATA[<p>Lets start with, this is working for me and I am posting this because of the time it took me to find the little information I could about Zend_Session::setSaveHandler utilizing memcache.</p>
<p>We are going to make the assumption you have memcache loaded and working; cause I don&#8217;t feel like explaining the howto install memcache.  We are also going to assume you know a bit about ZF, mainly because I suck at explaining the is, why, and where of programming.</p>
<ol>
<li>Create a customer session handler that implements Zend_Session_SaveHandler_Interface</li>
<li>In your boot strap load your session handler class, Zend_Loader::loadClass(&#8217;Your_SessionHandler_Class&#8217;)</li>
<li>In your boot strap Zend_Session::setSaveHandler(new Your_SessionHandler_Class($_cache));  .. more about the $cache var in a sec</li>
<li>Zend_Session::start(); and your good to go</li>
</ol>
<p>Steps By Example:</p>
<p>Step 1.<br />
<code><br />
class Lib_Custom_Helper_SessionHandler implements Zend_Session_SaveHandler_Interface {<br />
private $maxlifetime = 3600;<br />
public  $cache = '';<br />
public function __construct($cacheHandler) {<br />
$this-&gt;cache = $cacheHandler;<br />
}<br />
public function open($save_path, $name) {<br />
return true;<br />
}<br />
public function close() {<br />
return true;<br />
}<br />
public function read($id) {<br />
if(!($data = $this-&gt;cache-&gt;load($id))) {<br />
return '';<br />
}<br />
else {<br />
return $data;<br />
}<br />
}<br />
public function write($id, $sessionData) {<br />
$this-&gt;cache-&gt;save($sessionData, $id, array(), $this-&gt;maxlifetime);<br />
return true;<br />
}<br />
public function destroy($id) {<br />
$this-&gt;cache-&gt;remove($id);<br />
return true;<br />
}<br />
public function gc($notusedformemcache) {<br />
return true;<br />
}<br />
}<br />
</code></p>
<p>Step 2:<br />
<code>Zend_Loader::loadClass('Lib_Custom_Helper_SessionHandler');</code></p>
<p>Step 3:<br />
Ok, so after some reading I saw a few ways to plug memcache into my session handler.  I opted for this option because I was already establishing config variables and connection information for Zend_Cache, utilizing memcache, so instead of passing the connection info again, I am passing my sessionhandler my cache handle which feeds directly into memcache as it is.  So before my session setup I run<br />
<code>$_cache = Zend_Cache::factory('Core', 'Memcached', $frontendOptions, $backendOptions);</code><br />
and then<br />
<code>Zend_Session::setSaveHandler(new Lib_Custom_Helper_SessionHandler($_cache));</code></p>
<p>Step 4:<br />
<code>Zend_Session::start();</code></p>
<p>And there you have it&#8230; my sessions are now stored into memcache via my already running cache handler&#8230; Hope this helps someone out there&#8230; took me forever to find info on specific howto&#8217;s&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vexedmonkey.com/2008/08/01/zend-framework-sessions-in-memcache/feed/</wfw:commentRss>
		</item>
		<item>
		<title>White Star Relaunched</title>
		<link>http://www.vexedmonkey.com/2008/07/15/white-star-relaunched/</link>
		<comments>http://www.vexedmonkey.com/2008/07/15/white-star-relaunched/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 01:37:16 +0000</pubDate>
		<dc:creator>vMonkey</dc:creator>
		
		<category><![CDATA[PHP Development]]></category>

		<category><![CDATA[Vexed Daily]]></category>

		<guid isPermaLink="false">http://www.vexedmonkey.com/2008/07/15/white-star-relaunched/</guid>
		<description><![CDATA[Well I found myself with some downtime recently and decided to go back to freelance development.  I figured it would be best to have some sort of online front facing site.  In the past I have always approached my freelance development work from a business aspect, but have decided this time to take [...]]]></description>
			<content:encoded><![CDATA[<p>Well I found myself with some downtime recently and decided to go back to freelance development.  I figured it would be best to have some sort of online front facing site.  In the past I have always approached my freelance development work from a business aspect, but have decided this time to take a more individual approach.</p>
<p>It still has some minor work to be done, but for the most part it is complete. <a href="http://www.whitestarstudios.com">White Star Studios</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vexedmonkey.com/2008/07/15/white-star-relaunched/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
