<?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>all is vanity &#187; wordpress</title>
	<atom:link href="http://ferris.sg/?feed=rss2&#038;tag=wordpress" rel="self" type="application/rss+xml" />
	<link>http://ferris.sg</link>
	<description>Omnia Vanitas</description>
	<lastBuildDate>Wed, 18 Dec 2013 16:11:26 +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>Fixing Shutter Speed on Autofocus Theme</title>
		<link>http://ferris.sg/?p=13</link>
		<comments>http://ferris.sg/?p=13#comments</comments>
		<pubDate>Mon, 22 Nov 2010 17:06:45 +0000</pubDate>
		<dc:creator>f E R R i S</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ferris.sg/?p=13</guid>
		<description><![CDATA[I have installed and activated Autofocus theme for my photo gallery earlier on while setting up this site. The shutter speed was not working when you click on the EXIF information as per described by the author of the theme. I did some online research and I think I have gotten it working. Take a&#8230;]]></description>
			<content:encoded><![CDATA[<p>I have installed and activated Autofocus theme for my photo gallery earlier on while setting up this site. The shutter speed was not working when you click on the EXIF information as per described by the author of the theme. I did some online research and I think I have gotten it working. Take a look at <a href="http://pix.ferris.sg/?attachment_id=81">this</a> for working example of shutter speed been display as a fraction in the EXIF information.</p>
<p>Below is what you need to do inorder to get yours working.</p>
<ol>
<li>Login to your wordpress installation and activated Autofocus theme</li>
<li>Click on &#8220;Appearance&#8221; follow by &#8220;Editor&#8221;</li>
<li>Select &#8220;Themes Functions (functions.php)&#8221;  under the list of Templates</li>
<li>Locate the codes for EXIF. It should start with something like below<em><br />
<span style="color: #ff9900;">// Convert the shutter speed retrieve from database to fraction DOES NOT WORK ON THE LIVE SERVER FR SOME REASON &gt;:-|<br />
</span></em><em><span style="color: #ff9900;">if ((1 / $imgmeta['image_meta']['shutter_speed']) &gt; 1)      {<br />
</span></em><span style="color: #474747;"><em><span style="color: #ff9900;">&#8230; &#8230;<br />
</span></em></span><span style="color: #474747;"><em><span style="color: #ff9900;">&#8230; &#8230;<br />
</span></em></span><span style="color: #474747;"><em><span style="color: #ff9900;">&#8230; &#8230;<br />
</span></em></span><em><span style="color: #ff9900;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Shutter Speed:&lt;/span&gt; &#8221; . $pshutter.&#8221;&lt;/li&gt;&lt;/ul&gt;&#8221;;<br />
</span></em><em><span style="color: #ff9900;"><span style="color: #ff9900;">}</span></span></em><span style="color: #474747;"><em><span style="color: #ff9900;"><br />
</span></p>
<p style="color: #474747;">
<p></em><em> </em></p>
<p style="color: #474747;"><em> </em><em> </em></p>
<p style="color: #474747;">
<p></span></li>
<li><span style="color: #474747;"> Replace them with the below codes
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">// Convert the shutter speed retrieve from database to fraction DOES NOT WORK ON THE LIVE SERVER FOR SOME REASON &gt;:-|</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">if ((1 / $imgmeta['image_meta']['shutter_speed']) &gt; 1)</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">{</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">if ((number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1)) == 1.3</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 1.5</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 1.6</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 2.5){</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">$pshutter = &#8220;1/&#8221; . number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1, &#8216;.&#8217;, &#8221;) . &#8221; second&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">}</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">else{</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">$pshutter = &#8220;1/&#8221; . number_format((1 / $imgmeta['image_meta']['shutter_speed']), 0, &#8216;.&#8217;, &#8221;) . &#8221; second&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">}</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">}</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">else{</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">$pshutter = $imgmeta['image_meta']['shutter_speed'] . &#8221; seconds&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">}</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">// Start to display EXIF and IPTC data of digital photograph</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;ul&gt;&lt;li&lt;span class=\&#8221;exif-title\&#8221;&gt;Date Taken:&lt;/span&gt; &#8221; . date(&#8220;d-M-Y H:i:s&#8221;, $imgmeta['image_meta']['created_timestamp']).&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">//echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Copyright:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['copyright'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">//echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Credit:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['credit'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">//echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Title:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['title'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">//echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Caption:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['caption'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Camera:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['camera'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Focal Length:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['focal_length'].&#8221;mm&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Aperture:&lt;/span&gt; f/&#8221; . $imgmeta['image_meta']['aperture'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;ISO:&lt;/span&gt; &#8221; . $imgmeta['image_meta']['iso'].&#8221;&lt;/li&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">echo &#8220;&lt;li&gt;&lt;span class=\&#8221;exif-title\&#8221;&gt;Shutter Speed:&lt;/span&gt; &#8221; . $pshutter.&#8221;&lt;/li&gt;&lt;/ul&gt;&#8221;;</span></div>
<div id="_mcePaste" style="font-style: italic;"><span style="color: #99cc00;">}</span></div>
<p><em> </em></p>
<p></span></li>
<li>Click &#8220;Update File&#8221; button.<em> </em></li>
<li><span style="color: #474747;">It should be working now. </span></li>
</ol>
<p><span style="color: #474747;">As a precaution, backup the original codes. Perform this at your own risk. I will not bear any responsibilities should you mess up / crash / damaged / screw up your wordpress installation and / or causes any lost of data.  <img src='http://ferris.sg/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</span></p>
<p><em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ferris.sg/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>940</slash:comments>
		</item>
		<item>
		<title>Completed at last</title>
		<link>http://ferris.sg/?p=6</link>
		<comments>http://ferris.sg/?p=6#comments</comments>
		<pubDate>Sun, 21 Nov 2010 08:10:37 +0000</pubDate>
		<dc:creator>f E R R i S</dc:creator>
				<category><![CDATA[Geeky]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ferris.sg/?p=6</guid>
		<description><![CDATA[Finally, after many days of playing around with wordpress, I have completed setting up this site. From now on, all posts regarding my family life will go to http://dear.ly and everything else will come to here. I have also set up a simple photo gallery *click SNIPPETS OF LIFE on menu bar* whereby I will&#8230;]]></description>
			<content:encoded><![CDATA[<p>Finally, after many days of playing around with wordpress, I have completed setting up this site. From now on, all posts regarding my family life will go to <a href="http://dear.ly">http://dear.ly</a> and everything else will come to here. I have also set up a simple photo gallery *click SNIPPETS OF LIFE on menu bar* whereby I will post up photos other than my family members. This blog will be all about ME, I and MYSELF.</p>
<p>If you are interested in finding out what plugins and what settings I&#8217;m using, feel free to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://ferris.sg/?feed=rss2&#038;p=6</wfw:commentRss>
		<slash:comments>1004</slash:comments>
		</item>
	</channel>
</rss>
