<?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>Tips and Tricks &#187; Tips &amp; Tricks</title>
	<atom:link href="http://www.legend.ws/blog/category/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.legend.ws/blog</link>
	<description>Random tech ramblings</description>
	<lastBuildDate>Wed, 11 Jan 2012 16:11:44 +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>Flushing / clearing DNS in Mac OSX</title>
		<link>http://www.legend.ws/blog/tips-tricks/flushing-dns-on-mac/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/flushing-dns-on-mac/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 18:08:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=239</guid>
		<description><![CDATA[<p>Below is how to clear / flush the DNS cache in Mac OSX.</p>
<ul>
<li>Open the terminal (Finder -&#62; Applications -&#62; Utilities -&#62; Terminal)</li>
<li>In case your operating system is &#8216;Leopard&#8217; (10.5.*) or &#8216;Snow Leopard&#8217; (10.6.*), issue the following command:</li>
</ul>
<p>dscacheutil -flushcache</p>
<ul>
<li>Otherwise, for older operating systems, issue the following command:</li>
</ul>
<p>lookupd -flushcache</p>
<p>This is the equivalent of the following Windows command: ipconfig /flushdns&#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/flushing-dns-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting a file, the name of which starts with a hyphen (Linux)</title>
		<link>http://www.legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/#comments</comments>
		<pubDate>Mon, 02 May 2011 10:08:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[hyphen]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=147</guid>
		<description><![CDATA[<p><a href="http://www.legend.ws/blog/wp-content/uploads/2011/05/shell.png"></a><a href="http://www.legend.ws/blog/wp-content/uploads/2011/05/rm.png"></a>You might have come across a difficulty in deleting a file in Linux whose name starts with a dash/hyphen.</p>
<p>Adding an escape character (e.g. rm -rf \-filename) or quoting the file name (e.g. rm -rf &#8220;-filename&#8221;) will not do the job.</p>
<p>The solution is simple: explicitly provide the full or relative path to the file. e.g.:</p>
<p>rm -rf /path/to/-file</p>
<p>or the following &#8211; if for instance your current working directory is the one containing the file in question</p>
<p>rm -rf ./-file&#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/deleting-a-file-starting-with-a-hyphen-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac users: turn colors into negative</title>
		<link>http://www.legend.ws/blog/tips-tricks/mac-users-turn-colors-into-negative/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/mac-users-turn-colors-into-negative/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 23:13:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=141</guid>
		<description><![CDATA[<p>Are you a mac user? try the following keyboard combination:</p>
<p>cmd + alt (option) + ctrl + 8</p>
<p>Colors are instantly inverted, giving the entire screen a negative-photography like feel.</p>
<p>Hit the same combination to restore the colors.&#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/mac-users-turn-colors-into-negative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: finding files modified or accessed at a certain time</title>
		<link>http://www.legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 19:10:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[range]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=136</guid>
		<description><![CDATA[<p>The &#8216;find&#8217; utility is quite handy when used with the proper parameters. Below is a few ways to find files/folders based on the time they were accessed or modified.</p>
<p><strong>Example 1</strong>:</p>
<p>find /path/to/folder -type f -name &#8220;*.txt&#8221; -mtime -5</p>
<p>This will find &#8216;files&#8217; (-type f) within the folder /path/to/folder (or one of its sub directories), whose name ends with &#8216;.txt&#8217;, and which were <span style="text-decoration: underline;">modified</span> (<span style="text-decoration: underline;">m</span>time) <strong>less than 5 days ago</strong></p>
<p><strong>Example 2:</strong></p>
<p>find /path/to/folder -type d -name &#8220;stat*&#8221; -mtime +10</p>
<p>This would find &#8216;directories&#8217; (-type d) within the folder /path/to/folder (or one of its subdirectories), whose name &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/linux-finding-files-modified-or-accessed-at-a-certain-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook&#8217;s new photo viewer</title>
		<link>http://www.legend.ws/blog/tips-tricks/facebooks-new-photo-viewer/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/facebooks-new-photo-viewer/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 22:25:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[high res]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[photo preview]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=132</guid>
		<description><![CDATA[<p>Facebook recently introduced a new way of browsing photos and albums. The new photo viewer uses the lightbox technique whereby the page is dimmed and a box is overlaid with a larger version of the selected image.</p>
<p>Some of the improvements it brings are the ability to stay on the page without having to go back in your browser&#8217;s history (you simply hit the close &#8216;x&#8217; button and you&#8217;re back to where you were), faster photo flipping/browsing and the ability to download a high res version of the image (if available).</p>
<p>For those who hate this lightbox preview, you may &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/facebooks-new-photo-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing links that open in a &#8216;new window&#8217; to open in a &#8216;new tab&#8217;</title>
		<link>http://www.legend.ws/blog/tips-tricks/forcing-links-that-open-in-a-new-window-to-open-in-a-new-tab/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/forcing-links-that-open-in-a-new-window-to-open-in-a-new-tab/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 12:59:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[tabs]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=116</guid>
		<description><![CDATA[<p>Do you want to force links that open in a new window to open in a new tab instead? The answer is pretty simple.</p>
<p><strong>Firefox</strong></p>
<ul>
<li>Type the following in the url bar: <em>about:config</em></li>
<li>Edit the following variables:
<ul>
<li>browser.link.open_external -&#62; 3</li>
<li>browser.link.open_newwindow -&#62; 3</li>
<li>browser.link.open_newwindow.restriction -&#62; 0</li>
</ul>
</li>
<li>If any of those variables is not yet defined, simply right click and select &#8216;new-&#62;integer&#8217;, enter the variable name then its integer value.</li>
</ul>
<p><strong>IE8</strong></p>
<p>Simply:</p>
<ul>
<li>Go to: tools -&#62; internet options</li>
<li>Then make sure you select &#8216;<em>always open pop-ups in a new tab</em>&#8216; under &#8216;<em>when a pop-up is encountered</em>&#8216;</li>
</ul>
<p>That&#8217;s &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/forcing-links-that-open-in-a-new-window-to-open-in-a-new-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling telnet in windows vista</title>
		<link>http://www.legend.ws/blog/tips-tricks/enabling-telnet-in-windows-vista/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/enabling-telnet-in-windows-vista/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 08:59:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=113</guid>
		<description><![CDATA[<p>Some of you may be missing the good old command-line telnet client. The thing is that vista has this client disabled by default. The good news is that you can easily install/enable it. To do so, follow these steps:</p>
<ol>
<li>Go to Control Panel</li>
<li>Click on &#8216;Programs&#8217;</li>
<li>Under &#8216;Programs and Features&#8217;, click on &#8216;Turn windows features on or off&#8217;</li>
<li>Wait a bit for the list to be compiled</li>
<li>Tick &#8216;Telnet <strong>client</strong>&#8216; and hit &#8216;OK&#8217; then wait for it to be installed</li>
</ol>
<p>You may now open a command prompt and use <em>telnet hostname port</em></p>
<p>Good luck&#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/enabling-telnet-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Konami Code</title>
		<link>http://www.legend.ws/blog/tips-tricks/konami-code/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/konami-code/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 14:45:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[cheat code]]></category>
		<category><![CDATA[japan]]></category>
		<category><![CDATA[konami]]></category>
		<category><![CDATA[unlocking]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=104</guid>
		<description><![CDATA[<p>The &#8216;Konami code&#8217; fad is back!</p>
<p>For those of you who don&#8217;t know, Konami code (a.k.a Konami Command) is a cheat code that was used in several games back in the day.</p>
<p>It has been introduced not long ago on several websites. Upon entering this cheat code, some &#8216;secret&#8217; is revealed or a page is unlocked.</p>
<p>The sequence is: <strong>Up, Up, Down, Down, Left, Right, Left, Right, B, A</strong></p>
<p>Some of the famous websites that make use of it are: digg.com, facebook.com<br />
For instance, hitting the above sequence on any story page on digg would change the way comments are &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/konami-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traffic forwarding on linux using IPTABLES</title>
		<link>http://www.legend.ws/blog/tips-tricks/traffic-forwarding-on-linux-using-iptables/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/traffic-forwarding-on-linux-using-iptables/#comments</comments>
		<pubDate>Mon, 18 May 2009 08:24:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[packets]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[traffic]]></category>
		<category><![CDATA[UDP]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=100</guid>
		<description><![CDATA[<p>IPTables allows you to easily setup rules for packet filtering/forwarding.</p>
<p>So, to keep it short and simple: assume you&#8217;d like to forward any traffic coming to your machine (192.168.0.1) on port 80 to machine2 (192.168.0.2) on port 8080 then:</p>
<p>- Enable port forwarding:</p>
<p>echo 1 &#62; /proc/sys/net/ipv4/ip_forward</p>
<p>- Now add the rules:</p>
<p>iptables -t nat -A PREROUTING -p tcp -d 192.168.0.1 &#8211;dport 80 -j DNAT &#8211;to 192.168.0.2:8080</p>
<p>iptables -t nat -A POSTROUTING -d 192.168.0.2 -j MASQUERADE</p>
<p>The -p tcp flag specifies that the protocol is TCP (as opposed to UDP, ICMP for example).</p>
<p>The -d 192.168.0.1 flag specifies that the &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/traffic-forwarding-on-linux-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google search tips</title>
		<link>http://www.legend.ws/blog/tips-tricks/google-search-tip/</link>
		<comments>http://www.legend.ws/blog/tips-tricks/google-search-tip/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 15:44:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[multi-use]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.legend.ws/blog/?p=86</guid>
		<description><![CDATA[<p><strong>&#8216;Face&#8217; photos</strong><br />
When searching for images, you could narrow down your search to &#8216;faces&#8217;. Simply, append &#8216;&#38;imgtype=face&#8217; to the end of the google images search url.<br />
So if you&#8217;re searching for <a title="Robert De Niro" href="http://images.google.com/images?hl=en&#38;q=roberto+de+niro&#38;btnG=Search+Images" target="_blank">Robert De Niro</a>, try doing it <a href="http://images.google.com/images?hl=en&#38;q=roberto+de+niro&#38;btnG=Search+Images&#38;imgtype=face">with &#8216;face&#8217; as image type</a></p>
<p><strong>File Types</strong><br />
You could specify the type of file you&#8217;re looking for. Simply append &#8216;filetype: type&#8217; to your search query. So if you&#8217;re looking for an excel file related to subject Foo, then search for: &#8216;Foo filetype:xsl&#8217;</p>
<p><strong>Site limitation</strong><br />
If you&#8217;d like to narrow down your search results to those coming from a certain website, you may &#8230;</p>]]></description>
		<wfw:commentRss>http://www.legend.ws/blog/tips-tricks/google-search-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

