<?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>XZIST.org Blog &#187; web dev</title>
	<atom:link href="http://xzist.org/blog/category/web-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://xzist.org/blog</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 10:18:09 +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>SPF fail with wrong IP</title>
		<link>http://xzist.org/blog/2009/12/spf-fail-with-wrong-ip/</link>
		<comments>http://xzist.org/blog/2009/12/spf-fail-with-wrong-ip/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 11:08:34 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://xzist.org/blog/?p=219</guid>
		<description><![CDATA[Well, I have SPF set up on my domains, or thought I did, but I found GMail was giving the error Received-SPF: softfail (google.com: domain of transitioning X@X.com does not designate X.X.X.X as permitted sender (my domain and IP removed&#8230;) The problem being, the IP shown was an older IP I used to have and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I have SPF set up on my domains, or thought I did, but I found GMail was giving the error </p>
<p><code>Received-SPF: softfail (google.com: domain of transitioning X@X.com does not designate X.X.X.X as permitted sender</code></p>
<p>(my domain and IP removed&#8230;)</p>
<p>The problem being, the IP shown was an older IP I used to have and not my current IP&#8230;</p>
<p>Turns out, I still had some old IPs set in /etc/network/interfaces (Ubuntu server) and it seems only the last one was being used by Google mail for SPF purposes. So, the solution was to purge all unused IPs from there, and also set all IPs that I do use within the SPF record&#8230;</p>
<p>Giving something like, as I had two IPs remaining -</p>
<p><code>v=spf1 a ip4:X.X.X.X ip4:X.X.X.X include:aspmx.googlemail.com ~all</code></p>
<p>(the include is for Google Apps)</p>
]]></content:encoded>
			<wfw:commentRss>http://xzist.org/blog/2009/12/spf-fail-with-wrong-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript: Forwarding to another page after downloading</title>
		<link>http://xzist.org/blog/2009/09/javascript-forwarding-to-another-page-after-downloading/</link>
		<comments>http://xzist.org/blog/2009/09/javascript-forwarding-to-another-page-after-downloading/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:55:56 +0000</pubDate>
		<dc:creator>Daniel</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[web dev]]></category>

		<guid isPermaLink="false">http://xzist.org/blog/?p=195</guid>
		<description><![CDATA[If you have a link to download a file (e.g. a piece of software), you may want to redirect to another page after the user clicks the link, perhaps to gather download statistics or display a message to the user. Setting the window.location in an onclick event for that link does not work, as the [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a link to download a file (e.g. a piece of software), you may want to redirect to another page after the user clicks the link, perhaps to gather download statistics or display a message to the user. Setting the window.location in an onclick event for that link does not work, as the opening &#8220;download&#8221; dialog seems to cancel that action.</p>
<p>Instead use a delay:</p>
<blockquote><p>
&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>function RedirectAfterDownload()<br />
{<br />
window.location = &#8220;http://google.com&#8221;;<br />
}</p>
<p>function OnDownloadClick()<br />
{<br />
// redirects after 1 second<br />
setTimeout(&#8216;RedirectAfterDownload()&#8217;, 1000);<br />
}</p>
<p>&lt;/script&gt;</p>
<p>Then to use: &lt;a href=&#8221;myfile.exe&#8221; onclick=&#8221;OnDownloadClick();&#8221;&gt;Download File!&lt;/a&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://xzist.org/blog/2009/09/javascript-forwarding-to-another-page-after-downloading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
