emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Unique IDs, not so unique - SOLVED
@ 2010-02-17 23:18 David A. Gershman
  0 siblings, 0 replies; only message in thread
From: David A. Gershman @ 2010-02-17 23:18 UTC (permalink / raw)
  To: Org-Mode List


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-17 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17 23:18 Unique IDs, not so unique - SOLVED David A. Gershman

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).