<?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>Jon Todd &#187; Uncategorized</title>
	<atom:link href="http://www.jontodd.com/tag/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jontodd.com</link>
	<description>Optimal</description>
	<lastBuildDate>Tue, 03 Nov 2009 22:33:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Finding Duplicate Lines with Regex</title>
		<link>http://www.jontodd.com/2008/01/21/finding-duplicate-lines-with-regex/</link>
		<comments>http://www.jontodd.com/2008/01/21/finding-duplicate-lines-with-regex/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 22:21:38 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2008/01/21/finding-duplicate-lines-with-regex/</guid>
		<description><![CDATA[If you are looking to remove duplicate lines from an alphabetized list this code will do the trick: **Find the duplicate lines** ^(.*)(\r?\n\1)+$ **Replace with a single line** $1]]></description>
			<content:encoded><![CDATA[<p>If you are looking to remove duplicate lines from an alphabetized list this code will do the trick:</p>
<p>**Find the duplicate lines**</p>

<div class="wp_syntax"><div class="code"><pre>    ^(.*)(\r?\n\1)+$</pre></div></div>

<p>**Replace with a single line**</p>

<div class="wp_syntax"><div class="code"><pre>    $1</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2008/01/21/finding-duplicate-lines-with-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony &#8211; Map apps to subdomains</title>
		<link>http://www.jontodd.com/2007/06/15/symfony-map-apps-to-subdomains/</link>
		<comments>http://www.jontodd.com/2007/06/15/symfony-map-apps-to-subdomains/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 19:13:22 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2007/06/15/symfony-map-apps-to-subdomains/</guid>
		<description><![CDATA[Looking to load different symfony apps for various subdomains? Something like this: domain.com -> frontend dev.domain.com -> frontend_dev backend.domain.com -> backend backend.dev.domain.com -> backend_dev __Code__]]></description>
			<content:encoded><![CDATA[<p>Looking to load different symfony apps for various subdomains? Something like this:<br />
domain.com -> frontend<br />
dev.domain.com -> frontend_dev<br />
backend.domain.com -> backend<br />
backend.dev.domain.com -> backend_dev </p>
<p>__Code__</p>
<p><span id="more-111"></span></p>
<p><code><br />
  <?php<br />
  // Set app, environment, and debug base on sub domains<br />
  if( isset($_SERVER) &#038;&#038;<br />
      is_array($_SERVER) &#038;&#038;<br />
      isset($_SERVER['HTTP_HOST']))<br />
  {<br />
    // Check for the subdomain admin and make the application admin<br />
    if (preg_match('/backend\./', $_SERVER['HTTP_HOST']))<br />
    {<br />
      define('SF_APP', 'backend');<br />
    }</p>
<p>    // Check for the subdomain dev and make the enviorment dev<br />
    if (preg_match('/dev\./', $_SERVER['HTTP_HOST']))<br />
    {<br />
      define('SF_ENVIRONMENT', 'dev');<br />
      define('SF_DEBUG',       true);<br />
    }<br />
  }</p>
<p>  // Defaults<br />
  define('SF_ROOT_DIR',    realpath(dirname(__FILE__).'/..'));<br />
  if(!defined('SF_APP'))<br />
    define('SF_APP',         'frontend');<br />
  if(!defined('SF_ENVIRONMENT'))<br />
    define('SF_ENVIRONMENT', 'prod');<br />
  if(!defined('SF_DEBUG'))<br />
    define('SF_DEBUG',       true);</p>
<p>  require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');</p>
<p>  sfContext::getInstance()->getController()->dispatch();<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2007/06/15/symfony-map-apps-to-subdomains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Switch</title>
		<link>http://www.jontodd.com/2006/11/04/server-switch/</link>
		<comments>http://www.jontodd.com/2006/11/04/server-switch/#comments</comments>
		<pubDate>Sat, 04 Nov 2006 15:08:27 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2006/11/04/server-switch/</guid>
		<description><![CDATA[Sorry about the down time. I&#8217;ve switched hosting providers and took some time to get everything back up. Jon]]></description>
			<content:encoded><![CDATA[<p>Sorry about the down time. I&#8217;ve switched hosting providers and took some time to get everything back up.</p>
<p>Jon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2006/11/04/server-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE Repeats Text In Last Float</title>
		<link>http://www.jontodd.com/2006/10/16/ie-repeats-text-in-last-float/</link>
		<comments>http://www.jontodd.com/2006/10/16/ie-repeats-text-in-last-float/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 21:27:56 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2006/10/16/ie-repeats-text-in-last-float/</guid>
		<description><![CDATA[Are you having problems with text being duplicated at the end of one of your floated div tags? It might not really be your fault. After spending about an hour verifying that my code was in fact OK I stumbled upon an article about the IE Duplicate Characters Bug. Apparently this problem is caused by [...]]]></description>
			<content:encoded><![CDATA[<p>Are you having problems with text being duplicated at the end of one of your floated div tags? It might not really be your fault. After spending about an hour verifying that my code was in fact OK I stumbled upon an article about the <a href="http://www.positioniseverything.net/explorer/dup-characters.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.positioniseverything.net');">IE Duplicate Characters Bug</a>.</p>
<p><span id="more-103"></span> Apparently this problem is caused by comments inbetween floated DIVs being mistreated by Internet Explorer. The simple fix is to either remove the comments or use comments of the form:</p>
<p><code><!--[if !IE]>This is my comment< ![endif]--></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2006/10/16/ie-repeats-text-in-last-float/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To use Cookies with RSSFeed Scanner &amp; Azureus</title>
		<link>http://www.jontodd.com/2006/10/10/how-to-use-cookies-with-rssfeed-scanner-azureus/</link>
		<comments>http://www.jontodd.com/2006/10/10/how-to-use-cookies-with-rssfeed-scanner-azureus/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 03:49:55 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2006/10/10/how-to-use-cookies-with-rssfeed-scanner-azureus/</guid>
		<description><![CDATA[For those of you who use bit torrent to download various tv shows, podcasts, videocasts or any other type of periodicly updated media there is now a way to automate the process. I use azureus for my bit torrent download client and have added the RSSFeed Scanner Plugin which you can learn about how to [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who use bit torrent to download various tv shows, podcasts, videocasts or any other type of periodicly updated media there is now a way to automate the process. I use <a href="http://azureus.sourceforge.net/"title="Azureus"  onclick="javascript:pageTracker._trackPageview('/outbound/article/azureus.sourceforge.net');">azureus</a> for my bit torrent download client and have added the RSSFeed Scanner Plugin which you can learn about how to install from <a href="http://www.zeropaid.com/news/6411/Azureus+RSS+Feed+Made+Easy " onclick="javascript:pageTracker._trackPageview('/outbound/article/www.zeropaid.com');">zeropaid</a>. While they certainly do a great job of telling you how to install the plugin they leave out the details of how to download from a site that requires a login. I&#8217;ll explain how this can be done with cookies.</p>
<p><span id="more-102"></span></p>
<p><strong>How to download with RSSFeed Scanner on a site that requires a login</strong></p>
<ol>
<li>Site that require a login many times use cookies to store your session so that after you login your credentials are remembered as you browse the site. The bit torrent site you are using requires a login and does not use cookies this method won&#8217;t help</li>
<li>Download Firefox if you don&#8217;t have it.</li>
<li>Download the <a href="https://addons.mozilla.org/firefox/60/" onclick="javascript:pageTracker._trackPageview('/outbound/article/addons.mozilla.org');">Web Developer Toolbar</a> for firefox. This is handy for all kinds of hacks!!!</li>
<li>Once installed, visit your favorite bit torrent site with firefox and login</li>
<li>Click the cookies tab on the developer toolbar and choose &#8220;View Cookie Information&#8221;</li>
<li>Now a list of cookies will come up each with various data fields. Among all the various cookies we need to find th one used by the site that is your user name or uid. There is no standard name. For demonoid.com the user id is stored in a cookie called &#8220;uid&#8221; and the password hash is stored in a cookie named &#8220;uhsh&#8221;</li>
<li>copy and paste the user and password name and value pairs into the form:<br />
<code>name=value;name=value</code><br />
In the case of demonoid.com it was of the form:<br />
<code>uid=XXXXXX;uhsh=YYYYYYYYYYYYYYYYYYYYYYYY</code><br />
The hash was even longer then that actually and had many HTML encoded charaters as a password hash tends to be.</li>
<li>Go into azureus&#8217;s RSSFeed Scanner and select or add a url in the option tab.</li>
<li>Check the option for passing cookies &#8220;Pass Cookies&#8217;s&#8221; and paste your string in the box.</li>
<li>Click the status tab and double click one of the files to see if you can download it. With any luck it will start downloading.</li>
</ol>
<p><strong>A Note About Cookie Expiration</strong></p>
<p>Some cookies maybe set to expire rather quickly after login. You can check the expire time when you view your cookie in step 6. If the expiration is anytime in the near furture you will have to redo this hack again after that date. Luckily demonoid.com was set for 2011 so I&#8217;ve still got some time <img src='http://www.jontodd.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Other Sites Cookie Info</strong></p>
<p>As there may be some interest in having this info readily available I will compile a list of cookie info from other bit torrent sites as I find them or you submit them.</p>
<p>Demonoid.com<br />
<code>uid=XXXXXX;uhsh=YYYYYYYYYYYYYYYYYYYYYYYY</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2006/10/10/how-to-use-cookies-with-rssfeed-scanner-azureus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Photos from Switzerland</title>
		<link>http://www.jontodd.com/2006/09/20/photos-from-switzerland/</link>
		<comments>http://www.jontodd.com/2006/09/20/photos-from-switzerland/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 21:15:15 +0000</pubDate>
		<dc:creator>Jon Todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jontodd.com/2006/09/20/photos-from-switzerland/</guid>
		<description><![CDATA[I&#8217;m starting to upload the photos from the trip. The photos you see are some of the best I took during the days of the conference. Most are taken near where I was staying and not so near the conference itself.]]></description>
			<content:encoded><![CDATA[<div class="g2image_float_left"><a href="http://www.jontodd.com/v/switzerland_2006/"title="Photos of Switzerland"  ><img width="150" height="150" alt="Switzerland Photos" title="Switzerland Photos" class="g2image_float_left" src="http://www.jontodd.com/gallery2/d/306-2/IMG_5852.jpg?g2_GALLERYSID=bde7ea84843a61f68541597eb70cf5ce" /></a></div>
<p><a href="http://www.jontodd.com/v/switzerland_2006/"title="Photos of Switzerland"  > </a><a href="http://www.jontodd.com/v/switzerland_2006/"title="Photos of Switzerland"  >I&#8217;m starting to upload the photos from the trip. The photos you see are some of the best I took during the days of the conference. Most are taken near where I was staying and not so near the conference itself.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jontodd.com/2006/09/20/photos-from-switzerland/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

