<?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>Xster.net &#187; bash</title>
	<atom:link href="http://tech.xster.net/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:11:29 +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>How to Unpause Applications in Mac OS X</title>
		<link>http://tech.xster.net/tips/how-to-unpause-applications-in-mac-os-x/</link>
		<comments>http://tech.xster.net/tips/how-to-unpause-applications-in-mac-os-x/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:06:01 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[kill]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unfreeze]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=252</guid>
		<description><![CDATA[I asked this question on Superuser.com after experiencing this problem. Now it&#8217;s accessible to everyone. When something goes wrong and you run out of memory on Mac OS X, the system puts your existing applications to pause to prevent the system from becoming unstable. After taking care of the problem and freeing more memory, you [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I asked this question on <a href="http://superuser.com/questions/118190/unpause-application-in-mac-os-x">Superuser.com</a> after experiencing this problem. Now it&#8217;s accessible to everyone.</p>
<p>When something goes wrong and you run out of memory on Mac OS X, the system puts your existing applications to pause to prevent the system from becoming unstable. After taking care of the problem and freeing more memory, you might notice that the applications you had are still frozen. To unpause them, find their PID using <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?ps">ps</a> and use the kill command to revive it (irony)</p>
<pre lang = "bash">kill -CONT 111</pre>
<p>Of course, 111 here is replaced with the PID you found with ps</p>
<div class="shr-publisher-252"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fhow-to-unpause-applications-in-mac-os-x%2F' data-shr_title='How+to+Unpause+Applications+in+Mac+OS+X'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fhow-to-unpause-applications-in-mac-os-x%2F' data-shr_title='How+to+Unpause+Applications+in+Mac+OS+X'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/how-to-unpause-applications-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Empty Home Directory in Windows Using Boot Camp 3.0</title>
		<link>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/</link>
		<comments>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 22:29:47 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[.Xauthority]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Boot Camp]]></category>
		<category><![CDATA[Bootcamp]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=126</guid>
		<description><![CDATA[Just got Snow Leopard and installed Boot Camp 3.0 on Windows? Boot Camp 3.0 is definitely a well welcomed update. The trackpad works much better now with 2 finger tap for secondary click, it finally works like in OS X. Even better, you can now access HFS+ without third party apps in Windows. Definitely nice [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="size-full wp-image-127 alignleft" title="ls -a" src="http://tech.xster.net/wp-content/uploads/2009/09/Screen-shot-2009-09-13-at-6.22.14-PM.png" alt="ls -a" width="155" height="204" /></p>
<p>Just got Snow Leopard and installed Boot Camp 3.0 on Windows? Boot Camp 3.0 is definitely a well welcomed update. The trackpad works much better now with 2 finger tap for secondary click, it finally works like in OS X. Even better, you can now access HFS+ without third party apps in Windows. Definitely nice for Windows 7 x64 users that MacDrive doesn&#8217;t even support. But one problem that seems to trouble people in the forums is that navigating to /Users/[yourname] in Windows shows an empty folder. You can&#8217;t access your music or pictures or anything from Windows.</p>
<p>One possibility is the presence of a .Xauthority file in your $HOME directory. Delete the file and you may access your home directory in Windows. Remember that running X11 will recreate the file. Delete it again.<span id="more-126"></span></p>
<p>To automate the whole process, consider creating a script that lets you boot into Windows worry free.</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">exists</span> <span style="color: #0066ff;">file</span> <span style="color: #009900;">&quot;~/.Xauthority&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
		<span style="color: #0066ff;">delete</span> <span style="color: #0066ff;">file</span> <span style="color: #009900;">&quot;~/.Xauthority&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;bless -mount /Volumes/[your Windows device]/ -legacy -setBoot -nextonly&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> administrator privileges
<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;shutdown -r now&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> administrator privileges</pre></div></div>

<p>Put this in AppleScript editor and save it as a .app to make it executable. You can manpage the bless command for more options. You can also change the icon like any other app. At that point, you can invoke this via QuickSilver and a GUI dialog will prompt you for password.</p>
<p>It&#8217;s also possible that there are no .Xauthority files in the subdirectories so simply type in explorer the subdirectories to access them directly. ie: D:/Users/[you]/Desktop</p>
<div class="shr-publisher-126"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fempty-home-directory-in-windows-using-boot-camp-3-0%2F' data-shr_title='Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fempty-home-directory-in-windows-using-boot-camp-3-0%2F' data-shr_title='Empty+Home+Directory+in+Windows+Using+Boot+Camp+3.0'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/empty-home-directory-in-windows-using-boot-camp-3-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

