<?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>Stephen Best - Web Developer &#187; Web Development</title>
	<atom:link href="http://tvsmashparty.com/blog/category/web-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://tvsmashparty.com/blog</link>
	<description>Technical discourse and making internet</description>
	<lastBuildDate>Sat, 22 Aug 2009 22:01:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mobile web-site resuce &#8211; SSH from iPhone</title>
		<link>http://tvsmashparty.com/blog/2009/08/mobile-web-site-resuce-ssh-from-iphone/</link>
		<comments>http://tvsmashparty.com/blog/2009/08/mobile-web-site-resuce-ssh-from-iphone/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 22:01:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server stuff and installs]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://tvsmashparty.com/blog/?p=17</guid>
		<description><![CDATA[edit the Sphinx config file with vim (the command line editor that's better than emacs)]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">This weekend I got a chance, or rather was forced, to try out the SSH client I&#8217;ve had sat on my iPhone for the last few months.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">I got an email from my boss who had just been tipped off about problem with our &lt;a href=&#8221;http://www.sphinxsearch.com&#8221;&gt;Sphinx&lt;/a&gt; configuration. The usually very helpful stemming that Sphinx performs on search queries was causing &#8220;Live music&#8221; and &#8220;DJ music&#8221; events to come up when a user searched for &#8220;musicals&#8221;.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">At this point I was in a cafe on Broadway Market with a coffee eyeing up the ample selection of vegan cakes. Getting to the point I whipped out my iPhone and logged into our webserver using &lt;a href=&#8221;http://jbrink.net/touchterm/&#8221;&gt;Touchterm&lt;/a&gt;. I was relatively easily able to edit the Sphinx config file with vim (the command line editor that&#8217;s better than emacs), restart the server and reindex all our events, I later realised that changing the stemming config only requires a restart of searchd to take effect.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Thanks to the convenient shortcut overlays I could access the crtl, esc and arrow keys and also perform key shortcuts like ctrl+a to get to the start of the command because I forgot to type sudo.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now I&#8217;m totally told I&#8217;m going to shell out a &amp;pound;2.99 quid for the pro version.</div>
<p>This weekend I got a chance, or rather was forced, to try out the SSH client I&#8217;ve had sat on my iPhone for the last few months.</p>
<p>I got an email from my boss who had just been tipped off about problem with our <a href="http://www.sphinxsearch.com">Sphinx</a> configuration. The usually very helpful stemming that Sphinx performs on search queries was causing &#8220;Live music&#8221; and &#8220;DJ music&#8221; events to come up when a user searched for &#8220;musicals&#8221;.</p>
<p>At this point I was in a cafe on Broadway Market with a coffee eyeing up the ample selection of vegan cakes. Getting to the point I whipped out my iPhone and logged into our webserver using <a href="http://jbrink.net/touchterm/">Touchterm</a>. I was relatively easily able to edit the Sphinx config file with vim (the command line editor that&#8217;s better than emacs), restart the server and reindex all our events, I later realised that changing the stemming config only requires a restart of searchd to take effect.</p>
<p>Thanks to the convenient shortcut overlays I could access the crtl, esc and arrow keys and also perform key shortcuts like ctrl+a to get to the start of the command because I forgot to type sudo.</p>
<p>Now I&#8217;m totally sold I&#8217;m going to shell out a £2.99 quid for the pro version.</p>
]]></content:encoded>
			<wfw:commentRss>http://tvsmashparty.com/blog/2009/08/mobile-web-site-resuce-ssh-from-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera and Safari will cache content with a query string</title>
		<link>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/</link>
		<comments>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 21:22:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Front End]]></category>
		<category><![CDATA[browser cache]]></category>
		<category><![CDATA[expiry header]]></category>
		<category><![CDATA[http header]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[query string]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://tvsmashparty.com/blog/?p=7</guid>
		<description><![CDATA[Opera and Safari will cache content with a query string (if you ask them to)]]></description>
			<content:encoded><![CDATA[<p>I was doing some checking up on our HTTP expiry headers that we were sending down dynamically with our product image caching script after it was reported by YSlow that they were not doing their job properly. Another concern I had is that I was under the impression that Opera and Safari do not cache content that has a query string.</p>
<p>Some browser cache mythbusting ensued.</p>
<p>A quick google search revealed only a few references to this phenomenon posted on out dated forum threads. After browsing our development version of our site with Opera 9 and Safari 3.1.2 and tailing the apache access log it was clear that this is not at all true. Given the correct expiry and cache control headers both Opera and Safari will cache content with a query string.</p>
<p>While a most of people completely ignore proper management of their users&#8217; browser caches others make wild assumptions and generalisations about the behaviour of these strange beasts. They all behave slightly differently and the only way to know for sure if a particular browser is caching your content is to open your access log and check. One trick I have used in the past is to put sleep(5), or your language&#8217;s equivalent somewhere in the script execution, but this can get tiresome!</p>
<p>Hitting refresh in most browsers certainly all the ones I tried on my mac will re-request most if not all content regardless and also emptying your cache, clearing your private data or whatever does not always do as is promised. A quick tip to finish make sure your test browsing is clicking through links and not hitting refresh, or your tests wont be accurate.</p>
]]></content:encoded>
			<wfw:commentRss>http://tvsmashparty.com/blog/2008/08/opera-and-safari-will-cache-content-with-a-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
