<?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"
	>

<channel>
	<title>my life</title>
	<atom:link href="http://osterman.com/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://osterman.com/wordpress</link>
	<description>day to day</description>
	<pubDate>Sat, 19 Jul 2008 07:40:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Starling Protocol Bug in STATS Response</title>
		<link>http://osterman.com/wordpress/2008/07/18/starling-protocol-bug-in-stats-response</link>
		<comments>http://osterman.com/wordpress/2008/07/18/starling-protocol-bug-in-stats-response#comments</comments>
		<pubDate>Sat, 19 Jul 2008 01:13:25 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=206</guid>
		<description><![CDATA[The memcache protocol requires that all lines in the server response end with CRLN (\r\n). The Starling server doesn&#8217;t strictly obey this for the STATS command. The fix is trivial and the author has been notified of the fix.
Edit lib/starling/handler.rb and add the following gsub right before .freeze in the STATS_RESPONSE:
%sEND\r\n&#8221;.gsub(/\r?\n/, &#8220;\r\n&#8221;).freeze
And the same for [...]]]></description>
			<content:encoded><![CDATA[<p>The memcache protocol requires that all lines in the server response end with CRLN (\r\n). The Starling server doesn&#8217;t strictly obey this for the STATS command. The fix is trivial and the author has been notified of the fix.</p>
<p>Edit <span style="display: inline; background: silver; white-space: pre; font-family:monospace;">lib/starling/handler.rb</span> and add the following gsub right before .freeze in the STATS_RESPONSE:<br />
<div class="console">%sEND\r\n&#8221;.gsub(/\r?\n/, &#8220;\r\n&#8221;).freeze</div><br />
And the same for QUEUE_STATS_RESPONSE:<br />
<div class="console">STAT queue_%s_expired_items %d\n&#8221;.gsub(/\r?\n/, &#8220;\r\n&#8221;).freeze</div></p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/07/18/starling-protocol-bug-in-stats-response/feed</wfw:commentRss>
		</item>
		<item>
		<title>What to do if spl_autoload_call() hasn&#8217;t defined the class</title>
		<link>http://osterman.com/wordpress/2008/07/05/what-to-do-if-spl_autoload_call-hasnt-defined-the-class</link>
		<comments>http://osterman.com/wordpress/2008/07/05/what-to-do-if-spl_autoload_call-hasnt-defined-the-class#comments</comments>
		<pubDate>Sun, 06 Jul 2008 06:26:18 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=205</guid>
		<description><![CDATA[Recently, I was getting the error
Warning: session_start() [function.session-start]: Function spl_autoload_call() hasn&#8217;t defined the class it was called for in&#8230;
In my particular case, the problem stemmed from defining a deserialization function using ini_set(&#8217;unserialize_callback_func&#8217;, &#8217;spl_autoload_call&#8217;) (well, symfony defines it)
In the process of deserializing an object, it tried to instantiate a class which hadn&#8217;t yet been loaded. The [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I was getting the error<br />
<div class="console">Warning: session_start() [function.session-start]: Function spl_autoload_call() hasn&#8217;t defined the class it was called for in&#8230;</div></p>
<p>In my particular case, the problem stemmed from defining a deserialization function using <div class="console">ini_set(&#8217;unserialize_callback_func&#8217;, &#8217;spl_autoload_call&#8217;)</div> (well, symfony defines it)</p>
<p>In the process of deserializing an object, it tried to instantiate a class which hadn&#8217;t yet been loaded. The autoloader wasn&#8217;t able to find the class and the spl autoload functionality therefore croaked. </p>
<p>The problem was that I had defined a property inside of one my model objects that referenced the sfWebRequest. This property should never have been serialized. Infact, only the properties of the object as defined in model should get serialized. The fix was defined a __sleep method in the model. </p>
<p><div class="console">public function __sleep()
  {
    return MySampleObjectPeer::getFieldNames(BasePeer::TYPE_FIELDNAME);
  }</div></p>
<p>Replace MySampleObjectPeer with the appropriate peer class.</p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/07/05/what-to-do-if-spl_autoload_call-hasnt-defined-the-class/feed</wfw:commentRss>
		</item>
		<item>
		<title>Installing CPAN Packages for Debian</title>
		<link>http://osterman.com/wordpress/2008/06/19/installing-cpan-packages-for-debian</link>
		<comments>http://osterman.com/wordpress/2008/06/19/installing-cpan-packages-for-debian#comments</comments>
		<pubDate>Thu, 19 Jun 2008 19:32:54 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[HOWTO]]></category>

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

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=204</guid>
		<description><![CDATA[If you want to install CPAN modules as Debian packages, this HOWTO is for you.
First, install dh-make-perl:
apt-get install dh-make-perl
Then build &#38; install the package. For example, if you wish to install the module Nagios::Plugins::Memcached from CPAN, simply run:
dh-make-perl --install --cpan Nagios::Plugins::Memcached
You&#8217;re done.
]]></description>
			<content:encoded><![CDATA[<p>If you want to install CPAN modules as Debian packages, this HOWTO is for you.</p>
<p>First, install dh-make-perl:<br />
<div class="console">apt-get install dh-make-perl</div></p>
<p>Then build &amp; install the package. For example, if you wish to install the module Nagios::Plugins::Memcached from CPAN, simply run:<br />
<div class="console">dh-make-perl --install --cpan Nagios::Plugins::Memcached</div></p>
<p>You&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/06/19/installing-cpan-packages-for-debian/feed</wfw:commentRss>
		</item>
		<item>
		<title>Nginx Rewrite to 404</title>
		<link>http://osterman.com/wordpress/2008/05/14/nginx-rewrite-to-404</link>
		<comments>http://osterman.com/wordpress/2008/05/14/nginx-rewrite-to-404#comments</comments>
		<pubDate>Thu, 15 May 2008 03:13:59 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=203</guid>
		<description><![CDATA[The following Nginx configuration technique will allow you to do rewrites to status codes.
rewrite ^.*?\.(?:swf&#124;xml&#124;gif&#124;jpg&#124;png&#124;css&#124;js)$ @404 break;
location = @404 {
  return 404;
}
]]></description>
			<content:encoded><![CDATA[<p>The following Nginx configuration technique will allow you to do rewrites to status codes.</p>
<p><div class="console">rewrite ^.*?\.(?:swf|xml|gif|jpg|png|css|js)$ @404 break;
location = @404 {
  return 404;
}</div></p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/05/14/nginx-rewrite-to-404/feed</wfw:commentRss>
		</item>
		<item>
		<title>Must have Yum Plugin: fastestmirror</title>
		<link>http://osterman.com/wordpress/2008/04/30/must-have-yum-plugin-fastestmirror</link>
		<comments>http://osterman.com/wordpress/2008/04/30/must-have-yum-plugin-fastestmirror#comments</comments>
		<pubDate>Wed, 30 Apr 2008 23:48:39 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=202</guid>
		<description><![CDATA[Yum always gets stuck on dead mirrors or slow mirrors. Avoid this by installing yum-fastestmirror
yum install yum-fastestmirror
yum clean all
]]></description>
			<content:encoded><![CDATA[<pre>Yum always gets stuck on dead mirrors or slow mirrors. Avoid this by installing <span style="display: inline; background: silver; white-space: pre; font-family:monospace;">yum-fastestmirror</span>
<div class="console">yum install yum-fastestmirror
yum clean all</div></pre>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/04/30/must-have-yum-plugin-fastestmirror/feed</wfw:commentRss>
		</item>
		<item>
		<title>RPM Package List Without Version Info</title>
		<link>http://osterman.com/wordpress/2008/04/30/rpm-package-list-without-version-info</link>
		<comments>http://osterman.com/wordpress/2008/04/30/rpm-package-list-without-version-info#comments</comments>
		<pubDate>Wed, 30 Apr 2008 22:48:05 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/?p=201</guid>
		<description><![CDATA[rpm -qa --qf &#8220;%{NAME}\n&#8221;  &#62; /tmp/installed-packages.log
To install those packages, run:
yum install -y $(cat /tmp/installed-packages.log)
]]></description>
			<content:encoded><![CDATA[<p><div class="console">rpm -qa --qf &#8220;%{NAME}\n&#8221;  &gt; /tmp/installed-packages.log</div></p>
<p>To install those packages, run:</p>
<p><div class="console">yum install -y $(cat /tmp/installed-packages.log)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/04/30/rpm-package-list-without-version-info/feed</wfw:commentRss>
		</item>
		<item>
		<title>Capistrano Put File Fix</title>
		<link>http://osterman.com/wordpress/2008/04/25/capistrano-put-file-fix</link>
		<comments>http://osterman.com/wordpress/2008/04/25/capistrano-put-file-fix#comments</comments>
		<pubDate>Fri, 25 Apr 2008 19:49:29 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/2008/04/25/capistrano-put-file-fix</guid>
		<description><![CDATA[Up until recently, it was not possible to upload large files asynchronously to 2 or more machines simultaneously. This was due to a problem in the ruby ssh implementation. A patch is available which fixes this.
http://rubyforge.org/tracker/index.php?func=detail&#38;aid=17857&#38;group_id=274&#38;atid=1123
If applying the patch is not an option, you can always change the transfer mode to synchronous.
set :synchronous_connect, true
]]></description>
			<content:encoded><![CDATA[<p>Up until recently, it was not possible to upload large files asynchronously to 2 or more machines simultaneously. This was due to a problem in the ruby ssh implementation. A patch is available which fixes this.</p>
<p><a href="http://rubyforge.org/tracker/index.php?func=detail&#038;aid=17857&#038;group_id=274&#038;atid=1123">http://rubyforge.org/tracker/index.php?func=detail&amp;aid=17857&amp;group_id=274&amp;atid=1123</a></p>
<p>If applying the patch is not an option, you can always change the transfer mode to synchronous.</p>
<p><div class="console">set :synchronous_connect, true</div></p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/04/25/capistrano-put-file-fix/feed</wfw:commentRss>
		</item>
		<item>
		<title>Count Down to LA</title>
		<link>http://osterman.com/wordpress/2008/03/26/count-down-to-la</link>
		<comments>http://osterman.com/wordpress/2008/03/26/count-down-to-la#comments</comments>
		<pubDate>Thu, 27 Mar 2008 06:55:36 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<guid isPermaLink="false">http://osterman.com/wordpress/2008/03/26/count-down-to-la</guid>
		<description><![CDATA[  table.timer { font: bold 24pt "Trebuchet MS", arial, helvetica; } table.timer.td { padding: 0; margin: 0; } table.timer tr.labels td { font-size: 10pt; } 
   var timerEnd = new Date(Date.UTC(2008, 3, 11, 14, 0, 0)); 
  
Welcome back Sofie!!!
]]></description>
			<content:encoded><![CDATA[<style>  table.timer { font: bold 24pt "Trebuchet MS", arial, helvetica; } table.timer.td { padding: 0; margin: 0; } table.timer tr.labels td { font-size: 10pt; } </style>
<p> <script type="text/javascript">  var timerEnd = new Date(Date.UTC(2008, 3, 11, 14, 0, 0)); </script></p>
<p><script src="http://www.sachisan.com/wp-includes/js/timer.js">  </script></p>
<p>Welcome back Sofie!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2008/03/26/count-down-to-la/feed</wfw:commentRss>
		</item>
		<item>
		<title>Configuring Mutt for IMAP support</title>
		<link>http://osterman.com/wordpress/2007/12/31/configuring-mutt-for-imap-support</link>
		<comments>http://osterman.com/wordpress/2007/12/31/configuring-mutt-for-imap-support#comments</comments>
		<pubDate>Mon, 31 Dec 2007 16:32:10 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[HOWTO]]></category>

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

		<guid isPermaLink="false">http://osterman.com/wordpress/2007/12/31/configuring-mutt-for-imap-support</guid>
		<description><![CDATA[Configuring Mutt with IMAP is as easy as editing your .muttrc and adding the following lines.
set spoolfile=imap://username:password@host/INBOX
set folder=imap://username:password@host/INBOX
You can then change folders inside of Mutt by pressing &#8216;c&#8217; and then &#8216;?&#8217; to get a folder list.
]]></description>
			<content:encoded><![CDATA[<p>Configuring Mutt with IMAP is as easy as editing your <span style="display: inline; background: silver; white-space: pre; font-family:monospace;">.muttrc</span> and adding the following lines.</p>
<p><div class="console">set spoolfile=imap://username:password@host/INBOX
set folder=imap://username:password@host/INBOX</div></p>
<p>You can then change folders inside of Mutt by pressing &#8216;c&#8217; and then &#8216;?&#8217; to get a folder list.</p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2007/12/31/configuring-mutt-for-imap-support/feed</wfw:commentRss>
		</item>
		<item>
		<title>Unknown table engine &#8216;InnoDB&#8217;</title>
		<link>http://osterman.com/wordpress/2007/12/23/unknown-table-engine-innodb</link>
		<comments>http://osterman.com/wordpress/2007/12/23/unknown-table-engine-innodb#comments</comments>
		<pubDate>Sun, 23 Dec 2007 15:05:31 +0000</pubDate>
		<dc:creator>e</dc:creator>
		
		<category><![CDATA[HOWTO]]></category>

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

		<guid isPermaLink="false">http://osterman.com/wordpress/2007/12/23/unknown-table-engine-innodb</guid>
		<description><![CDATA[I was getting the error &#8220;ERROR 1286 (42000): Unknown table engine &#8216;InnoDB&#8217;&#8221; when trying to create/alter tables with the InnoDB engine. You can check for this warning by issuing the create or alter statements and then running show warnings; in the same mysql client session.
Check if you have InnoDB support enabled:
mysql&#62; show variables like &#8216;have_innodb&#8217;;
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+
&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>I was getting the error &#8220;ERROR 1286 (42000): Unknown table engine &#8216;InnoDB&#8217;&#8221; when trying to create/alter tables with the InnoDB engine. You can check for this warning by issuing the create or alter statements and then running <div class="console">show warnings;</div> in the same mysql client session.</p>
<p>Check if you have InnoDB support enabled:<br />
<div class="console">mysql&gt; show variables like &#8216;have_innodb&#8217;;
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+
| Variable_name | Value    |
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+
| have_innodb   | DISABLED |
+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</div></p>
<p>The problem is that InnoDB is not enabled by default in Debian distributions of <span style="display: inline; background: silver; white-space: pre; font-family:monospace;">my.cnf</span>.  To enable it, simply comment the following lines under the <span style="display: inline; background: silver; white-space: pre; font-family:monospace;">[mysqld]</span> section.</p>
<p><span style="display: inline; background: silver; white-space: pre; font-family:monospace;">#skip-innodb</span></p>
]]></content:encoded>
			<wfw:commentRss>http://osterman.com/wordpress/2007/12/23/unknown-table-engine-innodb/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
