<?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>DiPot: Ice Tea tech &#187; server</title>
	<atom:link href="http://dipot.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://dipot.com</link>
	<description>The Optimization Point of View</description>
	<lastBuildDate>Fri, 02 Dec 2011 11:28:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Webmail vs IMAP4 vs POP3. Or not?</title>
		<link>http://dipot.com/2010/11/webmail-vs-imap4-vs-pop3-or-not/</link>
		<comments>http://dipot.com/2010/11/webmail-vs-imap4-vs-pop3-or-not/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 22:14:24 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Tips & How-to]]></category>
		<category><![CDATA[clients]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://dipot.com/?p=3114</guid>
		<description><![CDATA[<p>With email dominating a good part of our communication, mailbox management is an ever growing issue. This is primarily intended for people who access their email from at least two different email clients (webmail counts as one) and people who share a mailbox with others.</p>
<p>I want access to my email via webmail and offline acceess [...]]]></description>
			<content:encoded><![CDATA[<p>With email dominating a good part of our communication, mailbox management is an ever growing issue. This is primarily intended for people who access their email from at least two different email clients (webmail counts as one) and people who share a mailbox with others.</p>
<p>I want access to my email via webmail and offline acceess on my two laptops and mobile phone. Worse than that, I am using 2 different email clients on each laptop (one I regularly use and one I am trying). So, I frequently get to answer the question &#8220;How to best setup my client(s) to receive email; POP3 or IMAP4?&#8221; for myself and others. As usual, there is no single answer. However, there may be a proper email setup strategy for some scenarios. Good understanding of the tools will, hopefully, help determine which one it is. First, some background:</p>
<ul>
<li>Webmail</li>
<p>Webmail is actually a web-based email client. As such, it is accessible from a web browser and it talks directly to the email server instead of transferring emails locally.</p>
<p>Webmail can be a one stop shop, provided there is access to the email server, which probably also requires Internet access. Yahoo! mail, Hotmail, Gmail, the upcoming Facebook Social Inbox etc. are full fledged email clients that can receive, send and manage emails, complete with antispam, folders and address books. A webmail user has no need to know about protocols to enjoy complete use of an email system, unless he would also like to access email offline. In that case, use of an email client like Pegasus, Eudora, Outlook Express, Outlook (yes, they are different), Evolution, Thunderbird etc. (forgive me if I missed your mailer of choice) is required.</p>
<li>SMTP (Simple Mail Transport Protocol)</li>
<p>Not to be forgotten, SMTP is the protocol that sends email. It is used by all email clients in both POP3 and IMAP4 configurations.</p>
<li>POP3 (Post Office Protocol v3)</li>
<p>POP3 ia a protocol for one way transfer (reception, downloading) of email from the server to the client for offline use. It is supported by all of the above (and more) mailers.</p>
<p>Once an email is succesfully received by the email client, it is, typically, erased from the mailbox at the server. Thankfully, most mailers allow the user to modify this behaviour so the mailer leaves the email at the server&#8217;s mailbox as well, either indefinitely or for a preset amount of days. Not erasing an email from the server is so important that Gmail (basically a webmail system) supports setting emails to not be erased on the server side, in case email clients are setup wrong.</p>
<p>So, when we need to have our mail delivered to more than one clients, we can set them up so they don&#8217;t erase downloaded emails from the server. This way, email stays on the server ready to be downloaded again or to be accessed via a webmail client.</p>
<li>IMAP4 (Internet Message Access Protocol v4)</li>
<p>IMAP is also supported by all of the above (and more) mailers. It is usually perceived as another protocol to receive email. Well, it is not! It ia actually a protocol to synchronize folders on the email server with folders on the email client(s). Email reception is, effectively, a subset of that.</ul>
<p>So, what exacly is the difference and why is it important? Here is a partial list (visit <a title="Why IMAP vs POP3..." href="http://discussion.treocentral.com/palm-os-communication/108669-why-imap-vs-pop3.html" target="_blank"> a more comprehensive list</a> and <a title="Internet Message Access Protocol" href="http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol#Advantages_over_POP" target="_blank">&#8220;Internet Message Access Protocol&#8221; in Wikipedia</a>). The reason I use &#8220;differences&#8221; over &#8220;advantages&#8221; is that advantages depend on the usage scenario:</p>
<table border="0">
<tbody>
<tr>
<td></td>
<th colspan="2">Some IMAP and POP protocols differences</th>
<th colspan="2">Best protocol for scenario</th>
</tr>
<tr>
<td></td>
<th>IMAP</th>
<th>POP</th>
<th>User with multiple email clients</th>
<th>Multiple users sharing a mailbox</th>
</tr>
<tr>
<th>Mailbox Size</th>
<td>The complete mailbox resides on   the server and requires the corresponding disk space. Depending on how email   is synchronized in the clients, they may require less disk space than on the   server</td>
<td>At worst, only   the size of the &#8220;Inbox&#8221; folder, provided that mail is not deleted   when received (default behaviour)</td>
<td>POP</td>
<td>POP</td>
</tr>
<tr>
<th>Folders Structure</th>
<td>The structure of   the email folders is the same in the server and the clients and any change propagates from the server to all the clients. If you like to arrange your   emails in folders, you only have to do it once for all your clients and the server. Only folders subscribed-to are synchronized</td>
<td>The structurs must be maintained on every client separately</td>
<td>IMAP</td>
<td>IMAP</td>
</tr>
<tr>
<th>Direction</th>
<td>Emails get copied both ways; from the server to the client(s) and from the client(s) to   the server. This applies to all folders (including &#8220;Sent Items&#8221; and   &#8220;Drafts&#8221;). It also applies to any number of clients</td>
<td>Email   transfer goes only from the &#8220;Inbox&#8221; folder on the server to the   client(s)</td>
<td>IMAP</td>
<td>IMAP</td>
</tr>
<tr>
<th>Email Status Synchronization</th>
<td>Email status of &#8220;Deleted&#8221;, &#8220;Read&#8221; and &#8220;Starred&#8221; synchronizes as well. When it changes, it first propagates to the server and from there to   all clients</td>
<td>Some clients can direct the server to delete emails that are deleted locally.   &#8220;Read&#8221; and &#8220;Starred&#8221; status is local to the clients and   to the server and does not synchronize in any direction</td>
<td>IMAP</td>
<td>POP</td>
</tr>
<tr>
<th>Deletion</th>
<td>Email deletions   move both ways. Once a deletion happens on or reaches the server, it   propagates to all the clients</td>
<td>Clients   never ask for the same email again. Once downloaded, nothing will happen to   it in the client, even if deleted on the server</td>
<td>IMAP</td>
<td>POP</td>
</tr>
<tr>
<th>Push email delivery</th>
<td>Yes, when both   server and client support the IDLE command</td>
<td>No</td>
<td>IMAP</td>
<td>IMAP</td>
</tr>
</tbody>
</table>
<ol>
<li>User with multiple email clients</li>
<p>IMAP is clearly better for a single user with multiple clients, provided there is enough room for the mailbox on the server. Even with a limited mailbox, a backup of older emails will allow deletion from the server. This backup can be available in as many of the clients as needed.</p>
<li>Multiple users sharing a mailbox</li>
<p>Complete synchronization, a clear advantage for a single user, turns into a disadvantage when multiple users share an email account. I wouldn&#8217;t want my collegue(s) to erase the emails he doesn&#8217;t like for me as well. I have my own important emails to star. I don&#8217;t want to have emails I haven&#8217;t read yet appear to be read because someone else read them. And I have my own way to organize my inbox. I want my own email statuses and organization. But I also need to have access to the emails he composes and sends through this account. This is the one synchonization I need.</p>
<p>Thankfully, a mixed IMAP and POP system can be configured to optimize for all needs. The solution I suggest to this (quite frequent, I may add) problem is: Set it up twice. Once as POP3 without deletion for email reception and once as IMAP for the &#8220;Sent Items&#8221; (or &#8220;Sent&#8221;) and &#8220;Drafts&#8221; folders synchronization. Care is needed to not send email from the POP edition of the account. Even then, if the sent email is manually or automatically -via a rule- moved to the IMAP &#8220;Sent&#8221; folder, the result will be the same. Please note that while sent items and drafts will synchrnize back to the server, any folder-based organization of the email won&#8217;t happen on the server, therefore it won&#8217;t appear during mailbox access via webmail.</p>
<li>Multiple users sharing a mailbox and using multiple email clients</li>
<p>Unfortunately, the second scenario doesn&#8217;t mix well with the first. If I want to organize my shared mailbox in folders and access it from multiple clients, I will have to do so manually on each client. This is a scenario where incoming mail needs to arrive to a mailbox all my own. Actually, nothing a good old mail forwarding setup can&#8217;t do, at the expense of multiple times the incoming email space on the server&#8230;</ol>
<p>How many devices and email clients do you use? Are you happy with your setup? Please share!</p>
<!-- AdSense Now! V1.90 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="float:right;margin: 12px;"><div style="margin-left:auto;margin-right:auto;width:200px;display:block;">
<div style="text-align:center;width:200px;padding:1px;background:#000;margin:2px;">
<div style="text-align:center;width:190px;height:185px;padding:2px;padding-top:1px;padding-left:4px;border:solid 1px #fff;background:#411;margin:1px;">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<big style="font-size:14px;font-family:arial;color:#fff;font-variant: small-caps;">A Remarkable Book from Wiley-Finance</big>
</a>
<hr />
<table border="0" cellpadding="2px" cellspacing="0" summary="" width="100%" align="center">
<tr><td style="padding:0px">
<div style="border:solid 1px #faa;height:126px;width:82px;">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<img src="http://www.thulasidas.com/img/pqd-82x126.gif" border="0px" alt="PQD" title="Principles of Quantitative Development from Amazon.com" />
</a>
</div>
</td>
<td style="padding:3px">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<em style="font-size:14px;font-family:arial;color:#fff;">"An excellent book!"</em><br />
<small style="font-size:13px;font-family:arial;color:#faa;">&nbsp;&nbsp;&#8212; Paul Wilmott</small>
<br />
<small style="font-size:11px;font-family:arial;color:#fff;">
Want to break into the lucrative world of trading and quantitative finance? You <b>need </b> this book!
</small>
</a>
</td>
</tr>
</table>
</div>
</div>
</div></div>
	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/" title="WordPress: External RSS Feeds Optimization with KB Advanced RSS (22/04/2009)">WordPress: External RSS Feeds Optimization with KB Advanced RSS</a> (6)</li>
	<li><a href="http://dipot.com/2009/12/twitter-lists-support-management-status-optimization-wishlist/" title="Twitter Lists Support: Management Status &#038; Optimization Wishlist (02/12/2009)">Twitter Lists Support: Management Status &#038; Optimization Wishlist</a> (2)</li>
	<li><a href="http://dipot.com/2007/11/nas-for-shared-storage/" title="NAS for shared storage (29/11/2007)">NAS for shared storage</a> (0)</li>
	<li><a href="http://dipot.com/2007/12/your-home-on-camera-live/" title="<!--:en-->Your home on camera, live<!--:--> (18/12/2007)"><!--:en-->Your home on camera, live<!--:--></a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2010/11/webmail-vs-imap4-vs-pop3-or-not/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress: External RSS Feeds Optimization with KB Advanced RSS</title>
		<link>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/</link>
		<comments>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 19:00:10 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips & How-to]]></category>
		<category><![CDATA[Advanced RSS]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Digital Pot]]></category>
		<category><![CDATA[DiPot]]></category>
		<category><![CDATA[DiPot.com]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[FriendFeed]]></category>
		<category><![CDATA[Ice Tea tech]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[KB Advanced RSS]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[netWire]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[RSS feeds]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Smart RSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Tab]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Vicki Kolovou]]></category>
		<category><![CDATA[Wesley]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dipot.com/?p=1224</guid>
		<description><![CDATA[<p>Apart from its own Ice Tea tech blog, Dipot.com also displays two external feeds relating to Optimization and Standards. I needed to optimize the post titles of these two feeds by getting rid of their long suffixes, both for better looks and for more content within the same space.</p>
<p>The feeds were served by the standard [...]]]></description>
			<content:encoded><![CDATA[<p>Apart from its own <a title="DiPot: Ice Tea tech blog" href="http://dipot.com" target="_blank">Ice Tea tech blog</a>, <a title="DiPot, the Digital Pot" href="http://dipot.com" target="_blank">Dipot.com</a> also displays two external feeds relating to Optimization and Standards. I needed to optimize the post titles of these two feeds by getting rid of their long suffixes, both for better looks and for more content within the same space.</p>
<p>The feeds were served by the standard RSS <a title="WordPress blogging CMS" href="http://wordpress.org/" target="_blank">WordPress</a> 2.7.1 widget, which is fine, except it does not support much customization. After some search, I found <a title="Advanced RSS WordPress Plugin" href="http://wordpress.org/extend/plugins/advanced-rss/" target="_blank">Advanced RSS 1.0.1 WordPress plugin</a> and <a title="KB Advanced RSS WordPress Plugin" href="http://wordpress.org/extend/plugins/kb-advanced-rss-widget/" target="_blank">KB Advanced RSS 2.1.3 WordPress plugin</a>. Smart RSS only works until WP 2.7.0 and I didn&#8217;t want to tweak with that. Advanced RSS  only works until WP 2.6.2 and requires PHP5, DOM and XSL extensions loaded on the server and I don&#8217;t want to depend on those if I don&#8217;t need to, so the choice was easy.</p>
<p>Installation of KB Advanced RSS worked flawlessly right from within wp-admin. Then, on my first attempt to configure it, I came across a problem which could very well had been a show stopper: for some reason, except for the feed&#8217;s URL and Title, the widget would not commit any of the other parameters to the &#8220;Options&#8221; table of the database. Troubleshooting this issue, I ended up reading all the users&#8217; comments on the plugin&#8217;s site. As usual, I was not alone; this is a common issue. Thankfully, <a title="Wesley of http://www.improvingtheweb.com" href="http://www.improvingtheweb.com" target="_blank">Wesley of  http://www.improvingtheweb.com</a> had already posted the <a title="solution to PHP4 not committing widget field changes in WordPress" href="http://adambrown.info/b/widgets/2008/01/28/released-today-kb-advanced-rss-21/#comment-3812" target="_blank">solution to PHP4 not committing widget field changes in WordPress</a>. The solution worked like a charm. And, as expected, when I later upgraded to PHP5 the problem wasn&#8217;t even there to begin with.</p>
<p>KB Advanced RSS is well thought-out, very straight forward with good documentation and examples. It supports all the features of the standard widget (including multiple instances) plus formatting and full support of all the feed&#8217;s fields to display or not (including the debugging tool to show which these fields are)! It further supports two modifiers to optionally manipulate the string before display, by taking out a number of characters from the start (ltrim) and/or trimming it to a specific length (trim).</p>
<p>Alas, what I actually needed was to take out a number of characters from the end of the string. Fortunately, as it turned out, KB Advanced RSS&#8217;s code is pretty straight-forward and extending it with my own modifier (rtrim) to do just that was only a matter of 3 lines of PHP code added to the version of the plugin that runs by my version of Wordpress; there&#8217;s one for versions up to 2.7 (pre-wp-2-7.php) and one for versions after that (post-wp-2-7.php). Here is the PHP code from the modified post-wp-2-7.php (my rtrim extension is in blue):</p>
<blockquote>
<pre>///////////////////////////////// CUSTOMIZATIONS /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// If you want to write customizations, put them here. The variable to modify is $text. See the FAQ.
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////

<span style="color: #333399;">// right trimming
// cuts $rtrim characters from the right
// by ageor, April 9, 2009</span><span style="color: #333399;">
$rtrim = (is_numeric($rtrim) &amp;&amp; 0&lt;$rtrim) ? (int) $rtrim : null;
if (is_int($rtrim))
$text = substr( $text, 0, strlen($string)-$rtrim );</span>

// left trimming:
$ltrim = (is_numeric($ltrim) &amp;&amp; 0&lt;$ltrim) ? (int) $ltrim : null;
if (is_int($ltrim))
$text = substr( $text, $ltrim );

// length trimming (do after left trimming)
$trim = (is_numeric($trim) &amp;&amp; 0&lt;$trim) ? (int) $trim : null;
if (is_int($trim))
$text = substr( $text, 0, $trim );

return $text;</pre>
</blockquote>
<p>The way this is written, the string in question can undergo any mix of all three trimming types necessary.</p>
<p>All setting up and troubleshooting took place by adding one instance of the widget and configuring it, then a second instance. When all was done and I had what I wanted, I removed the original two instances of the original RSS widget, positioned the new ones on top and saved, certain I was done. However, as the resulting &#8220;Widgets&#8221; Wordpress admin page suggested after saving, something was very wrorg. It displayed the message &#8216;You are using 3 widgets in the &#8220;Left Sidebar&#8221; sidebar&#8217; but not the widgets themselves, nor the &#8220;Save Changes&#8221; button. Sure enough, I ended up with an unworkable site, as these where the first 2 widgets on the left column of Ice Tea tech and the page that appeared ended with the title banner. Disaster!</p>
<p>To cut a long story short, plenty of &#8220;trial and error&#8221;s later and with the help of <a title="Vicki Kolovou of netWire on FriendFeed" href="http://friendfeed.com/talos" target="_blank">Vicki</a> of <a title="neTWire: Thinking Wide" href="http://netwire.gr" target="_blank">neTWire</a>, here is my conclusion: For KB Advanced RSS widget to work with WP 2.7.1 and the <a title="Atahualpa fluid configurable WordPress Theme" href="http://wordpress.org/extend/themes/atahualpa" target="_blank">Atahualpa WordPress theme</a>, the WordPress RSS widget needs to be activated and positioned above it. That&#8217;s how I temporarily solved my problem, until (if ever) I have the time to look deeper into the code involved or newer versions of  the theme and/or the plugin solve it for good.</p>
<p>Just to be clear, none of the problems and troubleshooting it took to solve them can be traced back ato KB Advanced RSS alone. Atahualpa is a great but complex theme and it is their combination that turned out to be problematic. It&#8217;s not the first example of a bad mix and it won&#8217;t be the last. On the flip side, with each such incident we get to learn something new that will potentially save others and ourselves some frusrtation and time in the future.</p>

	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/" title="WordPress Optimization: Compatibility between Themes &#038; Plugins (27/03/2009)">WordPress Optimization: Compatibility between Themes &#038; Plugins</a> (2)</li>
	<li><a href="http://dipot.com/2009/04/feeds-to-content-categories-optimization-in-wordpress/" title="Feeds to Content &#038; Categories Optimization in WordPress (01/04/2009)">Feeds to Content &#038; Categories Optimization in WordPress</a> (1)</li>
	<li><a href="http://dipot.com/2009/02/apologies-for-last-days-posts-flood/" title="<!--:en-->Apologies for last days&#8217; posts flood<!--:--> (25/02/2009)"><!--:en-->Apologies for last days&#8217; posts flood<!--:--></a> (0)</li>
	<li><a href="http://dipot.com/2009/04/pcs-and-the-internet-addiction-magnets-or-just-tools/" title="PCs and the Internet: Addiction Magnets or just Tools? (05/04/2009)">PCs and the Internet: Addiction Magnets or just Tools?</a> (1)</li>
	<li><a href="http://dipot.com/2008/11/athens-startup-weekend-2008/" title="Athens Startup Weekend 2008 (26/11/2008)">Athens Startup Weekend 2008</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Your home on camera, live</title>
		<link>http://dipot.com/2007/12/your-home-on-camera-live/</link>
		<comments>http://dipot.com/2007/12/your-home-on-camera-live/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 15:06:09 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Tips & How-to]]></category>
		<category><![CDATA[ADSL]]></category>
		<category><![CDATA[AVM]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[camera]]></category>
		<category><![CDATA[DiPot]]></category>
		<category><![CDATA[DiPot.com]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[PDA]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[surveillance]]></category>
		<category><![CDATA[Vivotek]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Two weeks ago I was asked again to install a couple of cameras to watch a newborn baby at home (with the sitter&#8230;).</p>
<p>Provided there is an ADSL in the premises, the task is trivial, tech-wise. In this case, the heart of the system is an AVM Fritz ADSL modem, 4 port switch, wireless Access Point [...]]]></description>
			<content:encoded><![CDATA[<p><!--:en-->Two weeks ago I was asked again to install a couple of cameras to watch a newborn baby at home (with the sitter&#8230;).</p>
<p>Provided there is an ADSL in the premises, the task is trivial, tech-wise. In this case, the heart of the system is an <a href="http://www.avm.de/en/Produkte/index.html">AVM Fritz</a> ADSL modem, 4 port switch, wireless Access Point with SIP, complemented by 2 <a href="http://www.vivotek.com/products_pt7137.htm" target="_blank">VIVOTEK PT7137</a> wifi IP pan-tilt (but not zoom) VGA cameras.</p>
<p>The first problem in serving content from a non-static (dynamic) IP address is how to hit the correct IP, which is a moving target (I recently came across the fact that, in Greece, ISP OTEnet actually disconnects dynamic ADSL connections every 54 hours, just to change IP address!). The solution to this is dynamic DNS, in this case in the form of the free service <a title="DynDNS -- Dynamic DNS, E-Mail Delivery and Other Services" href="http://www.dyndns.org" target="_blank">DynDNS</a> (other such services also exist). What dynamic DNS does is have a client program automatically update the current IP address of an ADSL connection to a host of the form &lt;myhost&gt;.dyndns.org. In this case (lucky me), both the router and the cameras have dyndns.org support built-in. If this wasn&#8217;t the case, I could set up a dyndns.org client in a windows or linux pc to do the job. I could, alternatively, buy a static IP address, which I do not prefer for security and cost reasons. More than one dynamic DNS client can be set up for redundancy, if needed.</p>
<p>The other problem in serving content this way is that the Internet IP one&#8217;s router uses is different from the local IP address of this same router and each of his local network devices (yes, it&#8217;s too technical). The router takes care of back-and-forth IP translation for the outgoing connections (browsing, email reception &amp; transmission, Instant Messaging etc.) automatically (using NAPT, Network Address Port Translation). However, when a local server needs to listen to Internet incoming traffic, this must be routed to it in a way that cannot be automated (not until UPnP, anyway, which is another story), so port translation must be manually programmed to the router and the method is called &#8220;port forwarding&#8221;. What this does is tell the router what to do with any incoming traffic, depending on the Port it uses: drop it or forward it to a different internal IP and Port, where a server is standing by.</p>
<p>When similar content is served by more than one servers (in this case all the IP cameras transmit audio &amp; video using the http protocol which by default &#8220;listens&#8221; and &#8220;transmits&#8221; on port 80), we have the third problem: We need to reference two (or more) different servers serving the same service (http) using the same single external IP address.</p>
<p>The solution here is in the way protocol calls are made: when our browser shows it connects to http://blog.dipot.com, it is actually connecting to http://blog.dipot.com:80, where 80 represents the connection&#8217;s port number (which has possible values from 1 to 65535). The port value of 80 is implied, because it is the standard port number for the http protocol (other protocols by default, but not necessarily, connect to other ports). This essentially means that we can reference ~65000 different services (protocols) on the same IP address. So, what we do is agree between ourselves and the router to use these two (or more) addresses to call our two (or more) IP cameras (the &#8220;http://&#8221; prefix is important, because the specified ports are not usually intended for this protocol):<br />
Camera 1: http://&lt;myhost&gt;.dyndns.org:12001<br />
Camera 2: http://&lt;myhost&gt;.dyndns.org:12002<br />
Camera n: http://&lt;myhost&gt;.dyndns.org:1200n</p>
<p>So, assuming the cameras addresses are 192.168.1.21, 192.168.1.22 (&amp; 192.168.1.2n) and all transmit to port 80 (the default) we program the router to forward calls to ports 12001, 12002 (&amp; 1200n) to 192.168.1.21:80, 192.168.1.22:80 (&amp; 192.168.1.2n:80). It is important for the cameras IP addresses to be static, so we don&#8217;t have another moving target to cope with.</p>
<p>In case the router didn&#8217;t support forwarding to a different port than the incoming, we should then program the cameras to listen and transmit to ports 12001, 12002, &#8230; 1200n, which is perfectly possible, if not simpler.</p>
<p>This came out larger and more technical than intended. All these, however, can be implemented in about 30&#8242; and are applicable to other services as well.</p>
<p>For router-specific instructions to program port forwarding, refer to the excellent guide &#8220;<a href="http://portforward.com/guides.htm" target="_blank">Free Help Setting up</a><a href="http://portforward.com/guides.htm" target="_blank"> Your Router or Firewall</a>&#8220;.</p>
<p><!--:--></p>

	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2007/12/microsoft-ie-and-standards-compliance/" title="Microsoft IE and Standards Compliance (29/12/2007)">Microsoft IE and Standards Compliance</a> (0)</li>
	<li><a href="http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/" title="WordPress: External RSS Feeds Optimization with KB Advanced RSS (22/04/2009)">WordPress: External RSS Feeds Optimization with KB Advanced RSS</a> (6)</li>
	<li><a href="http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/" title="WordPress Optimization: Compatibility between Themes &#038; Plugins (27/03/2009)">WordPress Optimization: Compatibility between Themes &#038; Plugins</a> (2)</li>
	<li><a href="http://dipot.com/2009/04/feeds-to-content-categories-optimization-in-wordpress/" title="Feeds to Content &#038; Categories Optimization in WordPress (01/04/2009)">Feeds to Content &#038; Categories Optimization in WordPress</a> (1)</li>
	<li><a href="http://dipot.com/2009/01/how-i-post/" title="<!--:en-->Which Service should a Post go to?<!--:--> (12/01/2009)"><!--:en-->Which Service should a Post go to?<!--:--></a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2007/12/your-home-on-camera-live/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NAS for shared storage</title>
		<link>http://dipot.com/2007/11/nas-for-shared-storage/</link>
		<comments>http://dipot.com/2007/11/nas-for-shared-storage/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 11:46:56 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Dia]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Infrant]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[Netgear]]></category>
		<category><![CDATA[network attached storage]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Seagate]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>I have been hooked on the idea of NAS (Network Attached Storage) since around 2000, when I first read about it. Of course, capacities and costs back then were out of this world.</p>
<p>Today I installed an Infrant Technologies ReadyNAS NV+ with 4 Seagate ST3500630AS Barracuda 500GB SATA2 hot-swappable hard disks and 1 gigabit ethernet port. [...]]]></description>
			<content:encoded><![CDATA[<p><!--:en-->I have been hooked on the idea of NAS (Network Attached Storage) since around 2000, when I first read about it. Of course, capacities and costs back then were out of this world.</p>
<p>Today I installed an <a title="Infrant Technologies ReadyNAS NV+" href="http://www.infrant.com/products/products_details.php?name=ReadyNAS%20NVPlus" target="_blank">Infrant Technologies ReadyNAS NV+</a> with 4 Seagate ST3500630AS Barracuda 500GB SATA2 hot-swappable hard disks and 1 gigabit ethernet port. For a total cost around 1.400â‚¬, I got a 3-disk RAID5 configuration with 875 usable GB and a hot-spare disk. In plain english, 2 disks have to fail before any data is lost.</p>
<p>I preferred the Infrant (now owned by Netgear) solution to the much cheaper (~900â‚¬) 2 gigabit Ethernet <a title="Intel Entry Storage System SS4000-E" href="http://www.intel.com/design/servers/storage/ss4000-E/" target="_blank">Intel Entry Storage System SS4000-E</a>, (also with 4 500GB SATA2 disks) for its Active Directory support. However, apart from increased peace of mind (thanks to the hot-spare) the NV+ offers some nice built-in backup and media streaming features, in addition to the 3 USB ports with support for a UPS, printers, flash and USB disks.</p>
<p>I am fairly sure that NAS is the way to go for shared storage. With LAN speeds, disk capacities, users and uses increasing at a hectic pace NAS is cheap (starting at &lt;200â‚¬), scalable and very easy to setup. Please note I am not referring to server applications storage; that&#8217;s a different, much more expensive, story.<br />
<!--:--></p>

	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2009/02/how-to-use-the-new-friendfeed-search-for-social-media-intelligence-readwriteweb/" title="How to Use the New FriendFeed Search for Social Media Intelligence &#8211; ReadWriteWeb (23/02/2009)">How to Use the New FriendFeed Search for Social Media Intelligence &#8211; ReadWriteWeb</a> (0)</li>
	<li><a href="http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/" title="WordPress: External RSS Feeds Optimization with KB Advanced RSS (22/04/2009)">WordPress: External RSS Feeds Optimization with KB Advanced RSS</a> (6)</li>
	<li><a href="http://dipot.com/2009/04/pcs-and-the-internet-addiction-magnets-or-just-tools/" title="PCs and the Internet: Addiction Magnets or just Tools? (05/04/2009)">PCs and the Internet: Addiction Magnets or just Tools?</a> (1)</li>
	<li><a href="http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/" title="WordPress Optimization: Compatibility between Themes &#038; Plugins (27/03/2009)">WordPress Optimization: Compatibility between Themes &#038; Plugins</a> (2)</li>
	<li><a href="http://dipot.com/2008/10/the-google-android-platform/" title="The Google Android Platform (20/10/2008)">The Google Android Platform</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2007/11/nas-for-shared-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

