<?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>Safe from the Losing Fight &#187; WordPress</title>
	<atom:link href="http://losingfight.com/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://losingfight.com/blog</link>
	<description>because i don&#039;t write software for windows</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:29:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://losingfight.com/blog/?pushpress=hub'/>
		<item>
		<title>Formatting Objective-C code with the HTML code tag</title>
		<link>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/</link>
		<comments>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 06:45:16 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://www.losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/</guid>
		<description><![CDATA[You might have noticed, especially given the last post, that the code formatting on this blog leaves much to be desired. I&#8217;m trying to rectify that, but I&#8217;m not quite sure how to do it. I&#8217;ve always assumed that when presenting code, I should use the the &#60;code&#62; tag. Unfortunately, the default formatting of this [...]]]></description>
			<content:encoded><![CDATA[<p>You might have noticed, especially given the last post, that the code formatting on this blog leaves much to be desired. I&#8217;m trying to rectify that, but I&#8217;m not quite sure how to do it.</p>
<p>I&#8217;ve always assumed that when presenting code, I should use the the &lt;code&gt; tag. Unfortunately, the default formatting of this tag is indeterminate at best. From trial and error I&#8217;ve determined that it&#8217;s usually best to put each line of code in its own set of &lt;code&gt;&lt;/code&gt; tags, otherwise formatting gets really wonked. I&#8217;ve also found, depending on the CSS, I might have to put a &lt;br&gt; after each line of code, otherwise my nice, pretty function all ends up on one line.</p>
<p>And this completely ignores indented code. There seem to be a couple of ways to making indentation work. The first is to use the white-space: pre; CSS rule and make sure the tab characters are in the &lt;code&gt; tags. The second is to use the text-indent CSS attribute for each line of code I want to indent.</p>
<p>None of these options are easy or simple, which makes me think I&#8217;m doing something wrong. Are there are any web designers/HTML coders in the audience that know the proper way of doing this? Surely it&#8217;s not intended to be this painful.</p>
<p>The problem with formatting code on this blog has led me to the conclusion that I&#8217;m probably going to have to ditch my current WordPress theme. Sure it&#8217;s pretty, but it does float: right on my images with a rule that has high specificity, making it very difficult to <em>not</em> float my images to the right, which is  what I usually want. It also has a fixed width, which doesn&#8217;t really mix well with my code examples, not to mention it doesn&#8217;t style the &lt;code&gt; tags well.</p>
<p>Unfortunately I haven&#8217;t been able to to find an appropriate WordPress theme that will fit my needs. I&#8217;d really like a two column layout, with a fluid width, and, if it&#8217;s not too much to ask, decent &lt;code&gt; tag handling.</p>
]]></content:encoded>
			<wfw:commentRss>http://losingfight.com/blog/2007/08/18/formatting-objective-c-code-with-the-html-code-tag/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PollPress WordPress Plugin</title>
		<link>http://losingfight.com/blog/2006/09/11/pollpress-wordpress-plugin/</link>
		<comments>http://losingfight.com/blog/2006/09/11/pollpress-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 11 Sep 2006 18:41:04 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[PollPress]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.losingfight.com/blog/2006/09/11/pollpress-wordpress-plugin/</guid>
		<description><![CDATA[Download: PollPress 1.0 Subversion: PollPress 1.0 Regretfully, PollPress is no longer a supported plugin. Purpose PollPress is a plugin that allows you to add polls, similar to sites like slashdot, to your blog. Poll creation and management is very similar to creating and managing normal posts. The plugin allows users to vote on the most [...]]]></description>
			<content:encoded><![CDATA[<p style="float: right;" class="author">
Download: <a href="/download/PollPress.zip">PollPress 1.0</a><br />
Subversion: <a href="http://svn.losingfight.com/pollpress/trunk/">PollPress 1.0</a>
</p>
<p style="color: #F00;">Regretfully, PollPress is no longer a supported plugin.</p>
<h3>Purpose</h3>
<p>PollPress is a plugin that allows you to add polls, similar to sites like <a href="http://slashdot.org">slashdot</a>, to your blog. Poll creation and management is very similar to creating and managing normal posts. The plugin allows users to vote on the most recent poll from the sidebar, and the poll results are displayed in a post, where users can comment. The plugin also adds an archive page for the polls, where users can browse and vote on older polls.</p>
<h3>Requirements</h3>
<p>PollPress 1.0 requires WordPress 2.0.4 or higher, and MySQL 4.1 or higher.</p>
<h3>Installation</h3>
<ol>
<li>Download the PollPress plugin.</li>
<li>Extract the plugin from the zip file. You should get a folder named PollPress. In it you will find a file called readme.txt and the actual plugin folder called pollpress.</li>
<li>Upload the inner pollpress folder to your plugins folder, which is usually called &#8216;wp-content/plugins/&#8217;.</li>
<li>From the Plugins administration panel, activate the PollPress plugin.</li>
<li>To install the voting booth on the sidebar, you need to add some code, &lt;?php pollpress_voting_booth(); ?&gt;, as described next.</li>
<li>In the administration panel, click the &#8216;Presentation&#8217; tab, then the &#8216;Theme Editor&#8217; tab.</li>
<li>In the theme files list on the right, click on &#8216;Sidebar&#8217;.</li>
<li>In the code, find the desired location in the sidebar to add the voting booth. At this location, insert the code &lt;?php pollpress_voting_booth(); ?&gt;. If the sidebar is like most, you will need to put it inside list item tags, like this: &lt;li&gt;&lt;?php pollpress_voting_booth(); ?&gt;&lt;/li&gt;</li>
<li>Press the &#8216;Update File&#8217; button.</li>
</ol>
<h3>Use</h3>
<p>Writing and managing polls work almost identically to writing and managing posts. PollPress installs administration panels under Write &gt; Write Poll, Manage &gt; Polls, and Options &gt; PollPress. The sidebar of the site will always show the voting booth for the most recently published poll. PollPress will also automatically install a static page called &#8216;Polls&#8217; that lists all the polls that have ever been published. Users can use the Polls archive page to find old polls and vote on them or view their results.</p>
<p>Writing a poll is simple. Navigate to the Write &gt; Write Poll panel. Enter a title and, optionally, your first poll option. Press &#8216;Save and Continue Editing&#8217; or &#8216;Add&#8217; to save the title and option and continue editing. All the extra settings such as Author, Timestamp, Category, etc work identically to a post. When you are ready to publish your poll, press &#8216;Publish.&#8217;</p>
<p>Managing your polls is the same as managing your posts. The only difference is that instead of going to Manage &gt; Posts, you go to Manage &gt; Polls. You can view, edit, and delete polls from this panel, in addition to managing comments posted to the poll results.</p>
<p>The options for PollPress are minimal, and are found in the Options &gt; PollPress panel. The options allow you to change the color of the bar graph on the poll results page. The options page also provides a button to delete all the polls. Because PollPress uses a filter to generate the poll results, if you deactivate PollPress all your polls will begin appearing as regular posts, but with no content. So if you wish to uninstall PollPress, press the &#8216;Delete all polls&#8217; button first, then deactivate the plugin.</p>
<h3>Screenshots</h3>
<p>Click on a thumbnail to see the screenshot at full size.</p>
<table width="100%">
<tr>
<td>
<a style="display: inline; float:left;" class="imagelink" href="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-1.png" title="PollPress voting booth"><img id="image72" src="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-1.thumbnail.png" alt="PollPress voting booth" /> Voting booth</a>
</td>
<td>
<a style="display: inline; float:left;" class="imagelink" href="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-2.png" title="Poll results"><img id="image73" src="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-2.thumbnail.png" alt="Poll results" /> Poll results</a>
</td>
</tr>
<tr>
<td>
<a style="display: inline; float:left;" class="imagelink" href="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-3.png" title="Polls archive page"><img id="image74" src="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-3.thumbnail.png" alt="Polls archive page" />Archives page</a>
</td>
<td>
<a style="display: inline; float:left;" class="imagelink" href="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-4.png" title="Writing a poll"><img id="image75" src="http://www.losingfight.com/blog/wp-content/uploads/2006/09/screenshot-4.thumbnail.png" alt="Writing a poll" />Write a poll</a>
</td>
</tr>
</table>
<h3>Support</h3>
<p style="font-size: 14pt; color: #F00;">
PollPress is no longer supported. I will not be fixing bugs or adding any features. The code is open source and can be improved by others.</p>
]]></content:encoded>
			<wfw:commentRss>http://losingfight.com/blog/2006/09/11/pollpress-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>155</slash:comments>
		</item>
	</channel>
</rss>

