<?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>random stuff about photography, geek things and the web in general</title>
	<atom:link href="http://www.bergspot.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bergspot.com/blog</link>
	<description>Random stuff about photography, geek things and the web in general</description>
	<lastBuildDate>Fri, 11 May 2012 01:49:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting XML Tidy (xmllint) to work on TextWrangler 4.0</title>
		<link>http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/</link>
		<comments>http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/#comments</comments>
		<pubDate>Fri, 11 May 2012 01:46:01 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[mac os]]></category>
		<category><![CDATA[textwrangler]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=120</guid>
		<description><![CDATA[TextWrangler has recently released a major update &#8211; version 4.0. A lot has changed, check out the release notes here. One of the things that changed is the way it handles scripts and text filters. If you don&#8217;t want to read through the whole thing, here&#8217;s the main part: There are two fundamental types of [...]]]></description>
			<content:encoded><![CDATA[
<p>TextWrangler has recently released a major update &#8211; version 4.0. A lot has changed, <a title="TextWrangler 4.0 Release Notes" href="http://www.barebones.com/support/textwrangler/current_notes.html" target="_blank">check out the release notes here</a>.</p>
<p>One of the things that changed is the way it handles scripts and text filters. If you don&#8217;t want to read through the whole thing, here&#8217;s the main part:</p>
<p style="padding-left: 30px;"><em>There are two fundamental types of runnable file: &#8220;text filters&#8221;, which accept the selection range (or entire document, if no selection) as input, and which return text that replaces the selection range (or document); and &#8220;scripts&#8221;, which do neither. In unix-y terms, text filters accept the selection range on <code>STDIN</code>, and <code>STDOUT</code> replaces the selection range.</em></p>
<p>It just happens that I use XML Tidy a lot to format xml documents in a pretty way. To do that I had a nice little script (which is just a xmllint command really) for which I assigned a shortcut (alt+cmd+p). That made my workflow pretty fast. The problem is that this script stopped working as before so it took a while to find out why but <a href="http://groups.google.com/group/textwrangler/browse_thread/thread/15e3d87cd2a2e2bb/5de3d2d649deff4c" target="_blank">I found a thread in google groups about this issue</a> and someone from Barebones helped find the solution.</p>
<p>So in summary, here&#8217;s what you have to do to make XML Tidy work again in TextWrangler 4.0:</p>
<ul>
	<li>
<p>Paste this into a file</p></li>
</ul>
<pre style="padding-left: 60px;">#!/bin/sh
XMLLINT_INDENT=$'\t' xmllint --format --encode utf-8 -</pre><ul>
	<li>Save with the name tidy.sh under ~/Library/Application Support/TextWrangler/Text Filters/</li>
	<li>Open TextWrangler, write some unformatted xml, and try it out from Text menu &gt; Apply Text Filter</li>
	<li>To make it even easier, go to Preferences &gt; Menus and Shortcuts and set a shortcut like I did (alt+cmd+p)</li>
</ul>
<p>Hope that helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2012/05/getting-xml-tidy-xmllint-to-work-on-textwrangler-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)</title>
		<link>http://www.bergspot.com/blog/2012/02/how-to-fix-warning-setlocale-lc_ctype-cannot-change-locale-utf-8/</link>
		<comments>http://www.bergspot.com/blog/2012/02/how-to-fix-warning-setlocale-lc_ctype-cannot-change-locale-utf-8/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 00:41:55 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=116</guid>
		<description><![CDATA[I recently encountered a problem when logging through SSH in to certain servers that I use for work when using my new Macbook Pro (running Lion 10.7.3). So right after the login was completed I was getting the following message: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) It only happened on certain servers, for others [...]]]></description>
			<content:encoded><![CDATA[
<p>I recently encountered a problem when logging through SSH in to certain servers that I use for work when using my new Macbook Pro (running Lion 10.7.3).</p>
<p>So right after the login was completed I was getting the following message:</p>
<pre>warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)</pre>
<p>It only happened on certain servers, for others everything would work just fine.<br />This caused a few problems when running some perl scripts that would complain about the locale variables not being set, even though my Terminal app was setup correctly.</p>
<p>To fix this I simply added the following to my ~/.bash_profile:</p>
<pre>export LC_CTYPE="en_US.UTF-8"
</pre>
<p>Let me know if that helped you by leaving a comment below!</p>
<pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2012/02/how-to-fix-warning-setlocale-lc_ctype-cannot-change-locale-utf-8/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Lior Ron talks openly about Google Hotpot</title>
		<link>http://www.bergspot.com/blog/2010/12/lior-ron-talks-openly-about-google-hotpot/</link>
		<comments>http://www.bergspot.com/blog/2010/12/lior-ron-talks-openly-about-google-hotpot/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 00:49:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hotpot]]></category>
		<category><![CDATA[local search]]></category>
		<category><![CDATA[startups]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=105</guid>
		<description><![CDATA[It&#8217;s a great thing when companies talk openly about their projects. Of course, never revealing the really juicy classified-type of information but giving out some very interesting details. Google has nurtured such a culture and this video is a great example of that. Lior Ron, Google&#8217;s product manager for geo search, talks openly about Hotpot [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a great thing when companies talk openly about their projects. Of course, never revealing the really juicy classified-type of information but giving out some very interesting details. Google has nurtured such a culture and this video is a great example of that. Lior Ron, Google&#8217;s product manager for geo search, talks openly about Hotpot and the thinking behind its creation on an episode of <a href="http://www.youtube.com/user/ThisWeekIn" target="_blank">ThisWeekIn</a> Startups.</p>
<p>(Go directly to min 4:50).</p>
<p>&nbsp;</p>


<object width="560" height="345">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.youtube.com/v/zEC42W-UucA&autoplay=0&loop=0&rel=0" />
<param name="wmode" value="transparent">
<embed src="http://www.youtube.com/v/zEC42W-UucA&autoplay=0&loop=0&rel=0" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" width="560" height="345">
</embed>
</object>

]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2010/12/lior-ron-talks-openly-about-google-hotpot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Jeremy Cowart</title>
		<link>http://www.bergspot.com/blog/2010/12/jeremy-cowart/</link>
		<comments>http://www.bergspot.com/blog/2010/12/jeremy-cowart/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 16:31:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[jeremy cowart]]></category>
		<category><![CDATA[photographer]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=78</guid>
		<description><![CDATA[I just want to quickly share a great photographer that has conquered some real clients like ABC, E!, Fox, Sony, and many others. He has a distinct style producing strong and bold images. The visual impact of his pictures makes you want to keep looking at them. Also worth mentioning is his beautiful website (it [...]]]></description>
			<content:encoded><![CDATA[
<p>I just want to quickly share a great photographer that has conquered some real clients like ABC, E!, Fox, Sony, and many others.</p>
<p>He has a distinct style producing strong and bold images. The visual impact of his pictures makes you want to keep looking at them. Also worth mentioning is his beautiful website (it probably helps that fact that he was a designer before).</p>
<p><a href="http://www.jeremycowart.com/"><img class="alignnone size-large wp-image-81" title="Jeremy Cowart" src="http://bergspot.com/blog/wp-content/uploads/2010/12/jeremy_cowart1-1024x786.jpg" alt="Jeremy Cowart - Website" width="491" height="378" /></a></p>
<p><a href="http://www.jeremycowart.com/" target="_blank">http://www.jeremycowart.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2010/12/jeremy-cowart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing the “unexpected T_ENDWHILE” error in WordPress + xampp</title>
		<link>http://www.bergspot.com/blog/2010/12/fixing-the-unexpected-t_endwhile-error-in-wordpress-xampp/</link>
		<comments>http://www.bergspot.com/blog/2010/12/fixing-the-unexpected-t_endwhile-error-in-wordpress-xampp/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 01:35:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=71</guid>
		<description><![CDATA[I have recently been through a lot of pain trying to configure a local installation of WordPress using xampp. The problem was that after activating a theme (not the default one) I was getting an error: This was driving me crazy but after a lot of searching I FINALLY found the solution! I&#8217;m so happy [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been through a lot of pain trying to configure a local installation of WordPress using xampp. The problem was that after activating a theme (not the default one) I was getting an error:</p>
<pre class="brush: php; title: ; notranslate">Parse error: syntax error, unexpected T_ENDWHILE in (...........)</pre>
<p>This was driving me crazy but after a lot of searching I FINALLY found the solution! I&#8217;m so happy that I want to share it with the world because <a href="http://www.apachefriends.org/f/viewtopic.php?p=162424&amp;sid=b79a91ef6ee6c55bf71d9e39c56d2645#p162426" target="_blank">I really only found this valuable piece of information in one page</a> (and I did a lot of searching, believe me).</p>
<p>When installing a local copy for use in a development environment one of the main problems to tackle is making sure that your local server is as close as possible to your production environment. There are many variables that can change like software versions and configuration parameters. For this specific case it&#8217;s one simple parameter in the php.ini file that was causing issues.</p>
<p>Some php developers like to use <a href="http://php.net/manual/en/ini.core.php" target="_blank">short open tags</a>, and even though I do agree that it can save some time and make the code a bit cleaner, <a href="http://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use" target="_blank">there&#8217;s a lot of discussion around it</a>.</p>
<p>Long story short, apparently the php.ini file included in xampp has the option:</p>
<pre class="brush: php; title: ; notranslate">short_open_tag = Off</pre>
<p>by default. By simply changing this to:</p>
<pre class="brush: php; title: ; notranslate">short_open_tag = On</pre>
<p>all my problems were magically resolved!</p>
<p>I hope you find this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2010/12/fixing-the-unexpected-t_endwhile-error-in-wordpress-xampp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>List of essential free software</title>
		<link>http://www.bergspot.com/blog/2009/12/essential-list-of-free-software/</link>
		<comments>http://www.bergspot.com/blog/2009/12/essential-list-of-free-software/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 20:48:54 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=44</guid>
		<description><![CDATA[After cleaning up my computer and having to reinstall everything I decided to tidy up my archives and take advantage of my brand new 1 TB Lacie external hard drive to put all those little tools I always end up installing sooner or later. These take up something like 170mb and can be really handy. [...]]]></description>
			<content:encoded><![CDATA[
<p>After cleaning up my computer and having to reinstall everything I decided to tidy up my archives and take advantage of my brand new 1 TB Lacie external hard drive to put all those little tools I always end up installing sooner or later. These take up something like 170mb and can be really handy. Please note these aren&#8217;t listed in any particular order, and I&#8217;m also excluding basic things like Firefox &#8211; that&#8217;s mandatory <img src='http://www.bergspot.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2><br />7-Zip</h2>
<p>The best compression tool around. Has support for nearly all formats you&#8217;ll ever use in your life. Make sure you tru the 7zip format, it has really good compression rates.  <strong> </strong></p>
<p><strong>Download:</strong> <a href="http://www.7zip.com" target="_blank">http://www.7zip.com</a><strong><br />Portable:</strong> <a href="http://portableapps.com/apps/utilities/7-zip_portable" target="_blank">http://portableapps.com/apps/utilities/7-zip_portable</a></p>
<h2><span id="more-44"></span><br />AVG Free 9.0</h2>
<p>If you don&#8217;t you should care about viruses and malware. It&#8217;s all over the internet. But forget about expensive antivirus and security software packs like Norton antivirus that make your computer crawl like a slug. AVG has a free version of their antivirus software that has everything you need plus some stuff you probably don&#8217;t &#8211; like the link scanner thing which is the first thing I disable after installing.  <strong> </strong></p>
<p><strong>Download: </strong><a href="http://free.avg.com/us-en/download-avg-anti-virus-free-edition" target="_blank">http://free.avg.com/us-en/download-avg-anti-virus-free-edition</a></p>
<h2><br />ImgBurn</h2>
<p>I used to be a Nero user, but after finding out about this free piece of DVD burning software I switched. It&#8217;s faster and simpler, and that&#8217;s all that there is to it! You can burn everything with this, files, images, music, you name it.  <strong></strong></p>
<p><strong>Download:</strong> <a href="http://www.imgburn.com" target="_blank">http://www.imgburn.com</a></p>
<p><em>Tip: if you&#8217;re looking for a portable solution you can try <a href="http://portableapps.com/apps/utilities/infrarecorder_portable" target="_blank">InfraRecorder portable</a>.</em></p>
<h2><br />VLC Media Player</h2>
<p>This is simply the best media player around, and it&#8217;s open source which means free. It plays nearly every format you can imagine (MPEG-2, MPEG-4, H.264, DivX, MPEG-1, mp3, ogg, aac&#8230;). You can also convert stuff with it or even use it as a server.</p>
<p><strong>Download: </strong><a href="http://www.videolan.org/vlc" target="_blank">http://www.videolan.org/vlc<br /></a><strong>Portable:</strong> <a href="http://portableapps.com/apps/music_video/vlc_portable" target="_blank">http://portableapps.com/apps/music_video/vlc_portable</a></p>
<h2><br />PrtScr</h2>
<p>I featured this one on <a href="http://bergspot.com/blog/2009/04/screenshots-on-steroids-with-prtscr/" target="_self">my previous post</a> so it&#8217;s obviously worthy of being featured in this list also. It&#8217;s a real pleasure to take screenshots like this. I love it when such simple tasks become so easy and so cool!</p>
<p><strong>Download: </strong><a href="http://www.fiastarta.com/PrtScr" target="_blank">http://www.fiastarta.com/PrtScr</a></p>
<p><em>If you&#8217;re looking for something similar but portable <a href="http://portableapps.com/apps/utilities/lightscreen_portable" target="_blank">make sure you try Lightscreen</a>.</em></p>
<h2><br />RocketDock</h2>
<p>In case you&#8217;re like me and have always stared at MACs and their gorgeous launcher bar with all the bells and whistles and wondered why the hell doesn&#8217;t Windows have something like this &#8211; well, now it has, and it&#8217;s free. This is particularly useful for me with a dual monitor setup. Now I can free up the quicklaunch icons from Windows task bar and put all my shortcuts on the RocketDock on the 2nd monitor. It&#8217;s completely customizable so you can play around a bit and get some new icons.</p>
<p><strong>Download: </strong><a href="http://rocketdock.com" target="_blank">http://rocketdock.com</a></p>
<h2><br />Fences</h2>
<p>This is not really an essential tool&#8230; unless you have that nasty habit of throwing everything you find in your desktop which eventually becomes a really big mess which mimics your real life desk. Fences is like Ikea for your desktop. You keep the same shit around you, but you put in boxes so that it looks nicer!</p>
<p><strong>Download: </strong><a href="http://www.stardock.com/products/fences" target="_blank">http://www.stardock.com/products/fences</a></p>
<h2><br />TeraCopy</h2>
<p>This is a very compact tool designed to make copying and moving files easier and faster than usual. Like they say: <em>TeraCopy uses dynamically adjusted buffers to reduce seek times. Asynchronous copy speeds up file transfer between two physical hard drives.</em> It integrates seamlessly in the shell and has some additional features also. Very handy.</p>
<p><strong>Download: </strong><a href="http://www.codesector.com/teracopy.php" target="_blank">http://www.codesector.com/teracopy.php</a></p>
<h2><br />Notepad++</h2>
<p>Here&#8217;s Notepad on steroids! Of course, only useful for geeks like myself. You should have at least a small degree of that disease to find this useful. It&#8217;s a really fast tool for code editing. It supports all the languages that you know, all that you&#8217;ll never know and even those you never heard of. If you still miss any, Notepad++ is totally extensible, you can add whatever you like in there!</p>
<p><strong>Download: </strong><a href="http://notepad-plus.sourceforge.net" target="_blank">http://notepad-plus.sourceforge.net</a><strong><br />Portable:</strong> <a href="http://portableapps.com/apps/development/notepadpp_portable" target="_blank">http://portableapps.com/apps/development/notepadpp_portable</a></p>
<h2><br />Spybot</h2>
<p>An absolute must for your own security. Spybot scans your computer and removes all the spyware you may have accumulated after watching all those weird sites you like so much!</p>
<p><strong>Download: </strong><a href="http://www.safer-networking.org/en/download/index.html" target="_blank">http://www.safer-networking.org/en/download/index.html</a></p>
<h2><br />CCleaner</h2>
<p>Probably the best cleaning tool around. CCleaner cleans up your computer fast, removing unused files from your system, temporary files, cache, history, old registry entries and some more. If you want to keep your system running fast, go for it.</p>
<p><strong>Download:</strong> <a href="http://www.ccleaner.com/" target="_blank">http://www.ccleaner.com</a></p>
<p><br />I hope you find this list useful. <br />Leave your comments and tell me what other free tools you use!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2009/12/essential-list-of-free-software/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Screenshots on steroids with PrtScr</title>
		<link>http://www.bergspot.com/blog/2009/04/screenshots-on-steroids-with-prtscr/</link>
		<comments>http://www.bergspot.com/blog/2009/04/screenshots-on-steroids-with-prtscr/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 01:24:03 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[prtscr]]></category>
		<category><![CDATA[screenshot]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=41</guid>
		<description><![CDATA[I love simple tools that make my life easier, and I just found out one of those. And this one has an extra WOW factor because it&#8217;s beautiful in the way it does what it does &#8211; grab a screenshot. It&#8217;s called PrtScr and you can find it here: http://www.fiastarta.com/PrtScr/ You&#8217;d better see it by [...]]]></description>
			<content:encoded><![CDATA[
<p>I love simple tools that make my life easier, and I just found out one of those. And this one has an extra WOW factor because it&#8217;s beautiful in the way it does what it does &#8211; grab a screenshot.  It&#8217;s called PrtScr and you can find it here: <a href="http://www.fiastarta.com/PrtScr/" target="_blank">http://www.fiastarta.com/PrtScr/</a> You&#8217;d better see it by yourself:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="src" value="http://www.youtube.com/v/C4z3BUJbGUU&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/C4z3BUJbGUU&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" allowfullscreen="true"></embed></object></p>
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2009/04/screenshots-on-steroids-with-prtscr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build your own camera stabilizer</title>
		<link>http://www.bergspot.com/blog/2009/03/build-your-own-camera-stabilizer/</link>
		<comments>http://www.bergspot.com/blog/2009/03/build-your-own-camera-stabilizer/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 17:03:30 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tripod]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=38</guid>
		<description><![CDATA[This is quick one, and one of the best tips I&#8217;ve seen lately! If you&#8217;re like me and don&#8217;t have a decent tripod or you don&#8217;t like taking it everywhere you go, and also if your lenses have no image stabilization, this may come in handy. In a few minutes you can build your own [...]]]></description>
			<content:encoded><![CDATA[
<p>This is quick one, and one of the best tips I&#8217;ve seen lately!  If you&#8217;re like me and don&#8217;t have a decent tripod or you don&#8217;t like taking it everywhere you go, and also if your lenses have no image stabilization, this may come in handy. In a few minutes you can build your own flexible stabilizing device/flexible tripod, and best of all, you can carry it in your pocket!  If you don&#8217;t believe me just take a look at the video:</p>

<object width="480" height="385">
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie" value="http://www.youtube.com/v/Af3aJ2kviJ4&autoplay=0&loop=0&rel=0" />
<param name="wmode" value="transparent">
<embed src="http://www.youtube.com/v/Af3aJ2kviJ4&autoplay=0&loop=0&rel=0" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" width="480" height="385">
</embed>
</object>


]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2009/03/build-your-own-camera-stabilizer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>f-stops explained</title>
		<link>http://www.bergspot.com/blog/2009/02/f-stops-explained/</link>
		<comments>http://www.bergspot.com/blog/2009/02/f-stops-explained/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 01:22:27 +0000</pubDate>
		<dc:creator>bergonzzi</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[aperture]]></category>
		<category><![CDATA[f-stop]]></category>
		<category><![CDATA[photo theory]]></category>

		<guid isPermaLink="false">http://bergspot.com/blog/?p=16</guid>
		<description><![CDATA[This is a subject that for a long time has caused a lot of confusion in my head. Also, I have the feeling that very few people actually know what they&#8217;re talking about when refering to f-stops or apertures in photography. Because I&#8217;m a geek I decided to go a little deeper and finally cleared [...]]]></description>
			<content:encoded><![CDATA[
<p>This is a subject that for a long time has caused a lot of confusion in my head. Also, I have the feeling that very few people actually know what they&#8217;re talking about when refering to f-stops or apertures in photography. Because I&#8217;m a geek I decided to go a little deeper and finally cleared all my doubts. Well at least almost all of them. I&#8217;ll try to explain here what I&#8217;ve learned in the most simple way in the hope of making someone happier, and also to test my own knowledge.  First things first&#8230;</p>
<h3><span style="color: #ffffff;"><strong> <br />What&#8217;s the aperture?</strong></span></h3>
<p>I assume you have a slight clue on this, but anyway, simply put, the aperture is the actual hole that sits in your lens and lets light go through it until it reaches the sensor (or film plane).  The size of the hole can be controlled by the photographer if the lens (on older systems) or the camera allows it.  The f-stop scale that we see in most lenses has this kind of progression:</p>
<p style="padding-left: 30px;"><strong>f/1.4 &#8211; f2 &#8211; f2.8 &#8211; f4 &#8211; f.5.6 &#8211; f8 &#8211; f11 &#8211; f16 &#8211; f22 &#8211; f32</strong></p>
<p>Most lenses nowadays have a slightly longer scale because they offer some steps in between.</p>
<p><span id="more-16"></span></p>
<h3><span style="color: #ffffff;">How does it really work?</span></h3>
<p>This is the question I have asked myself for a long time. Obviously there is a logical reason behind it, but it&#8217;s not that easy to get there just by looking.  You probably heard that <strong>each f-stop represents exactly half the light that you&#8217;d get in relation the previous f-stop </strong>(considering that every other variable remains the same &#8211; speed and ISO). So, f/2.8 is half the light of f/2. Why didn&#8217;t they make it f/4 then? It would be easier to have a linear scale&#8230;  But let&#8217;s go a little deeper.  First of all, it&#8217;s important to know what the f-stop really means. Every f-stop number represents a <strong>ratio of the focal distance of the lens (take 50mm for example) to the actual diameter of the diaphragm opening</strong>.</p>
<p style="padding-left: 30px;"><em>The diaphragm is the device that controls effective diameter of the lens opening. It&#8217;s usually formed by a series of blades that form an almost circular shape.</em></p>
<p>So, f/2 is equal to the Focal Distance / 2. Taking our 50mm lens as an example, that&#8217;s 50 / 2 = 25mm (diameter of the aperture).  Still following?  Ok, so for a 50mm lens at f/2 the diaphragm has an opening with a diameter of 25mm. If you take a 100mm and do the same math, you can easily see that <strong>the same f/2 aperture </strong>results in a 50mm diameter (twice the focal length, twice the aperture diameter).  You must asking &#8220;well if the aperture&#8217;s bigger, how come the f-stop is the same (f/2)?&#8221;. It&#8217;s a great question that haunted me for a long time! And if you go and shoot a photo with both lenses at f/2 you will conclude that the amount of light that makes up your picture is the same. More on that later.  At this point we know how to calculate the aperture size (diameter) and we know that it&#8217;s directly related to the focal distance. What you may not know is that to determine the actual amount of light reaching the sensor (or the film plane) we need to consider the <strong>area</strong> of the aperture (and not the diameter). Remember how to calculate the area of a circle? Ok, I&#8217;ll give you a little help: <strong>π * radius²</strong> (that&#8217;s pi * square radius). Back to our two lenses, the 50mm (25mm diameter, 12,5mm radius) and the 100mm (50mm diameter, 25mm radius):</p>
<ul>
	<li>The area of our 50mm lens @ f/2 is = 3,14 * 12,5² = <strong>490,6 mm²</strong></li>
</ul>
<ul>
	<li>The area of our 100mm lens @ f/2 is = 3,14 * 25² = <strong>1962,5 mm²</strong><strong> </strong></li>
</ul>
<p>Notice that an f/2 aperture in the 100mm lens is actually 4 times bigger than the same aperture in the 50mm lens (1962,5 / 490,6 = 4).</p>
<p><strong> </strong></p>
<h3><span style="color: #ffffff;"><strong><strong><br />Why did we double the focal length and the aperture area is 4 times bigger?</strong></strong></span></h3>
<p>It&#8217;s math! There&#8217;s a rule that says that the area varies as the square of the radius. So, if you <strong>double</strong> the radius that&#8217;s the same as saying <strong>2² </strong>which is <strong>4</strong>. By setting both lenses @ f/2 the 100mm gets double the aperture radius to that of the 50mm. <strong> </strong></p>
<h3><strong><span style="color: #ffffff;"><br />If the opening is 4 times bigger how can it be the same amount of light (f/2) on both situations?</span> </strong></h3>
<p>The answer has to do with the focal distance, once more. And also some physics: the inverse square law. Wikipedia says:</p>
<p style="padding-left: 30px;"><em>In physics, an <strong>inverse-square law</strong> is any physical law stating that some physical quantity or strength is inversely proportional to the square of the distance from the source of that physical quantity.</em></p>
<p><a title="Inverse-square law - Wikipedia" href="http://en.wikipedia.org/wiki/Inverse_square_law" target="_blank">Read the rest of the article here.</a><em> </em></p>
<h3><strong><span style="color: #ffffff;"><br />Why the odd progression of the f-stop scale?</span> </strong></h3>
<ul>
	<li>The amount of light is related to the<strong> area</strong> of lens opening <strong>not the diameter</strong></li>
	<li>The f-numbers represent the diameter of the opening (focal length / f-number)</li>
	<li>If you double the area of the aperture, you double the amount of light</li>
	<li>The area varies as the <strong>square </strong>of the diameter and consequently:</li>
	<li>The diameter varies as the <strong>squared root</strong> of the area</li>
</ul>
<p>So if each f-stop (moving backwards from right to left in the scale) represents <strong>double</strong><strong> </strong>the light as the previous number that means its opening has <strong>double</strong><strong> </strong>the area as well (for the same subject  in the same light conditions, if you double the area you double the light).  What happens to the diameter? <strong>It varies as the squared root of the area</strong>. Because we doubled the area, the diameter will be <strong>1,414</strong> times as great (which is √2 &#8211; square root of 2 &#8211; double).  And that&#8217;s how the scale is built, by using this multiplication factor:</p>
<ul>
	<li>f/2 * 1,414 = f/2.8</li>
	<li>f2.8 * 1,414 = f/4</li>
	<li>f/4 * 1,414 = f/5.6  and so on&#8230;</li>
</ul>
<p>Well if you are still reading this then you reached the end! Thank you for the patience and I really hope I have made it easier for you to understand what you&#8217;re doing next time you pick up the camera <img src='http://www.bergspot.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Feel free to comment and leave me your feedback or your doubts if you still have them (comment here or <a href="http://twitter.com/bergonzzi" target="_blank">send me a tweet</a>).</p>
<p>&nbsp;</p>

]]></content:encoded>
			<wfw:commentRss>http://www.bergspot.com/blog/2009/02/f-stops-explained/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

