Re: [O] random weekly event

2014-07-16 Thread Ivan Kanis
July, 15 at 23:58 Thorsten Jolitz wrote: > Ivan Kanis writes: > >> I need to have org agenda (and then appt) manage an event once a week. >> The catch is that is should happen at a random day and hour. >> >> My thinking is that populating programmatically a year entry is probably >> the sanest wa

Re: [O] random weekly event

2014-07-15 Thread Thorsten Jolitz
Thorsten Jolitz writes: > ups, should be probably rather this: > > , > | (random-day (+ day (1+ (random (- 7 dow) > ` grrr ... (- 6 dow) of course -- cheers, Thorsten

Re: [O] random weekly event

2014-07-15 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Ivan Kanis writes: > > #+begin_src emacs-lisp > (defun tj/return-random-timestamp-this-week () >"Insert random timestamp for this week." > (interactive) > (let* ((cal-info (decode-time (current-time))) >(dow (nth 6 cal-info)) >(year (nth 5 cal-in

Re: [O] random weekly event

2014-07-15 Thread Thorsten Jolitz
Ivan Kanis writes: > Hi, > > I need to have org agenda (and then appt) manage an event once a week. > The catch is that is should happen at a random day and hour. > > My thinking is that populating programmatically a year entry is probably > the sanest way to go about it. > > Has anyone else done

[O] random weekly event

2014-07-15 Thread Ivan Kanis
Hi, I need to have org agenda (and then appt) manage an event once a week. The catch is that is should happen at a random day and hour. My thinking is that populating programmatically a year entry is probably the sanest way to go about it. Has anyone else done it? Ivan -- Repeated reboots of t