From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Smithline Subject: Re: Handling Repeating events from google calendar / repeater interval Date: Wed, 31 Jul 2013 09:45:34 -0400 Message-ID: References: <85k3l1nljo.fsf@damtp.cam.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cc63ec381d904e2cef160 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4Wj3-0007Km-4z for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 09:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4Wix-0002rV-2N for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 09:46:01 -0400 Received: from mail-ob0-f179.google.com ([209.85.214.179]:63193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4Wiw-0002rM-SL for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 09:45:54 -0400 Received: by mail-ob0-f179.google.com with SMTP id fb19so1392868obc.10 for ; Wed, 31 Jul 2013 06:45:54 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Guido Van Hoecke Cc: Org Mode , Stephen Eglen --089e013cc63ec381d904e2cef160 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jul 8, 2013 at 11:55 AM, Guido Van Hoecke wrote: > > Correct me if I am wrong, but I'm afraid that pure AWK does not provide > date computation support. That's why I did not implement this. > So I would definitely vote to extend the repeater syntax with a count. Before defending my precious AWK, I'll say that I think that repeating timestamps are a good idea and I'm not trying to talk anyone out of it. >From http://en.wikipedia.org/wiki/Awk: >> Although AWK and sed were designed to support one-liner programs, even the early: >> Bell Labs users of AWK often wrote well-structured large AWK programs, and despite >> its limited intended area of use, AWK is ____Turing-complete____ I wouldn't recommend starting out to write a significant app in AWK, but adding a feature to an existing script doesn't seem unreasonable. The time functions are documented at http://www.gnu.org/software/gawk/manual/gawk.html#Time-Functions. The input may need a bit of string preprocessing before being passed to the time functions and, as we all know, AWK does a fine job of string manipulation. While I don't have time to bang on a huge script, if someone gives me the input and output for the time conversion, I should be able to whip that up pretty quickly. Neil PS: You crazy kids and your lack of respect for antiquated UNIX utilities ;-) In the interest of full disclosure, the quote above from the WIkipedia is immediately followed by: >> The power, terseness, and limits of early AWK programs inspired Larry Wall to write Perl So your lack of AWK knowledge seems reasonable as there are many better utilities. --089e013cc63ec381d904e2cef160 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Jul 8, 2013 at 11:55 AM= , Guido Van Hoecke <guivho@gmail.com> wrote:

Correct me if I am wrong, but I'm afraid that pure AWK does not p= rovide
date computation support. That's why I did not implement this.
So I would definitely vote to extend the repeater syntax with a count.

Before defending my precious AWK, I'll say = that I think that repeating timestamps are a good idea and I'm not tryi= ng to talk anyone out of it.
=A0

>> Although AWK and sed were designed to suppor= t one-liner programs, even the early:=A0
>> Bell Labs users of AWK often wrote well-structured large AWK progr= ams, and despite
>> its limited intended area of use, AWK is ____T= uring-complete____

I wouldn't recommend starting out to write a significant app in AWK, bu= t adding a feature to an existing script doesn't seem unreasonable. The= time functions are documented at=A0http://www.gnu.org/software/gawk/manu= al/gawk.html#Time-Functions. The input may need a bit of string preproc= essing before being passed to the time functions and, as we all know, AWK d= oes a fine job of string manipulation.=A0

While I don= 't have time to bang on a huge script, if someone gives me the input an= d output for the time conversion, I should be able to whip that up pretty q= uickly.

Neil
<= div class=3D"gmail_quote">
PS: You craz= y kids and your lack of respect for antiquated UNIX utilities ;-)=A0
<= div class=3D"gmail_quote">
In the interest of full disclosure, th= e quote above from the WIkipedia is immediately followed by:
>> = The power, terseness, and limits of early AWK programs inspired Larry Wall = to write Perl

So your lac= k of AWK knowledge seems reasonable as there are many better utilities.
--089e013cc63ec381d904e2cef160--