emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "David A. Gershman" <dagershman@dagertech.net>
To: Org-Mode List <emacs-orgmode@gnu.org>
Subject: Re: Unique IDs, not so unique - SOLVED
Date: Wed, 17 Feb 2010 15:18:06 -0800 (PST)	[thread overview]
Message-ID: <20100217231806.76D3B320056@mail.dagertech.net> (raw)


Hello All,

My memory was right, it *is* a timing issue.  The internal 'org' routine
generates unique IDs using some accuracy time values (not sure if its 1
second or what).  However, 'org-mobile-push' demands IDs at a rate of
several per second...thus duplicate IDs.

If you slow the ID generation down at at most 1 per second, IDs are all
unique and 'org-mobile-push' generates beautiful files which are viewed
beautifully in MobileOrg...beautiful!

Obviously slowing down the ID generation to at most 1 per second isn't
desirable, but it does show the issue is time.

If interested, to slow it down I created a perl script:

  #!/bin/perl
  sleep 1;
  print join( '', localtime() );

and set 'org-id-method' to external program (used 'org-customize') and
just named my script 'uuidgen'.

Any thoughts on how to increase the time accuracy for the internal 'org'
routine or perhaps have the routine check to see if a currently
generated ID is the same as the last ID generated.  If so, wait a sec
and then re-generate.

On a side note, my life is chaos so Thank You so much to Carsten and
Richard for making two wonderful programs that allow me to sort out my
life and take it with me.  You guys are awesome!


----------------------------------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman

                 reply	other threads:[~2010-02-17 23:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100217231806.76D3B320056@mail.dagertech.net \
    --to=dagershman@dagertech.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).