<?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>Dan Patrick</title>
	<atom:link href="http://www.mdpatrick.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mdpatrick.com</link>
	<description></description>
	<lastBuildDate>Tue, 28 Feb 2012 00:56:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>AT&amp;T U-Verse Modems Suck. AT&amp;T Is Incompetent. AT&amp;T: I Hate You.</title>
		<link>http://www.mdpatrick.com/2012/att-u-verse-modems-suck-and-so-att-is-incompetente-att-i-hate-you/</link>
		<comments>http://www.mdpatrick.com/2012/att-u-verse-modems-suck-and-so-att-is-incompetente-att-i-hate-you/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 00:54:34 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=341</guid>
		<description><![CDATA[Called up AT&#038;T complained about websites not loading all of the images, and being inconsistent with each individual request. I adv ised I thought it might be a DNS problem just on a hunch. I got nowhere. They ran me through a script. Dude knew it was lame, and anxiously asked me to play along. [...]]]></description>
			<content:encoded><![CDATA[<p>Called up AT&#038;T complained about websites not loading all of the images, and being inconsistent with each individual request. I adv ised I thought it might be a DNS problem just on a hunch. I got nowhere. They ran me through a script. Dude knew it was lame, and anxiously asked me to play along. OK. I got annoyed, gave up, got off the phone. Changed my DNS server a few weeks later. when I felt motivated to troubleshoot it more after a personal defeat. Turns out, yeah, it was my DNS, and apparently a common problem with the modem they FORCED me to buy since my modem I bought (on their advice when I told them I wanted to get it used on eBay) didn&#8217;t work. </p>
<p>The original modem was a working modem, but since I didn&#8217;t buy it from them the MAC address/serial (or something?) wouldn&#8217;t be in their system&#8230; I only found that out after the fourth tech that originally came to the apartment.</p>
<p>Noticing a pattern here? AT&#038;T U-verse.. you are disappoint.</p>
<p>Your people are robots.</p>
<p><img src="http://www.theoldrobots.com/images19/lost10.JPG" alt="Robot" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2012/att-u-verse-modems-suck-and-so-att-is-incompetente-att-i-hate-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>High-wage skills on oDesk</title>
		<link>http://www.mdpatrick.com/2012/high-wage-skills-on-odesk/</link>
		<comments>http://www.mdpatrick.com/2012/high-wage-skills-on-odesk/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 22:18:33 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hackernews]]></category>
		<category><![CDATA[odesk]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=340</guid>
		<description><![CDATA[Grabbed this from Hacker News: oDesk recently introduced a controlled, centralized vocabulary of about 1,400 skills for buyers and contractors to use when posting jobs and creating profiles. The primary motivation for the change was to make it easier for buyers and sellers to find each other: without a standardized vocabulary, would-be traders can fail [...]]]></description>
			<content:encoded><![CDATA[<p>Grabbed this from Hacker News:</p>
<blockquote><p>
oDesk recently introduced a controlled, centralized vocabulary of about 1,400 skills for buyers and contractors to use when posting jobs and creating profiles. The primary motivation for the change was to make it easier for buyers and sellers to find each other: without a standardized vocabulary, would-be traders can fail to match simply because they use different terms for the same skill.</p>
<p>A side effect of this transition is that high quality data on the relationships between skills and wages are now available. (<a href="http://onlinelabor.blogspot.com/2012/02/high-wage-skills-on-odesk-or-why-you.html">more&#8230;</a>)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2012/high-wage-skills-on-odesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grab URLs from a String in PHP</title>
		<link>http://www.mdpatrick.com/2012/grab-urls-from-a-string-in-php/</link>
		<comments>http://www.mdpatrick.com/2012/grab-urls-from-a-string-in-php/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 17:55:02 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=338</guid>
		<description><![CDATA[Found this little Regex pattern which is an improved version of Daring Fireball&#8217;s (found here). Throw whatever string of various mixed up URLs you can at it, and this will return an array of them.]]></description>
			<content:encoded><![CDATA[<p>Found this little Regex pattern which is an improved version of Daring Fireball&#8217;s (<a href="http://daringfireball.net/2010/07/improved_regex_for_matching_urls">found here</a>). Throw whatever string of various mixed up URLs you can at it, and this will return an array of them.</p>
<pre class="brush: php; title: ; notranslate">
$regexp = '/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:(?:[^\s()&lt;&gt;.]+[.]?)+|\((?:[^\s()&lt;&gt;]+|(?:\([^\s()&lt;&gt;]+\)))*\))+(?:\((?:[^\s()&lt;&gt;]+|(?:\([^\s()&lt;&gt;]+\)))*\)|[^\s`!()\[\]{};:\'&quot;.,&lt;&gt;?«»“”‘’]))/i';

preg_match_all($regexp, $message, $matches);

return $matches[0];
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2012/grab-urls-from-a-string-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traffic Pollution and Risk of Diabetes</title>
		<link>http://www.mdpatrick.com/2011/traffic-pollution-and-risk-of-diabetes/</link>
		<comments>http://www.mdpatrick.com/2011/traffic-pollution-and-risk-of-diabetes/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 15:38:06 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[diabetes]]></category>
		<category><![CDATA[pollution]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=336</guid>
		<description><![CDATA[Of all the myriad variables that increase one&#8217;s risk for developing type 2 (adult onset) diabetes &#8212; smoking, being overweight, having a larger waistline &#8212; air pollution is not one we usually think of. But newer studies are suggesting environmental risk factors for diabetes: A new one finds that living in an area with more [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Of all the myriad variables that increase one&#8217;s risk for developing type 2 (adult onset) diabetes &#8212; smoking, being overweight, having a larger waistline &#8212; air pollution is not one we usually think of. But newer studies are suggesting environmental risk factors for diabetes: A new one finds that living in an area with more traffic pollution could increase one&#8217;s risk, particularly in people who are healthier to begin with. [...]</p>
<p>The link was &#8220;borderline significant,&#8221; according to the researchers. It was, however, stronger for people who were in better overall health, and for women. For example, in non-smokers who lived in high pollution areas, the risk for diabetes rose to 12 percent. A 10 percent increase in risk was found for physically active people. (<a href="http://www.theatlantic.com/health/archive/2011/12/like-smoking-traffic-pollution-could-increase-diabetes-risk/250109/">via</a>.)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/traffic-pollution-and-risk-of-diabetes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asus PCE-N13 Wireless Card Ubuntu Linux 11.04 Instructions</title>
		<link>http://www.mdpatrick.com/2011/asus-pce-n13-wireless-card-ubuntu-linux-11-04-instructions/</link>
		<comments>http://www.mdpatrick.com/2011/asus-pce-n13-wireless-card-ubuntu-linux-11-04-instructions/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 14:04:03 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asus pce-n13]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[natty narwhal]]></category>
		<category><![CDATA[rt2800]]></category>
		<category><![CDATA[rt2860sta]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 11.04]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=327</guid>
		<description><![CDATA[I needed to buy a Wireless card for my desktop computer, and unfortunately&#8230; much to my dismay&#8230; despite there being *very* large lists out there on cards that more or less work with my version of linux (Ubuntu Natty Narwhal 11.04), there really wasn&#8217;t a list of *detailed reviews* as to indicate how well any [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to buy a Wireless card for my desktop computer, and unfortunately&#8230; much to my dismay&#8230; despite there being <a href="https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported">*very* large lists</a> out there on cards that more or less work with my version of linux (Ubuntu Natty Narwhal 11.04), there really wasn&#8217;t a list of *detailed reviews* as to indicate how <em>well</em> any given card works with linux.</p>
<p>Seems like an opportunity waiting to happen for someone that wants to put together a review site and curate what&#8217;s already kind of somewhat out there.</p>
<p>I went ahead and grabbed the asus CPE-N13. It was cheap, a brand name I recognized, and Wireless N (multiple antennas!).</p>
<p>Much to my dismay, the card did *not* work right out of the box. First, I had to blacklist some default but immature drivers that comes with ubuntu 11.04:</p>
<pre>
# Add these to /etc/modprobe.d/blacklist.conf

blacklist rt2800pci
blacklist rt2800usb
blacklist rt2x00lib
blacklist rt2x00pci
blacklist rt2x00usb
</pre>
<p>Pulled out the patch cable, rebooted for good measure&#8230; and voila we have wireless. <img src='http://www.mdpatrick.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/asus-pce-n13-wireless-card-ubuntu-linux-11-04-instructions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone4 Case Doubles Battery Life of Phone</title>
		<link>http://www.mdpatrick.com/2011/iphone4-battery-case/</link>
		<comments>http://www.mdpatrick.com/2011/iphone4-battery-case/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 18:44:41 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone4]]></category>
		<category><![CDATA[nucharge]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=319</guid>
		<description><![CDATA[iPhone 4 case doubles battery life, and is surprisingly sleek. iPhone4 NuCharge from iKit ($64.95). &#8220;It gives you 1400 mAh of power that can be switched on when needed. LED lights on the front show you how much power is left too.&#8221;]]></description>
			<content:encoded><![CDATA[<p>iPhone 4 case doubles battery life, and is surprisingly sleek.<br />
<a href="http://www.ikit.com/index.php/device/iphone-4/ikit-nucharge-iphone-4-battery-case.html">iPhone4 NuCharge from iKit ($64.95)</a>.</p>
<blockquote><p>&#8220;It gives you 1400 mAh of power that can be switched on when needed. LED lights on the front show you how much power is left too.&#8221;</p></blockquote>
<p><a href="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_1_38.jpg"><img class="alignleft size-thumbnail wp-image-320" title="iPhone4 NuCharge Side Shot" src="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_1_38-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_7_21.jpg"><img class="alignleft size-thumbnail wp-image-322" title="iPhone NuCharge Back" src="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_7_21-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_3_111.jpg"><img class="alignleft size-thumbnail wp-image-325" title="iPhone NuCharge Propped" src="http://www.mdpatrick.com/wp-content/uploads/2011/11/file_3_111-150x150.jpg" alt="" width="150" height="150" /></a>
<div style="clear:both;"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/iphone4-battery-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dude Posts About Selling WordPress Plugins</title>
		<link>http://www.mdpatrick.com/2011/wordpress-plugin-sellin/</link>
		<comments>http://www.mdpatrick.com/2011/wordpress-plugin-sellin/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 17:56:37 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=317</guid>
		<description><![CDATA[Saw this post on Reddit entitled Anyone on r/WordPress interested in buying a Premium Plugin business?: Throwaway account here for discretion. I&#8217;m exploring selling the rights to one of my premium plugins, and thought r/wordpress would be a good place to gauge interest and possibly find a buyer in my favoritest of favorite communities. Also, because [...]]]></description>
			<content:encoded><![CDATA[<p>Saw this post on Reddit entitled <a href="http://www.reddit.com/r/Wordpress/comments/m7k1s/anyone_on_rwordpress_interested_in_buying_a/">Anyone on r/WordPress interested in buying a Premium Plugin business?</a>:</p>
<blockquote><p>Throwaway account here for discretion.</p>
<p>I&#8217;m exploring selling the rights to one of my premium plugins, and thought r/wordpress would be a good place to gauge interest and possibly find a buyer in my favoritest of favorite communities. Also, because of the nature of the business, it really needs to be taken on by someone who is already proficient at WordPress development.</p>
<p>This plugin was launched in August of 2010, and since then has generated approximately $44,000 in sales, with around $36,000 profit remaining after paying affiliate commissions.</p>
<p>When it first launched, I was actively promoting the plugin and sales were steady around $3,000 &#8211; $5,000 per month. However, my attention got pulled into other projects and with only minimal marketing and updates, sales have been stable at around $1,500 per month for most of this year. I spend an average of 1-3 hours per week handling tech support and email inquiries&#8230;not too shabby.</p>
<p>I&#8217;m selling because I have too many other items on my plate to be able to give the plugin the attention it needs, both in general improvements to the codebase and in marketing.</p>
<p>What&#8217;s included:</p>
<ul>
<li>All rights to the plugin itself. It is currently released under a split GPL/Proprietary License</li>
<li>The Domain &amp; Sales Website</li>
<li>The <a href="https://www.vbulletin.com/">vBulletin</a>-powered Support Forum &amp; <a href="https://www.vbulletin.com/">vBulletin</a> License</li>
<li>The <a href="https://www.e-junkie.com/">E-Junkie</a> account to manage transactions &amp; affiliates ( 250 registered affiliates )</li>
<li>My availability &amp; assistance during the transitional period.</li>
</ul>
<p>Asking Price: $25,000 USD</p>
<p>If you have any questions, either about the sale of this business or general questions about how to earn a living selling premium plugins, please post them here. I will do my best to answer without publicly revealing the plugin or any other potentially sensitive information.</p>
<p>If you&#8217;re a genuinely interested potential buyer, please PM me so we can further discuss.</p>
<p>Thanks!</p></blockquote>
<p>Well, he posted it on a public, popular site so how discrete is that?  Since there are 60 million WordPress blogs out there, some 30 of which are self-hosted (or something like that) it&#8217;s quite possible.</p>
<p>Maybe I should find a way to offer some cool functionality with upgrade of either <a title="Build A References List Instantly with PMID Citation Plus for WordPress" href="http://www.mdpatrick.com/2011/pmidcitationplus/">PMID Citation Plus</a> or <a title="Facebook Simple Like: A No-Mess Facebook Fan Page Like Button [WP Plugin]" href="http://www.mdpatrick.com/2011/fsl/">Facebook Simple Like</a>.</p>
<p>I should go through my list of <a title="Top or “The Best” WordPress Plugins – Dan Picks!" href="http://www.mdpatrick.com/2010/top-wordpress-plugin/">top WordPress plugins</a> and see how many of them offer pay upgrades.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/wordpress-plugin-sellin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dan&#8217;s Awesome YouTube Music Playlist</title>
		<link>http://www.mdpatrick.com/2011/dans-awesome-youtube-music-playlist/</link>
		<comments>http://www.mdpatrick.com/2011/dans-awesome-youtube-music-playlist/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 04:02:17 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dubstep]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=315</guid>
		<description><![CDATA[Just got done putting together what I think is a pretty awesome YouTube playlist&#8230; if you happen to like the type of music I do. Forewarning: there is a healthy helping of dubstep. Here&#8217;s a link to the YouTube playlist. Or you can click through one song at a time below&#8230; 1. Pantyraid - Get The [...]]]></description>
			<content:encoded><![CDATA[<p>Just got done putting together what I think is a pretty awesome YouTube playlist&#8230; if you happen to like the type of music I do. Forewarning: there is a healthy helping of dubstep.</p>
<p><a href="http://www.youtube.com/playlist?list=PL38500A98EA0E6AC4">Here&#8217;s a link to the YouTube playlist.</a></p>
<p>Or you can click through one song at a time below&#8230;</p>
<div>1. Pantyraid - <a href="http://www.youtube.com/watch?v=LGtLJDP1BIk">Get The Money</a>, <a href="http://youtu.be/i8dXYkc9xbQ">Beba</a> (beba in particular), <a href="http://www.youtube.com/watch?v=ydtk2Ti63Qc">Upset</a></div>
<div>2. Ample Mammal - <a href="http://amplemammal.bandcamp.com/track/pushing-time">Pushing Time</a>, <a href="http://www.youtube.com/watch?v=TOBK3GrglA4">Benjamin Beemin</a>, <a href="http://youtu.be/VN0oxrGOSPY">Wildebeest Tactics for the 21st Century</a></div>
<div>3. Stanton Warriors - <a href="http://www.youtube.com/watch?v=rq4OnDHD2JM">Precinct (AC Slater Remix)</a></div>
<div>4. Sebastian - <a href="http://h.a.l./">H.A.L.</a></div>
<div>5. Nuphlo - <a href="http://www.youtube.com/watch?v=MCnDL8k0820">Cassiopeia</a></div>
<div>6. Sukh Knight - <a href="http://www.youtube.com/watch?v=9QeR1JRUhzY">Hands In Your Pockets</a></div>
<div>7. Gordon Freeman - <a href="http://www.myspace.com/gordonsprod/music/albums/candy-machine-single-14678528">Candy Machine</a></div>
<div>8. Foreign Beggars &amp; Chasing Shadows - <a href="http://www.youtube.com/watch?v=tVw7eewoDv8">Typhoon</a></div>
<div>9. Basement Jaxx - <a href="http://www.youtube.com/watch?v=O-81fo3IKWU">Raindrops (doorly&#8217;s dubstep remix)</a></div>
<div>10. Starkey - <a href="http://www.youtube.com/watch?v=ojnT6wa5_ZI">Dark Alley</a></div>
<div>11. edIT - <a href="http://youtu.be/kgOgwrAtMOY">Night Shift</a>, <a href="http://youtu.be/pxSgXrwTlnE">Crunk de Gaulle</a></div>
<div>12. Ana Tijoux - <a href="http://www.youtube.com/watch?v=yiQ7S38nKog">1977</a></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/dans-awesome-youtube-music-playlist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overriding Form Theme of a Collection (Symfony2)</title>
		<link>http://www.mdpatrick.com/2011/overriding-form-theme-collection-symfony2/</link>
		<comments>http://www.mdpatrick.com/2011/overriding-form-theme-collection-symfony2/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 18:22:43 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony2]]></category>
		<category><![CDATA[twig]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=310</guid>
		<description><![CDATA[This code was floating around in a pastebin, and was linked to me from IRC. I&#8217;m not sure who originally wrote it, but it&#8217;s useful and I wanted to make sure it gets saved so that it can eventually be the basis of a Symfony2 cookbook article. Also, here&#8217;s a github gist link to the [...]]]></description>
			<content:encoded><![CDATA[<p>This code was floating around in a pastebin, and was linked to me from IRC. I&#8217;m not sure who originally wrote it, but it&#8217;s useful and I wanted to make sure it gets saved so that it can eventually be the basis of a Symfony2 cookbook article.</p>
<pre class="brush: php; title: ; notranslate">{% block collection_widget %}
{% spaceless %}
    &lt;div class=&quot;collection&quot;&gt;
        {% if prototype is defined %}
            {% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %}
        {% endif %}
        &lt;div {{ block('widget_container_attributes') }}&gt;
            {{ form_errors(form) }}
            &lt;ul&gt;
            {% for rows in form %}
                &lt;li&gt;
                {% set fieldNum = 1 %}
                {% for row in rows %}
                    &lt;div class=&quot;field{{ fieldNum }}&quot;&gt;
                    {{ form_label(row) }}
                    {{ form_widget(row, { 'attr': { 'class': 'test' }}) }}
                    &lt;/div&gt;
                    {% set fieldNum = fieldNum + 1 %}
                {% endfor %}
                    &lt;a class=&quot;remove&quot; title=&quot;Remove&quot; href=&quot;javascript:void()&quot;&gt;
                        &lt;span&gt;Delete&lt;/span&gt;
                    &lt;/a&gt;
                    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
                &lt;/li&gt;
            {% endfor %}
            &lt;/ul&gt;
            {{ form_rest(form) }}
        &lt;/div&gt;
        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
        &lt;a class=&quot;add&quot; title=&quot;Add&quot; href=&quot;javascript:void()&quot;&gt;
            &lt;div style=&quot;display: none;&quot;&gt;&lt;/div&gt;
            &lt;span&gt;Add&lt;/span&gt;
        &lt;/a&gt;
    &lt;/div&gt;
    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
{% endspaceless %}
{% endblock collection_widget %}

{% block collection_item_widget %}
{% spaceless %}
    &lt;li&gt;
    {% set fieldNum = 1 %}
    {% for row in prototype %}
        &lt;div class=&quot;field{{ fieldNum }}&quot;&gt;
        {{ form_label(row) }}
        {{ form_widget(row, { 'attr': { 'class': 'test' }}) }}
        &lt;/div&gt;
        {% set fieldNum = fieldNum + 1 %}
    {% endfor %}
        &lt;a class=&quot;remove&quot; title=&quot;Remove&quot; href=&quot;javascript:void()&quot;&gt;
            &lt;span&gt;Delete&lt;/span&gt;
        &lt;/a&gt;
        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
    &lt;/li&gt;
{% endspaceless %}
{% endblock collection_item_widget %}</pre>
<p>Also, here&#8217;s a <a href="https://gist.github.com/1343282">github gist link</a> to the same code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/overriding-form-theme-collection-symfony2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating RubyGems on OS X Leopard</title>
		<link>http://www.mdpatrick.com/2011/updating-rubygems-on-os-x-leopard/</link>
		<comments>http://www.mdpatrick.com/2011/updating-rubygems-on-os-x-leopard/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 01:21:37 +0000</pubDate>
		<dc:creator>mdpatrick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[os x leopard]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[symfony2]]></category>

		<guid isPermaLink="false">http://www.mdpatrick.com/?p=307</guid>
		<description><![CDATA[Sorry for the long hiatus from the blog, I&#8217;ve recently been quite busy at work with one particularly important project scheduled for an early December launch. More than one of these projects now utilizes the Symfony2 PHP framework, and in addition to that we&#8217;ve been using &#8220;Capifony&#8221;, a deployment recipe which Capistrano utilizes to deploy [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry for the long hiatus from the blog, I&#8217;ve recently been quite busy at work with one particularly important project scheduled for an early December launch.</p>
<p>More than one of these projects now utilizes the Symfony2 PHP framework, and in addition to that we&#8217;ve been using &#8220;Capifony&#8221;, a deployment recipe which Capistrano utilizes to deploy Symfony or Symfony2 sites.</p>
<p>Usually, on my home machines I use Ubuntu linux, which I&#8217;m pretty happy with. Setting up an up-to-date version of Apache, MySQL, Ruby, Capistrano and PHP (with the intl module, importantly, since this is required by Symfony) is made very easy with the use of the apt-get or aptitude package managers.</p>
<p>Unfortunately, my experience with OS X (which I nevertheless like as an operating system) has not been as much of a smooth sailing kind of thing.</p>
<p>One recent issue I&#8217;ve run into is that when setting up capistrano to deploy our Symfony app on this older version of OS X, the gem app is too out of date to even know where to get the update package from to update itself (v1.0.1). </p>
<p>Figuring out how to update RubyGems was quick and relatively painless, but the instructions given by multiple sites that popped up on Google were flat out wrong. So&#8230; I&#8217;m taking the opportunity to document it here.</p>
<h3>Updating RubyGems from Version 1.0.1 On OS X Leopard</h3>
<p>The first step I tried was&#8230;<br />
<code>$ sudo gem update --system</code></p>
<p>This is what you would normally use, however, v1.0.1 attempts to fetch from the wrong source.</p>
<p>This was the error returned:<br />
<code>ERROR:  While executing gem ... (Gem::RemoteSourceException)<br />
    HTTP Response 302 fetching http://gems.rubyforge.org/yaml</code></p>
<p><strong>What finally worked was this:</strong><br />
<code><br />
$ sudo gem update --system --source http://production.s3.rubygems.org/<br />
</code></p>
<p>We&#8217;re at 1.3.6. As simple as that. </p>
<p>The following was the first result on Google and <strong>did not work</strong> for whatever reason&#8230;</p>
<p><code>gem install rubygems-update --source http://production.s3.rubygems.org/<br />
update_rubygems</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mdpatrick.com/2011/updating-rubygems-on-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.522 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-18 08:31:48 -->

