From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Re: Unique IDs, not so unique - SOLVED Date: Wed, 17 Feb 2010 15:18:06 -0800 (PST) Message-ID: <20100217231806.76D3B320056@mail.dagertech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nht9q-0003Ef-Ev for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 18:18:14 -0500 Received: from [140.186.70.92] (port=41572 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nht9l-0003Bj-BY for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 18:18:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nht9k-0002f3-Ll for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 18:18:09 -0500 Received: from dagertech.net ([64.183.98.170]:38233 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nht9k-0002el-0S for emacs-orgmode@gnu.org; Wed, 17 Feb 2010 18:18:08 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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