<?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>Random Thoughts</title>
	<atom:link href="http://trevan.therichins.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevan.therichins.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 31 Aug 2008 00:38:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>IE8 and inPrivate Blocking</title>
		<link>http://trevan.therichins.net/2008/08/ie8-and-inprivate-blocking/</link>
		<comments>http://trevan.therichins.net/2008/08/ie8-and-inprivate-blocking/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 00:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browsers]]></category>

		<guid isPermaLink="false">http://trevan.therichins.net/?p=7</guid>
		<description><![CDATA[So, IE8 beta 2 was released.  One of the new features is the inPrivate Browsing and inPrivate Blocking.  Reading the comments on the ie blog, shows comments both for and againts the inPrivate Blocking.  There seems to be much fear that this is going to cause problems with displaying ads on webpages.  But after playing [...]]]></description>
			<content:encoded><![CDATA[<p>So, IE8 beta 2 was released.  One of the new features is the inPrivate Browsing and inPrivate Blocking.  Reading the comments on the ie blog, shows comments both for and againts the inPrivate Blocking.  There seems to be much fear that this is going to cause problems with displaying ads on webpages.  But after playing around with IE8 beta 2, I don&#8217;t think it is going to cause much problems.</p>
<p>The main reason is because of how most online ad agencies and tracking companies name their ads/pixels.  It appears that the algorithm to determine if an item should be blocked is based on the filename.  If you take a look at a doubleclick request, it will look something like: (these are two live examples I found)</p>
<p>http://ad.doubleclick.net/adi/abtl.home/<strong>;kw=fms;info=22111;u=22111;sz=586&#215;90;ord=23946755</strong>?</p>
<p>http://ad.doubleclick.net/<strong>activity;src=1142700;type=ivill675;cat=gotoi382;ord=8636919891878.148</strong>?</p>
<p>Notice the filename (the part in bold).  There is no similarity and in fact it looks like there never will be.  It looks like Doubleclick passes the parameters through the filename instead of the query string.  This means that DoubleClick is perfectly safe from inPrivate Blocking.</p>
<p>In fact, most of the trackers or ad agencies appear to use random or distinct file names.  The only obvious one that doesn&#8217;t appear to do this is google analytics.  Their requests are:</p>
<p>http://www.google-analytics.com/__utm.gif?</p>
<p>http://www.google-analytics.com/ga.js</p>
<p>http://www.google-analytics.com/urchin.js</p>
]]></content:encoded>
			<wfw:commentRss>http://trevan.therichins.net/2008/08/ie8-and-inprivate-blocking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiroot gallery2 across servers</title>
		<link>http://trevan.therichins.net/2008/07/multiroot-gallery2-across-servers/</link>
		<comments>http://trevan.therichins.net/2008/07/multiroot-gallery2-across-servers/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:26:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://trevan.therichins.net/?p=5</guid>
		<description><![CDATA[I recently tried and succeeded at getting the multiroot feature of gallery2 work across servers.  The multiroot plugin that gallery2 comes with just creates a template index.php and .htaccess file.  The main problem with it is that it requires a &#8220;require_once&#8221; call that includes a file from the gallery2 install.  This wouldn&#8217;t work since the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently tried and succeeded at getting the multiroot feature of gallery2 work across servers.  The multiroot plugin that gallery2 comes with just creates a template index.php and .htaccess file.  The main problem with it is that it requires a &#8220;require_once&#8221; call that includes a file from the gallery2 install.  This wouldn&#8217;t work since the multiroot I want is on a different domain and a different server.</p>
<p>So I first attempted to get the multiroot to work on a subdomain of the original domain.  This gave me a bit of grief as the original gallery2 install is in a subdirectory.  And so I had to set up a .htaccess rule that would redirect requests that weren&#8217;t caught be the normal multiroot template .htaccess and send them through a &#8220;fetch&#8221; script that would curl the files.</p>
<p>That took a bit of work because the template .htaccess was definitely a template.  I pretty much rewrote it in the end.</p>
<p>But once it was done, I then set up my other domain (on the other server) and created a rewrite rule (inside a .htaccess file) that caused all trafic to go through its own &#8220;fetch&#8221; file.  This would then fetch from the actual multiroot, which would then fetch from the real install.</p>
<p>In the end, I made it so that if you go to the other domain, the page shows no indication of what server it is pulling from.  It is a little slow because of all the extra network requests, but as it is only going to be used for family, I&#8217;m pretty happy with what I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://trevan.therichins.net/2008/07/multiroot-gallery2-across-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Domain Ajax</title>
		<link>http://trevan.therichins.net/2008/07/cross-domain-ajax/</link>
		<comments>http://trevan.therichins.net/2008/07/cross-domain-ajax/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:11:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://trevan.therichins.net/?p=4</guid>
		<description><![CDATA[I&#8217;ve recently been playing with cross domain ajax and trying to figure out a way to do it without polling the hash in the location. I first played around with the trick that Abe Fettig came up with (http://www.fettig.net/weblog/2005/11/30/xmlhttprequest-subdomain-update/) but it had one problem.  It required the page to set the document.domain.  I was looking [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been playing with cross domain ajax and trying to figure out a way to do it without polling the hash in the location.</p>
<p>I first played around with the trick that Abe Fettig came up with (http://www.fettig.net/weblog/2005/11/30/xmlhttprequest-subdomain-update/) but it had one problem.  It required the page to set the document.domain.  I was looking to using this in a very large code base that can not have document.domain set as it is close to impossible to find all the places that will require it.</p>
<p>I then played around with the xip.js file that is in dojo, but didn&#8217;t like it as it used polling and I don&#8217;t really want to use polling.</p>
<p>So I worked with those two ideas to see if I could get a working/non-polling solution.  I was able to successfully change Abe Fettig&#8217;s idea to work as a inner iframe of a parent page that doesn&#8217;t change its document.domain.  This worked correctly in FF2, IE6, and IE7.  Safari didn&#8217;t like it though.</p>
<p>I then found this bug request to dojo: http://trac.dojotoolkit.org/ticket/4306.  That got me looking at various events that I could fire.  The blur() and focus() didn&#8217;t work as it caused the focus to be lost.  But then I discovered onresize.  I could resize the iframe, which would call the onresize event inside the iframe.  And it worked perfectly in Safari (but not in IE).</p>
<p>So I&#8217;ve taken those two ideas, combined it with the window.postMessage event, and have created a plugin to Ajax.Request inside of prototype.  This only works for subdomain ajax requests because of the document.domain but that is what I needed.</p>
<p>Oh, and as for why I couldn&#8217;t just use a server side proxy, I was trying to get around the 2 requests per domain restriction.</p>
]]></content:encoded>
			<wfw:commentRss>http://trevan.therichins.net/2008/07/cross-domain-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://trevan.therichins.net/2008/07/hello-world/</link>
		<comments>http://trevan.therichins.net/2008/07/hello-world/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 23:13:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trevan.therichins.net/?p=3</guid>
		<description><![CDATA[Just starting out this blog.  I&#8217;ve done a blog on this domain before but wiped it out when I did a cleanup.  So I&#8217;m starting anew.]]></description>
			<content:encoded><![CDATA[<p>Just starting out this blog.  I&#8217;ve done a blog on this domain before but wiped it out when I did a cleanup.  So I&#8217;m starting anew.</p>
]]></content:encoded>
			<wfw:commentRss>http://trevan.therichins.net/2008/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

