<?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>gothi &#187; fixes</title>
	<atom:link href="http://www.gothi.co.uk/tag/fixes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gothi.co.uk</link>
	<description>A badly chosen byte</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:34:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SwirlyMMS picture import fix</title>
		<link>http://www.gothi.co.uk/2008/07/swirlymms-picture-import-fix/</link>
		<comments>http://www.gothi.co.uk/2008/07/swirlymms-picture-import-fix/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 20:12:36 +0000</pubDate>
		<dc:creator>gothi</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[swirlyMMS]]></category>

		<guid isPermaLink="false">http://www.gothi.co.uk/?p=74</guid>
		<description><![CDATA[SwirlyMMS 1.1.1 is a great piece of work but if you save pictures to the camera roll with it, or indeed any of the 1.0 releases, you&#8217;ll find that you cannot import your pictures on your PC. The problem is that SwirlyMMS is saving the pictures with the owner root instead of mobile. I&#8217;ve come [...]]]></description>
			<content:encoded><![CDATA[<p>SwirlyMMS 1.1.1 is a great piece of work but if you save pictures to the camera roll with it, or indeed any of the 1.0 releases, you&#8217;ll find that you cannot import your pictures on your PC.</p>
<p>The problem is that SwirlyMMS is saving the pictures with the owner <strong>root</strong> instead of <strong>mobile. </strong>I&#8217;ve come up with a couple of solutions for this:</p>
<ul>
<li>Change to the camera roll picture directory in putty or Mobile Terminal and type  <strong>chown mobile <em>IMG_0036.JPG </em></strong>replacing IMG_0036.JPG with the name of the picture</li>
<li>Browse to the camera roll directory in WinSCP and use the custom command <strong>chown mobile !</strong> on the affected picture</li>
<li>Use my bash script from within Mobile Terminal (I have it saved as <strong>fixswirly.sh</strong> in <strong>/private/var/mobile</strong> as this is where my Mobile Terminal starts up):</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p74code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p742"><td class="code" id="p74code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">PhotoDirectory</span>=<span style="color: #ff0000;">&quot;/private/var/mobile/Media/DCIM/100APPLE&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Setup find correctly.</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">IFS</span>=$<span style="color: #ff0000;">'\n'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Loop through the photo directory.</span>
<span style="color: #000000; font-weight: bold;">for</span> x <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${PhotoDirectory}</span>
   <span style="color: #000000; font-weight: bold;">do</span>
      <span style="color: #666666; font-style: italic;"># Find all Files</span>
      <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #007800;">$x</span> <span style="color: #660033;">-type</span> f<span style="color: #7a0874; font-weight: bold;">&#41;</span>
         <span style="color: #000000; font-weight: bold;">do</span>
            <span style="color: #666666; font-style: italic;"># Fix Permissions</span>
            <span style="color: #c20cb9; font-weight: bold;">chown</span> mobile <span style="color: #007800;">$i</span>
         <span style="color: #000000; font-weight: bold;">done</span>
   <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>It has to be run as root and if you run it from a location that is not on your PATH you will need to run it as such: <strong>./fixswirly.sh</strong> <span style="color: #ff0000;">or </span><strong>sh fixswirly.sh</strong></p>
<p><em>Based on an example Bash script by </em><a title="linickx.com" href="http://www.linickx.com/archives/396/bash-script-to-fix-file-permissions-recursively" target="_blank"><em>linickx.com</em></a></p>
<!-- AdSense Now! V1.90 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-5905155743931046";
/* 468x15, created 10/04/10 */
google_ad_slot = "2193001556";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.gothi.co.uk/2008/07/swirlymms-picture-import-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

