<?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>Smarterware &#187; command line</title>
	<atom:link href="http://smarterware.org/tag/command-line/feed" rel="self" type="application/rss+xml" />
	<link>http://smarterware.org</link>
	<description>A blog about software</description>
	<lastBuildDate>Tue, 15 May 2012 20:17:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Interact with Google Apps at the Command Line</title>
		<link>http://smarterware.org/6327/get-your-google-data-at-the-command-line</link>
		<comments>http://smarterware.org/6327/get-your-google-data-at-the-command-line#comments</comments>
		<pubDate>Fri, 18 Jun 2010 22:34:15 +0000</pubDate>
		<dc:creator>Gina Trapani</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Google Calendar]]></category>
		<category><![CDATA[Google CL]]></category>
		<category><![CDATA[Google Docs]]></category>
		<category><![CDATA[Picasa]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://smarterware.org/?p=6327</guid>
		<description><![CDATA[Having a ball playing around with the just-released GoogleCL tool, which offers command line access to Google Calendar, contacts, Docs, Picasa, Blogger, and YouTube. With Python-based GoogleCL installed, you can do things such as list today's events on your GCal right in the terminal, like so: $ google calendar today title Coffee with Michael and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://smarterware.org/wp-content/uploads/2010/06/googlecl.png" alt="" title="Google CL" width="700" height="147" class="aligncenter size-full wp-image-6360" align="center" /><br />
Having a ball playing around with the just-released <a href="http://code.google.com/p/googlecl/">GoogleCL tool</a>, which offers command line access to Google Calendar, contacts, Docs, Picasa, Blogger, and YouTube. With Python-based GoogleCL installed, you can do things such as list today's events on your GCal right in the terminal, like so:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ google calendar today title<br />
Coffee with Michael and Samir<br />
Dozing off<br />
Lunch at Flingers</div></div>
<p>Instant use case: Add <code class="codecolorer text default"><span class="text">echo &quot;Next 24 hours:&quot;;google calendar today title</span></code> to your <code class="codecolorer text default"><span class="text">~/.bash_profile</span></code> file to see what you've got scheduled for the day when you launch a new Terminal window. Some more GoogleCL fun inside.</p>
<p><span id="more-6327"></span></p>
<p>If you just type <code class="codecolorer text default"><span class="text">google</span></code> at the command line, you launch an interactive terminal that lets you try all the various commands. In the interactive terminal, type command-name help to see its options, like <code class="codecolorer text default"><span class="text">help calendar</span></code>.</p>
<p>Each command has several parameters that aren't immediately apparent. For example, in calendar, you can omit the long and hairy event URL by using the <code class="codecolorer text default"><span class="text">title</span></code> parameter. You can list events for a particular day using the data parameter (<code class="codecolorer text default"><span class="text">--date 2010-06-16</span></code>), and you can get events from a particular calendar and by keyword search term.</p>
<p>For example, to see all my trips to NYC on my TripIt calendar, I'd use the command:</p>
<p><code class="codecolorer text default"><span class="text">$ google calendar list --cal TripIt --query NYC</span></code></p>
<p>Remember the beauty of the command line: you can easily chain commands together with the pipe, so you can <code class="codecolorer text default"><span class="text">sed</span></code>, <code class="codecolorer text default"><span class="text">awk</span></code>, and <code class="codecolorer text default"><span class="text">grep</span></code> output to your heart's content, and then write it to a file if needed, using <code class="codecolorer text default"><span class="text">&gt;</span></code>. Before I discovered the <code class="codecolorer text default"><span class="text">title</span></code> parameter on the <code class="codecolorer text default"><span class="text">calendar</span></code> command, I was planning to use sed to filter out the calendar URLs from the output. (Thanks to <a href="http://twitter.com/eric_the_read/status/16499681942">lightening-fast</a> <a href="http://twitter.com/jasmarc/status/16499990433">sed</a> and <a href="http://twitter.com/tjmcgrew/status/16502555711">awk</a> experts on Twitter</a>, I was prepared to do just that.)</p>
<p>What I'd love to do is create a Todo.txt CLI add-on that inserts an event on your Google Calendar when you add a task with a due date. Here's <a href="http://tech.groups.yahoo.com/group/todotxt/message/2641">the discussion about that</a> going on now on the Todo.txt CLI mailing list. It's pretty much a no-brainer.</p>
<p>While I've mostly only played with calendar, the Docs access is pretty useful, too. With it, you could easily schedule cron'ed backups of your Google Docs, or push data into a new doc on a regular basis. Same deal with Picasa and YouTube. I like the idea of cron'ing a job that backs up my Google contacts to a CSV file on my local computer weekly, too. I don't see myself ever blogging from the command line, but it's neat that you can.</p>
<p>How are you using GoogleCL? Post your favorite command combos in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://smarterware.org/6327/get-your-google-data-at-the-command-line/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Namebench Benchmarks DNS Services</title>
		<link>http://smarterware.org/3898/namebench-benchmarks-dns-services</link>
		<comments>http://smarterware.org/3898/namebench-benchmarks-dns-services#comments</comments>
		<pubDate>Sun, 06 Dec 2009 20:02:17 +0000</pubDate>
		<dc:creator>Gina Trapani</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[benchmarks]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://smarterware.org/?p=3898</guid>
		<description><![CDATA[See whether or not your ISP's DNS server is faster or slower than other alternatives like OpenDNS or Google Public DNS with Namebench. This free benchmarking tool pits your current DNS servers against alternatives and generates handy charts and recommendations for which of your DNS choices are the fastest. Using either your browser history or [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://smarterware.org/wp-content/uploads/2009/12/namebench1.png" alt="Namebench" title="Namebench" width="631" height="318" class="aligncenter size-full wp-image-3899" align="center"/><br />
See whether or not your ISP's DNS server is faster or slower than other alternatives like <a href="http://opendns.com">OpenDNS</a> or <a href="http://code.google.com/speed/public-dns/">Google Public DNS</a> with <a href="http://code.google.com/p/namebench/">Namebench</a>. This free benchmarking tool pits your current DNS servers against alternatives and generates handy charts and recommendations for which of your DNS choices are the fastest. Using either your browser history or Alexa's top 10,000 global domain names, by default Namebench runs 200 tests to see which resolve most quickly using regional DNS servers, public services like Google's and OpenDNS's, and your current DNS services.  Here's what some of the benchmark results look like.</p>
<p><span id="more-3898"></span><br />
<img src="http://smarterware.org/wp-content/uploads/2009/12/screenshot-1.0.jpg" alt="Namebench results" title="Namebench results" width="720" height="429" class="aligncenter size-full wp-image-3906" align="center" /></p>
<p><a href="http://smarterware.org/wp-content/uploads/2009/12/namebenchbarchart.png"><img src="http://smarterware.org/wp-content/uploads/2009/12/namebenchbarchart-700x176.png" alt="Namebench results bar chart" title="Namebench results bar chart" width="700" height="176" class="aligncenter size-large wp-image-3905"  align="center"/></a></p>
<p>Namebench is a Google "20% project" and is a free download for Windows, Mac, and the command line. The benchmark tests take several minutes to run, depending on how much data you throw at it, so be prepared to go make yourself a sandwich after you press the "Start Benchmark" button. When I ran Namebench, I didn't get full results because the alternate services timed out, but I'm pretty sure that's because of restrictions on my network. What about you? Does OpenDNS or Google Public DNS beat out your ISP's DNS servers? <i>Thanks, <a href="http://smarterware.org/3889/how-to-know-when-your-dns-servers-are-failing#comment-1330">Vince</a>!</i><br />
<a href="http://code.google.com/p/namebench/">Namebench</a> [Google Code]</p>
]]></content:encoded>
			<wfw:commentRss>http://smarterware.org/3898/namebench-benchmarks-dns-services/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Back Up Your Full-Size Flickr Images by Set</title>
		<link>http://smarterware.org/2651/how-to-back-up-your-full-size-flickr-images-by-set</link>
		<comments>http://smarterware.org/2651/how-to-back-up-your-full-size-flickr-images-by-set#comments</comments>
		<pubDate>Wed, 05 Aug 2009 21:13:29 +0000</pubDate>
		<dc:creator>Gina Trapani</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://smarterware.org/?p=2651</guid>
		<description><![CDATA[If you email photos to Flickr directly from your phone like I do, you probably don't always have a copy of the images you've published online on your computer. There are a few applications that back up your Flickr photos, but right now I'm digging Dan Benjamin's (admittedly geeky) Python script, FlickrTouchr. FlickrTouchr doesn't support [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://smarterware.org/wp-content/uploads/2009/08/flickrbackupfolder.png" alt="Flickr backup folder" title="Flickr backup folder" width="279" height="229" class="aligncenter size-full wp-image-2648" align="right" />If you email photos to Flickr directly from your phone like I do, you probably don't always have a copy of the images you've published online on your computer. There are a few applications that back up your Flickr photos, but right now I'm digging Dan Benjamin's (admittedly geeky) Python script, <a href="http://github.com/dan/hivelogic-flickrtouchr/tree/master">FlickrTouchr</a>. </p>
<p>FlickrTouchr doesn't support video uploads or grab any metadata about your photos (like tags, comments, favorites, etc). But it does arrange your backups by set name. In one command, you authorize FlickrTouchr to access our Flickr account, and it gets busy downloading your files.  You'll need Python to run this and a folder to save your images. (Python comes in OS X, <a href="http://python.org/download/">install it on Windows from here</a>.) Here's what FlickrTouchr looks like in action.</p>
<p><span id="more-2651"></span></p>
<p>Download <a href="http://github.com/dan/hivelogic-flickrtouchr/tree/master">FlickrTouchr</a> and as per the README, invoke it using the commands:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mkdir FlickrBackupFolder<br />
$ python flickrtouchr.py FlickrBackupFolder</div></div>
<p>FlickrTouchr will launch your browser and open a page asking you to authorize it to access your Flickr account. </p>
<p><img src="http://smarterware.org/wp-content/uploads/2009/08/flickrtouchrauth.png" alt="FlickrTouchr authorization" title="FlickrTouchr authorization" width="617" height="272" class="aligncenter size-full wp-image-2649" /></p>
<p>When it starts going you'll see it grabbing your images.  <b>Wherever you get the error "Failed to get original", FlickrTouchr is trying to get a video.</b> Currently the script does not back up video files.</p>
<p><img src="http://smarterware.org/wp-content/uploads/2009/08/flickrtouchr1.png" alt="FlickrTouchr CLI" title="FlickrTouchr CLI" width="677" height="467" class="aligncenter size-full wp-image-2652" /></p>
<p>Once the script gets running, you can see it create folders of images on your hard drive based on your Flickr set names as it goes. If a photo isn't in any set, it gets saved in a folder called "No Set."</p>
<p><img src="http://smarterware.org/wp-content/uploads/2009/08/flickrbackupfolder.png" alt="Flickr backup folder" title="Flickr backup folder" width="279" height="229" class="aligncenter size-full wp-image-2648" /></p>
<p>If you schedule this script to run on a weekly basis <a href="http://hivelogic.com/articles/backing-up-flickr/">as Dan suggests</a>, it will simply update the photos that don't already exist in your backup.  Just the other day I was <a href="http://smarterware.org/2486/when-you-put-data-in-you-should-be-able-to-get-it-out">complaining about how non Flickr Pro users lose access to photos beyond the latest 200</a>; this is a good way to ensure the full-size image files don't get lost in the ether once they're past that number.</p>
<p><a href="http://hivelogic.com/articles/backing-up-flickr/">Backing up Flickr</a> [Hivelogic]</p>
]]></content:encoded>
			<wfw:commentRss>http://smarterware.org/2651/how-to-back-up-your-full-size-flickr-images-by-set/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MinTTY Gives Cygwin a Native Windows Interface</title>
		<link>http://smarterware.org/1118/mintty-gives-cygwin-a-native-windows-interface</link>
		<comments>http://smarterware.org/1118/mintty-gives-cygwin-a-native-windows-interface#comments</comments>
		<pubDate>Thu, 26 Mar 2009 17:25:45 +0000</pubDate>
		<dc:creator>Gina Trapani</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://smarterware.org/?p=1118</guid>
		<description><![CDATA[If you need your Unix command line on a Windows PC, chances are you use a terminal emulator like Cygwin--and if you do, you want to check out MinTTY. The MinTTY terminal window for Cygwin puts a native Windows interface on Cygwin which offers more keyboard shortcuts and colors and styles. Check out the difference [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://smarterware.org/wp-content/uploads/2009/03/cygwinvsmintty.png" alt="MinTTY next to Cygwin" title="MinTTY next to Cygwin" width="300" height="175" class="alignright size-full wp-image-1135" align="right" /> If you need your Unix command line on a Windows PC, chances are you use a terminal emulator like <a href="http://cygwin.com">Cygwin</a>--and if you do, you want to check out <a href="http://code.google.com/p/mintty/">MinTTY</a>.  The MinTTY terminal window for Cygwin puts a native Windows interface on Cygwin which offers more keyboard shortcuts and colors and styles.  Check out the difference between Cygwin and MinTTY side-by-side in the thumbnail on the right.  Using MinTTY you can turn on window transparency, set your font, and colors, copy and paste output by just selecting it with your mouse, and scroll up using the Shift+arrow key combination.  (Once it's installed, right-click on the MinTTY window and choose Options to customize its look and keyboard shortcuts.) Here's what the full MinTTY window with transparency turned on looks like.</p>
<p><span id="more-1118"></span></p>
<p><img src="http://smarterware.org/wp-content/uploads/2009/03/mintty1.png" alt="MinTTY" title="MinTTY" width="667" height="396" class="aligncenter size-full wp-image-1136" align="center" /></p>
<p>Install MinTTY either in Cygwin's setup (find it under Shells) or get the standalone download from <a href="http://code.google.com/p/mintty/">MinTTY's homepage</a>. The downside to MinTTY?  It doesn't include a tabbed interface and the developer <a href="http://code.google.com/p/mintty/issues/detail?id=8&#038;colspec=ID%20Status%20Type%20Stars%20Milestone%20Priority%20Difficulty%20Summary">doesn't plan to add tabs</a>, either.  Still, MinTTY's a big upgrade for anyone who spends time with Cygwin.  After MinTTY's installed, choose its shortcut instead of Cygwin's from your Start menu.  <a href="http://code.google.com/p/mintty/">MinTTY</a> is a free download that works with Cygwin for Windows only.  </p>
<p>If beginners are interested in learning a bit about Unix through Cygwin, check out my three-part series of tutorials published over at Lifehacker:</p>
<ul>
<li><a href="http://lifehacker.com/179514/geek-to-live--introduction-to-cygwin-part-i">Introduction to Cygwin, part I</a></li>
<li><a href="http://lifehacker.com/180690/geek-to-live--introduction-to-cygwin-part-ii-+-more-useful-commands">Introduction to Cygwin, part II - More useful commands</a></li>
<li><a href="http://lifehacker.com/181282/geek-to-live--introduction-to-cygwin-part-iii-+-scripts-packages-and-more">Introduction to Cygwin, Part III - Scripts, packages and more</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://smarterware.org/1118/mintty-gives-cygwin-a-native-windows-interface/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Todo.txt Command Line Interface Updated Today</title>
		<link>http://smarterware.org/575/todotxt-command-line-interface-updated-today</link>
		<comments>http://smarterware.org/575/todotxt-command-line-interface-updated-today#comments</comments>
		<pubDate>Wed, 18 Feb 2009 17:17:44 +0000</pubDate>
		<dc:creator>Gina Trapani</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[plain text]]></category>
		<category><![CDATA[task manager]]></category>
		<category><![CDATA[to-do list]]></category>
		<category><![CDATA[todo.txt]]></category>

		<guid isPermaLink="false">http://smarterware.org/?p=575</guid>
		<description><![CDATA[Not only am I the kind of hopeless nerd who spends a lot of time in the terminal, I'm also the kind who, in the face of countless elegant pieces of task management software, decides to write my own. Today I released the newest version of my three-year-old todo.txt command line interface--a 600-line bash script [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://smarterware.org/wp-content/uploads/2009/02/todotxt20-thumb.png" alt="Todo.txt CLI 2.0" title="Todo.txt CLI 2.0" width="200" height="200" class="alignright size-full wp-image-577"  align="right" /> Not only am I the kind of hopeless nerd who spends a lot of time in the terminal, I'm also the kind who, in the face of countless elegant pieces of task management software, decides to write my own.  </p>
<p>Today I released the newest version of my three-year-old <a href="http://todotxt.com">todo.txt command line interface</a>--a 600-line bash script that lets me add to, check off, and slice and dice my todo.txt file without a full-on editor.  </p>
<p>To download it and try it out, or just see a screencast of it in action, check out my full writeup at Lifehacker this morning: <a href="http://lifehacker.com/5155450/todotxt-cli-manages-your-tasks-from-the-command-line">Todo.txt CLI Manages Your Tasks from the Command Line</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://smarterware.org/575/todotxt-command-line-interface-updated-today/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

