<?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>Floating Sun &#187; Tips and Tricks</title>
	<atom:link href="http://floatingsun.net/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://floatingsun.net</link>
	<description></description>
	<lastBuildDate>Wed, 25 Jan 2012 07:47:49 +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>Mac Tip: Get wifi password from another (connected) Mac</title>
		<link>http://floatingsun.net/2011/09/10/mac-tip-get-wifi-password-from-another-connected-mac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mac-tip-get-wifi-password-from-another-connected-mac</link>
		<comments>http://floatingsun.net/2011/09/10/mac-tip-get-wifi-password-from-another-connected-mac/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 01:36:39 +0000</pubDate>
		<dc:creator>Diwaker Gupta</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://floatingsun.net/?p=1835</guid>
		<description><![CDATA[Here&#8217;s the situation: say you are at a friend&#8217;s place and as all responsible hosts, they have a password protected wifi network. Your friend is busy (or unavailable) so you can&#8217;t ask her for the password. Of course, you are known &#8230; <a href="http://floatingsun.net/2011/09/10/mac-tip-get-wifi-password-from-another-connected-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://floatingsun.net/2006/02/27/web-based-password-manager/' rel='bookmark' title='Web based password manager'>Web based password manager</a></li>
<li><a href='http://floatingsun.net/2010/02/03/web-based-password-managers-3-years-later/' rel='bookmark' title='Web based password managers: 3 years later'>Web based password managers: 3 years later</a></li>
<li><a href='http://floatingsun.net/2007/12/02/screens-around-the-web-password-restrictions/' rel='bookmark' title='Screens around the web: password restrictions'>Screens around the web: password restrictions</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the situation: say you are at a friend&#8217;s place and as all responsible hosts, they have a password protected wifi network. Your friend is busy (or unavailable) so you can&#8217;t ask her for the password. Of course, you are known to not give up easily. You look around and realize: aha! someone else over there on the couch is busy with their laptop, so they must know the password. Unfortunately, they don&#8217;t. But the password must be somewhere on their laptop, since they are connected after all. So how do you find it?</p>
<p>OK, that probably sounds contrived. But the truth is that I did have the need to extract the wifi password from my wife&#8217;s laptop earlier today and thought I&#8217;d share the (pretty simple) process.</p>
<p><strong>Step one:</strong> open keychain access</p>
<p><a style="text-decoration: underline;" href="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/keychain.jpg"><img class="alignnone size-full wp-image-1837" style="border-style: initial; border-color: initial; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #eeeeee;" title="keychain" src="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/keychain.jpg" alt="" width="513" height="148" /></a></p>
<p><strong>Step two:</strong> search for the network name (SSID)</p>
<p><a href="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/Keychain-Access.jpg"><img class="alignnone size-full wp-image-1836" title="Keychain Access" src="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/Keychain-Access.jpg" alt="" width="704" height="241" /></a></p>
<p><strong>Step three:</strong> check &#8216;Show password&#8217; (you may need to enter your password first since this required Administrator privileges).</p>
<p><a href="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/The-Lab.jpg"><img class="alignnone size-full wp-image-1838" title="The Lab" src="http://floatingsun.net/wordpress/wp-content/uploads/2011/09/The-Lab.jpg" alt="" width="342" height="291" /></a></p>
<p>Voila!</p>
<p>Related posts:<ol>
<li><a href='http://floatingsun.net/2006/02/27/web-based-password-manager/' rel='bookmark' title='Web based password manager'>Web based password manager</a></li>
<li><a href='http://floatingsun.net/2010/02/03/web-based-password-managers-3-years-later/' rel='bookmark' title='Web based password managers: 3 years later'>Web based password managers: 3 years later</a></li>
<li><a href='http://floatingsun.net/2007/12/02/screens-around-the-web-password-restrictions/' rel='bookmark' title='Screens around the web: password restrictions'>Screens around the web: password restrictions</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://floatingsun.net/2011/09/10/mac-tip-get-wifi-password-from-another-connected-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Vim is still sexy!</title>
		<link>http://floatingsun.net/2009/04/18/vim-is-still-sexy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vim-is-still-sexy</link>
		<comments>http://floatingsun.net/2009/04/18/vim-is-still-sexy/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 22:04:35 +0000</pubDate>
		<dc:creator>Diwaker Gupta</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://floatingsun.net/?p=1109</guid>
		<description><![CDATA[NOTE: This post is not about the editor war &#8212; so please don&#8217;t try to start one either. I use vim as my editor of choice. As I note above, to each his own editor. However, Vim is not what &#8230; <a href="http://floatingsun.net/2009/04/18/vim-is-still-sexy/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p><em>NOTE: This post is not about the <a href="http://en.wikipedia.org/wiki/Editor_wars">editor war</a> &#8212; so please don&#8217;t try to start one either.</em></p>
<p>I use vim as my editor of choice. As I note above, to each his own editor.</p>
<p>However, Vim is not what one would call a &#8220;sexy editor&#8221;. After all, it has been around (in some shape or form) since before I was born. It does not generate as much buzz in the blogosphere and is not the darling of all the new kids on the block, as <a href="http://macromates.com/">some of the other editors out there</a>. Not many Ruby on Rails developers, for instance, seem to be using Vim for coding (actually, saying that a lot of RoR developers seem to be using Textmate is probably more accurate, but you get the point). It is written in C and does not use git for hosting. The Vim website leaves much to be desired. In the social networking world, Vim barely has a presence.</p>
<p><img src="http://rlv.zcache.com/vi_bad_attitude_shirt-p235322641079260529trat_325.jpg" alt="Vim attitude" width="184" height="184" /></p>
<p>But, I contend that Vim still has a lot to offer. Here are few of the things you can check out to spruce up your Vim usage:</p>
<ul>
<li><a href="http://www.vim.org/scripts/script.php?script_id=2140">xoria256</a>: a modern, functional and eye-pleasing color scheme.</li>
<li><a href="http://www.vim.org/scripts/script.php?script_id=2540">snipMate</a>: Textmate like snippets for Vim. Interestingly, snipmate <a href="http://github.com/meese/snipmate.vim/tree/master">lives on github</a>. There are actually several textmate like plugins for Vim, I prefer snipMate. I have succesfully used <a href="http://www.vim.org/scripts/script.php?script_id=1318">snippetsEmu</a> in the past.</li>
<li><a href="http://vimdoc.sourceforge.net/htmldoc/version7.html#new-omni-completion">Omni completion</a>: Probably not as awesome as Visual Studio&#8217;s, but useful nonetheless.</li>
<li>Check out <a href="http://floatingsun.net/2005/03/11/must-need-vim-plugins/">my list of some essential vim plugins</a>.</li>
<li><a href="http://www.swaroopch.com/notes/Vim">A byte of Vim</a>: from the author of the well known &#8220;A byte of Python&#8221; book.</li>
</ul>
<p>I&#8217;m also very happy to see the number of <a href="http://github.com/search?langOverride=VimL&amp;q=vim&amp;type=Repositories&amp;x=0&amp;y=0">Vim related repositories on github</a>. Bottomline: don&#8217;t give up on Vim. Vim is still sexy baby, you just need to look in the right places :)</p>
<p><em>Update:</em> I&#8217;m including a screenshot of Xoria below.</p>
<p><a href="http://ix2.piccy.info.nyud.net/i3/2f/32/04d9c2b4095038a9ee591e9ef6a3.png"><img src="http://ix2.piccy.info.nyud.net/i3/2f/32/04d9c2b4095038a9ee591e9ef6a3.png" alt="xoria, GUI, C" width="338" height="673" /></a></p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://floatingsun.net/2009/04/18/vim-is-still-sexy/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>How to simulate Compiz&#8217;s screenshot plugin in KDE4</title>
		<link>http://floatingsun.net/2009/03/05/how-to-simulate-compizs-screenshot-plugin-in-kde4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-simulate-compizs-screenshot-plugin-in-kde4</link>
		<comments>http://floatingsun.net/2009/03/05/how-to-simulate-compizs-screenshot-plugin-in-kde4/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 04:33:03 +0000</pubDate>
		<dc:creator>Diwaker Gupta</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[kde4]]></category>
		<category><![CDATA[ksnapshot]]></category>

		<guid isPermaLink="false">http://floatingsun.net/?p=1022</guid>
		<description><![CDATA[I used to run Compiz with KDE 3.5 and I quite liked that setup. Compiz was fast, highly (a bit too much, perhaps) configurable, and came with a great set of plugins. One of my favorite plugins was the screenshot &#8230; <a href="http://floatingsun.net/2009/03/05/how-to-simulate-compizs-screenshot-plugin-in-kde4/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://floatingsun.net/2005/01/10/input-plugin-weirdness/' rel='bookmark' title='input plugin weirdness'>input plugin weirdness</a></li>
<li><a href='http://floatingsun.net/2006/03/04/vim7-screenshot-tabs/' rel='bookmark' title='Vim7 Screenshot: Tabs!'>Vim7 Screenshot: Tabs!</a></li>
<li><a href='http://floatingsun.net/2008/01/12/test-driving-kde-40/' rel='bookmark' title='Test driving KDE 4.0'>Test driving KDE 4.0</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I used to run <a href="http://www.compiz.org/">Compiz</a> with KDE 3.5 and I quite liked that setup. Compiz was fast, highly (a bit too much, perhaps) configurable, and came with a great set of <a href="http://wiki.compiz-fusion.org/CompizPlugins">plugins</a>. One of my favorite plugins was the screenshot plugin &#8212; basically it allowed me to capture arbitrary regions of the screen with a simple mouse+keyboard combo. This was particular useful when writing blogposts to demonstrate something on the desktop, when filing bug reports (to visually show what was going wrong), when telling webmasters what was wrong with their website (it makes everyone&#8217;s life easier if the screenshot only captures the problematic space on the page, not the entire window) and so on. The key strength of the plugin was that it was so easy to invoke, and the captured regions automatically got saved as PNGs to a pre-determined folder. Neat.</p>
<p>Unfortunately, with <a href="http://kde.org">KDE4</a>, I am no longer running Compiz since kwin (KDE&#8217;s native window manager) has built-in support for compositing now. KDE4 is great (especially with 4.2) but I still missed the screenshot plugin very much. I couldn&#8217;t find any equivalent plugins for KDE4, so I was on the lookout for a workaround. It turns out, there is one. Here is what you do:</p>
<ul>
<li>Go into System Settings -&gt; Input Actions</li>
<li>Create a new global shortcut (right click)</li>
<li>Bind a convenient shortcut &#8212; I use Super+S or Meta+S</li>
<li>For the command/URL, enter &#8216;kbackgroundsnapshot &#8211;region&#8217; without the quotes, of course</li>
</ul>
<p>And there you go &#8212; now you can simply press Super+S anywhere, anytime and the mouse cursor will change to a cross-bar. Once you have selected the region to capture, hit enter to save the picture, escape to cancel the action. By default the pictures are saved to your Desktop folder, and are named &#8216;snapshotX.png&#8217; where X is some number. Here&#8217;s a screenshot that I just took:</p>
<p><img class="aligncenter size-full wp-image-1041" title="kbackgroundsnapshot" src="http://floatingsun.net/wordpress/wp-content/uploads/2009/03/snapshot7.png" alt="kbackgroundsnapshot" width="240" height="108" /></p>
<p>What makes this work is the little-less known program (like so many other hidden gems in KDE) &#8216;kbackgroundsnapshot&#8217;. It is essentially ksnapshot, but it is supposed to run in the &#8220;background&#8221;, meaning that it doesn&#8217;t show the regular dialog box that ksnapshot shows. Useful for scripts and such.</p>
<p>Related posts:<ol>
<li><a href='http://floatingsun.net/2005/01/10/input-plugin-weirdness/' rel='bookmark' title='input plugin weirdness'>input plugin weirdness</a></li>
<li><a href='http://floatingsun.net/2006/03/04/vim7-screenshot-tabs/' rel='bookmark' title='Vim7 Screenshot: Tabs!'>Vim7 Screenshot: Tabs!</a></li>
<li><a href='http://floatingsun.net/2008/01/12/test-driving-kde-40/' rel='bookmark' title='Test driving KDE 4.0'>Test driving KDE 4.0</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://floatingsun.net/2009/03/05/how-to-simulate-compizs-screenshot-plugin-in-kde4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

