<?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>Dashifen.com &#187; Other Stuff</title>
	<atom:link href="http://dashifen.com/category/other_stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://dashifen.com</link>
	<description>The online musings of an unrepentant geek.</description>
	<lastBuildDate>Wed, 18 Jan 2012 23:30:51 +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>Socially Acceptable Man Purse?</title>
		<link>http://dashifen.com/socially-acceptable-man-purse/</link>
		<comments>http://dashifen.com/socially-acceptable-man-purse/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 15:15:00 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[gender]]></category>
		<category><![CDATA[society]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=186</guid>
		<description><![CDATA[Sometimes I wish it were socially acceptable for a male to carry a purse in today&#8217;s American culture. Granted, as a man in my 30&#8242;s, I&#8217;m less worried about getting my butt kicked at recess for being different, but I think a purse would still be over the line for many. Here&#8217;s my argument: as [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I wish it were socially acceptable for a male to carry a purse in today&#8217;s American culture. Granted, as a man in my 30&#8242;s, I&#8217;m less worried about getting my butt kicked at recess for being different, but I think a purse would still be over the line for many.</p>
<p>Here&#8217;s my argument: as a male, it&#8217;s already okay to carry a briefcase or laptop bag. However there&#8217;s few smaller options for when you don&#8217;t need all that space. Take today for instance. I needed to bring with me</p>
<ul>
<li>a novel,</li>
<li>my headphones and their charger,</li>
<li>an iPod,</li>
<li>coffee mug,</li>
<li>a yogurt for breakfast.</li>
</ul>
<p>That amount of stuff doesn&#8217;t require either of the two aforementioned personal bags. They&#8217;re almost too big with out smaller pockets for some of the stuff!  A purse would have been perfect.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/socially-acceptable-man-purse/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Pet-Peeve: Bus Sitters</title>
		<link>http://dashifen.com/pet-peeve-bus-sitters/</link>
		<comments>http://dashifen.com/pet-peeve-bus-sitters/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 19:42:41 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[pet-peeve]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=180</guid>
		<description><![CDATA[Quick rant:  I hate people who site in the aisle seat on a bus and refuse to move into the window one as more people arrive.  I&#8217;ll admit that I&#8217;ll sit on the aisle when there are available seats elsewhere, but as the bus fills, I&#8217;ll either stand or move over to the window. I [...]]]></description>
			<content:encoded><![CDATA[<p>Quick rant:  I hate people who site in the aisle seat on a bus and refuse to move into the window one as more people arrive.  I&#8217;ll admit that I&#8217;ll sit on the aisle when there are available seats elsewhere, but as the bus fills, I&#8217;ll either stand or move over to the window.</p>
<p>I guess there are personal space issues and gods know that not everyone who gets on a bus is a person you wish to sit next to, but at least stand if you want to try and maintain some personal space! Don&#8217;t just sit there being a douche as others clearly wish to sit.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/pet-peeve-bus-sitters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lehigh Valley in the News!</title>
		<link>http://dashifen.com/lehigh-valley-in-the-news/</link>
		<comments>http://dashifen.com/lehigh-valley-in-the-news/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 15:11:41 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=157</guid>
		<description><![CDATA[via In PA&#8217;s Lehigh Valley, high voter turnout is &#8216;shocking polls workers&#8217;. Always nice to see the stomping grounds in the news.  Even better to see that it&#8217;s a story about higher then expected voter turn out.  Let&#8217;s hope that this keeps up.  Whether you&#8217;re Republican, Democrat, Independent, Green, Libertarian, or whatever, go vote!]]></description>
			<content:encoded><![CDATA[<p>via <a href="http://feedproxy.google.com/~r/Americablog/~3/ULk_vTQxh_o/in-pas-lehigh-valley-high-voter-turnout.html">In PA&#8217;s Lehigh Valley, high voter turnout is &#8216;shocking polls workers&#8217;</a>.</p>
<p>Always nice to see the stomping grounds in the news.  Even better to see that it&#8217;s a story about higher then expected voter turn out.  Let&#8217;s hope that this keeps up.  Whether you&#8217;re Republican, Democrat, Independent, Green, Libertarian, or whatever, go vote!</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/lehigh-valley-in-the-news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Insuffisciently Left&#8221;</title>
		<link>http://dashifen.com/insuffisciently-left/</link>
		<comments>http://dashifen.com/insuffisciently-left/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 14:14:25 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=155</guid>
		<description><![CDATA[Kuttner on Obama and the elections tomorrow: [L]iberals are dismayed with Obama not because this or that initiative was insufficiently lefty. They are mad at Obama for blowing what had to be a Roosevelt moment, and thereby ushering in a totally needless period of far-right resurgence, dominated by a lunatic right that makes Newt Gingrich [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://feedproxy.google.com/~r/Americablog/~3/IL1GLIS42lw/kuttner-on-obama-and-elections-tomorrow.html">Kuttner on Obama and the elections tomorrow</a>:</p>
<blockquote><p>[L]iberals are dismayed with Obama not because this or that initiative was insufficiently <span class="highlighted0">lefty</span>.  They are mad at Obama for blowing what had to be a Roosevelt moment,  and thereby ushering in a totally needless period of far-right  resurgence, dominated by a lunatic right that makes Newt Gingrich and  Karl Rove look like moderates.</p></blockquote>
<p>Actually, some of us are dismayed not only at the loss of some sort of Roosevelt moment, but because the initiatives were also &#8220;insufficiently lefty.&#8221;  Just sayin&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/insuffisciently-left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doors and Locks</title>
		<link>http://dashifen.com/doors-and-locks/</link>
		<comments>http://dashifen.com/doors-and-locks/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 15:36:37 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[psychology]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=153</guid>
		<description><![CDATA[I&#8217;m not sure what it say about my psychology that I frequently try to open my office door with my house key and the front door of my house with my office key.  Probably something disturbing&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure what it say about my psychology that I frequently try to open my office door with my house key and the front door of my house with my office key.  Probably something disturbing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/doors-and-locks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>British Angler Catches an Elusive Giant Piranha : TreeHugger</title>
		<link>http://dashifen.com/british-angler-catches-an-elusive-giant-piranha-treehugger/</link>
		<comments>http://dashifen.com/british-angler-catches-an-elusive-giant-piranha-treehugger/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 21:42:57 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[AH!]]></category>
		<category><![CDATA[fish]]></category>
		<category><![CDATA[nature]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=150</guid>
		<description><![CDATA[I&#8217;m not sure I&#8217;ll ever sleep again.  The River Monsters guy just fished this thing up out of the Congo: Here&#8217;s the full story: British Angler Catches an Elusive Giant Piranha : TreeHugger.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure I&#8217;ll ever sleep again.  The River Monsters guy just fished this thing up out of the Congo:</p>
<p style="text-align: center;"><a href="http://www.treehugger.com/files/2010/10/british-angler-catches-an-elusive-giant-pirahna.php?campaign=th_rss&amp;utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+treehuggersite+%28Treehugger%29&amp;utm_content=Google+Reader"><img src='http://dashifen.com/wp-content/uploads/2010/10/goliath-tigerfish.jpg' alt='Goliath Tigerfish a.k.a. Giant Piranha' /></a></p>
<p>Here&#8217;s the full story: <a href="http://www.treehugger.com/files/2010/10/british-angler-catches-an-elusive-giant-pirahna.php?campaign=th_rss&amp;utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+treehuggersite+%28Treehugger%29&amp;utm_content=Google+Reader">British Angler Catches an Elusive Giant Piranha : TreeHugger</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/british-angler-catches-an-elusive-giant-piranha-treehugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some work to stop anti-puppy mill bill in Missouri</title>
		<link>http://dashifen.com/some-work-to-stop-anti-puppy-mill-bill-in-missouri/</link>
		<comments>http://dashifen.com/some-work-to-stop-anti-puppy-mill-bill-in-missouri/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 16:36:28 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[current events]]></category>
		<category><![CDATA[sigh]]></category>
		<category><![CDATA[tea party]]></category>

		<guid isPermaLink="false">http://dashifen.com/some-work-to-stop-anti-puppy-mill-bill-in-missouri/</guid>
		<description><![CDATA[A conservative group. Alliance For Truth, which has the backing of Tea Party groups and Joe the Plumber (I didn&#8217;t even know he was still around) is working to stop an anti-puppy mill bill in Missouri. According to the Alliance For Truth, the Humane Society (which backs the bill, obviously) has a &#8220;radical agenda&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>A conservative group. Alliance For Truth, which has the backing of Tea Party groups and Joe the Plumber (I didn&#8217;t even know he was still around) is working to stop an anti-puppy mill bill in Missouri.</p>
<p>According to the Alliance For Truth, the Humane Society (which backs the bill, obviously) has a &#8220;radical agenda&#8221; and is &#8220;misleading the public with its intentions on Prop B. The society seeks only to raise the cost of breeding dogs, making it ever-more difficult for middle-class American families to be dog-owners.&#8221;</p>
<p>The money line, Anita Andrews from Alliance For Truth told <a href="http://tpmmuckraker.talkingpointsmemo.com">Talking Points Memo</a> (the <a href="http://tpmmuckraker.talkingpointsmemo.com/2010/10/missouri_tea_partiers_joe_the_plumber_join_movemen_1.php?ref=fpa">source</a> for my little rant here) that the Humane Society doesn&#8217;t like animals.  Where the hell does she get that?  They&#8217;re the freaking Human Society!</p>
<p>The only thing that gains a little traction is when the Alliance For Truth comments that the bill would limit the number of females a breeder can have at any time for the purposes of breeding.  While their comparison (in the article) to limiting the number of houses a realtor could sell appears appropriate, you have to remember that a house isn&#8217;t alive and doesn&#8217;t suffer in the same way from poor conditions, lack of food, no exercise, and poor or non-existent medical care.</p>
<p>Can anyone in MO tell me if this is likely to pass?  Is the Alliance actually endangering the bill?</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/some-work-to-stop-anti-puppy-mill-bill-in-missouri/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dynamically Creating Zip Archives with PHP</title>
		<link>http://dashifen.com/dynamically-creating-zip-archives-with-php/</link>
		<comments>http://dashifen.com/dynamically-creating-zip-archives-with-php/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:22:35 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=130</guid>
		<description><![CDATA[Never having had the need to create a zip archive manually via PHP before, I was a little worried that it&#8217;d be a pain.  Not so!  In fact, it was extremely simple.  I first googled up this tutorial which set up the basics for me and working from there and with the PHP docs online, [...]]]></description>
			<content:encoded><![CDATA[<p>Never having had the need to create a zip archive manually via PHP before, I was a little worried that it&#8217;d be a pain.  Not so!  In fact, it was extremely simple.  I first googled up <a href="http://devzone.zend.com/article/2105">this tutorial</a> which set up the basics for me and working from there and with the PHP docs online, I was able to complete the project in almost no time at all.</p>
<p>One thing that was a little complicated was cleaning up after I finished.  I didn&#8217;t want to remove the zipped files and the archive before I could feel confident that the visitor to the site had downloaded everything they wanted to.  Thus, a separate process had to do the clean-up operation.  I opted to add some code to the index.php file within the same folder as all the created, temporary files.  Then, when someone visited it, that code would clean-up all the extraneous files.</p>
<p>Here&#8217;s what I did:</p>
<p>[cc lang='php-brief' ]<br />
$now = time();<br />
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(&#8220;.&#8221;));<br />
foreach($iterator as $file) {<br />
     if(substr($file, -3, 3) == &#8220;php&#8221; || $file->getFilename() == &#8220;template.docx&#8221; || ($now &#8211; $file->getCTime())  < 300) continue;<br />
     $temp = explode(DIRECTORY_SEPARATOR, $file);<br />
     $folders[] = $temp[1];<br />
     unlink($file);<br />
}</p>
<p>$folders = array_unique($folders);<br />
foreach($folders as $folder) rmdir("./$folder");<br />
[/cc]</p>
<p>The if-conditional just makes sure that I don't delete php files, the template word document from which others are generated, or any files that are less than 5 minutes old.  That time constraint makes me feel like anyone who doesn't get the files they wanted probably didn't click the Open/Save button in the dialog after making the files and they can just re-do the work.</p>
<p>How did I use the template document to make new ones, you ask?  The <a href="http://phpword.codeplex.com/">PHPWord</a> class, that&#8217;s how!</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/dynamically-creating-zip-archives-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activation</title>
		<link>http://dashifen.com/activation/</link>
		<comments>http://dashifen.com/activation/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 16:59:05 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[phorum]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=75</guid>
		<description><![CDATA[I spent a while working on how I wanted to handle plugin activation for Phorum over this weekend.  I investigated using the existing WordPress tables to store the forum information but, in the end, opted to create my own custom ones for one specific reason:  it&#8217;ll be easier to clean up after myself if someone [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a while working on how I wanted to handle plugin activation for Phorum over this weekend.  I investigated using the existing WordPress tables to store the forum information but, in the end, opted to create my own custom ones for one specific reason:  it&#8217;ll be easier to clean up after myself if someone uninstalls the plugin if my information isn&#8217;t strewn throughout the normal blog tables.</p>
<p>That decision made, I had to figure out the best way to handle the CREATE TABLE queries that would be required of the system when the plugin is activated (and updated).  I&#8217;ve never been a fan of the long column of SQL statements that some plugins use when creating their own tables.  I&#8217;m big stickler for code that looks pretty and is functional, so I wanted a way to store the CREATE TABLE queries in a secure fashion while also keeping them in a separate file from the main Phorum code.</p>
<p>To that end, I created a folder and in that folder I put the SQL statements.  Then, if the tables needed to be changed, I can use <a href="http://us.php.net/manual/en/function.file-get-contents.php">file_get_contents()</a> to read in the queries and then use the WordPress dbDelta() function to actually execute them.  This worked very well:</p>
<p>[cc lang='php' escaped="true" tab_size='3']</p>
<p>$prefix = $wpdb-&gt;prefix . self::prefix;<br />
$dir = WP_PLUGIN_DIR . &#8220;/phorum/sql&#8221;;<br />
$files = new DirectoryIterator($dir);<br />
foreach($files as $file) if(substr($file, -7, 7) == &#8220;sql.php&#8221;)  {<br />
   $table = $prefix . basename($file, &#8220;.sql.php&#8221;);<br />
   $query = file_get_contents(&#8220;$dir/$file&#8221;);<br />
   $query = preg_replace(&#8220;/&lt;\?php | \?&gt;/&#8221;, &#8220;&#8221;, $query);<br />
   $sql  .= sprintf($query, $table, DB_CHARSET);<br />
}<br />
dbDelta($sql);</p>
<p>[/cc]</p>
<p>There&#8217;s an interesting tidbit on line 7 above.  I had to add the PHP tags around my statements to avoid them being printed on-screen if someone actually browsed to the files.  If they were simply text, then browsers would show the table information to anyone who happened by.  This way, the result is a blank screen.  It&#8217;s not yet the most elegant solution but it works for my purposes of the moment but I&#8217;ll probably keep trying to think of a better solution until one presents itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/activation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phorum Begins</title>
		<link>http://dashifen.com/phorum-begins/</link>
		<comments>http://dashifen.com/phorum-begins/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 03:03:59 +0000</pubDate>
		<dc:creator>David Dashifen Kees</dc:creator>
				<category><![CDATA[Other Stuff]]></category>
		<category><![CDATA[phorum]]></category>
		<category><![CDATA[plugin development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dashifen.com/?p=60</guid>
		<description><![CDATA[So, as you might have noticed, my web site suddenly became all WordPress-ified this past winter.  Since then, I&#8217;ve worked on a few other sites in WordPress, too, and in general found it to be a very positive experience.  One of those sites is the site for my World of Warcraft guild, Team Venture. One [...]]]></description>
			<content:encoded><![CDATA[<p>So, as you might have noticed, my web site suddenly became all <a href="http://wordpress.com">WordPress</a>-ified this past winter.  Since then, I&#8217;ve worked on a few other sites in WordPress, too, and in general found it to be a very positive experience.  One of those sites is the site for my <a href="http://worldofwarcraft.com">World of Warcraft</a> guild, <a href="http://teamventure.info">Team Venture</a>.</p>
<p>One of the things that I ran into on a previous site was a general lack of solid forum software for WordPress.  Sure, there&#8217;s <a href="http://bbpress.org">bbPress</a> and <a href="http://simple-press.com/">Simple:Press</a> but the former seems a little light of features and fairly difficult to theme while the latter is feature rich, but almost too much so, and equally difficult to integrate within an already existing customized appearance.</p>
<p>To that end, I&#8217;m gonna try to make my own.  Yeah, yeah; I know what you&#8217;re thinking.  Shocking that a programmer would want to try and re-create the wheel.  I recognize that it&#8217;s probably not necessarily the best use of my time to do so, but I&#8217;m treating it like a learning experience and as a way to help me blog a little bit more.</p>
<p>There&#8217;s a few other forum plugins beyond bbPress and Simple:Press, but oddly no one just went for the silly name of Phorum.  So, I&#8217;m totally going to call mine that.  I did some work on it today, but I&#8217;m going to talk about what I accomplished tomorrow in a separate post.  I just wanted to slap this one together this evening to put some thoughts into words.</p>
]]></content:encoded>
			<wfw:commentRss>http://dashifen.com/phorum-begins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

