<?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>Edwin Huertas</title>
	<atom:link href="http://www.edwin-huertas.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edwin-huertas.com</link>
	<description>web developer - software engineer - linux sys admin</description>
	<lastBuildDate>Sat, 13 Feb 2010 21:24:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backup your Gmail account with getmail in ubuntu 8.04 LTS</title>
		<link>http://www.edwin-huertas.com/backup-gmail-getmail-ubuntu/</link>
		<comments>http://www.edwin-huertas.com/backup-gmail-getmail-ubuntu/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 21:08:38 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[getmail]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[pop]]></category>

		<guid isPermaLink="false">http://www.edwin-huertas.com/?p=65</guid>
		<description><![CDATA[Recently we needed to have backups for old email accounts in our Google apps account. We needed to free up some space and a way to reference back to the emails in these accounts.
I&#8217;ve found various options with Thunderbird and Mac Mail. But all require to play with the off-line or sync features. Also I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we needed to have backups for old email accounts in our Google apps account. We needed to free up some space and a way to reference back to the emails in these accounts.</p>
<p>I&#8217;ve found various options with Thunderbird and Mac Mail. But all require to play with the off-line or sync features. Also I needed something that I could run from the backup server without moving 25GB of email from one computer to another. After couple queries in google, I found a good solution which was using getmail to retrieve emails from POP Gmail accounts.</p>
<p>So, here it is. Please remember to activate POP or IMAP feature in your Gmail account settings before start.</p>
<h2><span id="more-65"></span>1. Install <a href="http://pyropus.ca/software/getmail/" target="_self">getmail</a></h2>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1">$ sudo apt-get install getmail4</div>
</li>
</ol>
</div>
</div>
<h2>2. Create a folder and file to store the emails</h2>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1">$ mkdir backup-emails</div>
</li>
<li class="li1">
<div class="de1">$ cd backup-emails</div>
</li>
<li class="li1">
<div class="de1">$ touch someuser-backup.mbox</div>
</li>
</ol>
</div>
</div>
<h2>3. Create getmail folder and config file and add settings</h2>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1">$ mkdir .getmail</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">$ cd .getmail</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">$ vi .getmail-gmail</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">[retriever]</div>
</li>
<li class="li1">
<div class="de1">type = SimpleIMAPSSLRetriever  // Using IMAP here, if you want POP use: SimplePOP3SSLRetriever</div>
</li>
<li class="li1">
<div class="de1">server = imap.gmail.com //for POP use: pop.gmail.com</div>
</li>
<li class="li1">
<div class="de1">username = someuser@yourdomain.com // or someuser@gmail.com</div>
</li>
<li class="li1">
<div class="de1">password = yourpassword</div>
</li>
<li class="li1">
<div class="de1">[destination]</div>
</li>
<li class="li1">
<div class="de1">type = Mboxrd  // (**)</div>
</li>
<li class="li1">
<div class="de1">path = backup-emails/someuser-backup.mbox // (**)</div>
</li>
</ol>
</div>
</div>
<p><span style="color: #333399;">** Please check references links below for more info about other options.</span></p>
<h2>4. start backup, sit back and relax</h2>
<div class="codesnip-container" >
<div class="text codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1">$ cd</div>
</li>
<li class="li1">
<div class="de1">$ getmail -d -r .getmail/getmail.gmail</div>
</li>
</ol>
</div>
</div>
<p>I&#8217;m using -d here because I don&#8217;t need to keep those email account anymore. So you will need to remove it if you&#8217;re planning to continue using the account.</p>
<p>That&#8217;s all, add the command to a cronjob and you are all set.</p>
<p>References:<br />
<a href="http://pyropus.ca/software/getmail/">http://pyropus.ca/software/getmail/<br />
</a><br />
<em><a href="http://blog.pengdeng.com/2008/03/backup-gmail-via-imap-using-getmail_16.html">http://blog.pengdeng.com/2008/03/backup-gmail-via-imap-using-getmail_16.html</a><br />
<a href="http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/"> http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwin-huertas.com/backup-gmail-getmail-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web development tools I use</title>
		<link>http://www.edwin-huertas.com/web-development-tools-i-useherramientas-de-desarrollo-que-utilizo/</link>
		<comments>http://www.edwin-huertas.com/web-development-tools-i-useherramientas-de-desarrollo-que-utilizo/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 20:24:52 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.edwin-huertas.com/?p=46</guid>
		<description><![CDATA[Thinking about what to write this month on my blog, it came to my mind I could probably write about the tools I use in my day to day development projects.
1. A MAC with OS X 10.5
Well to start I use a MAC BOOK PRO with OS X 10.5.7. This laptop has been with me [...]]]></description>
			<content:encoded><![CDATA[<p>Thinking about what to write this month on my blog, it came to my mind I could probably write about the tools I use in my day to day development projects.</p>
<p>1. A <a href="http://www.apple.com/macbookpro/" target="_blank">MAC with OS X 10.5</a></p>
<p>Well to start I use a MAC BOOK PRO with OS X 10.5.7. This laptop has been with me for over a year and a half and is still as fast as the first time I turned it on.</p>
<p>2. <a href="http://en-us.www.mozilla.com/en-US/firefox/3.5b99/releasenotes/" target="_blank">Firefox 3.5B99</a> (yes the BETA versions, helping the community to debug)</p>
<p><span id="more-46"></span></p>
<p>In my point of view, this browser is the best out there. I’ve been using it since Mozilla started developing it.</p>
<p>2.1. Firefox Plug-ins</p>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Web developer toolbar</a></li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Firebug</a></li>
</ul>
<p>2. <a href="http://www.parallels.com/" target="_blank">Parallels 4.0</a></p>
<p>Well, since most of you out there still using Internet Explorer 6,7 and hopefully 8. My projects need to be &#8220;re-created&#8221; so they work on those versions of Internet Explorer, and to make sure that&#8217;s the case I have a copy of Windows XP running with Parallels. That&#8217;s why I&#8217;m giving the credit to Parallels and not Windows. <img src='http://www.edwin-huertas.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>3. <a href="http://cyberduck.ch/" target="_blank">Cyberduck</a></p>
<p>So far, its been working great this little yellow duck. Not just capable of connecting to my S3 account, but making SFTP and  regular FTP connections to my hosting and client&#8217;s hosting servers.</p>
<p>4. <a href="http://iterm.sourceforge.net/" target="_blank">iTerm</a></p>
<p>Well iTerm is another MAC OS X tool that I keep it handy in my dock. I&#8217;m not sure if I&#8217;ve told you but I do a lot of LINUX admin at work, at home, etc. So if you like to get into the command line and play with your fav *nix distro and why not you MAC as well. I would recommend iTerm.</p>
<p>5. Mail/Ical ( not a development tool, but comes handy to keep organized)</p>
<p>Of course I use them to get data out of my GMAIL/CALENDAR  accounts, but they do their work. Helping me to schedule meetings, reminders, etc.</p>
<p>6. <a href="http://www.zend.com/en/products/studio/" target="_blank">Zend Studio</a></p>
<p>Zend, it&#8217;s been in my tool box since version 1. It is by far one of the best IDE out there that works for MAC, WINDOWS and best of all, LINUX.</p>
<p>With Zend I can keep my projects organized, connect via SFTP or FTP, use the subversion feature when I don&#8217;t use the command line and also the auto-complete.</p>
<p>Those are my TOP 5. Probably I will write more about each one and how I use them in my next blogs.</p>
<p>For now. Happy summer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwin-huertas.com/web-development-tools-i-useherramientas-de-desarrollo-que-utilizo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter it</title>
		<link>http://www.edwin-huertas.com/twitter-it/</link>
		<comments>http://www.edwin-huertas.com/twitter-it/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 02:22:45 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.edwin-huertas.com/?p=37</guid>
		<description><![CDATA[Some days ago I decided to experiment with Twitter API. They offer a really simple to use API and good documentation that allowed me to create a function to submit to twitter using PHP and the curl library.
So, Twitter offer in its documentation something like this&#8230;. &#8221; Post a status update and get the resulting [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I decided to experiment with <a title="Twitter API" href="http://apiwiki.twitter.com/" target="_blank">Twitter API</a>. They offer a really simple to use API and good documentation that allowed me to create a function to submit to twitter using PHP and the <a title="Curl Library" href="http://us2.php.net/curl" target="_blank">curl library</a>.</p>
<blockquote><p>So, Twitter offer in its documentation something like this&#8230;. &#8221; Post a status update and get the resulting status back as JSON: <span style="font-family: courier new,monospace;">curl -u username:<em>password</em> -d status=&#8221;<em>your message here</em>&#8221; <a href="http://twitter.com/statuses/update.xml%C2%A0">http://twitter.com/statuses/update.json</a> &#8220;</span></p></blockquote>
<p><span id="more-37"></span>With this in mind we will be building our twitter_it() function.</p>
<p>Please remember to make the necessary validations and checks. This is just a simple example to demonstrate the the usage of the Twitter API.</p>
<p>&lt;?php<br />
/**<br />
* This function will send a new status to your Twitter account<br />
* Usage: twitter_it(&#8220;message goes here&#8221;);<br />
*<br />
* @param string $new_status<br />
*/<br />
function twitter_it($new_status = NULL) {</p>
<p>//TWITTER API URL<br />
$twitter_url = &#8220;http://twitter.com/statuses/update.json&#8221;;<br />
//Initiate curl<br />
$curlh = curl_init();</p>
<p>//Post fields in a array<br />
$data = array (&#8220;status&#8221; =&gt; $new_status);<br />
//Set curl options.<br />
curl_setopt($curlh, CURLOPT_URL, $twitter_url);<br />
curl_setopt($curlh, CURLOPT_USERPWD, &#8220;&lt;user&gt;:&lt;pass&gt;&#8221;);<br />
curl_setopt($curlh, CURLOPT_POST, 1);<br />
curl_setopt($curlh, CURLOPT_POSTFIELDS, $data);<br />
//Excute curl with options<br />
curl_exec($curlh);<br />
//Close connection.<br />
curl_close($curlh);</p>
<p>}</p>
<p>?&gt;</p>
<p>If there is other way to do it. I&#8217;ll be glad to know and maybe enhance this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwin-huertas.com/twitter-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SEO tip 2</title>
		<link>http://www.edwin-huertas.com/seo-tip-2/</link>
		<comments>http://www.edwin-huertas.com/seo-tip-2/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 04:56:45 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.edwin-huertas.com/?p=27</guid>
		<description><![CDATA[Another consideration to rank higher in yahoo and google is making sure that your images contain the information about what they are representing.
For example, lets say a T-Shirt site, they usually have a bunch of designs or products related to a certain content. If your PHP code is generating these images or grabbing them from [...]]]></description>
			<content:encoded><![CDATA[<p>Another consideration to rank higher in yahoo and google is making sure that your images contain the information about what they are representing.</p>
<p>For example, lets say a <a title="TeeZeria" href="http://www.teezeria.com" target="_blank">T-Shirt site</a>, they usually have a bunch of designs or products related to a certain content. If your PHP code is generating these images or grabbing them from a Database (files names usually come from a Database), you probably want to take advantage of that by adding to the ALT tag the title of the product. This also accomplish two things: a) If user has a slow down in his connection he will see the product name until the image loads, making it easy for them to <span id="more-27"></span>recognize what the product image is about, and of course b) to help with your positioning in the search results.</p>
<p>So, just make sure the code looks like this &lt; img src = &#8220;/folder/your-image-name.jpg&#8221; alt = &#8220;Talk nerdy to me&#8221; &gt;. Oh, almost forgot, to those who love Internet Explorer, you might want to include the TITLE tag as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwin-huertas.com/seo-tip-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO tip</title>
		<link>http://www.edwin-huertas.com/seo-tip/</link>
		<comments>http://www.edwin-huertas.com/seo-tip/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:56:02 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.edwin-huertas.com/?p=14</guid>
		<description><![CDATA[Probably you already know all the SEO tips out there, but I think if you are working on a new project with PHP (btw php is my fav script language), you need to consider a way to handle &#8220;friendly urls&#8221;. You know, something similar to how WP handles the URL for evry post or page [...]]]></description>
			<content:encoded><![CDATA[<p>Probably you already know all the SEO tips out there, but I think if you are working on a new project with PHP (btw php is my fav script language), you need to consider a way to handle &#8220;friendly urls&#8221;. You know, something similar to how WP handles the URL for evry post or page (i.e. mydomain.com/post_name ), instead of the usual page_id=12&amp;type=post.</p>
<p>If you are interested on how to do it, check <a title="Apache mod_rewrite search" href="http://www.google.com/search?hl=en&amp;q=apache+mod_rewrite&amp;btnG=Google+Search&amp;aq=0&amp;oq=apache+mod" target="_blank">apache mod-rewrite</a> or you can read more about how to do &#8220;Friendly URLS with PHP&#8221; at &#8220;<a href="http://htmlblog.net/seo-friendly-url-in-php/" target="_blank">The html blog</a>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edwin-huertas.com/seo-tip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
