<?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>Grapii</title>
	<atom:link href="http://blog.grapii.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.grapii.com</link>
	<description>Personal Site of Raj Patel</description>
	<lastBuildDate>Wed, 04 Apr 2012 04:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to edit the hosts file in Mac OS X – Lion 10.7</title>
		<link>http://blog.grapii.com/2012/03/how-to-edit-the-hosts-file-in-mac-os-x-%e2%80%93-lion-10-7/</link>
		<comments>http://blog.grapii.com/2012/03/how-to-edit-the-hosts-file-in-mac-os-x-%e2%80%93-lion-10-7/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 05:59:25 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1251</guid>
		<description><![CDATA[The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s [...]]]></description>
			<content:encoded><![CDATA[<p>The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address. If no entries exists it resolves the IP via the active connection’s DNS servers.</p>
<p>The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.</p>
<p><span id="more-1251"></span></p>
<h2>Step 1 – Open the Terminal.app</h2>
<p>Either start typing Terminal in the Spotlight search, or goto Applications &gt; Utilities &gt; Terminal.</p>
<h2>Step 2 – Open the host file</h2>
<p>Open the hosts file by typing the following in the Terminal window:</p>
<pre>$ sudo nano /private/etc/hosts</pre>
<p>Type your user password when prompted.</p>
<h2>Step 3 – Edit the hosts file</h2>
<p>The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 – local host). Simply append your new mappings underneath the default ones.</p>
<h2>Step 4 – Save the hosts file</h2>
<p>When done editing the hosts file, press Control+o to save the file.</p>
<p>Press Enter on the filename prompt, and</p>
<p>Control-x to exit the editor.</p>
<h2>Step 5 – Flush the DNS cache</h2>
<p>You can use a simple Terminal command to flush the DNS cache, and have your host file changes take immediate effect. Using the open Terminal window, then the following command:</p>
<pre>$ dscacheutil -flushcache</pre>
<p>Your new mappings should now take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2012/03/how-to-edit-the-hosts-file-in-mac-os-x-%e2%80%93-lion-10-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create Kindle Optimised Screensavers</title>
		<link>http://blog.grapii.com/2011/09/how-to-create-kindle-optimised-screensavers/</link>
		<comments>http://blog.grapii.com/2011/09/how-to-create-kindle-optimised-screensavers/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 14:20:32 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Wallpapers]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/2011/09/how-to-create-kindle-optimised-screensavers/</guid>
		<description><![CDATA[This guide will walk you through the basic steps of creating an optimised screensaver for your Kindle.&#160; Aimed at the Kindle 3, the end results should look fine on Kindle DX or Kindle 2.&#160; The walk through uses Photoshop CS4, but any version of Photoshop should suffice. Shades of Grey The Kindle 3 (and Kindle [...]]]></description>
			<content:encoded><![CDATA[<p>This guide will walk you through the basic steps of creating an optimised screensaver for your Kindle.&#160; Aimed at the Kindle 3, the end results should look fine on Kindle DX or Kindle 2.&#160; The walk through uses Photoshop CS4, but any version of Photoshop should suffice.</p>
<p><span id="more-1250"></span><br />
<h3>Shades of Grey</h3>
<p>The Kindle 3 (and Kindle DX) support the following sixteen shades of grey:</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-shades-of-grey.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-shades-of-grey" alt="kindle-shades-of-grey" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-shades-of-grey_thumb.png" width="322" height="480" /></a></p>
<p>The key is try and use only these sixteen shades of grey.</p>
<h3>Step 1.</h3>
<p>Download the Photoshop colour table below</p>
<blockquote><p><a href="http://resource.grapii.com/download/kindle3colours.act.zip">kindle photoshop colour table</a></p>
</blockquote>
<h3>Step 2.</h3>
<p>Start Photoshop and create a new blank document.</p>
<ul>
<li>For Kindle 3 create a document 600px wide by 800px tall.</li>
<li>For Kindle DX create a document 824px wide by 1200px tall.</li>
</ul>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-new-document.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-new-document" alt="kindle-new-document" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-new-document_thumb.png" width="450" height="254" /></a></p>
<h3>Step 3.</h3>
<p>Import a picture or draw your own design into the new document.&#160; High contrast designs look the best on Kindle’s eInk display.</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-new-design.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-new-design" alt="kindle-new-design" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-new-design_thumb.png" width="400" height="530" /></a></p>
<h3>Step 4.</h3>
<p>Once you have your design, it needs to be optimised for the Kindle by reducing the colour depth to the 16 supported shades of grey.</p>
<p>From Photoshop menu choose <strong>Image &gt; Mode &gt; Indexed Color</strong></p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-menu-indexed-colour.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-menu-indexed-colour" alt="kindle-menu-indexed-colour" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-menu-indexed-colour_thumb.png" width="500" height="327" /></a></p>
<p>Photoshop should prompt if you want to flatten layers, choose <strong>OK</strong>.</p>
<p>You should now have the Indexed Color window showing.&#160; Click on the Palette menu and choose <strong>Custom</strong>…</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-custom-palette.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-custom-palette" alt="kindle-custom-palette" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-custom-palette_thumb.png" width="300" height="434" /></a></p>
<p>From the Color Table menu, select <strong>Load</strong> and locate the <strong>kindle3colours.act</strong> file you downloaded in <strong>Step 1</strong>.</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-custom-colour-table.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-custom-colour-table" alt="kindle-custom-colour-table" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-custom-colour-table_thumb.png" width="300" height="257" /></a></p>
<p>The Color Table should now display the 16 Kindle supported grey’s only.&#160; Select <strong>OK</strong> to close the window.</p>
<p>In the Indexed Color window, under the options section select the Dither menu and select <strong>None</strong>.&#160; If the picture does not look good, select the Dither menu again and choose one of the <strong>other options</strong>.&#160; Repeat until you find the best representation.</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-indexed-color.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-indexed-color" alt="kindle-indexed-color" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-indexed-color_thumb.png" width="300" height="246" /></a></p>
<p>Click <strong>OK</strong> to close the Indexed Color window.</p>
<h3>Step 5.</h3>
<p>The design is now ready for export.&#160; From Photoshop menu, choose <strong>File &gt; Save for Web &amp; Devices</strong></p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-save-for-the-web.png" rel="lightbox[1250]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="kindle-save-for-the-web" alt="kindle-save-for-the-web" src="http://blog.grapii.com/wp-content/uploads/2011/09/kindle-save-for-the-web_thumb.png" width="500" height="365" /></a></p>
<p>Make the following changes:</p>
<ul>
<li>Set file format to PNG-8</li>
<li>Deselect Transparency</li>
<li>Set Colors to 16</li>
<li>Deselect “Convert to sRGB”</li>
</ul>
<h3>Step 6.</h3>
<p>Save the file and <a href="http://wiki.mobileread.com/wiki/Kindle_Screen_Saver_Hack_for_all_2.x_and_3.x_Kindles">transfer the screensaver to your Kindle</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/09/how-to-create-kindle-optimised-screensavers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unhide Library Folder in Mac OS X 10.7 Lion</title>
		<link>http://blog.grapii.com/2011/07/unhide-library-folder-in-mac-os-x-10-7-lion/</link>
		<comments>http://blog.grapii.com/2011/07/unhide-library-folder-in-mac-os-x-10-7-lion/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 10:27:32 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1224</guid>
		<description><![CDATA[In Mac OS X Lion (10.7), Apple has made the user Library folder hidden. Preferences, presets, and other user customisation settings are stored within this Library folder. There are two ways to access this folder: Temporary To keep the folder hidden and to access it sporadically: In Finder, choose Go > Go To Folder In [...]]]></description>
			<content:encoded><![CDATA[<p>In Mac OS X Lion (10.7), Apple has made the user Library folder hidden.  Preferences, presets, and other user customisation settings are stored within this Library folder.</p>
<p>There are two ways to access this folder:</p>
<h3>Temporary</h3>
<p>To keep the folder hidden and to access it sporadically:</p>
<ol>
<li>In Finder, choose Go > Go To Folder</li>
<li>In the Go To Folder dialog, enter <code>~/Library</code></li>
<li>Click Go</li>
</ol>
<h3>Permanent</h3>
<p>To unhide the folder permanently:</p>
<ol>
<li>Open a Terminal session</li>
<li>Enter the following command (replace &lt;username&gt; with your actual username</li>
<pre>chflags nohidden /Users/&lt;username&gt;/Library</pre>
<li>Quit Terminal</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/07/unhide-library-folder-in-mac-os-x-10-7-lion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Degraded Mac OS X performance with Bootcamp partition</title>
		<link>http://blog.grapii.com/2011/04/degraded-mac-os-x-performance-with-bootcamp-partition/</link>
		<comments>http://blog.grapii.com/2011/04/degraded-mac-os-x-performance-with-bootcamp-partition/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 21:42:13 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Bootcamp]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/2011/04/degraded-mac-os-x-performance-with-bootcamp-partition/</guid>
		<description><![CDATA[If you have a bootcamp partition on your Mac, you may notice degraded performance on Mac OS X.&#160; This could be because spotlight tries to index the bootcamp partition. Simply change the spotlight preferences to not index the bootcamp partition by making it private.&#160; Here’s how to do just that: System Preferences &#62; Spotlight &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a bootcamp partition on your Mac, you may notice degraded performance on Mac OS X.&#160; This could be because spotlight tries to index the bootcamp partition.</p>
<p><span id="more-1205"></span>
<p>Simply change the spotlight preferences to not index the bootcamp partition by making it private.&#160; Here’s how to do just that:</p>
<p><code>System Preferences &gt; Spotlight &gt; Privacy</code> then either click the <code>'+'</code> sign and add your Bootcamp partition, or, if your Bootcamp Partition is visible on your desktop, just drag it into the Privacy section.</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/04/spotlightBootcampPrivacy.png" rel="lightbox[1205]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="spotlightBootcampPrivacy" alt="spotlightBootcampPrivacy" src="http://blog.grapii.com/wp-content/uploads/2011/04/spotlightBootcampPrivacy_thumb.png" width="440" height="419" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/04/degraded-mac-os-x-performance-with-bootcamp-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Client for Mac OS X</title>
		<link>http://blog.grapii.com/2011/04/wordpress-client-for-mac-os-x/</link>
		<comments>http://blog.grapii.com/2011/04/wordpress-client-for-mac-os-x/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 15:15:05 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Bootcamp]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/2011/04/wordpress-client-for-mac-os-x/</guid>
		<description><![CDATA[Ever since I switched over to using a Mac, I&#8217;ve been struggling to find a really simple yet powerful blogging client. On PC platform nothing beats Windows Live Writer, it&#8217;s simple design with powerful editing capabilities make it a must for offline blogging. It also downloads your WordPress theme so that you can see exactly [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I switched over to using a Mac, I&#8217;ve been struggling to find a really simple yet powerful blogging client. On PC platform nothing beats <a href="http://explore.live.com/windows-live-writer?os=other" target="_blank">Windows Live Writer</a>, it&#8217;s simple design with powerful editing capabilities make it a must for offline blogging. It also downloads your <a href="http://wordpress.org/" target="_blank">WordPress</a> theme so that you can see exactly what your post will look like.</p>
<p><span id="more-1191"></span>To completely switch over to Mac, I need to find a similar application, alas, none can be found. Yes I can use VMFusion or Parallels and run <a href="http://blog.grapii.com/2009/07/desktop-client-for-wordpress/" target="_blank">WLW</a>, but it seems an overkill to have a Windows virtual machine running just for one application.
<p>I&#8217;ve just downloaded and installed the trial version of <a title="Blogo" href="http://www.drinkbrainjuice.com/" target="_blank">Blogo</a>, and will see how that goes. First impressions seems good, it has a very clean and simple interface, and you can preview your post locally &#8211; similar to WLW, Blogo downloads your theme.</p>
<p>One aspect lacking that I&#8217;ve just noticed is the inability to format image thumbnails. In WLW, can you manipulate the thumbnail images and add framing effects to them, so I can place a black border around the image, or select a drop shadow effect, even so far as selecting a reflection image and make it look really smart. Also if you have your own image styling in your theme, you can select the inherit from blog option, which as it says, inherits the style conditions as set in your style.css file. In Blogo, unfortunately, the only manipulation you can do is to crop the image, make it black and white or sepia, as you can see from the example below.</p>
<p>Another feature of WLW lacking in Blogo is the ability to create excepts using the &quot;more&quot; tag. This lets you break the post and show only the except in the main post. If a use wants to read more they can click on the link and will be presented with the full post. This is a very useful tool in WordPress as you may have a large post entry, but only want to show an except of it on you main blog, something I do all the time. In WLW there was an option to place the &quot;more&quot; tag, unfortunately in Blogo there is no such feature.</p>
<p>Nevertheless I will press on and evaluate this little application and see if it meets my needs.</p>
<p style="text-align: center"><a href="http://blog.grapii.com/wp-content/uploads/2011/04/wallpaper_brainjuice_1024x640-full.jpg" rel="lightbox[1191]"><img alt="" src="http://blog.grapii.com/wp-content/uploads/2011/04/wallpaper_brainjuice_1024x640-thumb1.jpg" width="200" height="125" /></a></p>
<h3>UPDATE</h3>
<p>20th April 2011</p>
<p>Having used Blogo for a few weeks now, I find it a poor substitute for WLW, which is still the simplest, elegant and feature-full client application for blogging.&#160; So unfortunately I can’t completely switch over from Windows, which was my original intent.&#160; I now have Windows 7 installed on a <a href="http://www.apple.com/support/bootcamp/">bootcamp</a> partition, allowing me to run Windows natively on my MacBook Pro.&#160; I also have <a href="http://www.vmware.com/products/fusion/overview.html">VMware Fusion</a>, which can also load the bootcamp partition, eradicating the need to have a separate VM image from the bootcamp partition.&#160; </p>
<p>This setup now provides me with the best of two worlds.&#160; If I want to run some intense Windows applications, such as games, I can boot the MBP into Windows 7, however if I want to use standard applications, like WLW, then I boot into Mac OS X as normal and use VMware Fusion to run WLW in “unity” mode.</p>
<p><a href="http://blog.grapii.com/wp-content/uploads/2011/04/windowsLiveWriter.png" rel="lightbox[1191]"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="windowsLiveWriter" alt="windowsLiveWriter" src="http://blog.grapii.com/wp-content/uploads/2011/04/windowsLiveWriter_thumb.png" width="300" height="231" /></a></p>
<p>I will still endeavour to try out other client based WordPress editors for the Mac, but there aren’t many around, and those that do exist have very limited features, or require high experience in HTML coding and formatting.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/04/wordpress-client-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OZ Phrases Dictionary</title>
		<link>http://blog.grapii.com/2011/04/oz-phrases-dictionary/</link>
		<comments>http://blog.grapii.com/2011/04/oz-phrases-dictionary/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 16:18:24 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Oz]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1179</guid>
		<description><![CDATA[The following are some Strine words or phrases that you may encounter whilst out in sunny Australia. Arvo = Afternoon Bludger = Lazy person Crook = Sick Cuppa = Cup of tea Cut lunch = Sandwiches Dinkum = Fair, honest Good on ya! = Expression of approval London to a brick = Absolutely certain Spit [...]]]></description>
			<content:encoded><![CDATA[<p>The following are some <a href="http://en.wikipedia.org/wiki/Strine" target="_blank">Strine </a>words or phrases that you may encounter whilst out in sunny Australia.</p>
<p style="text-align: center;"><img title="australia_kangaroo" src="http://blog.grapii.com/wp-content/uploads/2011/04/australia_kangaroo.jpg" alt="" width="280" height="250" /></p>
<ul>
<li>Arvo = Afternoon</li>
<li>Bludger = Lazy person</li>
<li>Crook = Sick</li>
<li>Cuppa = Cup of tea</li>
<li>Cut lunch = Sandwiches</li>
<li>Dinkum = Fair, honest</li>
<li>Good on ya! = Expression of approval</li>
<li>London to a brick = Absolutely certain</li>
<li>Spit the dummy = Lose your temper</li>
<li>Ta = Thanks</li>
<li>Throw a wobbly = Lose control</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/04/oz-phrases-dictionary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replace WordPress database content using SQL statements</title>
		<link>http://blog.grapii.com/2011/04/replace-wordpress-database-content-using-sql-statements/</link>
		<comments>http://blog.grapii.com/2011/04/replace-wordpress-database-content-using-sql-statements/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 16:17:58 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1171</guid>
		<description><![CDATA[I recently change my blog location from the root domain to a subdomain. Following the guide from WordPress everything went swimmingly, except one thing. On some of the posts I published, I included images, and although my uploads folder had been moved from the root to the subdomain, the content for the images still pointed [...]]]></description>
			<content:encoded><![CDATA[<p>I recently change my blog location from the root domain to a subdomain.  Following the guide from <a href="http://codex.wordpress.org/Moving_WordPress">WordPress</a> everything went swimmingly, except one thing.</p>
<p><span id="more-1171"></span></p>
<p>On some of the posts I published, I included images, and although my uploads folder had been moved from the root to the subdomain, the content for the images still pointed to the root address.  Image links inside the post content were like <code>&lt;img src="http://www.grapii.com/wp-contents/uploads/... /&gt;</code></p>
<p>This caused the problem when displaying the post on the new subdomain as the images were linked to the old domain, resulting in a broken image icon.</p>
<p>To fix this I needed to change all <code>&lt;img src=.. /&gt;</code> links from the old to the new.  I could manually edit each post via the admin panel one by one, but that would take way too long, cumbersome, error-prone and most of all annoying.</p>
<p>Luckily all post content is held in WordPress <a href="http://codex.wordpress.org/Database_Description">database</a> table called <code>wp-posts</code>, and from there you could query the content using simple SQL statements.  I had to take that a step further though, as I need to basically execute a find and replace on a large scale, and using an update SQL statement, I could do just that.</p>
<pre>UPDATE wp_posts SET post_content = REPLACE ( post_content, 'http://www.grapii.com', 'http://blog.grapii.com' );</pre>
<p>This SQL statement updates the post_content field, where the content is held, obviously, then replaces that content with itself, and if it finds <code>http://www.grapii.com</code> within then replace with <code>http://blog.grapii.com</code>.</p>
<p>What would have manually taken me days/weeks todo, this little SQL code did it all for me in seconds.</p>
<p>The power of SQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/04/replace-wordpress-database-content-using-sql-statements/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Taking Screenshots in Mac OS X</title>
		<link>http://blog.grapii.com/2011/03/taking-screenshots-in-mac-os-x/</link>
		<comments>http://blog.grapii.com/2011/03/taking-screenshots-in-mac-os-x/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 13:07:47 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1166</guid>
		<description><![CDATA[Quick post on how to take screenshots using keyboard shortcuts. Save to File: CMD+SHIFT+3 Take a screenshot of the entire screen and save it as a file on the desktop CMD+SHIFT+4 Select an area and take a screenshot of that area, save as file on the desktop CMD+SHIFT+4 followed by SPACE Click on a window [...]]]></description>
			<content:encoded><![CDATA[<p>Quick post on how to take screenshots using keyboard shortcuts.</p>
<h3>Save to File:</h3>
<h4>CMD+SHIFT+3</h4>
<p>Take a screenshot of the <strong>entire</strong> screen and save it as a file on the desktop</p>
<h4>CMD+SHIFT+4</h4>
<p>Select an <strong>area</strong> and take a screenshot of that area, save as file on the desktop</p>
<h4>CMD+SHIFT+4 followed by SPACE</h4>
<p>Click on a <strong>window</strong> and take a screenshot of that window, save as file on the desktop</p>
<h3>Save to Clipboard</h3>
<h4>CMD+CTRL+SHIFT+3</h4>
<p>Take a screenshot of the <strong>entire</strong> screen and save it to the clipboard</p>
<h4>CMD+CTRL+SHIFT+4</h4>
<p>Select an <strong>area</strong> and take a screenshot of that area, save it to the clipboard</p>
<h4>CMD+SHIFT+4 followed by SPACE</h4>
<p>Click on a <strong>window</strong> and take a screenshot of that window, save it to the clipboard</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/03/taking-screenshots-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aperture v.s Shutter Speed vs. ISO Settings</title>
		<link>http://blog.grapii.com/2011/01/aperture-v-s-shutter-speed-vs-iso-settings/</link>
		<comments>http://blog.grapii.com/2011/01/aperture-v-s-shutter-speed-vs-iso-settings/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 23:40:30 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Camera]]></category>
		<category><![CDATA[DSLR]]></category>

		<guid isPermaLink="false">http://blog.grapii.com/?p=1153</guid>
		<description><![CDATA[Introduction The discussion of Aperture versus Shuttler Speed versus ISO are the fundamental basics for understanding photography. A thorough understanding of the relationship of all three are necessary to understanding exposure in digital SLR cameras. This guide provides a simplified explanation of these terms and their effect on each other. What is aperture? Aperture is [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p style="text-align: center;"><img class="size-full wp-image-1162" title="dslr" src="http://blog.grapii.com/wp-content/uploads/2011/01/dslr.png" alt="" width="400" height="300" /></p>
<p>The discussion of Aperture versus Shuttler Speed versus ISO are the fundamental basics for understanding photography. A thorough understanding of the relationship of all three are necessary to understanding exposure in digital SLR cameras.</p>
<p>This guide provides a simplified explanation of these terms and their effect on each other.<br />
<span id="more-1153"></span></p>
<h3>What is aperture?</h3>
<p>Aperture is the relative size of how wide the lens opens when the shutter is released. It is one of the factors that determines how much light enters the camera. The other factor is shutter speed, which determines how long the shutter stays open.</p>
<p>Here is the f-stop scale</p>
<p style="padding-left: 30px;">f/1<br />
f/1.4<br />
f/2<br />
f/2.8<br />
f/4<br />
f/5.6<br />
f/8<br />
f/11<br />
f/16<br />
f/22<br />
f/32<br />
f/45<br />
f/64</p>
<p>Each step on the scale lets in half as much light as the previous step. So f/1.4 lets in half as much light as f/1, f/2 lets in half as much light as f/1.4 and so on.</p>
<p>You can remember the f-stop scale by remembering that the first two numbers are 1 and 1.4. All the others are doubling of those two numbers.</p>
<h3>How does aperture relate to shutter speed?</h3>
<p>Well, suppose you have a correct exposure at f/4 and 1/100 sec. If you decreased your aperture to f/5.6 what shutter speed would you need to get the same exposure? f/5.6 lets in half as much light as f/4. That means you have to leave the shutter open twice as long to get the same exposure. So at f/5.6 you would need to set the shutter speed to 1/50 sec to get the same exposure.</p>
<p>Suppose on the other hand you want to go from f/4, 1/100s to 1/200 sec. What f-stop would you need? 1/200 sec is half the exposure of 1/100 sec. That means you have to let in twice as much light to get the same exposure. So at 1/200sec you have to increase your aperture to f/2.8</p>
<h3>Why would you choose one shutter speed over another, or one f/stop over another?</h3>
<p>Suppose you&#8217;re shooting a moving subject. If you want to freeze the action you&#8217;d choose a fast shutter speed, but you&#8217;d have to open up the aperture to let in more light. However, a wider aperture also leads to a shallower depth of field. You&#8217;ve probably seen sports photos of athletes frozen in mid air with the the background out of focus. Fast shutter speed and wide aperture will do that.</p>
<p>If you want to increase your depth of field you&#8217;d choose a smaller aperture and a slower shutter speed.</p>
<h3>How do you know when you have the right combination of aperture and shutter speed?</h3>
<ol>
<li>You could take a test shot, review and adjust. Look at the histogram:
<ol>
<li>if the histogram is too far to the left it means your exposure is too dark. Open up the aperture or use a slower shutter speed.</li>
<li>if the histogram is too far to the right it means you exposure is too bright. Close down the aperture or use a faster shutter speed.</li>
</ol>
</li>
<li>You could use the camera&#8217;s built-in light meter. Your camera will tell you when it thinks you have the right exposure. See your camera&#8217;s user manual for instructions on how to use the light meter.</li>
</ol>
<h3>How does ISO relate to all this?</h3>
<p>ISO sets your camera&#8217;s sensitivity to light. ISO 200 is twice as sensitive to light as ISO 100; ISO 400 is twice as sensitive to light as ISO 200 and so on.</p>
<p>Suppose you have a proper exposure at ISO 100, f/4.0 and 1/100sec. If you set the camera to ISO 200 you can set the camera to f/5.6 &amp; 1/100 sec, or f/4.0 and 1/200 sec an get the same exposure.</p>
<h3>Why would you change the ISO setting?</h3>
<p>Suppose you&#8217;re in a low light situation. You&#8217;ve got the lens at it&#8217;s widest setting and the shutter speed as slow as you&#8217;d dare take it (any slower and the picture will turn out blury because of movement, etc), but your exposure is still too dark. You can boost the ISO to get a better exposure.</p>
<p style="text-align: center;"><strong>Be warned, higher ISO means lower saturation and more noise.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2011/01/aperture-v-s-shutter-speed-vs-iso-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to edit the hosts file in Mac OS X &#8211; Snow Leopard</title>
		<link>http://blog.grapii.com/2010/09/how-to-edit-the-hosts-file-in-mac-os-x-snow-leopard/</link>
		<comments>http://blog.grapii.com/2010/09/how-to-edit-the-hosts-file-in-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 09:37:28 +0000</pubDate>
		<dc:creator>grapii</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.grapii.com/?p=1138</guid>
		<description><![CDATA[The hosts file is a text file that maps hostnames to IP addresses.  Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address.  If no entries exists it resolves the IP via the active connection&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The hosts file is a text file that maps hostnames to IP addresses.  Upon typing a url address in the browser, the system first checks if there is a relevant entry in the hosts file and if exists gets the corresponding IP address.  If no entries exists it resolves the IP via the active connection&#8217;s DNS servers.</p>
<p>The hosts file can be edited to block certain hostsnames, like ad-serving/malicious hosts, or used for web development purposes, i.e. to redirect domains to local addresses.<br />
<span id="more-1138"></span></p>
<h2>Step 1 &#8211; Open the Terminal.app</h2>
<p>Either start typing Terminal in the Spotlight search, or goto Applications &gt; Utilities &gt; Terminal.</p>
<h2>Step 2 &#8211; Open the host file</h2>
<p>Open the hosts file by typing the following in the Terminal window:</p>
<pre>$ sudo nano /private/etc/hosts</pre>
<p>Type your user password when prompted.</p>
<h2>Step 3 &#8211; Edit the hosts file</h2>
<p>The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 &#8211; local host).  Simply append your new mappings underneath the default ones.</p>
<h2>Step 4 &#8211; Save the hosts file</h2>
<p>When done editing the hosts file, press Control+s (cmd+s) to save the file.</p>
<h2>Step 5 &#8211; Flush the DNS cache</h2>
<p>You can use a simple Terminal command to flush the DNS cache, and have your host file changes take immediate effect.  Using the open Terminal window, then the following command:</p>
<pre>$ dscacheutil -flushcache</pre>
<p>Your new mappings should now take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.grapii.com/2010/09/how-to-edit-the-hosts-file-in-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

