<?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; Server stuff and installs</title>
	<atom:link href="http://tvsmashparty.com/blog/category/server-stuff-and-installs/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>Installing Ferret on a PowerPC Mac</title>
		<link>http://tvsmashparty.com/blog/2008/08/installing-ferret-on-a-powerpc-mac/</link>
		<comments>http://tvsmashparty.com/blog/2008/08/installing-ferret-on-a-powerpc-mac/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 01:45:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server stuff and installs]]></category>
		<category><![CDATA[ferret]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[powerbook]]></category>
		<category><![CDATA[powerpc]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://tvsmashparty.com/blog/?p=13</guid>
		<description><![CDATA[However the powerpc world is as cruel as it is neglected]]></description>
			<content:encoded><![CDATA[<p>I am (still) a proud owner of an Apple PowerBook, and it&#8217;s only now that in this overwhelmingly x86 world that things are starting to get a little awkward. I dual boot Ubuntu and OS X and as many people know running powerpc linux is full of unexpected trouble and disappointments.</p>
<p>Anyway so I was trying to install ferret (a ruby based full text search engine) through ruby gems (I&#8217;m using 1.0.1) and ran into a puzzling issue. It should have been as simple first install the rubygem, then the rails plug-in,</p>
<blockquote><p>&gt; sudo gem install ferret</p>
<p>&gt; ruby script/plugin install svn://projects.jkraemer.net/acts_as_ferret/tags/ stable/acts_as_ferret </p></blockquote>
<p>However the powerpc world is as cruel as it is neglected. Though this command seems to result in success when you try and use the library with your rails app or whatever you will encounter an error when starting the server, something like</p>
<blockquote><p>Failed to load /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret_ext.bundle (LoadError)</p></blockquote>
<p>The reason for this is the Makefile that comes with this rubygem has the processor type hardcoded as i386, that&#8217;s intel x86 processors. </p>
<p>The solution: fix the makefile and compile it for your processor in a few easy steps.</p>
<p>Open your terminal and find your gems directory, mine is /usr/local/lib/ruby/gems/1.8/gems/ yours may vary due to 1.8, installation and ruby version.</p>
<blockquote><p>&gt; cd usr/local/lib/ruby/gems/1.8/gems/ </p></blockquote>
<p>Next Dig a little deeper into the ferret gem&#8217;s directory (assuming we have the same version it should be something like &#8230;</p>
<blockquote><p>&gt;cd ferret-0.11.6/ext</p></blockquote>
<p>Delete all the existing binaries, they are of no use to you.</p>
<blockquote><p>&gt; sudo rm *.o ferret_ext.bundle</p></blockquote>
<p>Fix that make file. Use your favourite text editor which must be vi right?</p>
<blockquote><p>&gt; sudo vim Makefile</p></blockquote>
<p>With the file open type</p>
<blockquote><p>:%s/i386/ppc</p></blockquote>
<p>to globally replace i386 with ppc. Next type</p>
<blockquote><p>:wq</p></blockquote>
<p>to save and exit. Use something less trciky like textmate, BBEdit or pico if you&#8217;re not familiar with vi. On the other hand you could learn to use it before you bring shame upon yourself and your family.</p>
<p>Now we&#8217;re ready to recompile the thing, pretty simple!</p>
<blockquote><p>&gt; sudo make </p></blockquote>
<p>This will compile all those little c files in there and create a new ferret_ext.bundle, for some reason this doesn&#8217;t really live here so last thing is to move to the right place</p>
<blockquote><p>&gt; sudo cp ferret_ext.budle ../lib</p></blockquote>
<p>All done. Start your rails app and go.</p>
]]></content:encoded>
			<wfw:commentRss>http://tvsmashparty.com/blog/2008/08/installing-ferret-on-a-powerpc-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
