<?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>Eddie On Everything &#187; productivity</title>
	<atom:link href="http://www.eddieoneverything.com/category/productivity/feed" rel="self" type="application/rss+xml" />
	<link>http://www.eddieoneverything.com</link>
	<description>Tips &#38; tricks on things that interest me</description>
	<lastBuildDate>Wed, 11 Jan 2012 08:29:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatically renaming files downloaded with Coast to Coast AM Media Center</title>
		<link>http://www.eddieoneverything.com/perl/automatically-renaming-files-downloaded-with-coast-to-coast-am-media-center.php</link>
		<comments>http://www.eddieoneverything.com/perl/automatically-renaming-files-downloaded-with-coast-to-coast-am-media-center.php#comments</comments>
		<pubDate>Tue, 08 Apr 2008 02:07:01 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.eddieoneverything.com/perl/automatically-renaming-files-downloaded-with-coast-to-coast-am-media-center.php</guid>
		<description><![CDATA[I&#8217;m an insomniac. 
I have trouble falling asleep at night because thoughts never seem to stop racing through my head &#8211; Did I do X yet?  What if I did Y?  Ooh, I could make it easier to do Y &#8230;  Hey, I have a cool idea for an awesome invention&#8230;  [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->I&#8217;m an insomniac. </p>
<p>I have trouble falling asleep at night because thoughts never seem to stop racing through my head &#8211; <em>Did I do X yet?  What if I did Y?  Ooh, I could make it easier to do Y &#8230;  Hey, I have a cool idea for an awesome invention&#8230;  and I&#8217;m starting to get excited about it &#8230; (!)</em></p>
<p>Listening to radio shows helps me quiet my mind &#038; get to sleep.  To that end, I use the <a href="http://download.premiereradio.net/maven/clients/Coast_to_Coast_AM_Media_Center.exe">Coast to Coast AM Media Center</a> to automatically download shows from the Coast to Coast AM website. (Sure, the content can be really nutty from time to time, but I treat it as entertainment &#038; fiction, not a show to be taken seriously.)  One of the limitations of the downloader is that the downloaded mp3s don&#8217;t have very useful names &#8211; instead of being named something useful, like &#8220;03-20  John Titor and Time Travel,&#8221; the files instead carry largely useless names such as &#8220;Coast to Coast &#8211; Mar 20 2008 &#8211; Hour 2.mp3.&#8221;</p>
<p>I wrote the below perl script to make the downloaded file names more useful.  It connects to the Coast to Coast AM website, looks up the file name, creates a directory with that filename, then moves the downloaded mp3s to that directory.  To run the script on your Windows machine, you&#8217;ll need to have the <a href="http://www.cygwin.com/">Cygwin</a> suite installed, along with the cygwin perl module.</p>
<pre>#!/usr/bin/perl

$DIR="/cygdrive/c/Documents and Settings/eddie/My Documents/coast to coast am media center";

opendir (DIR, $DIR) or die "cant open dir $DIR";
while (my $file = readdir (DIR)){
   if ($file=~/mp3$/){
      #process mp3 file
      #print "$file \n";
      $file=~/(\w+) ([0-9]+) ([0-9]+)/;
      #$file=~/^.+? (\w) ([0-9]+) ([0-9]+) .+$/;
      #print "mon $1 \n day $2 \n year $3\n";
      $y=$3;
      $month=$1;
      $d=$2;

      print "month is $month\n";
      if ($month eq  "Feb"){
         $m="02";
      }elsif($month eq "Mar"){
         $m="03";
      }elsif($month eq "Apr"){
         $m="04";
      }elsif($month eq "May"){
         $m="05";
      }elsif($month eq "Jun"){
         $m="06";
      }elsif($month eq "Jul"){
         $m="07";
      }elsif($month eq "Aug"){
         $m="08";
      }elsif($month eq "Sep"){
         $m="09";
      }elsif($month eq "Oct"){
         $m="10";
      }elsif($month eq "Nov"){
         $m="11";
      }elsif($month eq "Dec"){
         $m="12";
      }elsif($month eq "Jan"){
         $m="01";
      }else{
         $m="XX";
      }

      $date_string = $m . "-" . $d;

      if ($SHOWS[$y-$m-$d]){
         $title=$SHOWS[$y-$m-$d];
      }else{
         $url = "http://www.coasttocoastam.com/shows/$y/$m/$d.html";
         #print "getting URL $url...\n";
         #&lt;h2&gt;&lt;a name="recap"&gt;&lt;/a&gt;Title&lt;/h2&gt;
         system("wget -q -O /tmp/temp.$$ $url");
         $file_contents = `cat /tmp/temp.$$`;
         $file_contents=~/&lt;h2&gt;&lt;a name\s*=\s*"recap"&gt;&lt;\/a&gt;(.+?)&lt;\/h2&gt;/;
         $title = $1;
         $title=~s/\&#038;/and/gis;
         $title=~s/\:/-/gis;
         $title=~s/\!//gis;
         $desc=~s/&lt;.+?&gt;//gis;
         print "TITLE:  $title\n";
         $SHOWS[$y-$m-$d] = $title;
         system("rm  /tmp/temp.$$");
      }

      ## move the file to the proper directory
      $dirname = $date_string . " " . $title;
      if (-e "$DIR/$dirname"){
         #dir already exists
      }else{
         $cmd="mkdir  \"$DIR/$dirname\"";
         system ($cmd);
      }

      $cmd = "mv \"$DIR/$file\" \"$DIR/$dirname\"";
      #print "want to $cmd\n";
      system ($cmd);

   }
}
close DIR;</pre>
<p><!--adsense#largerectanglenowrap--></p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.eddieoneverything.com/life-tips/getting-married-a-last-name-change-checklist.php" title="Getting Married?  A Last Name Change Checklist">Getting Married?  A Last Name Change Checklist</a></li><li><a href="http://www.eddieoneverything.com/internet/use-gmail-like-a-power-user-to-fight-spam-and-stay-organized.php" title="Use Gmail like a Power User to Fight Spam and Stay organized">Use Gmail like a Power User to Fight Spam and Stay organized</a></li><li><a href="http://www.eddieoneverything.com/deals/how-to-extend-the-life-of-your-disposable-razor-blades.php" title="How to extend the life of your disposable razor blades">How to extend the life of your disposable razor blades</a></li><li><a href="http://www.eddieoneverything.com/sports/world-cup-soccer-headbutt-images.php" title="World Cup Soccer Headbutt Images">World Cup Soccer Headbutt Images</a></li><li><a href="http://www.eddieoneverything.com/articles/how-to-remove-yourself-from-a-twitter-list.php" title="How to Remove Yourself From a Twitter List">How to Remove Yourself From a Twitter List</a></li><li><a href="http://www.eddieoneverything.com/business-tips/how-to-stop-your-posts-from-being-flagged-on-craigslist.php" title="How to stop your posts from being flagged on Craigslist">How to stop your posts from being flagged on Craigslist</a></li><li><a href="http://www.eddieoneverything.com/articles/your-phone-number-is-on-facebook-who-cares.php" title="Your Phone Number is on Facebook &#8211; Who Cares?">Your Phone Number is on Facebook &#8211; Who Cares?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.eddieoneverything.com/perl/automatically-renaming-files-downloaded-with-coast-to-coast-am-media-center.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Use Gmail like a Power User to Fight Spam and Stay organized</title>
		<link>http://www.eddieoneverything.com/internet/use-gmail-like-a-power-user-to-fight-spam-and-stay-organized.php</link>
		<comments>http://www.eddieoneverything.com/internet/use-gmail-like-a-power-user-to-fight-spam-and-stay-organized.php#comments</comments>
		<pubDate>Wed, 27 Feb 2008 17:18:48 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[productivity]]></category>

		<guid isPermaLink="false">http://www.eddieoneverything.com/internet/use-gmail-like-a-power-user-to-fight-spam-and-stay-organized.php</guid>
		<description><![CDATA[Gmail tips and tricks
Gmail has been around for a few years, making its unique multi-threaded discussion format old hat to many internet users.  Still, many users remain in the dark as to a number of Gmail power user tips and tricks, keeping them from unlocking Gmail’s full power.
Here, I run down a few useful [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Gmail tips and tricks</p>
<p>Gmail has been around for a few years, making its unique multi-threaded discussion format old hat to many internet users.  Still, many users remain in the dark as to a number of Gmail power user tips and tricks, keeping them from unlocking Gmail’s full power.</p>
<p>Here, I run down a few useful tips and tricks that should help you use Gmail to its full potential.</p>
<p><strong>1.	Add periods to your Gmail address</strong></p>
<p>You’re free to add as many periods to your Gmail address as you’d like.  For instance, say that your Gmail address is: </p>
<p>eddieoneverything@gmail.com</p>
<p>You will also receive email sent to eddie.on.everything@gmail.com, ed.dieoneverything@gmail.com, eddie.on.every.thing@gmail.com, even e.d.d.i.e.o.n.e.v.e.r.y.t.h.i.n.g@gmail.com.  Why does this matter?  Using this trick in conjunction with a handy Gmail filter, you can track the source of your incoming emails, and filter them according.</p>
<p><strong>2.	Add plus signs to your Gmail address for fighting spam</strong></p>
<p>Your Gmail account will also receive email sent to yourname+anything@gmail.com.  So, if your Gmail address is eddieoneverything@gmail.com, you will also receive email sent to addresses like eddieoneverything+signup@gmail.com and eddieoneverything+spammer@gmail.com.  This handy hack is great for dodging spam, and for tracking the source of all of that unsolicited email.</p>
<p>For instance, let’s say that you need to sign up at startribune.com to gain access to their news articles, but you don’t want to forever be spammed by the Star Tribune and their advertisers.  Just sign up using the email address eddieoneverything+startribune@gmail.com, and if the spam gets out of hand, set up a rule to filter all email to that address directly to the spam folder. </p>
<p><strong>3.	Use the plus-sign hack to automatically sort, store notes</strong></p>
<p>The plus-sign hack described above can make for a great PIM, or personal information manager.  I set up a label for “notes,” and created a rule that automatically filters all email sent to myaddress+notes@gmail.com to the notes area.  The result is that whenever I want to save a piece of information for later retrieval (eg a frequent flyer number) I can just email it to myaddress+notes@gmail.com.  Searching by label is a snap, so the info I want is always at my fingertips.</p>
<p><strong>4.	Two Gmail addresses – gmail.com and googlemail.com</strong></p>
<p><a href="http://www.labnol.org/internet/email/gmail-email-alias-two-separate-gmail-address/2388/<br />
">Digital Inspiration discovers</a> that all Gmail users can receive mail at 2 separate domains – both gmail.com and googlemail.com.  This means that you can give Grandma your googlemail.com address and set up a rule to process those emails with a higher priority.</p>
<p>These are just a few tips that make using Gmail a more enjoyable experience.  Personally, I rarely use the Gmail web interface – instead, I use SMTP access to expand the power of Gmail even further.  Look for more on that in Part II.</p>
<p><!--adsense#largerectanglenowrap--></p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.eddieoneverything.com/windows-xp/how-to-delete-a-search-engine-in-firefox.php" title="How to delete a search engine in Firefox">How to delete a search engine in Firefox</a></li><li><a href="http://www.eddieoneverything.com/windows-xp/how-to-re-mount-a-usb-drive-in-windows-without-rebooting.php" title="How to Re-Mount a USB Drive in Windows Without Rebooting">How to Re-Mount a USB Drive in Windows Without Rebooting</a></li><li><a href="http://www.eddieoneverything.com/linux/using-rsync-ssh-to-backup-files-between-linux-machines-perl.php" title="Using rsync &#038; ssh to Backup Files Between Linux Machines (Perl)">Using rsync &#038; ssh to Backup Files Between Linux Machines (Perl)</a></li><li><a href="http://www.eddieoneverything.com/bittorrent/gene-simmons-sex-tape-hits-the-internet-causes-a-torrent-of-uproar.php" title="Gene Simmons Tape hits the Internet, causes a torrent of uproar">Gene Simmons Tape hits the Internet, causes a torrent of uproar</a></li><li><a href="http://www.eddieoneverything.com/shaving/dont-use-canned-shaving-cream-with-a-safety-razor.php" title="Don&rsquo;t use Canned Shaving Cream with a Safety Razor">Don&rsquo;t use Canned Shaving Cream with a Safety Razor</a></li><li><a href="http://www.eddieoneverything.com/uncategorized/test-credit-card-numbers.php" title="Test Credit Card Numbers">Test Credit Card Numbers</a></li><li><a href="http://www.eddieoneverything.com/articles/american-express-offers-1-30-personal-savings-account.php" title="American Express Offers 1.30% Personal Savings Account">American Express Offers 1.30% Personal Savings Account</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.eddieoneverything.com/internet/use-gmail-like-a-power-user-to-fight-spam-and-stay-organized.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

