<?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>The Second Order Effect</title>
	<atom:link href="http://www.geekymedia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekymedia.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 07 Mar 2010 12:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twitter Weekly Updates for 2010-03-07</title>
		<link>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-03-07/</link>
		<comments>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-03-07/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 12:00:00 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-03-07/</guid>
		<description><![CDATA[
Oh, my, what a party. Can I turn 29 again? *glee* #
@Madrox now I&#39;m curious. #
@heathervescent I hear you. I feel like a well intentioned foreign exchange student half the them. Thankfully people are often kind. in reply to heathervescent #
Sorely needing is a process for organizing the various business ideas that come up. Need [...]]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Oh, my, what a party. Can I turn 29 again? *glee* <a href="http://twitter.com/rizwank/statuses/9803658820" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Madrox" class="aktt_username">Madrox</a> now I&#39;m curious. <a href="http://twitter.com/rizwank/statuses/9836145672" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/heathervescent" class="aktt_username">heathervescent</a> I hear you. I feel like a well intentioned foreign exchange student half the them. Thankfully people are often kind. <a href="http://twitter.com/heathervescent/statuses/9830431681" class="aktt_tweet_reply">in reply to heathervescent</a> <a href="http://twitter.com/rizwank/statuses/9836330162" class="aktt_tweet_time">#</a></li>
<li>Sorely needing is a process for organizing the various business ideas that come up. Need to prioritize, archive, develop, followup. Ideas? <a href="http://twitter.com/rizwank/statuses/9944174169" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/jory" class="aktt_username">jory</a> would love to know if you get any great advice. <a href="http://twitter.com/jory/statuses/9939136641" class="aktt_tweet_reply">in reply to jory</a> <a href="http://twitter.com/rizwank/statuses/9944389447" class="aktt_tweet_time">#</a></li>
<li>All about the PyCon wireless network : <a href="http://www.tummy.com/Community/Articles/pycon2010-network/" rel="nofollow">http://www.tummy.com/Community/Articles/pycon2010-network/</a> <a href="http://twitter.com/rizwank/statuses/9988992297" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/gregvaneekhout" class="aktt_username">gregvaneekhout</a> I suspect it&#39;s not that we&#39;re stupider or crazier, but we&#39;re just being exposed to larger groups of people. Selection bias. <a href="http://twitter.com/gregvaneekhout/statuses/9983719771" class="aktt_tweet_reply">in reply to gregvaneekhout</a> <a href="http://twitter.com/rizwank/statuses/9989067971" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/brentbushnell" class="aktt_username">brentbushnell</a> Know if they&#39;re still interested in applicants &#8212; this looks *amazing* <a href="http://twitter.com/brentbushnell/statuses/9989550915" class="aktt_tweet_reply">in reply to brentbushnell</a> <a href="http://twitter.com/rizwank/statuses/9989729241" class="aktt_tweet_time">#</a></li>
<li>I just bought the Mac Heist bundle. 7 Top Mac apps worth $260+ for only $20 and got 3 cool bonus apps free! <a href="http://bit.ly/heist-it" rel="nofollow">http://bit.ly/heist-it</a> <a href="http://twitter.com/rizwank/statuses/10054536303" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/gregvaneekhout" class="aktt_username">gregvaneekhout</a> I&#39;ve never been there before &#8211; looks awesome! <a href="http://twitter.com/gregvaneekhout/statuses/10097198185" class="aktt_tweet_reply">in reply to gregvaneekhout</a> <a href="http://twitter.com/rizwank/statuses/10104690086" class="aktt_tweet_time">#</a></li>
<li>I don&#39;t understand why 50-60 year olds insist upon telling me about the the state of the art in tech, while they&#39;re not aware of Linux. <a href="http://twitter.com/rizwank/statuses/10107061811" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-03-07/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-28</title>
		<link>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-28/</link>
		<comments>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-28/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 20:00:00 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-28/</guid>
		<description><![CDATA[
Hmm, Suzanne Vega is in town right now, performing tonight at Chico.. #
@MartianFrmPlnV wowie! For what! in reply to MartianFrmPlnV #
I think this may be my favorite VHS tape ever.  http://twitpic.com/15j00m #
@Madrox you made my day. in reply to Madrox #
@andysternberg because folks are afraid of bad education, being homeless or unemployed. Not that [...]]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Hmm, Suzanne Vega is in town right now, performing tonight at Chico.. <a href="http://twitter.com/rizwank/statuses/9541888473" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/MartianFrmPlnV" class="aktt_username">MartianFrmPlnV</a> wowie! For what! <a href="http://twitter.com/MartianFrmPlnV/statuses/9660439993" class="aktt_tweet_reply">in reply to MartianFrmPlnV</a> <a href="http://twitter.com/rizwank/statuses/9668566005" class="aktt_tweet_time">#</a></li>
<li>I think this may be my favorite VHS tape ever.  <a href="http://twitpic.com/15j00m" rel="nofollow">http://twitpic.com/15j00m</a> <a href="http://twitter.com/rizwank/statuses/9705067930" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Madrox" class="aktt_username">Madrox</a> you made my day. <a href="http://twitter.com/Madrox/statuses/9699993608" class="aktt_tweet_reply">in reply to Madrox</a> <a href="http://twitter.com/rizwank/statuses/9705180654" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/andysternberg" class="aktt_username">andysternberg</a> because folks are afraid of bad education, being homeless or unemployed. Not that I agree&#8230; <a href="http://twitter.com/andysternberg/statuses/9691211294" class="aktt_tweet_reply">in reply to andysternberg</a> <a href="http://twitter.com/rizwank/statuses/9705644562" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/mikeprasad" class="aktt_username">mikeprasad</a> neat idea! <a href="http://twitter.com/mikeprasad/statuses/9685019653" class="aktt_tweet_reply">in reply to mikeprasad</a> <a href="http://twitter.com/rizwank/statuses/9705725067" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-28/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-21</title>
		<link>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-21/</link>
		<comments>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-21/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 20:00:00 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-21/</guid>
		<description><![CDATA[
Just called sir at the airport parking lot &#8211; by the sort of person who calls any stranger sir (I&#39;m one of them). Disturbing nonetheless. #
@randbot congrats! in reply to randbot #
@boogah I love that area. Go by Cambria next time, I know a little inn there to die for. in reply to boogah #
@boogah [...]]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>Just called sir at the airport parking lot &#8211; by the sort of person who calls any stranger sir (I&#39;m one of them). Disturbing nonetheless. <a href="http://twitter.com/rizwank/statuses/9204303255" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/randbot" class="aktt_username">randbot</a> congrats! <a href="http://twitter.com/randbot/statuses/9202979844" class="aktt_tweet_reply">in reply to randbot</a> <a href="http://twitter.com/rizwank/statuses/9204339365" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/boogah" class="aktt_username">boogah</a> I love that area. Go by Cambria next time, I know a little inn there to die for. <a href="http://twitter.com/boogah/statuses/9201778746" class="aktt_tweet_reply">in reply to boogah</a> <a href="http://twitter.com/rizwank/statuses/9205790598" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/boogah" class="aktt_username">boogah</a> @egradman I&#39;ve used Dreamhost PS and I was decently impressed. <a href="http://twitter.com/boogah/statuses/9193791333" class="aktt_tweet_reply">in reply to boogah</a> <a href="http://twitter.com/rizwank/statuses/9205945904" class="aktt_tweet_time">#</a></li>
<li>Leaving for San Jose for the Billy Joel/Elton John concert tonight. Bonus : Going with one of my dearest friends from undergrad. <a href="http://twitter.com/rizwank/statuses/9206237240" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/boogah" class="aktt_username">boogah</a> off the top of my head, think it&#39;s Little Sur Inn. Do visit Cambria on this trip- eat at Robin&#39;s or Wild Ginger. Have fun! <a href="http://twitter.com/boogah/statuses/9206079858" class="aktt_tweet_reply">in reply to boogah</a> <a href="http://twitter.com/rizwank/statuses/9206289406" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/boogah" class="aktt_username">boogah</a> If I didn&#39;t have 20 of my own servers, I&#39;d be using PS more. That link is neat! <a href="http://twitter.com/boogah/statuses/9206173299" class="aktt_tweet_reply">in reply to boogah</a> <a href="http://twitter.com/rizwank/statuses/9206568422" class="aktt_tweet_time">#</a></li>
<li>Elton John and Billy Joel &#8211; &quot;Dont let the sun go down&quot;  <a href="http://twitpic.com/13pik5" rel="nofollow">http://twitpic.com/13pik5</a> <a href="http://twitter.com/rizwank/statuses/9219777461" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/rebelprince" class="aktt_username">rebelprince</a> Totally random, but I&#39;m with Tara right now! <img src='http://www.geekymedia.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://twitter.com/rebelprince/statuses/9215816345" class="aktt_tweet_reply">in reply to rebelprince</a> <a href="http://twitter.com/rizwank/statuses/9219833296" class="aktt_tweet_time">#</a></li>
<li>&quot;I&#39;m Billy Joel&#39;s dad. Billy was sick today, but I know all of his shit. You&#39;ve got to be saying, man, he&#39;s old!&quot; &#8211; Billy Joel <a href="http://twitter.com/rizwank/statuses/9221523473" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/lifeofreilly" class="aktt_username">lifeofreilly</a> I am. <a href="http://twitter.com/lifeofreilly/statuses/9225907955" class="aktt_tweet_reply">in reply to lifeofreilly</a> <a href="http://twitter.com/rizwank/statuses/9226526913" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/HilaryAndrew" class="aktt_username">HilaryAndrew</a> teehee <a href="http://twitter.com/HilaryAndrew/statuses/9222406128" class="aktt_tweet_reply">in reply to HilaryAndrew</a> <a href="http://twitter.com/rizwank/statuses/9226536687" class="aktt_tweet_time">#</a></li>
<li>RT @<a href="http://twitter.com/codinghorror" class="aktt_username">codinghorror</a>: &quot;all email responses regardless of recipient or subject will be five sentences or less&quot; <a href="http://five.sentenc.es" rel="nofollow">http://five.sentenc.es</a> &#8211; hmm <a href="http://twitter.com/rizwank/statuses/9245144021" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/gregvaneekhout" class="aktt_username">gregvaneekhout</a> are there any pirates or monkeys near by? Or better yet &#8211; Monkees? <a href="http://twitter.com/gregvaneekhout/statuses/9240096603" class="aktt_tweet_reply">in reply to gregvaneekhout</a> <a href="http://twitter.com/rizwank/statuses/9245555406" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/stevenswei" class="aktt_username">stevenswei</a> Andrew used to use Amazon Mechanical Turk to do translations. It went &#8230; okay. <a href="http://twitter.com/stevenswei/statuses/9262570399" class="aktt_tweet_reply">in reply to stevenswei</a> <a href="http://twitter.com/rizwank/statuses/9277386694" class="aktt_tweet_time">#</a></li>
<li>Rate of increase :<br />
Opportunities:exponential.<br />
$/tech resources:quadratic.<br />
Amount of things I can do simultaneously:linear.<br />
This is cruel. <a href="http://twitter.com/rizwank/statuses/9305491272" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/timiat" class="aktt_username">timiat</a> Pink Martini &quot;hang on little tomato&quot;. Billy Joel &quot;The Stranger&quot; <a href="http://twitter.com/timiat/statuses/9335365666" class="aktt_tweet_reply">in reply to timiat</a> <a href="http://twitter.com/rizwank/statuses/9347192591" class="aktt_tweet_time">#</a></li>
<li>Mai Tai&#39;s, Blue Hawaiian&#39;s and Hawaiian Punch. But what drink to make for the sugar/rum overloaded? Margaritas? Whiskey Sours? <a href="http://twitter.com/rizwank/statuses/9364243813" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/lifeofreilly" class="aktt_username">lifeofreilly</a> @HilaryAndrew @<a href="http://twitter.com/Colleenky" class="aktt_username">Colleenky</a> @gregvaneekhout @<a href="http://twitter.com/dustchick" class="aktt_username">dustchick</a> @keltraine &#8211; Jonathan Coulton at the Largo! Whoo hoo! <a href="http://twitter.com/lifeofreilly/statuses/9413671482" class="aktt_tweet_reply">in reply to lifeofreilly</a> <a href="http://twitter.com/rizwank/statuses/9413731700" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/lifeofreilly" class="aktt_username">lifeofreilly</a> grin. They are some hot geek women. <a href="http://twitter.com/lifeofreilly/statuses/9413671482" class="aktt_tweet_reply">in reply to lifeofreilly</a> <a href="http://twitter.com/rizwank/statuses/9413836006" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL5 / CentOS 5 Python 2.62 RPMs</title>
		<link>http://www.geekymedia.com/uncategorized/rhel5-centos-5-python-2-62-rpms/</link>
		<comments>http://www.geekymedia.com/uncategorized/rhel5-centos-5-python-2-62-rpms/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 02:53:34 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=38</guid>
		<description><![CDATA[I created a repository at Geekymedia RPMs that contains :
Bashton&#8217;s EL5 Python 2.5
My EL5 Python 2.6
Chris Lea&#8217;s EL5 Python 2.62 (http://yum.chrislea.com/centos/5/SRPMS/)
Projects to do:
Python 2.64
Asterisk 1.62 for AsteriskNOW!
Download this repo file and place in /etc/yum.repos.d.
Enjoy.
]]></description>
			<content:encoded><![CDATA[<p>I created a repository at <a href="http://mirrors.geekymedia.com/centos/">Geekymedia RPMs</a> that contains :</p>
<p>Bashton&#8217;s EL5 Python 2.5<br />
My EL5 Python 2.6<br />
Chris Lea&#8217;s EL5 Python 2.62 (http://yum.chrislea.com/centos/5/SRPMS/)</p>
<p>Projects to do:<br />
Python 2.64<br />
Asterisk 1.62 for AsteriskNOW!</p>
<p>Download this <a href="http://mirrors.geekymedia.com/centos/geekymedia.repo">repo</a> file and place in /etc/yum.repos.d.</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/uncategorized/rhel5-centos-5-python-2-62-rpms/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Twitter Weekly Updates for 2010-02-16</title>
		<link>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-16/</link>
		<comments>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-16/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 20:00:00 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-16/</guid>
		<description><![CDATA[
I decided to stop working 1.8 hrs ago &#8211; I&#39;m just now pulling myself away and having a meal before the clubs. I have no discipline. #
@RichardABecker I haven&#39;t had an eight hour workday since I was 14. I&#39;m told it&#39;s doable, but first step is to lose the home office. in reply to RichardABecker [...]]]></description>
			<content:encoded><![CDATA[<ul class="aktt_tweet_digest">
<li>I decided to stop working 1.8 hrs ago &#8211; I&#39;m just now pulling myself away and having a meal before the clubs. I have no discipline. <a href="http://twitter.com/rizwank/statuses/8841563211" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/RichardABecker" class="aktt_username">RichardABecker</a> I haven&#39;t had an eight hour workday since I was 14. I&#39;m told it&#39;s doable, but first step is to lose the home office. <a href="http://twitter.com/RichardABecker/statuses/8841883342" class="aktt_tweet_reply">in reply to RichardABecker</a> <a href="http://twitter.com/rizwank/statuses/8847418700" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Colleenky" class="aktt_username">Colleenky</a> mmmm cheese <a href="http://twitter.com/Colleenky/statuses/8846244098" class="aktt_tweet_reply">in reply to Colleenky</a> <a href="http://twitter.com/rizwank/statuses/8847437877" class="aktt_tweet_time">#</a></li>
<li>I have never regretted going out 80s clubbing, ever, in my life. I have to get Enigma out to Blue or Clockwork soon &#8211; it&#39;s high time. <a href="http://twitter.com/rizwank/statuses/8847534074" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/dustchick" class="aktt_username">dustchick</a> what&#39;s so terrible about French, save for it&#39;s lack of relevance? <a href="http://twitter.com/dustchick/statuses/8831854981" class="aktt_tweet_reply">in reply to dustchick</a> <a href="http://twitter.com/rizwank/statuses/8847581745" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/cyuskoff" class="aktt_username">cyuskoff</a> where? <a href="http://twitter.com/cyuskoff/statuses/8839202060" class="aktt_tweet_reply">in reply to cyuskoff</a> <a href="http://twitter.com/rizwank/statuses/8847604867" class="aktt_tweet_time">#</a></li>
<li>Damned openwsman update uses /dev/random rather than urandom in cert generation. In a boot script. Drove to server to fix after 2hr wait. <a href="http://twitter.com/rizwank/statuses/8923830452" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/andysternberg" class="aktt_username">andysternberg</a> jazz in LA? <a href="http://twitter.com/andysternberg/statuses/8891650516" class="aktt_tweet_reply">in reply to andysternberg</a> <a href="http://twitter.com/rizwank/statuses/8923903382" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/stevenswei" class="aktt_username">stevenswei</a> grin. Using other languages since Py makes me sad. <a href="http://twitter.com/stevenswei/statuses/8896471685" class="aktt_tweet_reply">in reply to stevenswei</a> <a href="http://twitter.com/rizwank/statuses/8924031288" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/timiat" class="aktt_username">timiat</a> what should they have taken out instead? <a href="http://twitter.com/timiat/statuses/8912415199" class="aktt_tweet_reply">in reply to timiat</a> <a href="http://twitter.com/rizwank/statuses/8924134843" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/kjkjerstin" class="aktt_username">kjkjerstin</a> I lost mine in Hawaii. (Pilot Knight) Bought a new one the day I got home. I know your pain. <a href="http://twitter.com/kjkjerstin/statuses/8922260139" class="aktt_tweet_reply">in reply to kjkjerstin</a> <a href="http://twitter.com/rizwank/statuses/8924432720" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/andysternberg" class="aktt_username">andysternberg</a> I assumed I (and you) would be at a BIL event. <a href="http://twitter.com/andysternberg/statuses/8925046999" class="aktt_tweet_reply">in reply to andysternberg</a> <a href="http://twitter.com/rizwank/statuses/8949423691" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/timiat" class="aktt_username">timiat</a> pretty good way of influencing basic users to upgrade without taking away real functionality. Sounds saavy (and evil) to me. <a href="http://twitter.com/timiat/statuses/8927107521" class="aktt_tweet_reply">in reply to timiat</a> <a href="http://twitter.com/rizwank/statuses/8949605649" class="aktt_tweet_time">#</a></li>
<li>While it definitely took away from my plans for today, that last hour debugging/fixing that SQL Server locking issue felt really good. <a href="http://twitter.com/rizwank/statuses/8986575081" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/andysternberg" class="aktt_username">andysternberg</a> Sad I didn&#39;t make it &#8211; sounds like you enjoyed yourself though. <a href="http://twitter.com/andysternberg/statuses/9047387278" class="aktt_tweet_reply">in reply to andysternberg</a> <a href="http://twitter.com/rizwank/statuses/9049114504" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/mikeprasad" class="aktt_username">mikeprasad</a> are you at the food cart festival? <a href="http://twitter.com/mikeprasad/statuses/9069862675" class="aktt_tweet_reply">in reply to mikeprasad</a> <a href="http://twitter.com/rizwank/statuses/9070188523" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Wishme" class="aktt_username">Wishme</a> man, now I want one too. <a href="http://twitter.com/Wishme/statuses/9069353537" class="aktt_tweet_reply">in reply to Wishme</a> <a href="http://twitter.com/rizwank/statuses/9070203624" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Colleenky" class="aktt_username">Colleenky</a> turns out the Goodwill on Santa Monica does ewaste recycling for free. <a href="http://twitter.com/Colleenky/statuses/9070904441" class="aktt_tweet_reply">in reply to Colleenky</a> <a href="http://twitter.com/rizwank/statuses/9071600304" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/stevenswei" class="aktt_username">stevenswei</a> did you ever end up reading their ebook? <a href="http://twitter.com/stevenswei/statuses/9070881437" class="aktt_tweet_reply">in reply to stevenswei</a> <a href="http://twitter.com/rizwank/statuses/9071628478" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/chews" class="aktt_username">chews</a> did you go to PS or LB this year? I think I missed the window to apply for next year <img src='http://www.geekymedia.com/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <a href="http://twitter.com/chews/statuses/9070263824" class="aktt_tweet_reply">in reply to chews</a> <a href="http://twitter.com/rizwank/statuses/9071659888" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/Wishme" class="aktt_username">Wishme</a> we&#39;re going late March &#8211; it can&#39;t come soon enough. <a href="http://twitter.com/Wishme/statuses/9070261284" class="aktt_tweet_reply">in reply to Wishme</a> <a href="http://twitter.com/rizwank/statuses/9071680817" class="aktt_tweet_time">#</a></li>
<li>Now to find a Viking Costume for tonight. <a href="http://twitter.com/rizwank/statuses/9074954006" class="aktt_tweet_time">#</a></li>
<li>Man, a Gil Elvgren pop-up book. Pin-ups for the five year old crowd. Egads. <a href="http://twitter.com/rizwank/statuses/9077535589" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/andysternberg" class="aktt_username">andysternberg</a> *why am I not surprised you are at lucent? <img src='http://www.geekymedia.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://twitter.com/andysternberg/statuses/9090535699" class="aktt_tweet_reply">in reply to andysternberg</a> <a href="http://twitter.com/rizwank/statuses/9093863262" class="aktt_tweet_time">#</a></li>
<li>RT @<a href="http://twitter.com/ThatKevinSmith" class="aktt_username">ThatKevinSmith</a>: &quot;No threesome with the Missus then?&quot; On Valentine&#39;s Day? Please, sir &#8211; we&#39;re in love. The threesome&#39;s the night before. <a href="http://twitter.com/rizwank/statuses/9094104167" class="aktt_tweet_time">#</a></li>
<li>In the fantastic kitchen of a notable director. Funny thing to realize &#8211; &quot;I actually prefer mine to this one.&quot; except for hanging pot rack <a href="http://twitter.com/rizwank/statuses/9094205925" class="aktt_tweet_time">#</a></li>
<li>@<a href="http://twitter.com/dustchick" class="aktt_username">dustchick</a> ask and ye shall recieve.  <a href="http://twitpic.com/136tax" rel="nofollow">http://twitpic.com/136tax</a> <a href="http://twitter.com/dustchick/statuses/9078438372" class="aktt_tweet_reply">in reply to dustchick</a> <a href="http://twitter.com/rizwank/statuses/9095450462" class="aktt_tweet_time">#</a></li>
<li>Although I wouldn&#39;t mind having an indoor hottub. <a href="http://twitter.com/rizwank/statuses/9095460841" class="aktt_tweet_time">#</a></li>
</ul>
<p class="aktt_credit">Powered by <a href="http://alexking.org/projects/wordpress">Twitter Tools</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/uncategorized/twitter-weekly-updates-for-2010-02-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few distractions&#8230; openwsman and SQL Server taming</title>
		<link>http://www.geekymedia.com/tech-articles/a-few-distractions-openwsman-and-sql-server-taming/</link>
		<comments>http://www.geekymedia.com/tech-articles/a-few-distractions-openwsman-and-sql-server-taming/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 04:51:19 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=32</guid>
		<description><![CDATA[Tasks keeping me away from what I&#8217;d rather be doing this past few days :
Did some updates on tardis, our general purpose linux server (all the servers have names from Dr. Who) &#8211; and updated the Dell OpenManage tools. Reboot. Simple, right? 
The machine responded to pings, and nothing else. 
It was 2pm. Traffic in [...]]]></description>
			<content:encoded><![CDATA[<p>Tasks keeping me away from what I&#8217;d rather be doing this past few days :</p>
<p>Did some updates on tardis, our general purpose linux server (all the servers have names from Dr. Who) &#8211; and updated the Dell OpenManage tools. Reboot. Simple, right? </p>
<p>The machine responded to pings, and nothing else. </p>
<p>It was 2pm. Traffic in LA becomes a nightmare somewhere around 3:30pm. Jumped in the car to crash cart the server (because the tech on site didn&#8217;t know what a crash cart was and when I described it &#8211; said &#8216;that sounds complicated.&#8217; Not happy with our colo right now.)</p>
<p>Arrived to find the server paused &#8212; not hung, just waiting, on a &#8220;Starting openwsmand&#8230;&#8221; message. Turns out, there&#8217;s a new service in the latest version of OpenManage that requires a new OpenSSL certificate for functioning. This, on it&#8217;s own, is okay &#8211; but two problems :</p>
<ol>
<li>The cert is generated by the boottime init.d script if it&#8217;s missing.</li>
<li>The cert is generated using /dev/random as the entropy source</li>
</ol>
<p>The latter is a security concern, but should never be paired with the top. I&#8217;ve had servers hang for hours waiting for /dev/random to generate enough entropy. </p>
<p>This was easily enough fixed, but the stress of driving like a madman, (and back) to make it before traffic shut down all routes to West LA was something I could do without. I&#8217;m going to patch against the project and see if they&#8217;ll fix this ridiculous behavior, and I&#8217;ve started looking into a remote KVM solution like <a href="http://www.epiphan.com/products/frame-grabbers/kvm2ethernet/">kvm2ethernet</a> &#8211; just call the colo and ask them to plug into a particular server. Thanks to <a href="http://ckdake.com/content/2010/debugging-a-particular-failing-boot-service-on-linux.html">this post</a> for cutting the debugging time massively. </p>
<hr />
<p>The other issue was that customers weren&#8217;t able to sign up for bits of today because there was a lock residing on one of our DB tables. We purge our Database (about 50G) monthly, but the cruft of leftover billing records take up huge amounts of space and deleting them can be a problem &#8211; long table scans, and Microsoft SQL Server does a table lock &#8211; and that&#8217;s the ball game. The credit card server can&#8217;t track that a valid charge was placed, so it terminates instead. We started with a query from our Marketer/Data Analysis guy looking like :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> billing <span style="color: #993333; font-weight: bold;">WHERE</span> 
			<span style="color: #993333; font-weight: bold;">AND</span> start_date_time <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'18-JUL-2009'</span> 
			<span style="color: #993333; font-weight: bold;">AND</span> start_date_time <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'24-JUL-2009'</span>
			<span style="color: #993333; font-weight: bold;">AND</span> node_type <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p>(He wanted to delete up until 30-AUG, but was slicing it up in the hopes of avoiding this problem.)</p>
<p>The above is about 300,000 rows. </p>
<p>A few issues, however :</p>
<ol>
<li>billing has a clustered index around account_id. This makes perfect sense, the data is almost always referenced with respect to a particular customer, and ensuring that those records are all adjacent to each other on storage is common sense. However, the above query would be running all around the 9Gb table removing rows.</li>
<li>billing doesn&#8217;t have an index on node_type, meaning each row has to be fetched before it can be selected for deletion. </li>
</ol>
<p>The latter is less of a problem if the select and the delete were separated, but the table lock existed throughout the query. </p>
<p>In looking to solve it, one approach was to force MSSQL to use ROWLOCK (and <a href="http://blogs.msdn.com/sqlserverstorageengine/archive/2006/05/17/Lock-escalation.aspx">disable escalation</a> from ROWLOCK to TABLELOCK), but this was going to be a performance hit. I considered trying NOLOCK, but I wasn&#8217;t sure of what the ramifications would be, and I really didn&#8217;t want to spend hours fixing a crash database/corrupted data.</p>
<p>The final solution was to carve up the deletes into more manageable bits. SQL Server Interactive can be set to execute on a limited number of rows &#8211; so we could delete, say, 1000 rows, pause (let other things have access to the table), and then continue. And, now that we know about the clustering, why make the DELETE run across the entire table &#8211; why not allow it to trim one section at a time? And thusly we have&#8230;<br />
(I&#8217;m not really familiar with SQL Server Syntax, so this is a first effort. It&#8217;s lousy code, but a decent query)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;">DECLARE @ACCOUNTSTEP int
DECLARE @WINDOWMIN int
DECLARE @WINDOWMAX int
DECLARE @ACCOUNTMAX int
DECLARE @WINDOWCOUNT int
DECLARE @STEPS int
&nbsp;
<span style="color: #993333; font-weight: bold;">SET</span> @STEPS <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">20</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">SET</span> @ACCOUNTMAX <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> max<span style="color: #66cc66;">&#40;</span>account_id<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">FROM</span> accounts<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SET</span> @ACCOUNTSTEP <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>ceiling<span style="color: #66cc66;">&#40;</span>@ACCOUNTMAX <span style="color: #66cc66;">*</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">/</span>@STEPS<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SET</span> @WINDOWMAX<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
<span style="color: #993333; font-weight: bold;">SET</span> @WINDOWCOUNT<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">0</span>
PRINT CAST<span style="color: #66cc66;">&#40;</span>@STEPS <span style="color: #993333; font-weight: bold;">AS</span> CHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'+1 Steps of Size '</span> <span style="color: #66cc66;">+</span> CAST<span style="color: #66cc66;">&#40;</span>@ACCOUNTSTEP <span style="color: #993333; font-weight: bold;">AS</span> CHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' leading up to '</span> <span style="color: #66cc66;">+</span> CAST<span style="color: #66cc66;">&#40;</span>@ACCOUNTMAX <span style="color: #993333; font-weight: bold;">AS</span> CHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SET</span> ROWCOUNT <span style="color: #cc66cc;">2000</span>
&nbsp;
moreaccounts:
	<span style="color: #993333; font-weight: bold;">SET</span> @WINDOWCOUNT <span style="color: #66cc66;">=</span> @WINDOWCOUNT <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span>
	<span style="color: #993333; font-weight: bold;">SET</span> @WINDOWMIN <span style="color: #66cc66;">=</span> @WINDOWMAX
	<span style="color: #993333; font-weight: bold;">SET</span> @WINDOWMAX <span style="color: #66cc66;">=</span> @ACCOUNTSTEP <span style="color: #66cc66;">*</span> @WINDOWCOUNT
	<span style="color: #993333; font-weight: bold;">IF</span> @WINDOWMIN <span style="color: #66cc66;">&gt;</span> @ACCOUNTMAX GOTO done
	PRINT <span style="color: #ff0000;">'Now processing accounts between '</span> <span style="color: #66cc66;">+</span> CAST<span style="color: #66cc66;">&#40;</span>@WINDOWMIN <span style="color: #993333; font-weight: bold;">AS</span> char<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' and '</span> <span style="color: #66cc66;">+</span> CAST<span style="color: #66cc66;">&#40;</span>@WINDOWMAX <span style="color: #993333; font-weight: bold;">AS</span> char<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	deletemore:	
		PRINT <span style="color: #ff0000;">'Deleting 2000 rows.'</span>
		waitfor delay <span style="color: #ff0000;">'0:0:01'</span>
		<span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> billing <span style="color: #993333; font-weight: bold;">WHERE</span> account_id <span style="color: #66cc66;">&gt;=</span> @WINDOWMIN <span style="color: #993333; font-weight: bold;">AND</span> account_id <span style="color: #66cc66;">&lt;</span> @WINDOWMAX 
			<span style="color: #993333; font-weight: bold;">AND</span> start_date_time <span style="color: #66cc66;">&gt;=</span> <span style="color: #ff0000;">'18-JUL-2009'</span> 
			<span style="color: #993333; font-weight: bold;">AND</span> start_date_time <span style="color: #66cc66;">&lt;</span> <span style="color: #ff0000;">'30-AUG-2009'</span>
			<span style="color: #993333; font-weight: bold;">AND</span> node_type <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #993333; font-weight: bold;">IF</span> @@ROWCOUNT <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> GOTO deletemore
	PRINT <span style="color: #ff0000;">'Done with this set. Sleeping.'</span>
	waitfor delay <span style="color: #ff0000;">'0:0:03'</span>
	GOTO moreaccounts
done:</pre></td></tr></table></div>

<p>Which effectively breaks out to :</p>
<ul>
<li>Get the total number of accounts</li>
<li>For every twentieth window of accounts</li>
<ul>Delete 2000 rows. Wait a second. Repeat until all rows gone.</ul>
<li>Wait three seconds.</li>
</ul>
<p>Ran the query, no locking issues at all, Table purged in about an hour. Victory!</p>
<hr />
<p>I wanted to get Zabbix monitoring working for our Asterisk boxen &#8211; I went a bit overboard, and resulted in <a href="http://www.geekymedia.com/tech-articles/29/">zasterisk</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/tech-articles/a-few-distractions-openwsman-and-sql-server-taming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zabbix-asterisk released.</title>
		<link>http://www.geekymedia.com/tech-articles/29/</link>
		<comments>http://www.geekymedia.com/tech-articles/29/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 04:12:13 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=29</guid>
		<description><![CDATA[I whipped a script together that logs into the Asterisk AMI and returns some key Asterisk data for Zabbix, my favorite server management tool:
Skype (Licenses,Calls)
G729 (Licenses, Encoders,Decoders)
Asterisk (Calls, Channels)
This is all without the yucky launching of the asterisk CLI or dealing with sudoers. There&#8217;s a semaphore lock in place (making this Linux/UNIX only for now) [...]]]></description>
			<content:encoded><![CDATA[<p>I whipped a script together that logs into the Asterisk AMI and returns some key Asterisk data for <a href="http://www.zabbix.com">Zabbix</a>, my favorite server management tool:</p>
<p>Skype (Licenses,Calls)<br />
G729 (Licenses, Encoders,Decoders)<br />
Asterisk (Calls, Channels)</p>
<p>This is all without the yucky launching of the asterisk CLI or dealing with sudoers. There&#8217;s a semaphore lock in place (making this Linux/UNIX only for now) to prevent the AMI from being accessed by more than one check at a time.</p>
<p>Details are available here : <a href=" http://code.google.com/p/zabbix-asterisk/">Google Code for Zasterisk</a></p>
<p>As always, would love feedback, bug reports, patches, or suggestions for new features. It&#8217;s *very* raw, I&#8217;m just getting it out there to have it out there, but I know there&#8217;s stuff to clean up/fix. It&#8217;s missing an XML import file as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/tech-articles/29/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Replacing twisted if/else statements in Python&#8230;</title>
		<link>http://www.geekymedia.com/tech-articles/replacing-twisted-ifelse-statements-in-python/</link>
		<comments>http://www.geekymedia.com/tech-articles/replacing-twisted-ifelse-statements-in-python/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 03:02:36 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=26</guid>
		<description><![CDATA[I&#8217;ve been having a growing love affair with Python for over a year, and now that I&#8217;ve got a few projects that I&#8217;m working on &#8211; I&#8217;m using Python as my primary language.
I had a happy moment when refactoring a section of annoying if/then/else sections &#8230;

if object.type == &#34;Vendor1&#34;:
    foo = Vendor1&#40;&#41;
elif [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a growing love affair with Python for over a year, and now that I&#8217;ve got a few projects that I&#8217;m working on &#8211; I&#8217;m using Python as my primary language.</p>
<p>I had a happy moment when refactoring a section of annoying if/then/else sections &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">object</span>.<span style="color: #008000;">type</span> == <span style="color: #483d8b;">&quot;Vendor1&quot;</span>:
    foo = Vendor1<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">elif</span> <span style="color: #008000;">object</span>.<span style="color: #008000;">type</span> == <span style="color: #483d8b;">&quot;Vendor2&quot;</span>:
    foo = Vendor2<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">elif</span> <span style="color: #008000;">object</span>.<span style="color: #008000;">type</span> == <span style="color: #483d8b;">&quot;Vendor3&quot;</span>:
    foo = Vendor3<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">else</span>:
    <span style="color: #ff7700;font-weight:bold;">raise</span> <span style="color: #008000;">Exception</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Not a handled type&quot;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Python is a functional language, and this means (among other things) that functions, classes, and all sorts of stuff can exist in dictionaries. So, instead, I can do</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">lookup = <span style="color: black;">&#123;</span> <span style="color: #483d8b;">&quot;Vendor1&quot;</span> =<span style="color: #66cc66;">&gt;</span> Vendor1, <span style="color: #483d8b;">&quot;Vendor2&quot;</span> =<span style="color: #66cc66;">&gt;</span> Vendor2, <span style="color: #483d8b;">&quot;Vendor3&quot;</span> =<span style="color: #66cc66;">&gt;</span> Vendor3<span style="color: black;">&#125;</span>
<span style="color: #ff7700;font-weight:bold;">try</span>:
    foo = lookup<span style="color: black;">&#91;</span><span style="color: #008000;">object</span>.<span style="color: #008000;">type</span><span style="color: black;">&#93;</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
<span style="color: #ff7700;font-weight:bold;">except</span> <span style="color: #008000;">KeyError</span>:
    <span style="color: #ff7700;font-weight:bold;">raise</span> <span style="color: #008000;">Exception</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;Not a handled type&quot;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>It&#8217;s not a big thing, but it made me happy &#8212; and the example can be extended &#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;">lookup = <span style="color: black;">&#123;</span> 
    <span style="color: #483d8b;">&quot;Vendor1&quot;</span> =<span style="color: #66cc66;">&gt;</span> <span style="color: black;">&#123;</span> <span style="color: #483d8b;">&quot;url&quot;</span> =<span style="color: #66cc66;">&gt;</span> blah, <span style="color: #483d8b;">&quot;threads&quot;</span> =<span style="color: #66cc66;">&gt;</span><span style="color: #483d8b;">&quot;blah&quot;</span>, <span style="color: #483d8b;">&quot;obj&quot;</span> =<span style="color: #66cc66;">&gt;</span> Vendor1<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span> <span style="color: black;">&#125;</span>
<span style="color: black;">&#125;</span>
&nbsp;
lookup<span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;Vendor1&quot;</span><span style="color: black;">&#93;</span><span style="color: black;">&#91;</span><span style="color: #483d8b;">&quot;url&quot;</span><span style="color: black;">&#93;</span>
<span style="color: #808080; font-style: italic;">#equals blah</span></pre></div></div>

<p>Today, it&#8217;s all about the little things. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/tech-articles/replacing-twisted-ifelse-statements-in-python/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fixing the front headphone jack on the Dell Dimension</title>
		<link>http://www.geekymedia.com/tech-articles/fixing-the-front-headphone-jack-on-the-dell-dimension/</link>
		<comments>http://www.geekymedia.com/tech-articles/fixing-the-front-headphone-jack-on-the-dell-dimension/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 21:16:00 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Tech Articles]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=21</guid>
		<description><![CDATA[So, I&#8217;ve got a Dell Dimension 8400. One nice tidbit that they included was a front headphone plug that actually interrupts the speaker output; not a difficult thing to do, granted, but its nice. One thing that surprised me was that the Windows Startup sound WOULD be played out the main speakers no matter what [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve got a Dell Dimension 8400. One nice tidbit that they included was a front headphone plug that actually interrupts the speaker output; not a difficult thing to do, granted, but its nice. One thing that surprised me was that the Windows Startup sound WOULD be played out the main speakers no matter what &#8212; making me realize that the interrupt was a software function, not a hardware switch.</p>
<p>Until it stopped working last week. Hours of time w/ Dell Support (which, by the way, seems to be outsourced to New Delhi and not a single person fully understood my problem), Dell forums and Google gave me little. The deal is, is that the Audigys normally come with a front panel with plugs; which isn&#8217;t available in the Dell world. And yet, it still uses that internal routing to handle the headphone plug.</p>
<p>So, has your headphone switch in stopped working? Reinstalling the Dell drivers does nothing. Google suggests that you turn on the setting in the AudioHQ control panel &#8212; but it isn&#8217;t there.<br />
<img class="alignnone size-full wp-image-23" title="dell_audigy" src="http://www.geekymedia.com/wordpress/wp-content/uploads/2009/11/dell_audigy.gif" alt="dell_audigy" width="843" height="416" /></p>
<p>Installing Creative&#8217;s stock drivers over your Dell drivers just gives me the shivers. Oh, and it doesn&#8217;t work. All I ended up doing was finding a driver package, say, for instance,<a style="font-family: verdana, arial, sans-serif; color: #003366;" href="http://www.google.com/search?sourceid=mozclient&amp;num=20&amp;ie=utf-8&amp;oe=utf-8&amp;q=SBA2_PCWDRV_LB_1_84_55-R1">SBA2_PCWDRV_LB_1_84_55-R1</a>. Extract the archive (run it and look in your temp directory while its running; or even better, just use WinRAR to extract it), and go to Drivers\WDM\Common\ and run CTPanel.exe. (Or just download my <a style="font-family: verdana, arial, sans-serif; color: #003366;" href="http://www.geekymedia.com/media/audigy_ctpanel.zip">copy</a>).</p>
<p>Run it, go to device settings, and voila! &#8220;Mute speakers upon Headphone Jack Detection.&#8221;</p>
<p><img class="alignnone size-full wp-image-22" title="creative_audigy" src="http://www.geekymedia.com/wordpress/wp-content/uploads/2009/11/creative_audigy.gif" alt="creative_audigy" width="601" height="556" /></p>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/tech-articles/fixing-the-front-headphone-jack-on-the-dell-dimension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This American Life</title>
		<link>http://www.geekymedia.com/tech-articles/this-american-life/</link>
		<comments>http://www.geekymedia.com/tech-articles/this-american-life/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 20:56:50 +0000</pubDate>
		<dc:creator>Rizwan Kassim</dc:creator>
				<category><![CDATA[Tech Articles]]></category>

		<guid isPermaLink="false">http://www.geekymedia.com/?p=18</guid>
		<description><![CDATA[I used to host a large archive of &#8216;This American Life&#8217; in MP3 format before they had it available on their website as a podcast.
I was contacted, quite politely, and asked to remove the files from access, and I complied. 
Go to TAL and stream down the eps or use the podcast.
]]></description>
			<content:encoded><![CDATA[<p>I used to host a large archive of &#8216;This American Life&#8217; in MP3 format before they had it available on their website as a podcast.</p>
<p>I was contacted, quite politely, and asked to remove the files from access, and I complied. </p>
<p>Go to <a href="http://thislife.org">TAL</a> and stream down the eps or use the podcast.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekymedia.com/tech-articles/this-american-life/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
