www.duckland.org/output/index-4.html
2015-06-09 22:50:31 -05:00

253 lines
14 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="News from duckland.org">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>duckland.org news (old posts, page 4) | duckland.org news</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="http://www.duckland.org/index-4.html">
<link rel="prev" href="index-5.html" type="text/html">
<link rel="next" href="index-3.html" type="text/html">
<!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<!-- Menubar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><div class="container">
<!-- This keeps the margins nice -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://www.duckland.org/">
<span id="blog-title">duckland.org news</span>
</a>
</div>
<!-- /.navbar-header -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="stories/about.html">About me</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">My Sites<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="http://www.donaldharper.com">My Photo Blog</a>
</li>
<li>
<a href="http://p365.donaldharper.com">My Attempt at a Project 365</a>
</li>
<li>
<a href="http://www.duckland.org">My Personal and Tech Blog</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Social Sites<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="https://twitter.com/duckunix">My Twitter</a>
</li>
<li>
<a href="https://plus.google.com/+DonHarper/">My Google+</a>
</li>
<li>
<a href="http://www.linkedin.com/in/donaldharper/">My LinkedIN</a>
</li>
</ul>
</li>
<li>
<a href="archive.html">Archive</a>
</li>
<li>
<a href="categories/index.html">Tags</a>
</li>
<li>
<a href="rss.xml">RSS</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content">
<div class="body-content">
<!--Body content-->
<div class="row">
<div class="postindex">
<article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200812googles-calendar-on-the-command-line.html" class="u-url">Googles Calendar on the Command Line!</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200812googles-calendar-on-the-command-line.html" rel="bookmark"><time class="published dt-published" datetime="2008-12-08T17:12:00-06:00" title="2008-12-08">2008-12-08</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Googles Calendar on the Command Line!</h1>
<p>You love your comfortable command line, but all the cool kids are playing in the Web 2.0 web space, and you want to stay true to your roots?  Want a Web 2.0 calendar, but still love (or need) command line access?</p>
<p>I just found the answer: <a href="http://code.google.com/p/gcalcli/">gcalcli</a>. This little tool will let you list your appointments, get an list your events, get an agenda, print ascii rendering of your calendar for the week or month.  You can even add events to the calendar.</p>
<p>I like the fact that I can easly get at my gcalendar from anywhere (even my cell phone), and now I can do it from my shell.</p>
<p>The only downsides so far?  The code has not been updated since October of 2007, and the speed can be a little slow sometimes. I am going to play with it for a while to see if I like it enough to replace remind.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200811alerting-with-remind.html" class="u-url">Alerting with Remind</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200811alerting-with-remind.html" rel="bookmark"><time class="published dt-published" datetime="2008-11-19T17:11:00-06:00" title="2008-11-19">2008-11-19</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Alerting with Remind</h1>
<p>Back in my <a href="http://www.duckland.org/archives/2008/08/05/so-you-need-a-calendar/">article on Remind</a>, I talked about the simple power of remind to power your scheduling needs.  That is all fine and good, but how to you get it to tell you when you have an event?</p>
<p>In its simplest form, when you run _remind _ from the command line, it will not only display the current days reminders, but it will run in the background and wake up to tell you about other reminders on the screen while you work.</p>
<p>This is fine, but what happens if you do not have that termial open in front of you?  Well, I have two ways I approach that issue.</p>
<p>First, when I run under X (<a href="http://www.duckland.org/archives/2006/12/31/what-do-i-use/">yeah, yeah, I know, but I use cli tools under X</a>), I have this added to my .xinitrc:</p>
<blockquote>
<p>remind -z -kxmessage -buttons okay:0 -default okay %s&amp; ~/.reminders &amp;</p>
</blockquote>
<p>Lets look at the command line:</p>
<ul>
<li>The <strong>-z</strong> tells remind to wake up every 5 minutes and reread the .reminders file.</li>
<li>The <strong>-k</strong> tells remind to run a command instead of simply printing the reminder to the screen</li>
<li>
<strong>xmessage -buttons okay:0 -default okay %s&amp;</strong> is the secret sauce of this.  This is the command run when there is an alarm.  This command line calls xmessage (which is on pretty much any box with X) to display the alert.  You could use zenity or kmessage, or winpopup, or whatever.  This is what puts the alert in your face when you are not looking at the screen.  The <strong>&amp;</strong> is needed to make this command non-blocking by putting it in the background.</li>
</ul>
<p>That all good if you are setting at your computer.  But, what do you do when <em>gasp</em> you leave to computer?  This is a little tricker.  For this, my solution needs two things: 1) a computer which is always on and 2) a way to send messages to your cell phone/pager (sms or email).  I have a cron job which checks to make sure remind is running, and restarts it if it is not (I use a hosting provider which does not like long running processes).  The command line is similar to the one for X, but with a difference:</p>
<blockquote>
<p>TZ=CDT6CST ~/bin/remind -z -k”echo %s</p>
</blockquote>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200808pizza-party-command-line-pizza-ordering-program.html" class="u-url">Pizza Party - Command Line Pizza ordering program</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200808pizza-party-command-line-pizza-ordering-program.html" rel="bookmark"><time class="published dt-published" datetime="2008-08-25T18:08:00-05:00" title="2008-08-25">2008-08-25</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Pizza Party - Command Line Pizza ordering program</h1>
<p>Want a pizza, and do not want to fire up that pesky GUI?  We have the solution for you: <a href="http://www.beigerecords.com/cory/pizza_party/">Pizza Party - Command Line Pizza ordering program</a></p>
<p>Currently, only from Dominos, so if you do not have one near you who accepts on-line orders (<em>sigh</em>, mine does not), then you are out of luck.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200808so-you-need-a-calendar.html" class="u-url">So you need a calendar?</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200808so-you-need-a-calendar.html" rel="bookmark"><time class="published dt-published" datetime="2008-08-04T18:08:00-05:00" title="2008-08-04">2008-08-04</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>So you need a calendar?</h1>
<p>So, one of the things we have been using computers for is to keep track of our lives.  And this means a scheduling or calendaring tool.  Some tools out there do this fine, and some do it very well.</p>
<p>I have to keep track of a lot of appointments. From conference calls for work, to each member of the familys schedules, to random, but highly important reminders.  Most calendaring programs out there will let you set up a reoccurring event by day of the month, or the date.  But, what if you need to do something two days before the end of the month, every month?  Or, you need to do something every full moon, but not on <a href="http://en.wikipedia.org/wiki/Blue_moon">the blue moon</a>?  Or, you have a standing meeting with your boss every other Monday morning, execpt when Monday is a holiday, then the meeting shifts to Tuesday?  Oh, and you want something that you can run over an ssh session, while on your smart phone, or you friends smart phone?</p>
<p>The answer is simple: <a href="http://www.roaringpenguin.com/products/remind/">remind</a>.  remind can do this, and more.  Need to set something up by the Hebrew Calendar?  Check.  Want your calendar to run a shell command for you on a holiday, specific day of the month, or phase of the moon? Check.</p>
<p>Most modern Linux distrobutions include remind nowdays, as it is so darn usefull.  In addition, it runs just fine under Solaris, and the BSDs, including MacOS X.  If fact, over at <a href="http://www.43Folders.com">43Folders</a>, they have a whole section their wiki for <a href="http://wiki.43folders.com/index.php/Remind">remind</a>.  The wiki has many tips and tricks on how to use remind to its fullest.</p>
<p>In my next post, I will share some tips on how I get remind to remind me of events.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200805command-line-blog-posts.html" class="u-url">Command-Line blog posts</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200805command-line-blog-posts.html" rel="bookmark"><time class="published dt-published" datetime="2008-05-07T18:05:00-05:00" title="2008-05-07">2008-05-07</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Command-Line blog posts</h1>
<p>So, it only seems fitting that I should talk about a command-line interface to posting on this blog. No, I do not mean using <a href="http://links.twibright.com"> links</a> or the like, but a way to post from the command line.</p>
<p>So, this post is being typed up in <a href="http://www.vim.org">vim</a> on my <a href="http://www.fedoraproject.org">Fedora 8</a> laptop. I will use this great little tool I found called <em>wppost</em> to post. <em>wwpost</em> is part of the <a href="http://www.perl.org">perl</a> module <a href="http://search.cpan.org/~leocharre/WordPress-Post-1.04">WordPress::Post</a>.</p>
<p>A brief summary of its commands are bellow:</p>
<pre><code> -c category, can be a list separated by commas, no spaces
-t title
-i description, main body of post, if it has a slash, it is interpreted as a file to slurp
like a text or html file
-D iso formatted date for post, can be left out
-T if there are image attachments, place them as thumbnails only, with link, not just resized
</code></pre>
<p>Some usage examples taken from the man page:</p>
<pre><code> Most basic of usage, (provided you have a ~/.wppost file)
wppost -t 'hi everyone' -i 'i just wanted to say hello'
If you want to specify two different categories:
wppost -t 'Another Apple' -i 'Apples are really great. I do love them so.' -c food,rant -D 20071231
If the body of the post is in a file
wppost -t 'title here' -i ./content.txt
If the content of the post is in a file and you want to use the file
name as the title
wppost -i ./Title_Here.txt
If you want to have file attachments:
wppost -t 'recent photos' -i 'these are recent pictures i took' ./*jpg
</code></pre>
<p>Pretty cool, huh? <img alt=":)" src="http://www.duckland.org/wp-includes/images/smilies/icon_smile.gif"></p>
<p>Peace out!</p>
</div>
</article>
</div>
<nav class="postindexpager"><ul class="pager">
<li class="previous">
<a href="index-5.html" rel="prev">Newer posts</a>
</li>
<li class="next">
<a href="index-3.html" rel="next">Older posts</a>
</li>
</ul></nav>
</div>
<!--End of body content-->
<footer>
Contents © 2015 <a href="mailto:duck@duckland.org">Don Harper</a> - Powered by <a href="http://getnikola.com" rel="nofollow">Nikola</a>
</footer>
</div>
</div>
<script src="assets/js/all-nocdn.js"></script><script>jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
moment.locale("");
fancydates(1, "YYYY-MM-DD");
</script><!-- end fancy dates -->
</body>
</html>