<?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>Alex Sleat &#187; hack</title>
	<atom:link href="http://alexsleat.co.uk/tag/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Sat, 04 Feb 2012 22:11:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Flashing Samsung Galaxy S (I9000) ROMs with Heimdall</title>
		<link>http://alexsleat.co.uk/2011/06/19/flashing-samsung-galaxy-s-i9000-roms-with-heimdall/</link>
		<comments>http://alexsleat.co.uk/2011/06/19/flashing-samsung-galaxy-s-i9000-roms-with-heimdall/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 12:28:59 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[2.3]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[custom rom]]></category>
		<category><![CDATA[darkys rom]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flashing]]></category>
		<category><![CDATA[froyo]]></category>
		<category><![CDATA[gingerbread]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[heimdall]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[libqtgui4]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[rom]]></category>
		<category><![CDATA[samsung galaxy s]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=16753</guid>
		<description><![CDATA[<br/><p>This Tutorial is just a documentation of how I flashed my Samsung Galaxy S (I9000) using heimdall with Darky&#8217;s Rom v10.1, follow the steps at your own risk. I am in no way liable for any damage caused to your phone following these steps. I would advise reading up on flashing before proceeding along [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p>This Tutorial is just a documentation of how I flashed my Samsung Galaxy S (I9000) using heimdall with Darky&#8217;s Rom v10.1, follow the steps at your own risk. I am in no way liable for any damage caused to your phone following these steps. I would advise reading up on flashing before proceeding along with pre-reading the guide first.</p>
<p>If you don&#8217;t know what you&#8217;re doing, you should probably not do it.</p>
<p>For more information, help and most anything check out <a href="http://forum.xda-developers.com/index.php">xdadevelopers forum</a> and <a href="http://www.darkyrom.com/">DarkysRom.com</a></p></blockquote>
<p>This guide is using a fresh install of Ubuntu 11.04 on a memory stick, I was unable to get heimdall installed on Fedora 15 or Ubuntu 10.04.<br />
For this guide I will use Darkys Rom v10.1, however it should work for all ROMs that come with the correct files, as shown below.</p>
<h3>Installing Heimdall</h3>
<p>First install the Qt Gui libraries:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> apt-get <span class="kw2">install</span> libqtgui4</div>
<p>Once that&#8217;s installed head over to the heimdall website and download heimdall and the frontend for it, here I went for version 1.1.1 as the latest version (as of writing this guide 1.2.0 does not have a frontend).</p>
<p>Here simply download the .deb file and run it once it&#8217;s downloaded, you should be able to install them no problem.</p>
<p><em>(direct links for the version used in this guide)</em><br />
Heimdall &#8211; <a href="https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall_1.1.1-1_i386.deb">https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall_1.1.1-1_i386.deb</a><br />
Heimdall-frontend &#8211; <a href="https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall-frontend_1.1.1-1_i386.deb">https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall-frontend_1.1.1-1_i386.deb</a></p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot.png"><img class="aligncenter size-full wp-image-16795" title="Heimdall" src="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot.png" alt="" width="904" height="553" /></a></p>
<h3>Getting The Files</h3>
<p>Download the ROM you wish to flash your phone with, for example download <a href="http://www.darkyrom.com/community/index.php?threads/odin-darkys-resurrection-edition-10-1-gt-i9000-only-for-now.3237/">Darky&#8217;s Ressurection v10.1</a>.</p>
<p>Extract Darky_Resurrection_10.1_i9000.zip<br />
Inside also extract Darky_Resurrection_10.1.tar</p>
<p>You should have the following files:</p>
<p>Darky_Resurrection_10.1_i9000<em> (folder)</em></p>
<ul>
<li>Darky_Resurrection_10.1 <em>(folder)</em>
<ul>
<li>boot.bin</li>
<li>cache.rfs</li>
<li>dbdata.rfs</li>
<li>factoryfs.rfs</li>
<li>modem.bin</li>
<li>param.lfs</li>
<li> Sbl.bin</li>
<li> zImage</li>
</ul>
</li>
<li>Odin3 v1.3,exe</li>
<li>Odin3 v1.7.exe</li>
<li>s1_odin_20100512.pit</li>
</ul>
<h3>Preparing Your Phone</h3>
<p><span style="text-decoration: underline; color: #ff0000;"><strong>Make sure you have full battery and disabled all lagfixes.</strong></span></p>
<h3>Flashing The Phone</h3>
<p>Press Alt+F2 and then type &#8220;heimdall-frontend&#8221; and hit enter.</p>
<p>Add the files to the correct heidmall options as so:</p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot-1.png"><img class="aligncenter size-full wp-image-16797" title="Heimdall-frontend" src="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot-1.png" alt="" width="903" height="553" /></a></p>
<h6>Repartition</h6>
<p><strong>PIT :</strong> s1_odin_20100512.pit</p>
<h6>PDA/Code</h6>
<p><strong>FactoryFS :</strong> factoryfs.rfs<br />
<strong>Kernel(zImage) :</strong> zImage<br />
<strong>Param.lfs :</strong> param.lfs<br />
<strong>Primary BootLoader :</strong> boot.bin<br />
<strong>Secondary Bootloader :</strong> Sbl.bin</p>
<h6>CSC</h6>
<p><strong>Cache :</strong> cache.rfs<br />
<strong>Database Data : </strong>dbdata.rfs</p>
<h6>Other</h6>
<p><strong>Modem :</strong> modem.bin<br />
<strong>Recovery :</strong> &#8211;</p>
<p>Finally put your phone into download mode.</p>
<p>Once your phone is in downloadd mode, make sure it&#8217;s connected via USB and then press start on Heimdall.</p>
<p>After a few minutes your Heimdall will say Finished. Boom you&#8217;re done. Just wait for your phone to finish doing whatever it&#8217;s doing and you should end up back at the home screen soon enough.</p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot-21.png"><img class="aligncenter size-full wp-image-16798" title="Darky's rom flashed in linux" src="http://alexsleat.co.uk/wp-content/uploads/2011/06/Screenshot-21.png" alt="" width="904" height="552" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/06/19/flashing-samsung-galaxy-s-i9000-roms-with-heimdall/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Kinect Development &#8211; Day 1</title>
		<link>http://alexsleat.co.uk/2011/05/14/kinect-development-day-1/</link>
		<comments>http://alexsleat.co.uk/2011/05/14/kinect-development-day-1/#comments</comments>
		<pubDate>Sat, 14 May 2011 23:03:47 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Machine Vision]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[kinect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[machine vision]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[robotics]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=15926</guid>
		<description><![CDATA[<br/><p>Head over to this page if you want some tutorials on getting started with the Kinect and libfreenect, I&#8217;ll update more as time goes on and I have free time.</p> <p>I&#8217;ve been meaning to grab myself an Xbox 360 Kinect for a while, not because I&#8217;m a big motion controlled game fan but for [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p>Head over to <a href="http://alexsleat.co.uk/kinect-development-tutorials/">this page</a> if you want some tutorials on getting started with the Kinect and libfreenect, I&#8217;ll update more as time goes on and I have free time.</p></blockquote>
<p>I&#8217;ve been meaning to grab myself an Xbox 360 Kinect for a while, not because I&#8217;m a big motion controlled game fan but for machine vision development. Within the first month of the Kinect open source drivers being released the coolest things were seen, from motion controlled media centres to 3D modelling. I&#8217;ll admit, I&#8217;m a little late to the game, mostly due to the amount of work in my final year at university and other general business. Over the summer I&#8217;ll have plenty of time to do a couple of projects and hopefully come up with something cool and contribute to the scene.</p>
<p>Anyway enough of the small talk, I&#8217;ve decided to blog in as much detail the journey through the development, from the installation of the libraries to writing the first and last bit of code as a sort of a set of tutorials for anyone else who wants to get into it.</p>
<p style="text-align: center;"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/05/2011-05-13-1305312313_1440x900_scrot.png"><img class="size-large wp-image-15938 aligncenter" title="Kinect Example Program" src="http://alexsleat.co.uk/wp-content/uploads/2011/05/2011-05-13-1305312313_1440x900_scrot-1024x640.png" alt="" width="640" height="400" /></a></p>
<p>There are currently two main sets of drivers/libraries out there <strong>libfreenect</strong> and <strong>OpenNI</strong> both sporting hip, cool, open source names. So which one do you choose? Well, here&#8217;s a brief description of both.</p>
<p>Let&#8217;s start with OpenNI, these are the Official PrimeSense (the people that Microsoft paid to actually create the Kinect) these allow access to audio, video and depth with the addition of PrimeSense&#8217;s NITE Middleware. NITE is the software library used for skeletal tracking, hand gesture recognition and scene analyzer (used to separate figures in the foreground from the background) .</p>
<p>Alternatively there is the libfreenect libraries, from the community over at <a href="http://openkinect.org/">openkinect.org</a>. While these are admittedly lacking slightly in features such as skeletal tracking and hand gesture recognition they much make up for it in the dedication to open source and the creation of the best suite available. These have access to video, microphones, motors and LED with speakers currently being worked on. They work under a variety of language wrappers for most OS&#8217;s and will of course by my personal library of choice.</p>
<p>Fortunately, you won&#8217;t have to decide which one you&#8217;d prefer &#8217;cause you can run them both on the same machine but you&#8217;ll have to look into licencing information for releasing projects with OpenNI so it&#8217;s unlikely you&#8217;ll want to combine them (or even allowed?).</p>
<p><strong>libfreenect Installation:</strong></p>
<p>OpenKinect&#8217;s getting started page provides a well enough documented installation guide that anyone should be able to get them up and running under Windows/Linux or OSX. With Ubuntu being the distro of choice for installation guide. - <a href="http://openkinect.org/wiki/Getting_Started">http://openkinect.org/wiki/Getting_Started</a></p>
<p>If you&#8217;re running Arch, there are a few AUR packages available however they all seem to have lacked updates for a few months but the manual build is pretty simple on the getting started page, I&#8217;ve also added a quick list of commands to get you there:</p>
<p><span style="text-decoration: underline;">Grab the git copy of the libraries:</span></p>
<div class="dean_ch" style="white-space: wrap;">git clone https://github.com/OpenKinect/libfreenect.git<br />
<span class="kw3">cd</span> libfreenect/</div>
<p><span style="text-decoration: underline;">Make, install:</span></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">mkdir</span> build<br />
<span class="kw3">cd</span> build/<br />
cmake ..<br />
<span class="kw2">make</span><br />
<span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span><br />
<span class="kw2">sudo</span> ldconfig /usr/<span class="kw3">local</span>/lib64/</div>
<p><span style="text-decoration: underline;">Add your user to allow access to the connect by creating a group called video and adding your user to it:</span><br />
<em>note: this can be skipped if you don&#8217;t mind running as root/sudo</em></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">nano</span> /etc/udev/rules.d/<span class="nu0">66</span>-kinect.rules<br />
<span class="kw2">sudo</span> usermod -G video username</div>
<p><span style="text-decoration: underline;">Test the kinect with the example program:</span></p>
<div class="dean_ch" style="white-space: wrap;">bin/glview</div>
<p>If all went well you should have seen a sight similar to the screenshot above, if not check out the OpenKinect page for more information and see if the problems you&#8217;re having haven&#8217;t already been resolved.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/14/kinect-development-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: &#8220;end_request: I/O error, dev sr0, sector xxxxx&#8221; &#8211; Linux</title>
		<link>http://alexsleat.co.uk/2011/03/20/end_request-io-error-dev-sr0-sector-xxxxx-linux/</link>
		<comments>http://alexsleat.co.uk/2011/03/20/end_request-io-error-dev-sr0-sector-xxxxx-linux/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 14:46:49 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[dev sr0]]></category>
		<category><![CDATA[end_request]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[io error]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[narwhal]]></category>
		<category><![CDATA[natty]]></category>
		<category><![CDATA[Natty Narwhal]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=13114</guid>
		<description><![CDATA[<br/><p>Error:</p> end_request: I/O error, dev sr0, sector 537392 <p>If you&#8217;re getting a similar error filling your screen once you&#8217;ve installed Ubuntu, don&#8217;t panic. It&#8217;s pretty common which is basically because Ubuntu (or any other Linux distro) can&#8217;t control your CD/DVD drive properly, it&#8217;s probably trying to open/close it but doesn&#8217;t know if it has [...]]]></description>
			<content:encoded><![CDATA[<br/><p><strong>Error:</strong></p>
<div class="dean_ch" style="white-space: wrap;">end_request: I/O error, dev sr0, sector <span class="nu0">537392</span></div>
<p>If you&#8217;re getting a similar error filling your screen once you&#8217;ve installed Ubuntu, don&#8217;t panic. It&#8217;s pretty common which is basically because Ubuntu (or any other Linux distro) can&#8217;t control your CD/DVD drive properly, it&#8217;s probably trying to open/close it but doesn&#8217;t know if it has or not. The problem is that you don&#8217;t get to see what Ubuntu wrote before because it&#8217;s filled your screen up with this error.</p>
<p>If you&#8217;ve just installed Ubuntu this probably happened when it wanted you to take the disc out and close the cd tray (if there is one) then hit Enter to finish the installation, so just do that and ignore this error.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/03/20/end_request-io-error-dev-sr0-sector-xxxxx-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto Sync Kindle in Ubuntu</title>
		<link>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 12:23:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[diy kindle stand]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[kindle 3]]></category>
		<category><![CDATA[kindle 3 stand]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rules.d]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=11625</guid>
		<description><![CDATA[<br/><p></p> <p>For Christmas I got a Kindle 3 and it was instantly filled with Free eBooks (http://www.gutenberg.org/wiki/Main_Page) and research papers (PDFs). I found myself wanting to be able to automatically synchronize it with a folder on my desktop when it was plugged in and found no one else had posted online how to do [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/01/2010-12-27-14.11.38.jpg"><img class="size-large wp-image-11639 alignleft" title="DIY Kindle Stand" src="http://alexsleat.co.uk/wp-content/uploads/2011/01/2010-12-27-14.11.38-1024x614.jpg" alt="" width="368" height="221" /></a></p>
<p>For Christmas I got a Kindle 3 and it was instantly filled with Free eBooks (http://www.gutenberg.org/wiki/Main_Page) and research papers (PDFs). I found myself wanting to be able to automatically synchronize it with a folder on my desktop when it was plugged in and found no one else had posted online how to do this, so I began researching into udev and rsync to get something working.</p>
<p><strong>Setting up udev rules to run a script when the Kindle is plugged in.</strong></p>
<p>Firstly, we need to find some parameters of the Kindle which are unique to it so that udev can identify that it is the Kindle being plugged in and not another USB mass storage device. We&#8217;ll need to find out where the device is mounted in /dev/ which can be a little tricky because this folder is pretty full.</p>
<p>An easier way to do this is to first, without the Kindle plugged in do the following command (list the directory and pipe the output to a file called dev1 in the home dir):</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">ls</span> /dev/ &gt; ~/dev1</div>
<p>Now plug the Kindle in and redo the command, changing the destination output:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">ls</span> /dev/ &gt; ~/dev2</div>
<p>The difference between the two files will show what has changed in the /dev/ directory:</p>
<div class="dean_ch" style="white-space: wrap;"> sdiff ~/dev1 ~/dev2</div>
<p>The output for mine (<em>show in the image below</em>) shows that 3 things changed when I plugged in the Kindle, sdb, sdb1 and sg2 directorys were added (shown by the &gt; sign to the left). The folder I am looking for is the sdb1, this is where the mass storage device is found.<br />
<a href="http://alexsleat.co.uk/wp-content/uploads/2011/01/Screenshot-alex@icarus-Desktop-.png"><img class="aligncenter size-full wp-image-11630" title="sdiff /dev/" src="http://alexsleat.co.uk/wp-content/uploads/2011/01/Screenshot-alex@icarus-Desktop-.png" alt="" width="953" height="488" /></a></p>
<p>Write down where it&#8217;s found in /dev/ and then you can clean up those two files you previously made:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">rm</span> ~/dev1 | <span class="kw2">rm</span> ~/dev2</div>
<p>The next thing we want to do is use udevadm to collect some useful information about the device which we can do by the following command (I have chosen to pipe the output to a file called kindle in the home dir, because the output was pretty big. If you don&#8217;t want to remove the &gt; ~/kindle from the end of the command):</p>
<div class="dean_ch" style="white-space: wrap;">udevadm info -a -p $<span class="br0">&#40;</span>udevadm info -q path -n /dev/sdb1<span class="br0">&#41;</span> &gt; ~/kindle</div>
<p><strong>WARNING:</strong> This can look pretty daunting but, (in the words of Douglas Adams) <strong>Don&#8217;t Panic.</strong></p>
<div style="overflow: auto; height: 350px; border: 1px solid black;">
<div class="dean_ch" style="white-space: wrap;"> &nbsp;looking at device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0/block/sdb/sdb1&#8242;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNEL=</span>=<span class="st0">&quot;sdb1&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEM=</span>=<span class="st0">&quot;block&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVER=</span>=<span class="st0">&quot;&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>partition<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>start<span class="br0">&#125;</span>==<span class="st0">&quot;16&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span><span class="kw2">size</span><span class="br0">&#125;</span>==<span class="st0">&quot;6410672&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>alignment_offset<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>discard_alignment<span class="br0">&#125;</span>==<span class="st0">&quot;4294959104&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span><span class="kw2">stat</span><span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; 151 &nbsp; &nbsp; 3389 &nbsp; &nbsp; 4239 &nbsp; &nbsp; 3776 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 2424 &nbsp; &nbsp; 3776&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>inflight<span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0&quot;</span></p>
<p>&nbsp; looking at parent device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0/block/sdb&#8217;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNELS=</span>=<span class="st0">&quot;sdb&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEMS=</span>=<span class="st0">&quot;block&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVERS=</span>=<span class="st0">&quot;&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>range<span class="br0">&#125;</span>==<span class="st0">&quot;16&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ext_range<span class="br0">&#125;</span>==<span class="st0">&quot;256&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>removable<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ro<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">size</span><span class="br0">&#125;</span>==<span class="st0">&quot;6410688&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>alignment_offset<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>discard_alignment<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>capability<span class="br0">&#125;</span>==<span class="st0">&quot;51&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">stat</span><span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; 156 &nbsp; &nbsp; 3389 &nbsp; &nbsp; 4279 &nbsp; &nbsp; 3808 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 2456 &nbsp; &nbsp; 3808&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>inflight<span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0&quot;</span></p>
<p>&nbsp; looking at parent device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0&#8242;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNELS=</span>=<span class="st0">&quot;21:0:0:0&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEMS=</span>=<span class="st0">&quot;scsi&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVERS=</span>=<span class="st0">&quot;sd&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>device_blocked<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw3">type</span><span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>scsi_level<span class="br0">&#125;</span>==<span class="st0">&quot;3&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>model<span class="br0">&#125;</span>==<span class="st0">&quot;Internal Storage&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">rev</span><span class="br0">&#125;</span>==<span class="st0">&quot;0100&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>state<span class="br0">&#125;</span>==<span class="st0">&quot;running&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>timeout<span class="br0">&#125;</span>==<span class="st0">&quot;30&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iocounterbits<span class="br0">&#125;</span>==<span class="st0">&quot;32&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iorequest_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0xe1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iodone_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0xe1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ioerr_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0&#215;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>evt_media_change<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>dh_state<span class="br0">&#125;</span>==<span class="st0">&quot;detached&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>queue_depth<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>queue_type<span class="br0">&#125;</span>==<span class="st0">&quot;none&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>max_sectors<span class="br0">&#125;</span>==<span class="st0">&quot;240&quot;</span></div>
</div>
<p>While this many look daunting, what you want to do if find some attributes from the output which mean only your Kindle will be found when looking for them all, the problem I have found is that, with udev rules you cannot go too far down in the parent tree which stops me being able to use the Kindles serial to identify it. This could mean that my computer will sync any Kindle that&#8217;s plugged into it but I don&#8217;t have 2 to check. The following are the attributes I chose:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">KERNEL=</span>=<span class="st0">&quot;sd?&quot;</span>, ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span>, ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span></div>
<p>Now you&#8217;ll want to write the udev rule in /etc/udev/rules.d/</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw3">cd</span> /etc/udev/rules.d/</div>
<p>According to the readme the numbers represent the priority of the rule (higher overriding lower) followed by a descriptive name and it must end in .rules eg (xx-description.rules).</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit <span class="nu0">81</span>-kindle-<span class="kw2">sync</span>.rules</div>
<p>The following is the whole line I used for the udev rule, the only addition to the above is the RUN+=&#8221;/home/alex/.scripts/kindlesync.sh&#8221; which will run the script in that directory, this script contains the rsync command.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">KERNEL=</span>=<span class="st0">&quot;sd?&quot;</span>, ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span>, ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span>, RUN+=<span class="st0">&quot;/home/alex/.scripts/./kindlesync.sh&quot;</span></div>
<p>Save and close the file and then restart the udev service:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> service udev restart</div>
<p><strong>Writing a script to sync a folder on the Desktop with a folder on the Kindle using rsync:</strong><br />
Change the first directory from &#8220;/home/alex/ebooks/kindle_sync&#8221; to the directory on your computer where you want to keep the files that will be synced onto your Kindle and the second from &#8220;/media/Kindle/documents/sync/&#8221; to the location on your mounted Kindle where you want the files to be stored, save this file as kindlesync.sh. This is the script you call from the udev rules so for mine it&#8217;s saved as &#8220;/home/alex/.scripts/kindlesync.sh&#8221;.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span></p>
<p><span class="re3">#Sync</span><br />
rsync -av /home/alex/eBooks/kindle_sync/ /media/Kindle/documents/<span class="kw2">sync</span>/</div>
<p>Go to the location of the script and make it executable with the following command:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">chmod</span> +x kindlesync.<span class="kw2">sh</span></div>
<p>Now try plugging in your Kindle and make sure it syncs up!</p>
<p><strong>Problems</strong></p>
<p>In the udev rule, ACTION==&#8221;add&#8221; can be used to specify when the Kindle is first plugged in, however when trying to use this Ubuntu&#8217;s auto-mounting service mounts the drive after the script is ran so the sync becomes useless. Without this it runs the script 3 times, twice before it has mounted and then once it has mounted &#8211; this is currently the best I have found but it&#8217;s extremely messy.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A More Elegant Solution to Ubuntu Wi-Fi Reconnecting Issue</title>
		<link>http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/</link>
		<comments>http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 23:25:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[drop wifi]]></category>
		<category><![CDATA[failing to reconnect]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[local]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[network-manager]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[rc.local]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[script on login]]></category>
		<category><![CDATA[script on startup]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wifi doesnt reconnect]]></category>
		<category><![CDATA[wifi not connecting]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=11358</guid>
		<description><![CDATA[<br/><p>Previously I was having problems with Ubuntu dropping wifi connections and failing to reconnect, to solve this I wrote a script which would kill the network-manager and then connect using iwconfig commands (here). While this works fine, it felt a little hacky, having to have a script running as sudo constantly in the background [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Previously I was having problems with Ubuntu dropping wifi connections and failing to reconnect, to solve this I wrote a script which would kill the network-manager and then connect using iwconfig commands (<a href="http://alexsleat.co.uk/2010/11/05/ubuntu-disconnecting-from-wifi-and-failing-to-reconnect/">here</a>). While this works fine, it felt a little hacky, having to have a script running as sudo constantly in the background checking for a dropped connection. After a little searching I came across cron (the time based job scheduler ) and /etc/rc.local (a script which is run after all other initialization scripts have ran, allowing for scripts to be ran on startup) so from this I decided to split the old script up into connection and checking scripts which could be ran from init.d/local and cron, respectively.</p>
<p>Firstly my startup script in /etc/init.d/local which sets up and connects to the wireless network, open the file as sudo:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> gedit /etc/rc.<span class="kw3">local</span></div>
<p>Paste in the following:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#! /bin/sh</span></p>
<p>service network-manager stop &amp;&amp; service networking stop</p>
<p>iwconfig wlan0 essid NETWORKNAME<br />
iwconfig wlan0 key WEPKEY<br />
ifconfig wlan0 up<br />
dhclient3 wlan0</p>
<p><span class="kw2">sleep</span> <span class="nu0">10</span></p>
<p><span class="kw1">if</span> iwconfig wlan0 | <span class="kw2">grep</span> -o <span class="st0">&quot;Access Point: Not-Associated&quot;</span><br />
<span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan0 down<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">sleep</span> <span class="nu0">10</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan0 up</p>
<p><span class="kw1">fi</span></p>
<p><span class="kw3">exit</span> <span class="nu0">0</span><br />
&nbsp;</div>
<p>Next the script for checking the network is still connected, if not attempt to reconnect (named wirelesscheck.sh):</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span></p>
<p><span class="kw1">if</span> iwconfig wlan0 | <span class="kw2">grep</span> -o <span class="st0">&quot;Access Point: Not-Associated&quot;</span><br />
<span class="kw1">then</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan0 down<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">sleep</span> <span class="nu0">10</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan0 up<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span class="kw1">fi</span></div>
<p>Make sure this script is executable (from the directory of the script):</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">chmod</span> +x wirelesscheck.<span class="kw2">sh</span></div>
<blockquote><p>Note: This is setup in the sudo crontab, only because this command needs root privileges &#8211; other commands could be added to a user crontab (by removing sudo from the following.)</p></blockquote>
<p>Now, edit (-e) the crontab for sudo:</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> crontab -e</div>
<p>If crontab has not previously been used choose an editor (I used nano &#8211; 2) and append this line to the bottom of the file and change the frequency and directory of the script. The current settings will run it every 5 minutes (*/5) every hour, day, month and year and the file is located in &#8220;/path/to/script/wirelesscheck.sh&#8221;.</p>
<div class="dean_ch" style="white-space: wrap;">*/<span class="nu0">5</span> * * * * /path/to/script/wirelesscheck.<span class="kw2">sh</span></div>
<p>If you have any issues, leave a comment and I will help if I can.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu Disconnecting from Wi-Fi and Failing to Reconnect.</title>
		<link>http://alexsleat.co.uk/2010/11/05/ubuntu-disconnecting-from-wifi-and-failing-to-reconnect/</link>
		<comments>http://alexsleat.co.uk/2010/11/05/ubuntu-disconnecting-from-wifi-and-failing-to-reconnect/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 09:43:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[disconnected]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=6456</guid>
		<description><![CDATA[<br/><p> I have an updated fix for this issue using a startup script to connect and a time scheduled script for checking the connection, rather than having one constantly running in the background, avalible here &#8211; http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/ </p> <p>I&#8217;ve been having some trouble with my wifi on Ubuntu recently but I think it&#8217;s because [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p> I have an updated fix for this issue using a startup script to connect and a time scheduled script for checking the connection, rather than having one constantly running in the background, avalible here &#8211; <a href="http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/">http://alexsleat.co.uk/2011/01/09/a-more-elegant-solution-to-ubuntu-wi-fi-reconnecting-issue/</a> </p></blockquote>
<p>I&#8217;ve been having some trouble with my wifi on Ubuntu recently but I think it&#8217;s because I&#8217;m almost out of range of the access point. The problem is that once it disconnects it never seems to be able to reconnect unless wireless is disabled and re-enabled. No doubt there is another way of fixing this issue but it gives me a chance to write my first shell script.</p>
<p>In short the script disables network-manager (it was trying to do things auto which was screwing with things), sets up the connection and connects then checks for a string in the wireless card parameters which will only occur if it&#8217;s disconnected, if the string appears it&#8217;ll disable and re-enable the wireless device which seems to allow it to connect again. If it&#8217;s connected it&#8217;ll wait 3 minutes (180 seconds) before checking again where as if it does disconnect it&#8217;ll check again 30 seconds after it&#8217;s tired rebooting the device. </p>
<p>Here&#8217;s the script, be sure to try it if you&#8217;re having the same problem (you might need to change the wireless device &#8216;wlan1&#8242; to yours) and comment if I&#8217;m doing something wrong or there&#8217;s another way around this, cheers.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span></p>
<p>service network-manager stop</p>
<p>iwconfig wlan1 essid NETWORKNAME<br />
iwconfig wlan1 key NETWORKKEY<br />
ifconfig wlan1 up<br />
dhclient3 wlan1</p>
<p><span class="kw1">while</span> <span class="kw2">true</span>;<br />
<span class="kw1">do</span></p>
<p><span class="kw1">if</span> <span class="br0">&#40;</span>iwconfig wlan1<span class="br0">&#41;</span> | <span class="kw2">grep</span> -o <span class="st0">&quot;Access Point: Not-Associated&quot;</span><br />
<span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan1 down<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;not connected, rebooting Wifi&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; ifconfig wlan1 up<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">sleep</span> <span class="nu0">30</span><br />
<span class="kw1">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">echo</span> <span class="st0">&quot;connected&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">sleep</span> <span class="nu0">180</span><br />
<span class="kw1">fi</span></p>
<p><span class="kw1">done</span></div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/11/05/ubuntu-disconnecting-from-wifi-and-failing-to-reconnect/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Samsung Galaxy S &#8211; Samsung Kies Connection Error</title>
		<link>http://alexsleat.co.uk/2010/11/04/samsung-galaxy-s-samsung-kies-connection-error/</link>
		<comments>http://alexsleat.co.uk/2010/11/04/samsung-galaxy-s-samsung-kies-connection-error/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 16:20:30 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[galaxy s]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[I9000]]></category>
		<category><![CDATA[mtp application]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[samsung kies]]></category>
		<category><![CDATA[sgs]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=6427</guid>
		<description><![CDATA[<br/><p>Okay so I went to check if I could get the SGS Froyo update which seems to be getting rolled out across the UK a little earlier than expected. I booted my laptop into Windows 7 64-bit, loaded Kies and was prompted to update it and once it was done I tried connected my [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Okay so I went to check if I could get the SGS Froyo update which seems to be getting rolled out across the UK a little earlier than expected. I booted my laptop into Windows 7 64-bit, loaded Kies and was prompted to update it and once it was done I tried connected my SGS via USB and putting it in to Kies mode. Here&#8217;s where the error came about, it&#8217;d just sit there &#8220;connecting&#8221; on the Kies software on my laptop but just switching between MTP Application and the home screen on my phone.</p>
<p>Browsing the net I found a few &#8220;fixes&#8221; which involved deleting applications on my phone such as Soundhound (which I have never had) or more extreme and formatting the internal SD card only to have everything wiped.</p>
<p>The problem here though is actually just the drivers for 64-bit Win7 cannot handle corrupt data or bad files which are pretty common (say an app is loading an image from the net and you close it half way through BAM, broken file.)</p>
<p>So in order to fix this most annoying of errors you&#8217;re going to have to find those corrupt files on your phones memory.</p>
<ol>
<li>Close Samsung Kies</li>
<li>Connect your phone and select &#8216;Mass Storage&#8217; mode</li>
<li>Mount USB via the notification bar</li>
<li>Remove any corrupt files from the phones SD cards
<ol>
<li>You can use this <a href="http://www.fileden.com/files/2008/2/28/1786668//FileSearcherforKiesFix.zip" target="_blank">FileSearcherforKiesFix.zip</a> to locate corrupt files</li>
<li>Once found, navigate to the directory and remove them</li>
<li>Research until none are found.</li>
</ol>
</li>
<li>Unmount, disconnect and reconnect the phone</li>
<li>Open Kies and select the Kies option, it should now boot connect without any issues.</li>
</ol>
<p>Source: (Post #50)  <a href="http://android.modaco.com/content-page/311526/samsung-galaxy-s-problems/page/40/#50">http://android.modaco.com/content-page/311526/samsung-galaxy-s-problems/page/40/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/11/04/samsung-galaxy-s-samsung-kies-connection-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Make WordPress 3.0 Default Theme (Twenty Ten) Single Column Full Width</title>
		<link>http://alexsleat.co.uk/2010/06/20/howto-make-wordpress-3-0-default-theme-twenty-ten-single-column-full-width/</link>
		<comments>http://alexsleat.co.uk/2010/06/20/howto-make-wordpress-3-0-default-theme-twenty-ten-single-column-full-width/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 00:02:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[one column]]></category>
		<category><![CDATA[single column]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Twenty Ten]]></category>
		<category><![CDATA[width]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=181</guid>
		<description><![CDATA[<br/><p>The new WordPress default theme, Twenty Ten, is awesome but one thing that annoys me about it was the fact it&#8217;s single column template isn&#8217;t full width but instead just removing the sidebar and centering the content. It&#8217;s really easy to change that though so here&#8217;s how I did it:</p> Under Appearance click Editor [...]]]></description>
			<content:encoded><![CDATA[<br/><p>The new WordPress default theme, Twenty Ten, is awesome but one thing that annoys me about it was the fact it&#8217;s single column template isn&#8217;t full width but instead just removing the sidebar and centering the content. It&#8217;s really easy to change that though so here&#8217;s how I did it:</p>
<ol>
<li>Under Appearance click Editor to open the theme editor</li>
<li>If it isn&#8217;t already click on &#8220;<strong>Stylesheet</strong> (style.css)&#8221; on the right hand side (somewhere near the bottom)</li>
<li>Now look for the following section of code (Ctrl+F will come in helpful here to find it) and change the width here from 640px to 900px then hit the Update File button:</li>
</ol>
<div class="dean_ch" style="white-space: wrap;"><span class="coMULTI">/*<br />
LAYOUT: One column, no sidebar<br />
DESCRIPTION: One centered column with no sidebar<br />
*/</span></p>
<p><span class="re1">.one-column</span> <span class="re0">#content</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">margin</span>: <span class="nu0">0</span> <span class="kw2">auto</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">width</span>: <span class="re3">640px</span>;<br />
<span class="br0">&#125;</span></div>
<p>Now when you view pages which use the one column template they should fill the same amount of space that both the content and sidebar usually do.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/06/20/howto-make-wordpress-3-0-default-theme-twenty-ten-single-column-full-width/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

