<?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; terminal</title>
	<atom:link href="http://tech.xster.net/tag/terminal/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>Quake Style Drop Down Terminal for Windows</title>
		<link>http://tech.xster.net/tips/quake-style-drop-down-terminal-for-windows/</link>
		<comments>http://tech.xster.net/tips/quake-style-drop-down-terminal-for-windows/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 01:54:47 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[quake]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[visor]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Yakuake]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=236</guid>
		<description><![CDATA[I was used to the convenience of drop-down terminals like Visor in Mac or Yakuake in Linux and needed something similar in Windows. It turns out, it is possible to achieve almost the same effects in Windows with the use of 2 tools. AutoHotkey -  lets you run scripts triggered by hotkeys anywhere in Windows Console [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I was used to the convenience of drop-down terminals like <a href="http://tech.xster.net/tips/the-perfect-visor-reborn/">Visor</a> in Mac or Yakuake in Linux and needed something similar in Windows.</p>
<p>It turns out, it is possible to achieve almost the same effects in Windows with the use of 2 tools.</p>
<ul>
<li><a href="http://www.autohotkey.com/">AutoHotkey</a> -  lets you run scripts triggered by hotkeys anywhere in Windows</li>
<li><a href="http://sourceforge.net/projects/console/">Console</a> &#8211; is a terminal app that lets you run a custom shell with no title bar, no borders, transparency etc.</li>
</ul>
<p style="text-align: center;"><a href="http://tech.xster.net/wp-content/uploads/2010/06/console.png"><img class="size-full wp-image-239 aligncenter" title="Console" src="http://tech.xster.net/wp-content/uploads/2010/06/console.png" alt="" width="652" height="235" /></a></p>
<p style="text-align: left;"><span id="more-236"></span>Follow these steps to get it working:</p>
<ol>
<li>Download <a href="http://sourceforge.net/projects/console/">Console</a> and put it somewhere (ie. C:\Program Files\Console2\)</li>
<li>Make sure it&#8217;s in your %path% system environment (Right-click My Computer, Properties, Advanced system settings, Advanced, Environment Variables)</li>
<li>Run it, go to Edit -&gt; Settings. Change the settings to suit your taste
<ul>
<li>Change your shell to PowerShell at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe for Windows 7 and change your startup dir</li>
<li>Change the window size columns to take up most of your screen</li>
<li>Windows fonts suck, try <a href="http://www.font-zone.com/download.php?fid=2026">Andale Mono</a> or <a href="http://www.fonts101.com/fonts/view/Uncategorized/51239/Monaco.aspx">Monaco</a></li>
<li>Make sure initial position is at 0, 0 and always on top</li>
<li>Under Appearance -&gt; More&#8230;, make sure it has no menu, no toolbar, no caption, not resizable, no border, no taskbar, no tray icon for minimal footprint</li>
<li>Set your transparency</li>
</ul>
</li>
<li>Download <a href="http://www.autohotkey.com/">AutoHotkey</a> and install it</li>
<li>Download <a href="http://tech.xster.net/wp-content/uploads/2010/06/QuakeTerminal.ahk">this script</a> to your Startup foler, change the <a href="http://www.autohotkey.com/docs/Hotkeys.htm">hotkey</a> to what you want to use in the script. It is initially Ctrl-`</li>
<li>Run the script and press your hotkey</li>
<li>Boom, you got a terminal at your fingertip</li>
</ol>
<p>Sources: <a href="http://jake.ginnivan.net/2010/01/quake-style-powershell-console/">[1]</a> <a href="http://www.instructables.com/id/%22Drop-Down%22,-Quake-style-command-prompt-for-Window/">[2]</a></p>
<div class="shr-publisher-236"></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%2Fquake-style-drop-down-terminal-for-windows%2F' data-shr_title='Quake+Style+Drop+Down+Terminal+for+Windows'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fquake-style-drop-down-terminal-for-windows%2F' data-shr_title='Quake+Style+Drop+Down+Terminal+for+Windows'></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/quake-style-drop-down-terminal-for-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open Current Terminal Directory in Finder</title>
		<link>http://tech.xster.net/tips/open-current-terminal-directory-in-finder/</link>
		<comments>http://tech.xster.net/tips/open-current-terminal-directory-in-finder/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 18:05:00 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=50</guid>
		<description><![CDATA[This bugged me today so here&#8217;s the one line solution open . So after applying the Perfect Visor from my previous blog post, this can be even faster to navigate to awkward Mac style directories than remembering the even more awkward Finder key combo to &#8220;Go to Folder&#8221; open ~/Library/Logs/CrashReporter/ Because you can tab-complete or [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This bugged me today so here&#8217;s the one line solution</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">open .</pre></div></div>

<p>So after applying the Perfect Visor from my <a href="http://tech.xster.net/tips/the-perfect-visor-reborn/">previous blog post</a>, this can be even faster to navigate to awkward Mac style directories than remembering the even more awkward Finder key combo to &#8220;Go to Folder&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">open ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Logs<span style="color: #000000; font-weight: bold;">/</span>CrashReporter<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Because you can tab-complete or to go hidden folders</p>
<div class="shr-publisher-50"></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%2Fopen-current-terminal-directory-in-finder%2F' data-shr_title='Open+Current+Terminal+Directory+in+Finder'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fopen-current-terminal-directory-in-finder%2F' data-shr_title='Open+Current+Terminal+Directory+in+Finder'></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/open-current-terminal-directory-in-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quake Style Drop Down Terminal for Mac</title>
		<link>http://tech.xster.net/tips/the-perfect-visor-reborn/</link>
		<comments>http://tech.xster.net/tips/the-perfect-visor-reborn/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 22:52:28 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[blacktree]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[perfect]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[quake]]></category>
		<category><![CDATA[SIMBL]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[TotalTerminal]]></category>
		<category><![CDATA[visor]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=10</guid>
		<description><![CDATA[Update: Visor Terminal is now TotalTerminal. It&#8217;s a lot easier to configure so you can just download TotalTerminal and perform the steps below starting at 6. The Visor Terminal, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience. The drop-down Quake-style terminal window [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: left;"><em><strong>Update: </strong>Visor Terminal is now <a href="http://totalterminal.binaryage.com/">TotalTerminal</a>. It&#8217;s a lot easier to configure so you can just download TotalTerminal and perform the steps below starting at 6.</em></p>
<p style="text-align: left;">The <a href="http://visor.binaryage.com/" target="_blank">Visor Terminal</a>, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience.</p>
<div id="attachment_11" class="wp-caption alignleft" style="width: 650px"><img class="size-full wp-image-11" title="visor" src="http://tech.xster.net/wp-content/uploads/2009/03/visor.jpg" alt="Visor Terminal" width="640" height="261" /><p class="wp-caption-text">Visor Terminal</p></div>
<p>The drop-down Quake-style terminal window is extremely convenient to run commands without disrupting the current workflow. Unfortunately the default install is very messy. It needs an open terminal program running in the background which can&#8217;t be closed and takes up valuable Dock space.<span id="more-10"></span></p>
<p>Then comes a blog from <a href="http://blog.wombert.de/" target="_blank">David Zülke</a> who solved the problem with a <a href="http://blog.wombert.de/2006/11/04/the-perfect-visor/" target="_blank">hack</a> which essentially creates a second terminal program, links the visor extension to it and makes that second terminal always invisible and not appearing in the Dock by playing with the Info.plist file. The world was beautiful until I bought a new Macbook and tried to reinstall Visor but only to find out that his instructions are no longer hosted. So here are the instructions again for those who want a Perfect Visor. This is for version 1.5 &#8211; 2.2 which runs on Leopard &#8211; Snow Leopard.</p>
<ol>
<li>Install <a href="http://www.culater.net/software/SIMBL/SIMBL.php" target="_blank">SIMBL </a></li>
<li>This is not necessary but it&#8217;s a lot easier if you have <a href="http://developer.apple.com/TOOLS/xcode/" target="_blank">XCode</a> to use its .plist editor tool.</li>
<li>Right-click the extracted “Visor” file, select “Show Package Contents” and double-click “Info.plist” in the “Contents” folder[1]. Go to <code>Root</code>, <code>SIMBLTargetApplications</code>, <code>0</code> and change <code>BundleIdentifier</code> to “com.apple.VisorTerminal”. Save and close. You can now install the bundle according to the Visor install instructions (i.e. move it to ~/Library/Application Support/SIMBL/Plugins or the “global” equivalent in /Library).</li>
<li>Go to your Applications/Utilities folder and duplicate Terminal. Rename the copy to “VisorTerminal”, then right-click it and choose “Show Package Contents”, and double-click “Info.plist” in the “Contents” folder. Go to <code>Root</code> and change <code>CFBundleIdentifier</code> to “com.apple.VisorTerminal”. Save and close.</li>
<li>Start VisorTerminal. Go to Terminal menu and click Visor Preferences. Customize it to your suiting.</li>
<li>Make it run on start up. You can right click the VisorTerminal on Dock and choose &#8220;Open at Login&#8221;</li>
<li>Make it invisible. Right-click the VisorTerminal, choose “Show Package contents” and double-click Info.plist in the Contents folder. Add a new Sibling inside the root element called <code>LSUIElement</code>, it must be of type “Number” and have the value “1″ (without the quotes, of course). Save and quit.</li>
<li>Done and done! Now the Visor will start on startup and won&#8217;t show up anywhere until you press the hotkey.  If you don&#8217;t like your previous preferences, you can&#8217;t right click or use menu anymore but pressing cmd-, will bring up the preferences window for the terminal</li>
</ol>
<p>Currently, there&#8217;s a bug with SIMBL 0.97 that causes the application to stop using SIMBL when LSUIElement is set to 1. To solve this issue, use AppleScript with the following command:</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;VisorTerminal&quot;</span>
	inject SIMBL <span style="color: #0066ff;">into</span> Snow Leopard
	<span style="color: #0066ff;">activate</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span></pre></div></div>

<p>Then save the script as a .app in a desired location. Make this run at startup instead of VisorTerminal.</p>
<p>The next steps are optional but your default Darwin terminal prompt  looks like shit. Here&#8217;s how to customize it.</p>
<ol>
<li>Press your hotkey or open Terminal</li>
<li>Go to your home directory

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~</pre></div></div>

<p>You are there by default</li>
<li>Change your profile file

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mate .bash_profile</pre></div></div>

<p>TextMate is my favorite editor. If you don&#8217;t use it, use <code>nano</code> instead of <code>mate</code></li>
<li>Type

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> PS1 = <span style="color: #ff0000;">&quot; &quot;</span></pre></div></div>

<p>And customize your prompt with the following keywords between the quotes</p>
<ul>
<li>\d &#8211; Current date</li>
<li>\t &#8211; Current time</li>
<li>\h &#8211; Host name</li>
<li>\# &#8211; Command number</li>
<li>\u &#8211; User name</li>
<li>\W &#8211; Current working directory (ie: Desktop/)</li>
<li>\w &#8211; Current working directory, full path (ie: /Users/Admin/Desktop)</li>
</ul>
<p>ie.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;\u@\h\w: &quot;</span></pre></div></div>

</li>
<li>Save and restart your terminal</li>
</ol>
<div class="shr-publisher-10"></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%2Fthe-perfect-visor-reborn%2F' data-shr_title='Quake+Style+Drop+Down+Terminal+for+Mac'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fthe-perfect-visor-reborn%2F' data-shr_title='Quake+Style+Drop+Down+Terminal+for+Mac'></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/the-perfect-visor-reborn/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

