<?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>Jigsaw Boys</title>
	<atom:link href="http://www.jigsawboys.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jigsawboys.com</link>
	<description>Security, Network and Computer Tech Tip Database!</description>
	<lastBuildDate>Mon, 10 May 2010 02:07:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress on Mobile (iPhone and Android)</title>
		<link>http://www.jigsawboys.com/2010/05/10/wordpress-on-mobile-iphone-and-android/</link>
		<comments>http://www.jigsawboys.com/2010/05/10/wordpress-on-mobile-iphone-and-android/#comments</comments>
		<pubDate>Mon, 10 May 2010 02:06:22 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=373</guid>
		<description><![CDATA[WPTouch is a fantastic plugin for WordPress that allows your users to browse your WordPress Blog on iPhone and Android mobile phones. http://www.bravenewcode.com/products/wptouch/ If you want to customise the mobile theme, you can modify the PHP theme included in your wp-content/plugins/wptouch/themes folder in the same way as any other theme. See a customised theme in [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>WPTouch is a fantastic plugin for WordPress that allows your users to browse your WordPress Blog on iPhone and Android mobile phones.</p>
<p><a href="http://www.bravenewcode.com/products/wptouch/">http://www.bravenewcode.com/products/wptouch/</a></p>
<p>If you want to customise the mobile theme, you can modify the PHP theme included in your wp-content/plugins/wptouch/themes folder in the same way as any other theme.  </p>
<p>See a customised theme in action by visiting <a href="http://www.bestaussiecoffee.com ">http://www.bestaussiecoffee.com </a>on your Android or iPhone.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/05/10/wordpress-on-mobile-iphone-and-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite/Customise WordPress Search feature</title>
		<link>http://www.jigsawboys.com/2010/05/10/rewritecustomise-wordpress-search-feature/</link>
		<comments>http://www.jigsawboys.com/2010/05/10/rewritecustomise-wordpress-search-feature/#comments</comments>
		<pubDate>Mon, 10 May 2010 01:36:07 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=371</guid>
		<description><![CDATA[*This article assumes working knowledge of PHP and mySQL. Abstract WordPress search is rubbish. It basically just does a WHERE post_title LIKE %Your search string% which is inadequate 90% of the time. I spent ages wrestling with plugins like Search Unleashed and Search Everything and whilst they were great plugins for beginners, they just didn&#8217;t [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><em>*This article assumes working knowledge of PHP and mySQL.</em></p>
<p><strong>Abstract</strong><br />
WordPress search is rubbish.  It basically just does a <em>WHERE post_title LIKE %Your search string%</em> which is inadequate 90% of the time.  I spent ages wrestling with plugins like <em>Search Unleashed </em>and <em>Search Everything </em> and whilst they were great plugins for beginners, they just didn&#8217;t do exactly what I wanted.</p>
<p><a href="http://urbangiraffe.com/plugins/search-unleashed/">http://urbangiraffe.com/plugins/search-unleashed/</a><br />
<a href="http://wordpress.org/extend/plugins/search-everything/">http://wordpress.org/extend/plugins/search-everything/</a></p>
<p>For my project, I wanted to be able to search 2 different tables and return the results of both together in the one output. The first table was the normal posts table and the second table contained a list of all my entries with lattitude and longitude values.</p>
<p>I tried playing around with the WordPress search modifiers, but I found them to be too slow and cumbersome.<br />
<a href="http://codex.wordpress.org/Custom_Queries">http://codex.wordpress.org/Custom_Queries</a></p>
<p><strong>Solution</strong><br />
To start with, I wrote my own plugin (more information on how to do this can be found here: <a href="http://codex.wordpress.org/Writing_a_Plugin">http://codex.wordpress.org/Writing_a_Plugin</a>)</p>
<p>I then added the following filter to my plugin to fire when the WHERE clause is built in the general WordPress search:</p>
<p><code><br />
add_filter('posts_where', 'burnsie_search_where' );<br />
add_filter('posts_orderby', 'burnsie_search_orderby' );<br />
</code></p>
<p>And the the following function:</p>
<p><code><br />
function burnsie_search_where( $where )<br />
{<br />
  global $wp_query, $wpdb, $markers_table, $searchPostIDs;</p>
<p>//If a search query, then do our search<br />
  if( is_search() ) {<br />
//Get the search string<br />
        $searchStr = $wp_query->query_vars['s'];</p>
<p>//Get the lat and lng of our search str using googles GeoCode service<br />
         $latlngStr = doGeo ($searchStr);</p>
<p>//If a Lat Lng is returned<br />
         if ($latlngStr !='fail') {</p>
<p>         	$latlngArr = explode(",", $latlngStr);</p>
<p>//First search on keyword<br />
		$query = $wpdb->prepare("SELECT PostID FROM bar WHERE foo LIKE %s DESC ORDER BY our_order LIMIT 0, 100", "%" . $searchStr . "%");</p>
<p>//Our first set of results (A set of PostIDs in an array)<br />
		$query1arr = $wpdb->get_col($query,0);</p>
<p>//Query based on lattitude (This query is from the google maps store locator sample code)<br />
        		$query = "SELECT  PostID, ( 6371 * acos( cos( radians('" . $latlngArr[0] . "') ) * cos( radians( " . $markers_table . ".lat ) ) * cos( radians( " . $markers_table . ".lng ) - radians('" . $latlngArr[1] . "') ) + sin( radians('" . $latlngArr[0] . "') ) * sin( radians( lat ) ) ) ) AS distance, "<br />
                    		. " FROM " . $markers_table . "<br />
                    		. " GROUP BY " . $markers_table . ".id HAVING distance < 1 ORDER BY distance ASC LIMIT 0, 100";</p>
<p>//Our secondset of results (A set of PostIDs in an array)<br />
			$query2arr = $wpdb->get_col($query,0);</p>
<p>//Combine the first and second arrays to form an array ordered in our own method<br />
		$searchIDs = array_merge($query1arr, $query2arr);</p>
<p>		unset($query1arr);<br />
		unset($query2arr);<br />
	 }<br />
	 else<br />
	 {<br />
//If we cannot resolve a lat/lng from the GeoCoder, do a different type of search<br />
		$query = $wpdb->prepare("SELECT PostID FROM bar WHERE foo LIKE %s DESC ORDER BY our_order LIMIT 0, 100", "%" . $searchStr . "%");<br />
//Get list of postIDs in an array<br />
		$searchIDs = $wpdb->get_col($query,0);<br />
        }</p>
<p>//Convert the array of PostIDs into a string and remove any duplicate PostIDs</p>
<p>	$searchPostIDs = implode(",", array_unique($searchIDs));<br />
	 if ($searchPostIDs!="")<br />
	 {<br />
//If we have results, build the Where Clause and use the ORDER BY FIELD to ensure that wordpress doesn't re-order our results.<br />
        	           $where = " AND " . $wpdb->posts . ".ID IN (" . $searchPostIDs . ") ORDER BY FIELD(ID, " . $searchPostIDs . ")";<br />
        } </p>
<p>	 unset($searchIDs);<br />
	 $searchPostIDs = "";</p>
<p>   }</p>
<p>  return $where;<br />
}<br />
//Function for Order By.  Since we included OrderBy in the WHERE clause, then we have no need to add it again, so we return a blank orderby string</p>
<p>function burnsie_search_orderby($orderby) {<br />
 if( is_search() ) {<br />
    $orderby = "" ;</p>
<p> }</p>
<p>  return $orderby;<br />
}</p>
<p></code></p>
<p>In my testing I found the above code much faster and more flexible than the built in WordPress search, especially when order of results is important.</p>
<p>I use it on my website to ensure that 2 different tables can be searched and the results ordered independantly without messing with the original WordPress Loop. </p>
<p>See it in action at Best Aussie Coffee:<br />
<a href="http://www.bestaussiecoffee.com">http://www.bestaussiecoffee.com</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/05/10/rewritecustomise-wordpress-search-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rake db:seed &#124; Don&#8217;t know how to build task error</title>
		<link>http://www.jigsawboys.com/2010/03/23/rake-dbseed-dont-know-how-to-build-task-error/</link>
		<comments>http://www.jigsawboys.com/2010/03/23/rake-dbseed-dont-know-how-to-build-task-error/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 11:30:48 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rake]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=368</guid>
		<description><![CDATA[So I ran into a little issue today, I wasn&#8217;t able to get my rake db:seed task to work. This is the error I was getting; rake db:seed don't know how to build task The solution? Update rails to 2.3.5 How? gem update rails No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So I ran into a little issue today, I wasn&#8217;t able to get my rake db:seed task to work. This is the error I was getting;</p>
<pre class="brush: ruby;">
rake db:seed  don't know how to build task
</pre>
<p>The solution?</p>
<p>Update rails to 2.3.5</p>
<p>How?</p>
<pre class="brush: ruby;">
gem update rails
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/03/23/rake-dbseed-dont-know-how-to-build-task-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ordinal Number in Reporting Services</title>
		<link>http://www.jigsawboys.com/2010/03/04/ordinal-number-in-reporting-services/</link>
		<comments>http://www.jigsawboys.com/2010/03/04/ordinal-number-in-reporting-services/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 23:04:12 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[datetime format]]></category>
		<category><![CDATA[ordinal]]></category>
		<category><![CDATA[reporting services]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=359</guid>
		<description><![CDATA[Recently I had a client request for reporting services dates to use ordinal numbers, that being, &#8220;1st instead of 1, 2nd instead of 2&#8243; etc. To my surprise, this isn&#8217;t a standard datetime format in reporting services! So I set out to create my own ordinal function based on a C# version I found on [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Recently I had a client request for reporting services dates to use ordinal numbers, that being, &#8220;1st instead of 1, 2nd instead of 2&#8243; etc. To my surprise, this isn&#8217;t a standard datetime format in reporting services! </p>
<p>So I set out to create my own ordinal function based on a C# version I found on the Internet.</p>
<p>To use the below function in your report;</p>
<p>1) Open up your report in Reporting Services<br />
2) Make sure you&#8217;re in the Design section and click the &#8220;Report&#8221; menu option (up the top), then &#8220;Report Properties&#8221;<br />
3) Select &#8220;Code&#8221;<br />
4) Copy and Paste the function below into the &#8220;Custom Code&#8221; box.</p>
<pre class="brush: vb;">
Public Function FormatOrdinal(ByVal day As Integer) as String

    ' Starts a select case based on the odd/even of num
    Select Case (day Mod 100)
        ' If the nymber is 11,12 or 13 .. we want to add a &quot;th&quot; NOT a &quot;st&quot;, &quot;nd&quot; or &quot;rd&quot;
        Case 11
        Case 12
        Case 13
            Return day.ToString() + &quot;th&quot;
    End Select

    ' Start a new select case for the rest of the numbers
    Select Case day Mod 10
        Case 1
            ' The number is either 1 or 21 .. add a &quot;st&quot;
            Return day.ToString() + &quot;st&quot;
        Case 2
            ' The number is either a 2 or 22 .. add a &quot;nd&quot;
            Return day.ToString() + &quot;nd&quot;
        Case 3
            ' The number is either a 3 or 33 .. add a &quot;rd&quot;
            Return day.ToString() + &quot;rd&quot;
        Case Else
             ' Otherwise for everything else add a &quot;Th&quot;
            Return day.ToString() + &quot;th&quot;
    End Select
End Function
</pre>
<p>I was then able to use the function in an expression.</p>
<p>I wanted to format &#8220;01/01/2010&#8243; as &#8220;1st January 2010&#8243;. My expression was;</p>
<pre class="brush: vb;">
=Code.FormatOrdinal(Day(Fields!LETTERDATE.value)) &amp; &quot; &quot; &amp; MonthName(Month(Fields!LETTERDATE.value), False) &amp; &quot; &quot; &amp; Year(Fields!LETTERDATE.value)
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/03/04/ordinal-number-in-reporting-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will_paginate with multiple models</title>
		<link>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/</link>
		<comments>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 06:39:08 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[paging]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[will_paginate]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=341</guid>
		<description><![CDATA[If you need to implement paging in your Ruby on Rails application, a quick and easy way is to use the fantastic &#8220;Will_Paginate&#8221; plugin (available here). However I came across a need to paginate multiple models on the same page, for example; a list of users and a list of groups. Luckily Google came to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you need to implement paging in your Ruby on Rails application, a quick and easy way is to use the fantastic &#8220;Will_Paginate&#8221; plugin (<a href="http://wiki.github.com/mislav/will_paginate/" target="_blank">available here</a>).</p>
<p>However I came across a need to paginate multiple models on the same page, for example; a list of users and a list of groups.</p>
<p>Luckily Google came to the rescue with <a href="http://candidcode.com/2009/11/03/paginating-multiple-models-using-will_paginate-on-the-same-page/" target="_blank">this article</a>, which demonstrates the use of the :page option, allowing you to specify the page against a model object.</p>
<p>Check out the code below (courtesay of candidcode.com)</p>
<p><strong>Controller</strong></p>
<pre class="brush: ruby;">
@users = User.paginate(:page =&gt; params[:user_page], :per_page =&gt; 10)
@administrators = Administrator.paginate(:page =&gt; params[:administrator_page], :per_page =&gt; 10)
</pre>
<p><strong>View</strong></p>
<pre class="brush: ruby;">
&lt;%= will_paginate @users, :param_name =&gt; 'user_page' %&gt;
&lt;%= will_paginate @administrators, :param_name =&gt; 'administrator_page' %&gt;
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/03/02/will_paginate-with-multiple-models/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to import your Bookmarks to Safari</title>
		<link>http://www.jigsawboys.com/2010/02/27/how-to-import-your-bookmarks-to-safari/</link>
		<comments>http://www.jigsawboys.com/2010/02/27/how-to-import-your-bookmarks-to-safari/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:13:47 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=324</guid>
		<description><![CDATA[So you&#8217;ve made the switch to the Safari web browser; congrats! But what about your bookmarks? If you have a rather large list of bookmarked websites then you&#8217;ll need to import them! The following method demonstrates how to export your bookmarks from Firefox and import them using Safari. Step 1: Export bookmarks from Firefox The [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve made the switch to the Safari web browser; congrats! But what about your bookmarks? If you have a rather large list of bookmarked websites then you&#8217;ll need to import them!</p>
<p>The following method demonstrates how to export your bookmarks from Firefox and import them using Safari.</p>
<h3>Step 1: Export bookmarks from Firefox</h3>
<p>The first step requires you to export your bookmarks from Firefox. Fortunately this is fairly simple process. Simply select the Bookmarks menu item, then select &#8220;Organize Bookmarks&#8221;.</p>
<p><a href="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks.jpg"><img src="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks.jpg" alt="" title="import-safari-bookmarks" width="300" height="204" class="alignnone size-full wp-image-328" /></a></p>
<p>Next select the &#8220;Import and Backup&#8221; dropdown and select &#8220;Export HTML&#8221;.<br />
When prompted, save this file to your hard drive (desktop is fine for now).</p>
<p><a href="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-2.jpg"><img src="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-2-300x147.jpg" alt="" title="import-safari-bookmarks-2" width="300" height="147" class="alignnone size-medium wp-image-325" /></a></p>
<p>That&#8217;s it! You&#8217;ve successfully exported your bookmarks from Firefox to a standard .html file.</p>
<h3>Step 2: Import your bookmarks into Safari</h3>
<p>Next we need to import this file back into Safari. Now for me, the primary menu toolbar wasn&#8217;t enabled and I don&#8217;t believe it&#8217;s enabled by default. If you can&#8217;t see menu bar with &#8220;File&#8221;, &#8220;Edit&#8221;, &#8220;View&#8221; etc, then you&#8217;ll need to enable this menu bar. You can do this by selecting the cog menu icon on the right of the browser, and selecting &#8220;Show Menu Bar&#8221;.</p>
<p><a href="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-3.jpg"><img src="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-3.jpg" alt="" title="import-safari-bookmarks-3" width="300" height="332" class="alignnone size-full wp-image-326" /></a></p>
<p>Once you&#8217;ve got the menu bar activated, simply select &#8220;File&#8221; then &#8220;Import Bookmarks&#8221; and browse to your desktop where you saved the Firefox bookmark export!</p>
<p><a href="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-4.jpg"><img src="http://www.jigsawboys.com/wp-content/themes/mimbo2.2/images//2010/02/import-safari-bookmarks-4.jpg" alt="" title="import-safari-bookmarks-4" width="300" height="333" class="alignnone size-full wp-image-327" /></a></p>
<p>That&#8217;s it! You&#8217;ve successfully imported your bookmarks from Firefox. You can now drop and drag your bookmarks to your preference! </p>
<p>I dragged my most used bookmarks to the &#8220;Bookmark Bar&#8221; in Safari which allows me to quickly access the bookmarks I used most.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/02/27/how-to-import-your-bookmarks-to-safari/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Capistrano issues &#8211; no such file or directory</title>
		<link>http://www.jigsawboys.com/2010/02/22/capistrano-issues-no-such-file-or-directory/</link>
		<comments>http://www.jigsawboys.com/2010/02/22/capistrano-issues-no-such-file-or-directory/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 10:51:32 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=315</guid>
		<description><![CDATA[So I was playing around with my new Slicehost the other day and following their guides to automate a Ruby on Rails deployment process using capistrano. For those that don&#8217;t know, capistrano comes as a ruby gem which allows you to completely automate tasks. In my case, I wanted to remotely tell my Ruby on [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So I was playing around with my new Slicehost the other day and following their guides to automate a Ruby on Rails deployment process using capistrano.</p>
<p>For those that don&#8217;t know, capistrano comes as a ruby gem which allows you to completely automate tasks. In my case, I wanted to remotely tell my Ruby on Rails application to retrieve the latest version of the application from github (remote repository) and then restart my Rails app.</p>
<p>The documentation tells me that a simply &#8220;cap deploy&#8221; from the root of my rails folder should execute my capistrano script. However for hours upon hours I was banging my head against a wall.</p>
<p>Here&#8217;s the error I was receiving;</p>
<pre class="brush: ruby;">
C:\Web\xxxxx.com&gt; cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: &quot;git ls-remote git@github.com:xxxx/xxxx.git master&quot;
*** [deploy:update_code] rolling back
* executing &quot;rm -rf /home/xxxx/public_html/releases/20100222103818; true&quot;
servers: [&quot;173.203.207.104&quot;]
[173.203.207.104] executing command
command finished
C:/Apps/Ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.16/lib/capistrano/recipes/deploy.rb:98:in ``': No such file or direct
ory - git ls-remote git@github.com:xxxx/xxxx.git master (Errno::ENOENT)
</pre>
<p><strong>The solution</strong></p>
<p>Ok so I&#8217;m not really going to call this a solution because I don&#8217;t know why this works (and maybe one of you can assist me in this) but running the command &#8220;cap deploy&#8221; under a MINGW32 command shell instead of the usual Windows command prompt seemed to work just fine.</p>
<p>(I just <a href="http://www.mingw.org/">MINGW32</a> as a shell to run all my GIT repository commands)</p>
<p>If you don&#8217;t use Git on windows or you don&#8217;t have MINGW32 installed, I suggest you have a look at this <a href="http://code.google.com/p/msysgit/">Git on Windows</a> page.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/02/22/capistrano-issues-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove Buzz From Your Inbox</title>
		<link>http://www.jigsawboys.com/2010/02/11/remove-buzz-from-your-inbox/</link>
		<comments>http://www.jigsawboys.com/2010/02/11/remove-buzz-from-your-inbox/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 22:56:01 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[buzz]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=303</guid>
		<description><![CDATA[So my gmail turned into Google Buzz this morning .. Google&#8217;s instant method for launching into the social media space. The first thing that annoyed me was .. why are buzz updates appearing in my Gmail Inbox? My GMAIL inbox is for EMAIL &#8211; not social media status updates .. It&#8217;s a bit of a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So my gmail turned into Google Buzz this morning .. Google&#8217;s instant method for launching into the social media space. The first thing that annoyed me was .. why are buzz updates appearing in my Gmail Inbox?</p>
<p>My GMAIL inbox is for EMAIL &#8211; not social media status updates ..</p>
<p>It&#8217;s a bit of a hack to get rid of them but here goes;</p>
<p>1) Up the top click the &#8220;Create a filter&#8221; link (next to the search box)</p>
<p>2) Where it says &#8220;has the words&#8221; .. type in &#8220;label:buzz&#8221; (without the quotes of course)</p>
<p>3) Click &#8220;Next Step&#8221; (Ignore the warning that pops up ..)</p>
<p>3) Then tick the box which says &#8220;Skip the Inbox (Archive it)&#8221;</p>
<p>4) Then click &#8220;Create Filter&#8221;</p>
<p>Done! Now all buzz notifications will NOT be displayed in your GMAIL inbox. Want to turn off Buzz completely? Luckily is a piece of pie. Scroll to the bottom of Gmail and click the &#8220;turn off buzz&#8221; link. BOOM; buzz is gone and your Inbox is safe.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/02/11/remove-buzz-from-your-inbox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Error 0X80040201 while sending email</title>
		<link>http://www.jigsawboys.com/2010/02/03/error-0x80040201-while-sending-email/</link>
		<comments>http://www.jigsawboys.com/2010/02/03/error-0x80040201-while-sending-email/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 00:09:09 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[0X80040201]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[outlook]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=301</guid>
		<description><![CDATA[I recently had issues with an outlook error &#8220;0X80040201&#8243; and for the life of me I couldn&#8217;t fix it. However after much distress I was able to uncover what the problem was. I recently went from an Exchange 2007 environment to a IMAP environment and hence some of my contacts were corrupted. If I tried [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I recently had issues with an outlook error &#8220;0X80040201&#8243; and for the life of me I couldn&#8217;t fix it.</p>
<p>However after much distress I was able to uncover what the problem was. I recently went from an Exchange 2007 environment to a IMAP environment and hence some of my contacts were corrupted. If I tried to send an email to anyone from my old exchange contact list &#8211; the email would fail; hence the error 0X80040201.</p>
<p>Simply creating new contacts in Outlook for the people I wanted to send emails too, fixed this issue!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/02/03/error-0x80040201-while-sending-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fetch Last Record in Subsonic</title>
		<link>http://www.jigsawboys.com/2009/12/22/how-to-fetch-last-record-in-subsonic/</link>
		<comments>http://www.jigsawboys.com/2009/12/22/how-to-fetch-last-record-in-subsonic/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 06:18:22 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[subsonic]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=291</guid>
		<description><![CDATA[Is it just me or is Subsonic the topic of discussion right now? I had a need to retrieve the last ID that had been generated in a table; that being, the last &#8220;auto increment&#8221; ID of a table. The following example worked a charm using Subsonic and activerecord. var fetch_ref_id = contract.All().OrderByDescending(c =&#62; c.id).Take(1).ToList(); [...]


Related posts:<ol><li><a href='http://www.jigsawboys.com/2009/12/22/subsonic-ordering-orderbydescending/' rel='bookmark' title='Permanent Link: Subsonic ordering &#8211; OrderByDescending'>Subsonic ordering &#8211; OrderByDescending</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Is it just me or is Subsonic the topic of discussion right now? <img src='http://www.jigsawboys.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
I had a need to retrieve the last ID that had been generated in a table; that being, the last &#8220;auto increment&#8221; ID of a table.</p>
<p>The following example worked a charm using Subsonic and activerecord.</p>
<pre class="brush: csharp;">
var fetch_ref_id = contract.All().OrderByDescending(c =&gt; c.id).Take(1).ToList();
if (iRef_new_id != null)
{
     iRef_new_id = fetch_ref_id[0].id;
}
</pre>
<p>As you can see, it creates a new list (noted by the ToList()) by connecting to the table &#8220;category&#8221;, it then selects all results (All()) and then orders the list by Descending and finally, the take(1) simply takes the top record.</p>
<p>I then whack the result (if you have a column called id) into a integer.</p>


<p>Related posts:<ol><li><a href='http://www.jigsawboys.com/2009/12/22/subsonic-ordering-orderbydescending/' rel='bookmark' title='Permanent Link: Subsonic ordering &#8211; OrderByDescending'>Subsonic ordering &#8211; OrderByDescending</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/12/22/how-to-fetch-last-record-in-subsonic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subsonic ordering &#8211; OrderByDescending</title>
		<link>http://www.jigsawboys.com/2009/12/22/subsonic-ordering-orderbydescending/</link>
		<comments>http://www.jigsawboys.com/2009/12/22/subsonic-ordering-orderbydescending/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 05:41:22 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[linq]]></category>
		<category><![CDATA[subsonic]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=288</guid>
		<description><![CDATA[So the subsonic documentation sucks. If you&#8217;re new to activerecord, linq and subsonic in general; you&#8217;ll find it fairly hard to construct basic queries. However once you&#8217;ve got it under control, it&#8217;s a piece of cake. To sort your table using activerecord, use the following examples; To sort ascending by a column called name var [...]


Related posts:<ol><li><a href='http://www.jigsawboys.com/2009/12/22/how-to-fetch-last-record-in-subsonic/' rel='bookmark' title='Permanent Link: How to fetch Last Record in Subsonic'>How to fetch Last Record in Subsonic</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>So the subsonic documentation sucks. If you&#8217;re new to activerecord, linq and subsonic in general; you&#8217;ll find it fairly hard to construct basic queries. However once you&#8217;ve got it under control, it&#8217;s a piece of cake.</p>
<p>To sort your table using activerecord, use the following examples;</p>
<p><b>To sort ascending by a column called name</b></p>
<pre class="brush: csharp;">
var categories = category.All().OrderBy(c =&gt; c.name);
</pre>
<p><b>To sort descendingby a column called name</b></p>
<pre class="brush: csharp;">
var categories = category.All().OrderByDescending(c =&gt; c.name);
</pre>
<p>You can then just bind to your gridview/dropdown list or whatever you like.</p>
<pre class="brush: csharp;">
            if (categories != null)
            {
                drp.DataSource = categories ;
                drp.DataBind();
            }
</pre>


<p>Related posts:<ol><li><a href='http://www.jigsawboys.com/2009/12/22/how-to-fetch-last-record-in-subsonic/' rel='bookmark' title='Permanent Link: How to fetch Last Record in Subsonic'>How to fetch Last Record in Subsonic</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/12/22/subsonic-ordering-orderbydescending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Reset your MediaWiki Admin Password</title>
		<link>http://www.jigsawboys.com/2009/12/05/how-to-reset-your-mediawiki-admin-password/</link>
		<comments>http://www.jigsawboys.com/2009/12/05/how-to-reset-your-mediawiki-admin-password/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 01:28:32 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[password reset]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=286</guid>
		<description><![CDATA[So for some strange reason, it just took me a good 20minutes to find an article on Google to tell me how to reset the Mediawiki admin password (because yes .. I forgot it). Some articles mentioned using phpMyAdmin to edit the users table directly, however the password is stored in a TinyBLOB format &#8211; [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>So for some strange reason, it just took me a good 20minutes to find an article on Google to tell me how to reset the Mediawiki admin password (because yes .. I forgot it). Some articles mentioned using phpMyAdmin to edit the users table directly, however the password is stored in a TinyBLOB format &#8211; so I had no clue.</p>
<p>Luckily I finally found a way to reset the Admin password!</p>
<p>You&#8217;ll need shell/SSH access for this procedure to work.</p>
<p>1) Login to your media wiki installation<br />
2) Then type the following;</p>
<pre lang="html4strict" line="1">
cd maintenance
php changePassword.php --user=Admin --password=tada321$
</pre>
<p>This will change the &#8220;Admin&#8221; user&#8217;s password to &#8220;tada321$&#8221; ! I then highly suggest you login to MediaWiki and change the password to something more secure/familiar <img src='http://www.jigsawboys.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/12/05/how-to-reset-your-mediawiki-admin-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
